body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #070708;
    color: #f1f1f1;
    overflow-x: hidden;
}

/* Transizioni rettangoli e immagini */
.rect-button {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.rect-bg-img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.rect-button:hover .rect-bg-img {
    transform: scale(1.06);
    filter: brightness(0.95);
}

.rect-button:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 12px 35px -10px rgba(212, 175, 55, 0.25);
}

/* Animazione d'ingresso a cascata per il layout */
.fade-in-cascade {
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cascadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.19s; }
.delay-4 { animation-delay: 0.26s; }
.delay-5 { animation-delay: 0.33s; }
.delay-6 { animation-delay: 0.40s; }

/* Custom scrollbar */
.custom-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.8);
}

/* Classi di supporto per i pulsanti Tab */
.tab-btn-active {
    background-color: rgba(212, 175, 55, 0.15) !important;
    border-color: #e6ca65 !important;
    color: #f3e5ab !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.tab-btn-inactive {
    background-color: rgba(23, 23, 23, 0.6) !important;
    border-color: rgba(38, 38, 38, 0.8) !important;
    color: #a3a3a3 !important;
}
.tab-btn-inactive:hover {
    color: #f5f5f5 !important;
    border-color: rgba(82, 82, 82, 0.8) !important;
}

/* Animazioni di scorrimento laterale (Slide-over da destra) */
.slide-over-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-over-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-over-panel {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-over-backdrop.active .slide-over-panel {
    transform: translateX(0);
}

.modal-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.chiudi-modale {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.btn-allergeni {
    margin-left: 10px;
    font-size: 13px;
    color: #0275d8; /* O il colore che preferisci per il link */
    text-decoration: underline;
    cursor: pointer;
}