/* Reset e Variabili */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --bg-light: #f4f7f6;
    --text-dark: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Layout Contenitori */
#app-root {
    min-height: 80vh;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Esempio di stile per un modulo "Card" che verrà creato da JS */
/* La soluzione "intelligente" con Grid */
.room-grid {
    display: grid;
    /* Crea colonne da 300px finché ci stanno, altrimenti falle espandere */
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px)); 
    
    /* Centra tutto il blocco delle card nella pagina */
    justify-content: center; 
    
    gap: 30px;
    padding: 20px;
}

.section-title {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
    font-family: 'Playfair Display', serif; /* O il font che stai usando */
}

.card-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.room-description {
     display: flex;
    margin-bottom: 15px;
   justify-content: center; 
}

.room-description p {
    font-size: 0.95rem;
    color: #666; /* Grigio morbido, meno pesante del nero */
    line-height: 1.5;
    
    /* Effetto "Taglio intelligente": mostra max 3 righe poi mette i puntini (...) */
   
}

.room-features {
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3498db; /* Un tocco di colore per le info tecniche */
}

.room-features i {
    margin-right: 5px;
}
/* Usiamo invece FLEX per l'interno della card (allineamento verticale) */
.card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Fa sì che tutte le card siano alte uguali nella stessa riga */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-content {
    padding: 15px;
    flex-grow: 1; /* Spinge il bottone sempre in fondo alla card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

#lightbox-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 80vh;
    border: 3px solid white;
}

.close-lightbox {
    position: absolute;
    top: 20px; right: 30px;
    color: white; font-size: 40px; cursor: pointer;
}

.badge {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.price {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.btn-book {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-book:hover {
    background: var(--accent-color);
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Effetto "calamita" sulle foto */
    scrollbar-width: none; /* Nasconde la barra su Firefox */
}

.slider-track::-webkit-scrollbar {
    display: none; /* Nasconde la barra su Chrome/Safari */
}

.slide-img {
    min-width: 100%;
    height: 200px;
    object-fit: cover;
    scroll-snap-align: start;
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.description {
    display: flex;
        flex-direction: row; /* Allinea in orizzontale */
        align-items: center; /* Centra verticalmente il testo rispetto all'immagine */
        justify-content: space-between;
        gap: 20px; /* Spazio tra i due blocchi */
    padding: 15px;
    }

.description-text {
        flex: 1; /* Prende lo spazio necessario */
        padding-right: 30px;
    }
.service-card {
       width: 40%; /* O puoi impostare una larghezza fissa, es: width: 40%; */
       
    }
.service-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- SERVICE MOBILE --- */
@media (max-width: 768px) {
    
    .description {
    display: flex;
    flex-direction: column; 
    
}

.description-text, .service-card {
    width: 100%; /* Occupano tutta la larghezza su mobile */
    
}
.service-card {
     width: 100%;
       padding: 10px;
    }
    .service-image img {
    max-width: 100%;
    height: auto;
    display: block;
}
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh; /* Copre il 60% dell'altezza dello schermo */
    min-height: 400px;
    background: url('../img/home.jpeg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}
.hero-section2 {
    position: relative;
    height: 60vh; /* Copre il 60% dell'altezza dello schermo */
    min-height: 400px;
    background: url('../img/servizi.jpeg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}
.hero-section3 {
    position: relative;
    height: 60vh; /* Copre il 60% dell'altezza dello schermo */
    min-height: 400px;
    background: url('../img/appartamento1.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}
.hero-section4 {
    position: relative;
    height: 60vh; /* Copre il 60% dell'altezza dello schermo */
    min-height: 400px;
    background: url('../img/maps.jpeg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}
.hero-overlay {
    background: rgba(82, 74, 74, 0.4); /* Scurisce l'immagine per far leggere il testo */
    padding: 30px;
    border-radius: 10px;
    width: 90%;
}

.hero-section h1 { font-size: 2.5rem; margin-bottom: 10px; }
.hero-section p { font-size: 1.2rem; margin-bottom: 20px; }

/* Sezione Presentazione */
.about-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.wpb_wrapper{
 padding: 12px ;;
}
.btn-primary {
    background: #ff5a5f; /* Un rosso/corallo simile ad Airbnb */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.scroll-indicator {
    margin-top: 30px;
    opacity: 0.8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 10px auto;
    animation: bounce 2s infinite; /* Effetto movimento */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) rotate(45deg);}
    40% {transform: translateY(-10px) rotate(45deg);}
    60% {transform: translateY(-5px) rotate(45deg);}
}

/* --- FOOTER GENERALE --- */
.main-footer {
    background: #ecf2f9;
    color: #333;
    padding: 60px 20px 20px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Usiamo solo footer-container come griglia principale */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3, .footer-col h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-icon {
    color: #ff5a5f;
    flex-shrink: 0;
    margin-top: 3px;
}

.legal-codes {
    font-family: monospace;
    background: #eee;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    display: inline-block; /* Importante per la centratura mobile */
}

.policy-links {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

/* --- FOOTER MOBILE (CORRETTO) --- */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Una colonna secca */
        text-align: center;         /* Centra tutti i testi */
    }

    .footer-info-row {
        justify-content: center;    /* Centra le righe con le icone */
        text-align: left;           /* Mantiene il testo a sinistra dell'icona */
    }

    /* Questo blocco serve a far sì che i link della privacy 
       non abbiano i pallini o spazi strani e siano centrati */
    .policy-links li {
        margin-bottom: 10px;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;        /* Centra i blocchi interni alla colonna */
    }
}

/* --- HERO MOBILE --- */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh; /* Riduciamo l'altezza su mobile */
        min-height: 300px;
    }

    .hero-overlay h1 {
        font-size: 1.6rem; /* Font più piccolo per non andare a capo male */
        line-height: 1.2;
    }

    .hero-overlay p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .scroll-indicator {
        display: none; /* Su mobile lo spazio è poco, meglio toglierlo */
    }
    
}



.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

@media (min-width: 769px) {
    .whatsapp-float { display: none; } /* Lo mostriamo solo su mobile */
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    max-height: 90vh; /* Impedisce che esca dallo schermo */
    overflow-y: auto; /* Permette lo scroll se il contenuto è tanto */
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: default;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
    z-index: 101;
}
.close-modal:hover {
    color: #e74c3c; /* Diventa rossa al passaggio */
}

/* Chiudi anche cliccando sullo sfondo scuro (overlay) */
.modal-overlay {
    cursor: pointer;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.btn-whatsapp-send {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.room-selection {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.availability-calendar {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fff;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 10px;
}

.day {
    aspect-ratio: 1 / 1; /* Rende i giorni dei quadratini perfetti */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: transform 0.2s;
    font-size: 0.8rem;
    padding: 8px 0;
    background: #f0fdf4; /* Verde chiarissimo (Libero) */
    color: #166534;
    border-radius: 4px;
    text-align: center;
}
.day-name {
    font-weight: bold;
    color: #666;
    padding-bottom: 5px;
    font-size: 0.7rem;
}
.day.selected {
    background-color: #3498db !important;
    color: white !important;
    border-radius: 50%;
    font-weight: bold;
    transform: scale(1.1);
    transition: all 0.2s;
}

.day.free:hover {
    background-color: #e8f4fd;
    cursor: pointer;
}



/* Un piccolo effetto al passaggio del mouse sui giorni liberi */
.day:not(.busy):not(.empty):hover {
    background: #cffafe;
    transform: scale(1.1);
}
/* Giorno completamente occupato */
.day.busy {
    background-color: #ff4d4d; /* Rosso */
    color: white;
    cursor: not-allowed;
}

/* Giorno di Check-In: occupato solo il pomeriggio. */
/* La mattina (sinistra/alto) è verde/libera, il pomeriggio (destra/basso) è rosso/occupato */
.day.busy-checkin {
    background: linear-gradient(135deg, #2ecc71 50%, #ff4d4d 50%);
    color: white;
    cursor: pointer;
}

/* Giorno libero */
.day.free {
    background-color: #2ecc71; /* Verde */
    color: white;
    cursor: pointer;
}
/* Stile per il giorno di inizio (Check-in) */
.day.selected-start {
    background-color: #3498db !important; /* Azzurro intenso */
    color: white !important;
    border-radius: 4px 0 0 4px; /* Arrotonda solo gli angoli a sinistra */
}

/* Stile per i giorni intermedi (il tunnel colorato) */
.day.selected-range {
    background-color: #aed6f1 !important; /* Azzurro chiaro semitrasparente */
    color: #2c3e50 !important;
    border-radius: 0 !important; /* Quadrato perfetto per dare continuità alla striscia */
}

/* Stile per il giorno di fine (Check-out) */
.day.free.selected-end {
    background-color: #3498db !important;
    color: white !important;
    border-radius: 0 4px 4px 0; /* Arrotonda gli angoli a destra */
}

/* Se il check-out cade sul giorno di CHECK-IN di qualcun altro (bicolore) */
/* Questa regola si attiva SOLO se il div ha SIA la classe 'busy-checkin' SIA 'selected-end' */
.day.busy-checkin.selected-end {
    background: linear-gradient(135deg, #3498db 50%, #ff4d4d 50%) !important;
    color: white !important;
    border-radius: 0 4px 4px 0;
}

/* Nota speciale per gestire l'angolo del check-out se è anche un busy-checkin */


/* Se invece il check-out è su un giorno totalmente libero */
.day.free.selected-end {
    background-color: #3498db !important;
    color: white !important;
    border-radius: 0 4px 4px 0; /* Arrotonda solo gli angoli a destra */
}

.calendar-nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

/* Navigazione Tab */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #3498db;
    color: white;
}

/* Gestione visibilità */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Header della lista con filtro */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

#search-guest {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 250px;
}



/* Container principale Admin */
.admin-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Layout responsivo: affiancati su PC, uno sotto l'altro su Mobile */
.admin-layout {
    display: flex;
    flex-wrap: wrap; /* Permette il salto riga su schermi piccoli */
    gap: 30px;
}

/* Le due scatole (Form e Calendario) */
.admin-box {
    flex: 1; /* Occupano spazio uguale */
    min-width: 320px; /* Non diventano mai troppo strette */
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eaeaea;
}

/* Titoli delle sezioni */
.admin-box h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Styling del Form */
#admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#admin-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: -10px; /* Avvicina l'etichetta all'input */
}

#admin-form select, 
#admin-form input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#admin-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Il pulsante di salvataggio */
.btn-save {
    background-color: #27ae60; /* Verde successo */
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: background 0.3s;
}
.btn-delete {
    background-color: red; /* Verde successo */
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: background 0.3s;
}
.btn-edit {
    background-color: green; /* Verde successo */
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-save:hover {
    background-color: #219150;
}

/* Layout Desktop: Pulito e leggibile */
.booking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

.booking-table th, 
.booking-table td {
    text-align: left;
    padding: 15px; /* Più spazio tra i testi */
    border-bottom: 1px solid #eee;
}

.booking-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.booking-table tr:hover {
    background-color: #fcfcfc; /* Effetto hover riga */
}

/* Adattamento Mobile (sotto i 768px) */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column; /* Forza la colonna singola */
    }
    
    .admin-container {
        padding: 10px;
        margin: 10px auto;
    }
    
    .admin-box {
        min-width: unset; /* Rimuove il vincolo di larghezza */
    }
    /* Nascondiamo l'header della tabella */
    .booking-table thead {
        display: none;
    }

    .booking-table, .booking-table tbody, .booking-table tr, .booking-table td {
        display: block;
        width: 100%;
    }

    .booking-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 10px;
        background: #fdfdfd;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .booking-table td {
        text-align: right;
        padding: 8px 10px;
        border-bottom: 1px solid #eee;
        position: relative;
        font-size: 0.95rem;
    }

    /* Creiamo le etichette usando l'attributo data-label */
    .booking-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        color: #666;
        text-transform: uppercase;
        font-size: 0.75rem;
    }

    .booking-table td:last-child {
        border-bottom: none;
        text-align: center; /* Il tasto elimina lo centriamo */
        padding-top: 15px;
    }
    
    .btn-delete {
        width: 100%; /* Da mobile il tasto è bello grande e facile da tappare */
        padding: 12px;
    }
    .btn-edit {
        width: 100%; /* Da mobile il tasto è bello grande e facile da tappare */
        padding: 12px;
    }
}
/* Rendi il blocco una classe opzionale */
input[type="date"].locked {
    pointer-events: none;
    background-color: #f9f9f9;
}





.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.map-container iframe {
    width: 100%; /* Copre tutta la larghezza del div */
    display: block; /* Rimuove spazi vuoti sotto l'iframe */
}

/* Header base */
.navbar {
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative; /* Necessario per ancorare la tendina */
   
    z-index: 1000;
}
.nav-links {
        display: flex;
        gap: 30px; /* Spazio tra i link */
        list-style: none;
        align-items: center;
    }

    .nav-links a {
        text-decoration: none;
        color: white;
        font-weight: 500;
        font-size: 1rem;
        padding: 8px 12px;
        transition: all 0.3s ease;
        position: relative; /* Per l'effetto linea sotto */
    }

    /* Effetto Hover: Cambia colore */
    .nav-links a:hover {
        color: #3498db; /* Un blu professionale o il tuo colore principale */
    }

    /* Effetto "Linea che appare" sotto il link */
    .nav-links a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: white;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-links a:hover::after {
        width: 80%; /* La linea si allunga quando passi sopra */
    }

    /* Evidenziamo il tasto Area Staff per distinguerlo */
    .nav-links a[href="login.php"] {
        border: 1px solid #3498db;
        border-radius: 20px;
        padding: 8px 20px;
    }

    .nav-links a[href="login.php"]:hover {
        background: #3498db;
        color: white;
    }
    .hamburger {
        display: none;
        
    }
    

/* Nascondiamo la lista di default su mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Mostra l'icona solo su mobile */
        cursor: pointer;
        background: none;
        border: none;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: 0.3s;
    }
    .nav-links {
        display: none; /* Scompare */
        position: absolute;
        top: 100%;    /* Si posiziona esattamente sotto l'header */
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        padding: 10px 0;
    }

    /* Classe per mostrare la tendina */
    .nav-links.active {
        display: flex; /* Appare come lista verticale */
    }

    .nav-links li {
        text-align: center;
        padding: 15px 0;
    }

    .nav-links a {
        display: block;
        width: 100%;
        color: #333;
        text-decoration: none;
    }
}
