/* ==========================================================================
   STYLE.CSS - VERSIONE "LUXURY CINEMATIC" & ADMIN FIX
   ========================================================================== */

/* --- IMPORT FONT ELEGANTE --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;600&display=swap');

:root {
    /* --- COLORI LUXURY --- */
    --clr-gold-light: #F9F295;
    --clr-gold-main: #E0AA3E;
    --clr-gold-dark: #B88A44;
    --clr-gold-gradient: linear-gradient(135deg, #B88A44 0%, #E0AA3E 50%, #F9F295 100%);
    
    --clr-bg-dark: #050505;      /* Nero Profondo */
    --clr-bg-panel: #111111;     /* Pannelli/Card */
    --clr-border: rgba(224, 170, 62, 0.3); /* Bordo Oro Sottile */
    
    --clr-text-main: #FFFFFF;
    --clr-text-muted: #A0A0A0;

    /* --- DIMENSIONI & LAYOUT --- */
    --header-height: 80px;
    --sidebar-width: 280px;
    
    /* --- Z-INDEX LAYERS (CRUCIALE PER ADMIN) --- */
    --z-overlay: 990;
    --z-sidebar: 1000;  /* Sidebar SOPRA l'overlay */
    --z-header: 1010;
    --z-modal: 100050;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-main);
    font-family: 'Inter', sans-serif; /* Testo leggibile */
    margin: 0;
    line-height: 1.6;
    padding-top: var(--header-height); /* Spazio per Header Fisso */
    overflow-x: hidden;
}

/* --- TITOLI DI CLASSE (Playfair Display) --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--clr-gold-main);
    margin-top: 0;
    letter-spacing: 0.5px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }

/* =========================================
   COMPONENTI UI (Bottoni & Input)
   ========================================= */

/* Bottone Oro Metallico */
.btn, button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 30px; border-radius: 50px;
    font-family: 'Inter', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    border: none; cursor: pointer; transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary, button[type="submit"] {
    background: var(--clr-gold-gradient);
    color: #000; /* Testo nero su oro per contrasto */
    box-shadow: 0 4px 15px rgba(224, 170, 62, 0.3);
}


.btn-primary:hover, button[type="submit"]:hover {
    background: #FFF; /* Sfondo diventa bianco */
    color: #000 !important; /* <--- QUESTO FIXA IL PROBLEMA (Forza testo nero) */
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(224, 170, 62, 0.5);
    text-shadow: none; /* Rimuove eventuali ombre che confondono */
}

/* Input Form Stile Dark */
input, select, textarea {
    width: 100%; padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333; color: #FFF;
    border-radius: 6px; outline: none; transition: 0.3s;
}
input:focus, select:focus {
    border-color: var(--clr-gold-main);
    background: #000;
    box-shadow: 0 0 10px rgba(224, 170, 62, 0.2);
}

/* =========================================
   HEADER & NAVIGAZIONE
   ========================================= */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: var(--z-header);
    display: flex; align-items: center; justify-content: space-between; padding: 0 5%;
}

.logo img { height: 45px; }

.desktop-nav ul {
    display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; align-items: center;
}
.nav-link {
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: #CCC; font-weight: 500;
}
.nav-link:hover, .nav-link.active {
    color: var(--clr-gold-main);
    text-shadow: 0 0 8px rgba(224, 170, 62, 0.6);
}

/* Nascondi desktop nav su mobile */
@media (max-width: 992px) { .desktop-nav { display: none; } }

/* =========================================
   FIX DROPDOWN MENU DESKTOP
   ========================================= */
.dropdown-menu {
    /* Stile base Luxury */
    background-color: rgba(5, 5, 5, 0.95);
    border: 1px solid var(--clr-gold-main);
    border-radius: 0;
    padding: 0;
    min-width: 200px;
}

.dropdown-item {
    color: #FFF;
    transition: 0.3s;
    padding: 6px 20px !important; /* Spaziatura ridotta ulteriormente e forzata */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Playfair Display', serif; /* Coerenza font */
    font-size: 0.9rem !important; /* Leggermente più compatto */
    line-height: 1.4 !important; /* Controlla l'altezza della riga */
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--clr-gold-main);
    color: #000;
}

/* --- LOGICA HOVER DESKTOP --- */
@media (min-width: 992px) {
    /* Nascondi SEMPRE di default su desktop, ignorando la classe .show di Bootstrap */
    .dropdown-menu {
        display: none !important; 
        position: absolute; /* Ignora Popper.js positioning */
        top: 100% !important;
        left: 0;
        margin-top: 0;
        transform: none !important; /* Rimuove trasformazioni JS */
    }
    
    /* Gestione allineamento a destra per menu profilo */
    .dropdown-menu.dropdown-menu-end {
        right: 0;
        left: auto;
    }

    /* Mostra SOLO quando il mouse è sopra il genitore .nav-item */
    .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   HOMEPAGE "CINEMATIC" (Nuovo Look)
   ========================================= */
.hero-section {
    position: relative;
    height: 90vh; /* Quasi tutto lo schermo */
    margin-top: calc(var(--header-height) * -1); /* Inizia DA SOTTO l'header */
    padding-top: var(--header-height);
    background-image: url('/static/uploads/pizzahome.jpeg');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
}

/* Velo nero cinematografico */
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.95) 90%);
    z-index: 1;
}

.hero-glass-box {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    /* Effetto Vetro Scuro */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0; /* Angoli vivi per eleganza */
}

.hero-glass-box h1 {
    font-size: 4rem; line-height: 1.1; margin-bottom: 1rem;
    color: #FFF; text-transform: uppercase;
}
.hero-glass-box h1 span {
    color: transparent;
    background: var(--clr-gold-gradient);
    -webkit-background-clip: text; /* Testo color Oro sfumato */
    background-clip: text;
}

.hero-glass-box p { font-size: 1.2rem; color: #DDD; font-weight: 300; }

/* Marquee Striscia */
.marquee-container {
    background: var(--clr-gold-main); color: #000;
    padding: 15px 0; overflow: hidden; white-space: nowrap;
    border-top: 2px solid #FFF; border-bottom: 2px solid #FFF;
    font-weight: 800; font-size: 1.2rem; text-transform: uppercase;
}
.marquee-content { display: inline-block; animation: scroll 20s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Galleria Mosaico */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 5px; background: #000; padding: 5px; }
.gallery-item { height: 300px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: grayscale(30%); }
.gallery-item:hover img { transform: scale(1.05); filter: grayscale(0%); }

/* =========================================
   ADMIN PANEL (FIX SIDEBAR)
   ========================================= */

.admin-layout {
    display: grid;
    /* Desktop: Sidebar fissa a sinistra, contenuto a destra */
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    background: #000;
    /* Reset padding body */
    margin-top: calc(var(--header-height) * -1); 
    padding-top: var(--header-height);
}

/* Sidebar Styling */
.admin-sidebar {
    background: #080808;
    border-right: 1px solid #222;
    height: calc(100vh - var(--header-height));
    position: sticky; top: var(--header-height);
    overflow-y: auto;
    padding: 20px 0;
    z-index: var(--z-sidebar); /* FIX Z-INDEX: Deve essere alto */
}

.admin-sidebar-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 25px;
    color: #888; border-left: 3px solid transparent;
    transition: 0.2s; font-size: 0.95rem;
}
.admin-sidebar-nav a:hover, .admin-sidebar-nav a.active {
    background: rgba(224, 170, 62, 0.05);
    color: var(--clr-gold-main);
    border-left-color: var(--clr-gold-main);
}
.admin-sidebar-nav i { width: 20px; text-align: center; }

/* Contenuto Admin */
.admin-main-content {
    padding: 30px; background: #000;
}

/* Tabelle Admin */
.table-container { background: var(--clr-bg-panel); border: 1px solid #222; border-radius: 8px; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; color: #DDD; }
.data-table th { background: #181818; padding: 15px; text-align: left; color: var(--clr-gold-main); font-size: 0.85rem; text-transform: uppercase; }
.data-table td { padding: 15px; border-bottom: 1px solid #222; }
.data-table tr:hover td { background: #111; }

/* --- ADMIN MOBILE FIX --- */
/* Overlay Sfondo Scuro */
.admin-sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: var(--z-overlay); /* FIX: Deve essere SOTTO la sidebar */
    backdrop-filter: blur(3px);
}

@media (max-width: 992px) {
    .admin-layout { grid-template-columns: 1fr; } /* Layout colonna singola */
    
    .admin-sidebar {
        position: fixed; top: var(--header-height); left: 0; bottom: 0;
        height: auto; width: 80%; max-width: 300px;
        transform: translateX(-100%); /* Nascosta inizialmente */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 20px rgba(0,0,0,0.5);
    }
    
    /* Quando la sidebar è aperta (tramite JS) */
    .admin-layout.sidebar-open .admin-sidebar {
        transform: translateX(0); /* Entra in scena */
    }
    .admin-layout.sidebar-open .admin-sidebar-overlay {
        display: block; /* Mostra il velo scuro */
    }
    
    /* Bottone Hamburger Admin (visibile solo su mobile) */
    .admin-menu-toggle-btn {
        display: inline-block !important;
        background: transparent; border: 1px solid #333; color: var(--clr-gold-main);
        padding: 8px 12px; border-radius: 4px; margin-right: 15px;
    }
}
@media (min-width: 993px) { .admin-menu-toggle-btn { display: none !important; } }


/* =========================================
   MENU RISTORANTE (Card & Layout)
   ========================================= */
.menu-items-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px;
    padding: 20px 0;
}
.menu-item-card {
    background: var(--clr-bg-panel); border: 1px solid #222;
    border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
}
.menu-item-image { height: 220px; overflow: hidden; }
.menu-item-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.menu-item-card:hover img { transform: scale(1.1); }
.menu-item-details { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.menu-item-name { font-size: 1.2rem; color: var(--clr-gold-main); font-family: 'Playfair Display', serif; }

/* =========================================
   FOOTER & ORARI (FIX COMPLETO)
   ========================================= */

.site-footer {
    background: #080808;
    border-top: 1px solid rgba(224, 170, 62, 0.2); /* Bordo oro scuro */
    padding: 60px 0 20px;
    color: #999;
    margin-top: 80px;
    font-size: 0.95rem;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.3fr 1fr; /* Colonne bilanciate */
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #222;
}

/* Titoli Footer */
.footer-col h4 {
    color: #FFF;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--clr-gold-main);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

/* --- LISTA ORARI MODERNA --- */
.footer-hours-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-hours-list-modern li {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Allinea in basso per i puntini */
    margin-bottom: 12px;
    padding-bottom: 0;
    position: relative;
    font-size: 0.95rem;
}

/* Nome del giorno */
.footer-hours-list-modern li .day {
    flex-shrink: 0; /* Non si restringe */
    font-weight: 500;
    padding-right: 5px;
    background: #080808; /* Copre i puntini */
    z-index: 1;
}

/* Riga puntinata decorativa */
.footer-hours-list-modern li .dots {
    flex-grow: 1;
    border-bottom: 1px dotted #444;
    margin-bottom: 6px; /* Altezza dei puntini */
    margin-left: 5px;
    margin-right: 5px;
    opacity: 0.5;
}

/* Blocco Orario */
.footer-hours-list-modern li .time {
    flex-shrink: 0;
    text-align: right;
    background: #080808;
    z-index: 1;
    padding-left: 5px;
    font-size: 0.9rem;
}

/* Stile per i turni (Pranzo/Cena) */
.footer-hours-list-modern .shift {
    display: block;
    line-height: 1.2;
}

/* --- EVIDENZIATORE GIORNO CORRENTE (OGGI) --- */
.footer-hours-list-modern li.today {
    color: var(--clr-gold-main); /* Testo ORO */
    font-weight: 700;
    transform: scale(1.02); /* Leggermente più grande */
    transform-origin: left;
}

.footer-hours-list-modern li.today .dots {
    border-bottom-color: var(--clr-gold-main); /* Puntini oro */
    opacity: 1;
}

/* Etichetta CHIUSO */
.closed-shift, .text-danger {
    color: #FF4444 !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- LINK & SOCIAL --- */
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #BBB; transition: 0.3s; }
.footer-links a:hover { color: var(--clr-gold-main); padding-left: 5px; }

.footer-socials a {
    display: inline-flex; width: 40px; height: 40px;
    background: #222; color: #FFF;
    border-radius: 50%;
    align-items: center; justify-content: center;
    margin-right: 10px; transition: 0.3s;
}
.footer-socials a:hover {
    background: var(--clr-gold-gradient);
    color: #000;
    transform: translateY(-3px);
}

/* Background helper per split-image homepage */
.image-vicoli {
    background-image: url('/static/uploads/vicoli_napoli.jpg');
}

/* Stile popup PWA */
#installPopup {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px;
    max-width: 280px;
    font-family: inherit;
}

#installPopup .popup-content {
    text-align: center;
}

#installPopup p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #333;
}

#installPopup button {
    margin: 0 4px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

#installButton {
    background: #007bff;
    color: white;
}

#installButton:hover {
    background: #0056b3;
}

#closePopupButton {
    background: #6c757d;
    color: white;
}

#closePopupButton:hover {
    background: #545b62;
}

/* Tab semicircolare per riaprire popup */
#installTab {
  pointer-events: auto;
}
.install-tab-btn {
  width: 40px;
  height: 40px;
  background: #ffd700;
  color: #111;
  border: none;
  border-radius: 20px 0 0 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.install-tab-btn:hover {
  filter: brightness(0.95);
}
.tab-arrow {
  display: inline-block;
  transform: translateX(-2px);
}
/* --- RESPONSIVE FOOTER --- */
@media (max-width: 992px) {
    .footer-content-grid {
        grid-template-columns: 1fr 1fr; /* 2 colonne su tablet */
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-content-grid {
        grid-template-columns: 1fr; /* 1 colonna su mobile */
        text-align: center;
    }
    
    .footer-col h4 {
        border-bottom: none;
        position: relative;
    }
    .footer-col h4::after { /* Linea centrale su mobile */
        content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
        width: 50px; height: 2px; background: var(--clr-gold-main);
    }

    /* Adatta la lista orari per il centro */
    .footer-hours-list-modern li {
        justify-content: center;
        border-bottom: 1px solid #222;
        padding: 8px 0;
        flex-direction: column; /* Orario sotto il giorno su mobile stretto */
        align-items: center;
    }
    .footer-hours-list-modern li .dots { display: none; } /* Niente puntini su mobile */
}
/* =========================================
   MENU MOBILE PREMIUM (Floating Bar) - FIX ALLINEAMENTO
   ========================================= */
.mobile-nav-premium { display: none; }

@media (max-width: 992px) {
    .mobile-nav-premium {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 94%;
        max-width: 450px;
        height: 70px;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(15px);
        border: 1px solid var(--clr-gold-main);
        border-radius: 40px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        z-index: 10000;
        padding: 0 10px;
    }

    .nav-list {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-item {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%; /* Forza l'altezza piena per centrare bene */
    }

    .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Centra verticalmente */
        text-decoration: none;
        color: #666;
        font-size: 0.7rem;
        transition: 0.3s;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        width: 100%;
    }

    .icon-box {
        font-size: 1.4rem;
        margin-bottom: 4px; /* Spazio standard tra icona e testo */
        transition: 0.3s;
        color: #666;
        line-height: 1; /* Previene altezze strane */
    }

    /* Stato Attivo */
    .nav-item.active .nav-link,
    .nav-item.active .icon-box {
        color: var(--clr-gold-main);
    }
    .nav-item.active .icon-box {
        transform: translateY(-3px);
        text-shadow: 0 0 10px rgba(224, 170, 62, 0.4);
    }

    /* --- BOTTONE CENTRALE "ORDINA" --- */
    .nav-item.main-action .icon-box.big-icon {
        background: var(--clr-gold-gradient);
        color: #000;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        
        /* 1. Sposta l'icona VISIVAMENTE in alto fuori dal menu */
        transform: translateY(-25px);
        
        /* 2. FIX ALLINEAMENTO TESTO: 
           Il margine negativo riduce lo spazio occupato nel layout,
           tirando il testo "Ordina" verso l'alto per allinearlo agli altri. */
        margin-bottom: -32px; 
        
        box-shadow: 0 0 20px rgba(224, 170, 62, 0.4);
        border: 5px solid var(--clr-bg-dark);
        font-size: 1.5rem;
    }
    
    /* Effetto pulsazione attivo */
    .nav-item.main-action.active .icon-box.big-icon {
        box-shadow: 0 0 30px rgba(224, 170, 62, 0.6);
        transform: translateY(-28px) scale(1.05);
    }
    
    /* Opzionale: ritocco fine per il testo "Ordina" se serve */
    .nav-item.main-action .nav-text {
        position: relative;
        top: 2px; 
    }
}
/* Forza lo sfondo scuro su tutti i contenitori (Card) */
.card, .admin-main-content .card {
    background-color: #111 !important; /* Grigio molto scuro */
    color: #FFFFFF !important;         /* Testo Bianco */
    border: 1px solid #333 !important; /* Bordo sottile */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
}

/* Forza i titoli delle sezioni in Oro */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: var(--clr-gold-main) !important;
}

/* Corregge il testo "muted" (che spesso diventa invisibile su sfondo scuro) */
.card .text-muted, .card small {
    color: #AAA !important; /* Grigio chiaro leggibile */
}

/* Corregge liste e gruppi all'interno delle card */
.list-group-item {
    background-color: #151515 !important;
    color: #FFF !important;
    border-color: #333 !important;
}

/* Corregge lo sfondo delle tabelle se diventano bianche */
.table, .data-table {
    color: #FFF !important;
    --bs-table-bg: transparent !important;
    --bs-table-color: #FFF !important;
}

/* Corregge le righe delle tabelle al passaggio del mouse */
.table-hover > tbody > tr:hover > * {
    color: #FFF !important;
    background-color: rgba(224, 170, 62, 0.1) !important; /* Oro trasparente */
}

/* =========================================
   FIX MODAL DARK MODE (Popup Carello/Personalizza)
   ========================================= */
.modal-content {
    background-color: #111 !important;
    color: #FFF !important;
    border: 1px solid #333 !important;
}

.modal-header, .modal-footer {
    border-color: #333 !important;
}

.modal-title {
    color: var(--clr-gold-main) !important;
}

.modal-body, .modal-body p, .modal-body div {
    color: #FFF !important;
}

/* Assicura che i testi secondari nel modale siano leggibili */
.modal-body .text-muted {
    color: #AAA !important;
}

/* =========================================
   FIX SPAZIO EXTRA FONDO PAGINA (MOBILE)
   ========================================= */
@media (max-width: 992px) {
    body {
        /* Aumentiamo lo spazio in fondo così il menu fluttuante 
           non copre il copyright o i link del footer */
        padding-bottom: 140px !important; 
    }
}
/* =========================================
   PAGINA PROFILO (STILE LUXURY)
   ========================================= */

/* Griglia Layout Profilo */
.profile-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr; /* Colonna singola su mobile */
    }
}

/* --- CARD LIVELLO FEDELTÀ (Il pezzo forte) --- */
.loyalty-level-card {
    text-align: center;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d) !important;
    border: 1px solid var(--clr-gold-dark) !important;
    position: relative;
    overflow: hidden;
}

/* Effetto bagliore dietro l'icona */
.loyalty-level-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.level-icon {
    font-size: 4rem;
    background: var(--clr-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(224, 170, 62, 0.3));
}

.level-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #FFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.loyalty-points-display {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.loyalty-points-display span:first-child {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
}

.points-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--clr-gold-main);
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Barra di Progresso Dorata */
.progress-bar-container {
    background-color: #333;
    border-radius: 50px;
    height: 12px;
    width: 100%;
    margin: 1rem 0 0.5rem;
    overflow: hidden;
    border: 1px solid #444;
}

.progress-bar {
    height: 100%;
    background: var(--clr-gold-gradient);
    border-radius: 50px;
    box-shadow: 0 0 10px var(--clr-gold-main);
    transition: width 1s ease-in-out;
}

.progress-text {
    font-size: 0.85rem;
    color: #AAA;
    font-style: italic;
}

/* --- SEZIONE "ORDINA DI NUOVO" --- */
.reorder-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 1rem;
}

.reorder-container .menu-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reorder-container .menu-item:hover {
    border-color: var(--clr-gold-main);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.pizza-name-btn {
    color: var(--clr-gold-main);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 5px !important;
}

.reorder-container .ingredienti {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1; /* Spinge il bottone in fondo */
}

/* Bottone piccolo "Aggiungi" */
.add-to-cart-from-profile {
    background: transparent;
    border: 1px solid var(--clr-gold-main);
    color: var(--clr-gold-main);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.add-to-cart-from-profile:hover {
    background: var(--clr-gold-main);
    color: #000;
    box-shadow: 0 0 15px rgba(224, 170, 62, 0.4);
}

/* --- LISTA PREMI --- */
.rewards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rewards-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #333;
}

.rewards-list li:last-child {
    border-bottom: none;
}

.reward-info strong {
    color: #FFF;
    font-size: 1.1rem;
    display: block;
}

.reward-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

/* Bottone Riscatta */
.button-redeem {
    background: var(--clr-gold-dark);
    color: #FFF;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.button-redeem:hover {
    background: var(--clr-gold-main);
    color: #000;
    box-shadow: 0 0 10px var(--clr-gold-main);
}

.button-redeem-disabled {
    background: #222;
    color: #555;
    border: 1px solid #333
}
/* =========================================
   PAGINA ORDINA (RESTYLE LUXURY CINEMATIC)
   ========================================= */

/* --- Header Pagina --- */
.order-header {
    text-align: center;
    padding: 3rem 0 2rem;
    background-color: var(--clr-bg-dark);
    position: relative;
}
.order-header::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100px; height: 3px; background: var(--clr-gold-gradient);
}

.order-header-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--clr-gold-main);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(224, 170, 62, 0.2);
}

.order-header-subtitle {
    color: #888;
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Tabs Categorie (Sticky & Glass) --- */
.category-tabs-container {
    background: rgba(5, 5, 5, 0.95) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    padding: 15px 0;
    position: sticky;
    top: var(--header-height); /* Si attacca sotto l'header */
    z-index: 900;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

#category-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 20px;
    scrollbar-width: none; /* Firefox */
}
#category-tabs::-webkit-scrollbar { display: none; } /* Chrome */

.category-tab-link {
    background: transparent;
    border: 1px solid #333;
    color: #AAA;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-tab-link:hover {
    border-color: var(--clr-gold-main);
    color: #FFF;
    background: rgba(255, 255, 255, 0.05);
}

.category-tab-link.active {
    background: var(--clr-gold-gradient);
    border-color: transparent;
    color: #000; /* Testo nero su oro */
    font-weight: 800;
    box-shadow: 0 0 20px rgba(224, 170, 62, 0.4);
    transform: scale(1.05);
}

/* --- Sezioni Categorie --- */
.menu-category-section {
    margin-bottom: 5rem;
    scroll-margin-top: 180px; /* Offset per lo scroll */
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--clr-text-main);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--clr-gold-main);
}

/* --- Griglia Prodotti --- */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Card Prodotto Luxury --- */
.menu-item-card {
    background: #111; /* Più scuro */
    border: 1px solid #222;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border-color: rgba(255, 215, 0, 0.4);
}

/* Immagine */
.menu-item-image {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-item-card:hover .menu-item-image img {
    transform: scale(1.12); /* Zoom lento */
}

/* Overlay gradiente sull'immagine per rendere leggibile il testo sopra se necessario */
.menu-item-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, #111 0%, transparent 100%);
}

/* Dettagli */
.menu-item-details {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.menu-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #FFF;
    margin: 0 0 0.8rem 0;
    line-height: 1.2;
}

.menu-item-ingredients {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
    flex-grow: 1;
}

/* Footer della Card (Prezzo e Azione) */
.menu-item-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.2rem;
    border-top: 1px solid #222;
}

.menu-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-gold-main);
    text-shadow: 0 0 10px rgba(224, 170, 62, 0.2);
}

/* Bottone "Piglia chist!" */
.add-to-cart-btn {
    background: transparent !important;
    border: 1px solid var(--clr-gold-main) !important;
    color: var(--clr-gold-main) !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer;
    transition: 0.3s !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: var(--clr-gold-main) !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(224, 170, 62, 0.5) !important;
    transform: translateY(-2px);
}

.neapolitan-nudge {
    font-family: 'Playfair Display', italic;
    font-size: 0.9rem;
    color: #666;
    margin-right: 15px;
}

/* --- Cart Summary Footer (Barra Fluttuante) --- */
.cart-summary-footer {
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--clr-gold-dark);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border-radius: 100px; /* Pillola perfetta */
    padding: 12px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 350px;
    max-width: 90%;
    width: auto;
    z-index: 9000;
}

.cart-summary-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

#cart-item-count {
    font-size: 0.75rem;
    color: #AAA;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#cart-total-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFF;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-checkout {
    background: var(--clr-gold-gradient);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(224, 170, 62, 0.3);
}

.btn-checkout:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 30px rgba(224, 170, 62, 0.6);
    background: #FFF; /* Diventa bianco al passaggio */
}

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
    .cart-summary-footer {
        bottom: 110px !important; /* Sopra al menu di navigazione mobile */
        width: 94%;
        padding: 10px 20px;
    }
    
    .menu-items-grid {
        grid-template-columns: 1fr; /* Card a tutta larghezza su mobile */
    }
    
    .menu-item-image {
        height: 260px; /* Immagini grandi e impattanti */
    }
    
    .category-title {
        text-align: center;
        border-left: none;
        border-bottom: 2px solid var(--clr-gold-main);
        display: inline-block;
        padding: 0 10px 5px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .neapolitan-nudge {
        display: none; /* Nascondi frase su mobile per spazio */
    }
    
    .order-header-title {
        font-size: 2.2rem;
    }
}
/* =========================================
   PAGINA PRENOTA (LUXURY RESTYLE)
   ========================================= */

.booking-page-bg {
    /* Immagine di sfondo scura ed elegante */
    background: url('/static/uploads/sfondo_prenota.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px; /* Spazio per header */
    position: relative;
}

/* Velo nero sopra l'immagine per leggibilità */
.booking-page-bg::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.booking-glass-card {
    position: relative; z-index: 2;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2); /* Bordo Oro Sottile */
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.booking-title {
    font-family: 'Playfair Display', serif;
    color: var(--clr-gold-main);
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(224, 170, 62, 0.3);
}

.gold-divider {
    width: 80px;
    height: 3px;
    background: var(--clr-gold-gradient);
    border-radius: 2px;
}

.booking-subtitle {
    color: #AAA;
    font-size: 1rem;
    font-weight: 300;
}

/* --- INPUT FIELDS DI LUSSO --- */
.input-group-luxury {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group-luxury label {
    color: var(--clr-gold-main);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 5px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: 0.3s;
    z-index: 2;
}

.textarea-icon {
    top: 20px; /* Per le textarea l'icona sta in alto */
}

/* Stile Input */
.booking-form .form-control {
    background-color: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid #333 !important;
    color: #FFF !important;
    padding: 15px 15px 15px 45px; /* Spazio a sinistra per l'icona */
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Focus Input */
.booking-form .form-control:focus {
    background-color: #000 !important;
    border-color: var(--clr-gold-main) !important;
    box-shadow: 0 0 0 3px rgba(224, 170, 62, 0.2) !important;
}

/* Colora l'icona quando l'input è in focus */
.booking-form .form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--clr-gold-main);
    text-shadow: 0 0 5px var(--clr-gold-main);
}

/* --- BOTTONE --- */
.btn-booking-submit {
    background: var(--clr-gold-gradient) !important;
    color: #000 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: none;
    margin-top: 10px;
    box-shadow: 0 5px 20px rgba(224, 170, 62, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-booking-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(224, 170, 62, 0.4);
    background: #FFF !important; /* Diventa bianco in hover */
}

/* Responsive */
@media (max-width: 768px) {
    .booking-glass-card {
        padding: 2rem 1.5rem;
    }
    .booking-title {
        font-size: 2.2rem;
    }
}
/* =========================================
   POPUP INGREDIENTI (LUXURY STYLE)
   ========================================= */

/* --- Contenitore Modale --- */
#customizeModal .modal-content {
    background-color: #0F0F0F; /* Nero profondo */
    border: 1px solid var(--clr-gold-main); /* Bordo Oro */
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
    border-radius: 16px;
}

#customizeModal .modal-header {
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 1.5rem;
}

#customizeModal .modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--clr-gold-main);
    text-shadow: 0 0 10px rgba(224, 170, 62, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#customizeModal .modal-footer {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 1.5rem;
    background-color: #0A0A0A;
}

/* --- Titoli Sezioni (Base / Extra) --- */
.customize-section-title {
    color: #FFF;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--clr-gold-dark);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
    margin-top: 10px;
}

/* --- Lista Ingredienti --- */
.customize-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spinge il prezzo a destra */
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.03); /* Leggero stacco */
    border: 1px solid #222;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.customize-item:hover {
    background-color: rgba(255, 215, 0, 0.05); /* Hover dorato */
    border-color: rgba(255, 215, 0, 0.3);
}

/* --- Checkbox Personalizzata (Oro) --- */
.customize-item .form-check-input {
    background-color: #222;
    border: 1px solid #555;
    width: 1.3em;
    height: 1.3em;
    margin-right: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.customize-item .form-check-input:checked {
    background-color: var(--clr-gold-main);
    border-color: var(--clr-gold-main);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e"); /* Spunta Nera */
}

.customize-item .form-check-label {
    color: #DDD;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    flex-grow: 1; /* Occupa lo spazio centrale */
}

/* --- Prezzo Ingrediente --- */
.customize-item-price {
    color: var(--clr-gold-main);
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 60px;
    text-align: right;
}

/* --- Totale nel Footer --- */
#customize-modal-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-gold-main);
    text-shadow: 0 0 15px rgba(224, 170, 62, 0.4);
    margin-left: 10px;
}

.modal-footer strong {
    color: #FFF;
    font-size: 1.1rem;
    text-transform: uppercase;
}
/* =========================================
   FIX DEFINITIVO SOVRAPPOSIZIONE (Z-INDEX)
   ========================================= */

/* 1. Menu Mobile: Abbassiamo il livello */
@media (max-width: 992px) {
    .mobile-nav-premium {
        z-index: 2000 !important; /* Sopra il sito, ma sotto i modali */
    }
}

/* 2. Modali (Ingredienti, Carrello, ecc.): Alziamo il livello SOPRA ogni elemento (barra carrello è 9000) */
.modal-backdrop {
    z-index: 90000 !important; /* Velo scuro */
}
.modal {
    z-index: 90001 !important; /* Il popup vero e proprio */
}

/* Forza la scomparsa definitiva della sezione Ingredienti Base */
#customize-base-ingredients, 
#customize-modal-body h6.customize-section-title:first-of-type {
    display: none !important;
}

/* 3. Avvisi di Conferma (SweetAlert): Sopra a tutto */
div:where(.swal2-container) {
    z-index: 100000 !important; 
}

/* =========================================
   CHECKOUT PAGE LUXURY FIX (WHITE FONTS)
   ========================================= */
.checkout-container, 
.checkout-container h1, 
.checkout-container h5, 
.checkout-container .form-label, 
.checkout-container .form-check-label,
.checkout-container .summary-list span,
.checkout-container .summary-list strong:not(.text-primary):not(.text-success),
.checkout-container .card-header h5 {
    color: #FFFFFF !important;
}

.checkout-container .form-text, 
.checkout-container .text-muted {
    color: #CCCCCC !important; /* Grigio chiaro per sottotitoli */
}

/* =========================================
   FIX MODAL DARK MODE (Popup Carello/Personalizza)
   ========================================= */
.modal-content {
    background-color: #111 !important;
    color: #FFF !important;
    border: 1px solid #333 !important;
}
.modal-header, .modal-footer {
    border-color: #333 !important;
}
.modal-title {
    color: var(--clr-gold-main) !important;
}
.modal-body, .modal-body p, .modal-body div {
    color: #FFF !important;
}
.modal-body .text-muted {
    color: #AAA !important;
}

/* =========================================
   TIMELINE TRACKER STYLES (For Popup & Track Page)
   ========================================= */
.tracker-container {
    position: relative;
    margin: 20px 0 30px;
    padding: 0 10px;
}
.tracker-progress-bar {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--clr-border, #333);
    z-index: 0;
    border-radius: 4px;
}
.tracker-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.step {
    text-align: center;
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.step-icon {
    width: 50px; height: 50px;
    background-color: var(--clr-bg-panel, #111);
    border: 2px solid var(--clr-border, #333);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--clr-text-muted, #aaa);
    font-size: 1.2rem;
    transition: all 0.4s ease;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.step-label {
    font-size: 0.7rem;
    color: var(--clr-text-muted, #aaa);
    font-weight: 500;
    transition: color 0.3s;
}

/* Stato Attivo */
.step.active .step-icon {
    background-color: #F76B1C; /* Brand Orange */
    border-color: #F76B1C;
    color: white;
    box-shadow: 0 0 15px rgba(247, 107, 28, 0.6);
    transform: scale(1.1);
}
.step.active .step-label {
    color: var(--clr-text-main, #fff);
    font-weight: bold;
}
/* Animazione pulsante per lo stato corrente */
.step.active:last-child .step-icon {
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(247, 107, 28, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(247, 107, 28, 0); }
    100% { box-shadow: 0 0 0 0 rgba(247, 107, 28, 0); }
}

/* Nascondi label su mobile se troppo stretto, ma Swal è largo */
@media (max-width: 400px) {
    .step-label { display: none; }
}
