/* VARIABILI COLORE E FONTS */
:root {
    --primary: #3B5323; /* Verde bosco/muschio */
    --secondary: #D35400; /* Arancio ruggine / sterrato */
    --dark: #2C3E50; /* Grigio scuro per testi */
    --light: #F9F8F6; /* Beige chiarissimo */
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

/* RESET E BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); line-height: 1.6; background-color: var(--white); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--primary); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light); }
.text-center { text-align: center; }
.mt-3 { margin-top: 30px; }
.w-100 { width: 100%; }

/* UTILS */
.divider { height: 4px; width: 60px; background-color: var(--secondary); margin: 15px 0 25px 0; }
.divider.center { margin: 15px auto 25px auto; }
.btn { display: inline-block; padding: 12px 28px; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; border-radius: 4px; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background-color: var(--secondary); color: var(--white); }
.btn-primary:hover { background-color: #A04000; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(211, 84, 0, 0.3); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: var(--white); }

/* NAVBAR */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.95); box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; backdrop-filter: blur(5px); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-family: var(--font-heading); font-size: 24px; font-weight: 900; color: var(--primary); }
.logo span { color: var(--secondary); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 14px; text-transform: uppercase; transition: var(--transition); line-height: 1;}
.nav-links a:hover { color: var(--secondary); }
.hamburger { display: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* HERO */
.hero { height: 100vh; background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(59, 83, 35, 0.7)), url('https://images.unsplash.com/photo-1501554728187-ce13813bc6db?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); padding: 0 20px; }
.hero h1 { color: var(--white); font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; max-width: 600px; margin-inline: auto; }
.hero-main-title {
    font-size: 7rem;
    font-family: var(--font-heading);
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.1;
    word-wrap: break-word; /* Evita che il testo esca dal contenitore */
}

.hero-subtitle {
    color: var(--secondary) !important; /* Colore arancio ruggine */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
/* ABOUT */
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 50px; align-items: center; }
.about-card { background: var(--light); padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-left: 4px solid var(--secondary); }
.about-card h3 { margin-bottom: 20px; }
.about-card ul li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.about-card i { color: var(--secondary); font-size: 20px; width: 25px; }

/* TABS PERCORSI */
.tabs { max-width: 800px; margin: 0 auto; }
.tab-buttons { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn { padding: 12px 24px; background: transparent; border: 2px solid var(--primary); color: var(--primary); font-family: var(--font-heading); font-weight: 700; cursor: pointer; transition: var(--transition); border-radius: 4px; }
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: var(--white); }
.tab-content { display: none; background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
.route-info h3 { font-size: 24px; margin-bottom: 15px; }
.stats { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; font-weight: 600; color: var(--secondary); font-size: 18px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* GALLERY GRID */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 250px); gap: 15px; margin-bottom: 40px; }
.gallery-item { border-radius: 8px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.item-1 { grid-column: span 2; grid-row: span 2; }
.item-2, .item-3, .item-4, .item-5 { grid-column: span 1; grid-row: span 1; }

/* --- SPONSORS CAROUSEL (Fixato per le immagini) --- */
.sponsors { 
    padding: 60px 0; 
    border-top: 1px solid #eaeaea; 
    border-bottom: 1px solid #eaeaea; 
    background-color: var(--white); /* Uso sfondo bianco per far risaltare i loghi */
}

.slider { 
    width: 100%; 
    max-width: 1200px; /* Limita la larghezza massima per non farli allargare troppo */
    margin: 0 auto; 
    overflow: hidden; 
    position: relative; 
}

/* Effetto sfumatura ai lati per nascondere i loghi che entrano ed escono */
.slider::before, .slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}
.slider::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, rgba(255,255,255,0) 100%);
}
.slider::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, rgba(255,255,255,0) 100%);
}

/* La traccia conterrà 9 slide. Imponiamo una larghezza fissa di 250px a slide */
.slide-track { 
    display: flex; 
    width: calc(250px * 9); 
    /* Animazione: dura 15s. Più alzi il numero, più va piano */
    animation: scrollLogos 15s linear infinite; 
}

.slide { 
    width: 250px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0 30px; /* Spazio tra un logo e l'altro */
}

/* Regole vitali per non far sovrapporre o deformare le immagini */
.slide img { 
    max-width: 100%; 
    max-height: 80px; /* Altezza massima uniforme per tutti i loghi */
    object-fit: contain; /* Non taglia e non deforma l'immagine */
    
    /* Effetto eleganza: scala di grigi di default */
    filter: grayscale(100%); 
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Al passaggio del mouse tornano a colori */
.slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* La vera magia: Spostiamo la traccia esattamente di 3 loghi (3 * 250px = 750px). 
Quando arriva a 750px, si azzera a 0 in una frazione di secondo e l'occhio non se ne accorge. */
@keyframes scrollLogos { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(calc(-250px * 3)); } 
}

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form-wrapper { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.contact-form-wrapper h2 { margin-bottom: 25px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: var(--font-body); }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { outline: none; border-color: var(--primary); }
.input-group textarea { resize: vertical; min-height: 80px; } /* Permette il ridimensionamento solo in verticale */
.contact-info { display: flex; flex-direction: column; justify-content: center; }
.contact-info h2 { margin-bottom: 30px; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-item i { font-size: 24px; color: var(--secondary); background: var(--light); padding: 15px; border-radius: 50%; height: 54px; width: 54px; display: flex; align-items: center; justify-content: center; }
.info-item h4 { margin-bottom: 5px; color: var(--dark); }

/* FOOTER */
footer { background: var(--primary); color: var(--white); padding-top: 60px; }
footer h3, footer h4 { color: var(--white); margin-bottom: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--secondary); }
.social-icons { display: flex; gap: 15px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; transition: var(--transition); }
.social-icons a:hover { background: var(--secondary); transform: translateY(-3px); }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 20px 0; font-size: 14px; }

/* --- NUOVI STILI PER ABOUT E PREZZI --- */
.mt-3 { margin-top: 30px; }
.mb-3 { margin-bottom: 20px; }
.icon-text { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.icon-text i { color: var(--secondary); font-size: 18px; }

.feature-list { margin-top: 15px; }
.feature-list li { margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.feature-list i { color: var(--primary); font-size: 18px; margin-top: 4px; }

.about-sidebar { display: flex; flex-direction: column; gap: 20px; }
.about-image { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.pricing-card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 2px solid var(--primary); }
.pricing-card h3 { text-align: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.price-list li { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 16px; border-bottom: 1px dashed #ccc; padding-bottom: 5px; }
.price-list li strong { color: var(--secondary); font-size: 18px; }
.price-note { font-size: 13px; color: #666; margin-top: 15px; background: var(--light); padding: 10px; border-radius: 4px; border-left: 3px solid var(--secondary); }

/* --- NUOVI STILI PER LAYOUT PERCORSI CON MAPPA --- */
.tabs { max-width: 1000px; }
.route-layout { display: flex; flex-direction: column; gap: 30px; }

/* --- LAYOUT PERCORSI: DESKTOP E TABLET ORIZZONTALI (Affiancato) --- */
@media (min-width: 992px) {
    .route-layout {
        flex-direction: row;
        align-items: center; /* Allinea verticalmente il testo al centro rispetto alla mappa */
        gap: 50px; /* Spazio orizzontale tra la colonna di testo e la mappa */
    }

    .route-info {
        flex: 1; /* Il testo occupa metà dello spazio disponibile */
        text-align: left;
    }

    .route-image-wrapper {
        flex: 1; /* La mappa occupa l'altra metà dello spazio */
        width: 100%;
    }
}
.text-left { text-align: left; }
.justify-left { justify-content: flex-start; }
.route-image-wrapper { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.route-map-mockup { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.route-image-wrapper:hover .route-map-mockup { transform: scale(1.05); }
.image-label { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.7); color: white; padding: 5px 10px; font-size: 12px; border-radius: 4px; font-weight: bold; }

/* --- STILI PER CHECKBOX E FORM --- */
.checkbox-group { margin-bottom: 15px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; line-height: 1.4; }
.checkbox-label input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; cursor: pointer; accent-color: var(--secondary); flex-shrink: 0; }
.checkbox-label span { color: var(--dark); }

.terms-group { margin-top: 25px; padding-top: 15px; border-top: 1px solid #ddd; }
.terms-group span { font-weight: 600; }
.terms-group a { color: var(--secondary); text-decoration: underline; }
.terms-group a:hover { color: var(--primary); }

/* Stile per il bottone disabilitato */
.btn:disabled { background-color: #ccc; border-color: #ccc; color: #777; cursor: not-allowed; box-shadow: none; transform: none; }

/* --- STILI GRIGLIA "LA QUOTA COMPRENDE" --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.feature-card {
    background: var(--light);
    border: 1px solid #eaeaea;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--primary);
}
.feature-card.highlight {
    background: #FFF3E0; /* Leggerissimo arancione per risaltare */
    border-color: #FFCC80;
}
.feature-card .emoji {
    font-size: 24px;
}

/* --- STILI MODERN FORM & INPUTS --- */
/* --- STILI MODERN FORM & INPUTS --- */
.modern-form .input-group input[type="text"],
.modern-form .input-group input[type="email"],
.modern-form .input-group textarea {
    background-color: var(--light);
    border: 2px solid transparent;
    transition: var(--transition);
}
.modern-form .input-group input:focus,
.modern-form .input-group textarea:focus {
    background-color: var(--white);
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.1);
}

/* --- RADIO CARDS PER I PERCORSI (Sostituiscono la tendina) --- */
.route-selection {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}
.route-radio-card {
    flex: 1;
    cursor: pointer;
}
/* Nascondiamo il pallino del radio button nativo */
.route-radio-card input[type="radio"] {
    display: none;
}
.route-radio-card .card-content {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: var(--transition);
    background: var(--white);
    display: flex;
    flex-direction: column;
}
.route-radio-card .route-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    margin-bottom: 5px;
}
.route-radio-card .route-km {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}
/* Effetto Hover */
.route-radio-card:hover .card-content {
    border-color: var(--primary);
    background: var(--light);
}
/* Effetto Quando Selezionato */
.route-radio-card input[type="radio"]:checked + .card-content {
    border-color: var(--secondary);
    background-color: rgba(211, 84, 0, 0.05);
    box-shadow: 0 4px 10px rgba(211, 84, 0, 0.15);
}
.route-radio-card input[type="radio"]:checked + .card-content .route-name,
.route-radio-card input[type="radio"]:checked + .card-content .route-km {
    color: var(--secondary);
}

/* Pulsante form glow */
.btn-glow:not(:disabled) {
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4);
}


/* --- STILI BANNER MESSAGGI FORM --- */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.3s ease;
}
.form-message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}
.form-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* --- MENU A TENDINA (DROPDOWN) --- */
.dropdown { position: relative; display: inline-block; }
.dropdown .dropbtn { 
    display: flex; 
    align-items: center; 
    gap: 6px; /* Spazio tra testo e freccina */
    cursor: pointer;
}
.dropdown-content {
    display: none; position: absolute; background-color: var(--white);
    min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1001; border-radius: 4px; top: 100%; left: 0;
}
.dropdown-content a {
    color: var(--dark); padding: 12px 16px; text-decoration: none;
    display: block; font-size: 13px; text-transform: none; font-weight: 600;
}
.dropdown-content a:hover { background-color: var(--light); color: var(--secondary); }
.dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.3s ease; }

/* --- HEADER PAGINE INTERNE --- */
.page-header {
    margin-top: 80px; /* Spazio per la navbar fissa */
    padding: 60px 20px; background: var(--primary); color: var(--white);
}
.page-header h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 10px; }

/* --- PAGINA TESTUALE (REGOLAMENTO) --- */
.text-content {
    max-width: 800px; margin: 0 auto; background: var(--white);
    padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.text-content h3 { margin-top: 30px; margin-bottom: 15px; font-size: 1.4rem; color: var(--dark); border-bottom: 2px solid var(--secondary); display: inline-block; padding-bottom: 5px; }
.text-content p, .text-content ul { margin-bottom: 20px; font-size: 1.05rem; }

/* --- GALLERIA COMPLETA --- */
.year-filters { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.year-btn {
    padding: 10px 20px; border: 2px solid var(--primary); background: transparent;
    color: var(--primary); font-weight: 700; border-radius: 30px; cursor: pointer; transition: var(--transition);
}
.year-btn.active, .year-btn:hover { background: var(--primary); color: var(--white); }

.full-gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px;
}
.gallery-thumbnail { border-radius: 8px; overflow: hidden; height: 250px; cursor: zoom-in; }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-thumbnail:hover img { transform: scale(1.1); }

/* --- LIGHTBOX (INGRANDIMENTO FOTO) --- */
.lightbox-modal {
    display: none; position: fixed; z-index: 2000; padding-top: 50px;
    left: 0; top: 0; width: 100%; height: 100%; overflow: hidden;
    background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px);
}
.lightbox-content {
    margin: auto; display: block; max-width: 90%; max-height: 85vh;
    border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease; object-fit: contain;
}
.lightbox-close {
    position: absolute; top: 20px; right: 35px; color: #f1f1f1;
    font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.lightbox-close:hover { color: var(--secondary); }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- STILI LOGO IMMAGINE NAVBAR --- */
.logo-link {
    display: flex;
    flex-direction: row; /* FORZA l'affiancamento orizzontale */
    align-items: center; 
    gap: 12px; 
    text-decoration: none;
    flex-wrap: nowrap; /* Impedisce assolutamente di andare a capo */
}

.nav-logo-img {
    height: 50px; 
    width: auto;
    object-fit: contain;
    display: block; 
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--dark); /* "PIEVE" torna del colore scuro (puoi usare anche var(--primary) se preferisci il verde) */
    line-height: 1; 
    margin: 0;
}

.nav-logo-text span {
    color: var(--secondary); /* "GRAVEL" torna arancione */
}


/*   --- EFFETTI NOTA GPX --- */

/* Stile dell'Asterisco cliccabile */
.gpx-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: var(--transition);
    display: inline-block;
    padding: 0 2px;
}

/* Effetto al passaggio del mouse sull'asterisco */
.gpx-link:hover {
    transform: scale(1.3) translateY(-2px);
    color: #A04000; /* Stesso colore scuro che usi per l'hover dei bottoni */
}

/* Stile base della Nota di Destinazione */
.gpx-note-target {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 4px;
    transition: var(--transition);
    color: #555;
}

/* L'EVIDENZIAZIONE: Si attiva solo quando arrivi all'ancora #nota-gpx */
.gpx-note-target:target {
    background-color: rgba(211, 84, 0, 0.15); /* Sfondo con il tuo arancione al 15% di opacità */
    color: var(--dark);
    transform: scale(1.02);
    border-left: 3px solid var(--secondary);
    font-weight: 600;
}

/* =========================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   Da incollare alla fine del file CSS
========================================= */

/* --- TABLET E SCHERMI MEDI (Max 900px) --- */
@media (max-width: 900px) {
    /* Struttura Generale */
    .about-grid, .contact-grid { 
        grid-template-columns: 1fr; 
    }
    
    /* Hero Section */
    .hero-main-title { font-size: 5rem; }
    .hero h1.hero-subtitle { font-size: 2.5rem; }
    
    /* Layout Percorsi */
    .route-layout { grid-template-columns: 1fr; }
    .text-left { text-align: center; }
    .justify-left { justify-content: center; }
    
    /* Galleria */
    .gallery-grid { 
        grid-template-columns: 1fr 1fr; 
        grid-template-rows: auto; 
    }
    .item-1 { 
        grid-column: span 2; 
        grid-row: span 1; 
        height: 300px; 
    }
    
    /* Footer */
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .social-icons { 
        justify-content: center; 
    }
}

/* --- SMARTPHONE E SCHERMI PICCOLI (Max 768px) --- */
@media (max-width: 768px) {
    /* Menu Mobile e Hamburger */
    .hamburger { display: block; }
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 80px; 
        left: 0; 
        width: 100%; 
        background-color: var(--white); 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 0; 
    }
    .nav-links.active { display: flex; }
    .nav-links li {
        width: 100%;
        text-align: center; 
        border-bottom: 1px solid #f0f0f0; 
    }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a, .dropdown .dropbtn {
        display: block;
        padding: 20px;
        font-size: 16px;
        font-weight: 700;
        justify-content: center; 
    }

    /* Sottomenu "Edizioni" su Mobile */
    .dropdown-content {
        position: static; 
        box-shadow: none;
        background-color: var(--light); 
        width: 100%;
    }
    .dropdown-content a {
        padding: 15px;
        font-size: 14px;
        border-bottom: 1px solid #e8e8e8;
    }
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
    }

    /* Hero Section - Testo per Smartphone */
    .hero-main-title { font-size: 3.5rem; }
    .hero h1.hero-subtitle { font-size: 1.8rem; }

    /* Fix Carousel Sponsors (Disabilita sfumature per recuperare spazio) */
    .slider::before, .slider::after {
        display: none;
    }
}

/* --- SMARTPHONE IN VERTICALE (Max 600px) --- */
@media (max-width: 600px) {
    /* Mette i bottoni dei percorsi in colonna */
    .route-selection {
        flex-direction: column;
    }
}

/* --- SMARTPHONE MOLTO PICCOLI (Max 480px) --- */
@media (max-width: 480px) {
    /* La scritta hero occuperà il 13% della larghezza dello schermo, scalando fluidamente e senza mai strabordare */
    .hero-main-title { 
        font-size: 13vw; 
    }
}

/* Ottimizzazione per la mappa Leaflet */
#map-lungo {
    width: 100%;
    height: 450px; /* Altezza della mappa su desktop */
    border-radius: 8px; /* Smussatura coerente con il tuo stile */
    z-index: 1; /* Evita conflitti di posizionamento con i menu a tendina */
}

@media (max-width: 768px) {
    #map-lungo {
        height: 350px; /* Più compatta su smartphone */
    }
}

/* --- BANNER DISCLAIMER PACCO GARA (PARACULO) --- */
.alert-disclaimer {
    background-color: rgba(211, 84, 0, 0.08); /* Il tuo arancione ruggine chiarissimo */
    border-left: 4px solid var(--secondary);
    color: var(--dark);
    padding: 15px 20px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-disclaimer strong {
    color: var(--secondary);
    font-weight: 700;
}

/* Variante specifica per il form di iscrizione */
.alert-disclaimer.form-alert {
    margin-bottom: 25px;
    font-size: 14px;
    background-color: #FFF3E0; /* Giallo/Arancio d'avviso leggero */
    border-color: #FFA726;
}