/* ================================================================== */
/* ==================== STILI COMUNI A TUTTO IL SITO ================ */
/* ================================================================== */

/* ============================================= */
/* ========= STILI GLOBALI DEL SITO ========= */
/* ============================================= */
:root {
    --primary-color: #004aad;
    --primary-hover: #003580;
    --accent-color: #ffd54f;
    --text-dark: #2c3e50;
    --text-light: #576574;
    --border-color: #e9ecef;
    --surface-color: #ffffff;
    --background-color: #f8f9fa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Lato', sans-serif;
    background-color: var(--surface-color);
    color: var(--text-light);
    line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; color: var(--text-dark); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }


/* ============================================= */
/* ========= STILI HEADER COMUNE ========= */
/* ============================================= */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 20px 0; background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    background-color: var(--surface-color); padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.header-logo img { height: 40px; transition: filter 0.3s ease; }

/* Rende il logo bianco quando l'header è trasparente (es. sulla homepage) */
.site-header:not(.scrolled) .header-logo img {
    filter: brightness(0) invert(1);
}

.header-right { display: flex; align-items: center; gap: 25px; }

/* Navigazione Desktop */
.main-navigation ul { list-style: none; display: flex; gap: 30px; margin:0; padding: 0; }
.main-navigation a { text-decoration: none; font-weight: 600; color: white; transition: color 0.3s ease; }
.site-header.scrolled .main-navigation a { color: var(--text-dark); }
.main-navigation a:hover { color: var(--accent-color); }

/* Language Switcher */
.language-switcher button {
    background: none; border: 1px solid white; color: white;
    padding: 5px 10px; border-radius: 5px; cursor: pointer;
    font-weight: 700; transition: all 0.3s ease;
}
.site-header.scrolled .language-switcher button { border-color: var(--border-color); color: var(--text-light); }
.language-switcher button.active { background-color: var(--accent-color); color: var(--text-dark); border-color: var(--accent-color); }
.site-header.scrolled .language-switcher button.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }

/* Menu Mobile (Hamburger Icon & Overlay) */
.mobile-menu-toggle { display: none; } /* Nascosto su desktop */
.mobile-menu { display: none; } /* Nascosto di default */

@media (max-width: 992px) {
    .main-navigation { display: none; } /* Nasconde navigazione desktop */
    
    .mobile-menu-toggle {
        display: block; background: none; border: none;
        color: white; font-size: 2.5em; cursor: pointer;
        padding: 0; line-height: 1;
    }
    .site-header.scrolled .mobile-menu-toggle { color: var(--text-dark); }
    
    .mobile-menu {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background-color: rgba(0,0,0,0.95); z-index: 1001; /* Sopra l'header */
        display: flex; justify-content: center; align-items: center;
        transform: translateY(-100%); transition: transform 0.4s ease-in-out;
    }
    .mobile-menu.active { transform: translateY(0); }
    .mobile-menu nav ul { list-style: none; padding: 0; text-align: center; }
    .mobile-menu nav li { margin-bottom: 30px; }
    .mobile-menu nav a { color: white; text-decoration: none; font-size: 2em; font-weight: 700; }
}


/* ============================================= */
/* ========= STILI COMUNI PER IL FOOTER ========= */
/* ============================================= */

/* Variabili CSS Fondamentali */
:root {
    --primary-color: #004aad;
    --primary-hover: #003580;
    --accent-color: #ffd54f;
    --text-dark: #2c3e50;
    --text-light: #576574;
    --border-color: #e9ecef;
    --surface-color: #ffffff;
    --background-color: #f8f9fa;
}

/* Reset di base e Box Sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Stili del corpo della pagina (ereditati da molti elementi) */
body {
    font-family: 'Lato', sans-serif;
    background-color: var(--surface-color);
    color: var(--text-light);
    line-height: 1.7;
}

/* Stili per tutti i titoli (incluso l'h4 del footer) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
}

/* Layout del container principale (ESSENZIALE per il footer) */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ============================================= */
/* ========= STILI SPECIFICI DEL FOOTER ========= */
/* ============================================= */

.footer-area-container {
    background-color: #222;
    color: #aaa;
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget {
    line-height: 1.7;
}

.footer-widget h4 {
    color: white; /* Sovrascrive il colore di default dei titoli */
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-widget a {
    text-decoration: none;
    color: #aaa;
    transition: color 0.2s ease-in-out;
}

.footer-widget a:hover {
    color: white;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-contact-list,
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li,
.footer-links-list li {
    margin-bottom: 12px;
}

.footer-contact-list ion-icon {
    margin-right: 10px;
    vertical-align: middle;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #aaa;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    background-color: #111;
    padding: 25px 0;
    margin-top: 60px;
    font-size: 0.9em;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-policy-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}
/* --- Tipografia Globale per i Titoli --- */
/* Entrambe le pagine usano Montserrat per i titoli, quindi lo mettiamo qui. */
h1, h2, h3, h4, h5, h6, .fc .fc-toolbar-title, .footer-widget-title {
    font-family: 'Montserrat', sans-serif;
}

/* --- Notifica Globale --- */
/* Questo componente è identico in entrambi i file. */
.global-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
    font-weight: 600;
    text-align: center;
    min-width: 250px;
    
    /* Inizialmente è nascosto */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, bottom 0.3s ease;
}

.global-notification.success {
    background-color: #2c3e50;
}

.global-notification.error {
    background-color: #e74c3c;
}

.global-notification.show {
    opacity: 1;
    visibility: visible;
    bottom: 50px;
}

       /* --- Footer --- */
        .footer-area-container { background-color: #222; color: #aaa; padding: 80px 0 30px 0; }
        .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
        .footer-widget h3 { color: white; margin-bottom: 25px; }
        .footer-widget a { text-decoration: none; color: #aaa; transition: color 0.2s; }
        .footer-widget a:hover { color: white; }
        .footer-contact-list, .footer-links-list { list-style: none; padding: 0; }
        .footer-contact-list li, .footer-links-list li { margin-bottom: 12px; }
        .footer-contact-list ion-icon { margin-right: 10px; vertical-align: middle; }
        .map-container-footer { height: 200px; border-radius: 8px; overflow: hidden; }
        .footer-bottom { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid #444; font-size: 0.9em; }
   
		
        /* Aggiungi questo al tuo CSS esistente */
		.feature-item svg, .location-pois svg, .footer-contact-list svg, .social-icons svg {
			width: 36px; /* O la dimensione che preferisci */
			height: 36px;
			color: var(--primary-color); /* Colore di default */
			margin-bottom: 20px;
		}

		/* Stili specifici per il footer o altre sezioni */
		.footer-contact-list svg {
			width: 20px;
			height: 20px;
			margin-right: 10px;
			margin-bottom: 0;
			vertical-align: middle;
		}
		.social-icons svg {
			 width: 24px;
			 height: 24px;
			 color: #aaa; /* Colore di base per le icone social */
			 margin: 0;
		}
		.social-icons a:hover svg {
			color: white; /* Colore al passaggio del mouse */
		}
        .feature-item p {
            font-size: 0.9em;
            color: var(--text-light);
            margin-top: 10px;
        }

        .rules-container {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 50px;
            text-align: left;
            max-width: 900px;
            margin: 0 auto;
            border: 1px solid var(--border-color);
            padding: 40px;
            border-radius: 12px;
        }
        .rules-list ul { list-style: none; padding: 0; }
        .rules-list li { margin-bottom: 15px; font-size: 1.1em; }
        .rules-list strong { color: var(--text-dark); }
        .rules-details h3, .rules-list h3 { margin-bottom: 20px; }

        @media (max-width: 768px) {
            .rules-container { grid-template-columns: 1fr; }
        }
        /* Aggiungi questo al tuo CSS esistente */

        /* --- Sezione Pre-Footer CTA --- */
        .cta-container {
            text-align: center;
            padding: 40px;
        }
        .cta-container h2 {
            font-size: 2rem;
            margin-bottom: 15px;
        }
        .cta-container p {
            max-width: 500px;
            margin: 0 auto 30px auto;
        }
        .cta-container .cta-button {
            display: inline-block; padding: 15px 35px;
            background-color: var(--primary-color); color: white;
            text-decoration: none; font-weight: 700; border-radius: 50px;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .cta-container .cta-button:hover {
            transform: scale(1.05);
            background-color: var(--primary-hover);
        }

        /* --- Footer Ridisegnato --- */
        .footer-logo {
            height: 40px;
            margin-bottom: 20px;
            filter: brightness(0) invert(1);
        }
        .social-icons {
            display: flex;
            gap: 15px;
        }
        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: #333;
            color: #aaa;
            border-radius: 50%;
            font-size: 1.2rem;
            transition: background-color 0.3s, color 0.3s;
        }
        .social-icons a:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* --- Sub-Footer Ridisegnato --- */
        .footer-bottom {
            background-color: #111;
            padding: 25px 0;
            margin-top: 60px;
            font-size: 0.9em;
        }
        .footer-bottom-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }
		.footer-policy-links a {
			color: #ffffff; /* Imposta il colore del testo a bianco */
			text-decoration: none; /* Rimuove la sottolineatura per coerenza */
			transition: color 0.3s ease;
		}

		.footer-policy-links a:hover {
			color: var(--accent-color); /* Cambia colore al passaggio del mouse, usando un colore già definito */
		}
        @media (max-width: 768px) {
            .footer-bottom-content {
                flex-direction: column;
                justify-content: center;
            }
        }
		
		        /* Aggiungi questo al tuo CSS esistente */

        /* --- Sezione Mappa --- */
        .location-layout {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 40px;
            align-items: center;
        }
        .location-map iframe {
            width: 100%;
            height: 450px;
            border: 0;
            border-radius: 12px;
        }
        .location-details h3 {
            margin-bottom: 25px;
            font-size: 1.5rem;
        }
        .location-pois {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .location-pois li {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 1.1em;
            margin-bottom: 20px;
        }
        .location-pois ion-icon {
            font-size: 1.8em;
            color: var(--primary-color);
        }

        @media (max-width: 992px) {
            .location-layout {
                grid-template-columns: 1fr;
            }
        }
		
		
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.social-icons svg {
     width: 24px;
     height: 24px;
     margin: 0;
     transition: fill 0.3s ease; /* Transizione sulla proprietà 'fill' */
     fill: #aaa; /* Colore di base per TUTTE le icone, agendo sul riempimento */
}

/* Al passaggio del mouse, tutte le icone diventano bianche */
.social-icons a:hover svg {
    fill: white; 
}

/* REGOLA SPECIFICA E PERMANENTE PER WHATSAPP */
.social-icons a[aria-label="Whatsapp"] svg {
    fill: white;
}   