/* Variabili Colori (ispirati al tuo volantino) */
:root { 
    --yellow: #FECC09; /* Giallo ufficiale Pantone 123 C */
    --blue: #3763AB;   /* Blu ufficiale Pantone 660 C */
    --blue-dark: #2a4a82; /* Manteniamo il blu scuro per il footer */
    --white: #ffffff; 
    --bg-soft: #fcfcfc; 
    --text-dark: #4a4a4a; 
    --wa-green: #25d366; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--bg-soft); color: var(--text-dark); line-height: 1.7; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }

/* --- HEADER & LOGO --- */
header { background-color: var(--white); padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon-wrapper { position: relative; color: var(--blue); font-size: 2.2rem; }
.logo-icon-wrapper .sparkles { position: absolute; top: -5px; right: -15px; color: var(--yellow); font-size: 1.2rem; }
.logo-text { font-size: 1.8rem; font-weight: 900; color: var(--blue); text-transform: uppercase; line-height: 1; }
.logo-text span { color: var(--yellow); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-dark); text-decoration: none; font-weight: 700; transition: color 0.3s ease; text-transform: uppercase; font-size: 0.9rem; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }

/* --- COMPONENTI GLOBALI --- */
.page-header { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--white); text-align: center; padding: 5rem 2rem; }
.page-header h1 { font-size: 3.5rem; font-weight: 900; text-transform: uppercase; color: var(--yellow); }

.btn { background-color: var(--yellow); color: var(--blue-dark); padding: 1.2rem 2.5rem; text-decoration: none; font-weight: 700; border-radius: 50px; transition: all 0.3s ease; display: inline-block; text-transform: uppercase; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border: none; cursor: pointer; }
.btn:hover { background-color: var(--blue); color: var(--white); transform: translateY(-3px); }
.btn-wa { background-color: var(--wa-green); color: var(--white); }
.btn-wa:hover { background-color: #1ebe57; color: var(--white); }

/* --- NUOVO FOOTER ORGANIZZATO --- */
footer { background-color: var(--blue-dark); color: var(--white); padding: 4rem 5% 2rem 5%; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h3 { color: var(--yellow); font-size: 1.3rem; margin-bottom: 1.5rem; font-weight: 900; text-transform: uppercase; }
.footer-col p, .footer-col a { color: #d1d5db; text-decoration: none; font-size: 1rem; margin-bottom: 0.8rem; display: block; transition: color 0.3s; }
.footer-col a:hover { color: var(--yellow); }
.footer-col ul { list-style: none; }
.footer-col ul li i { color: var(--yellow); margin-right: 10px; width: 20px; text-align: center; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #9ca3af; }

/* Pulsante WhatsApp Fisso */
.float-wa { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: var(--wa-green); color: var(--white); border-radius: 50px; text-align: center; font-size: 35px; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); z-index: 100; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s; }
.float-wa:hover { transform: translateY(-5px) scale(1.05); }

/* Animazioni Base */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 1rem; padding: 1.5rem 5%; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .page-header h1 { font-size: 2.5rem; }
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--blue-dark);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 5%;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar i {
    color: var(--yellow); /* Icone gialle per risaltare sul blu scuro */
    font-size: 1rem;
}

.top-bar-right a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right a:hover {
    color: var(--yellow);
    transform: translateY(-2px); /* Piccolo e morbido effetto di sollevamento */
}

/* Modifica per far scorrere correttamente l'header sotto la top bar */
header { 
    background-color: var(--white); 
    padding: 1rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

/* Responsive Top Bar per Cellulari */
@media (max-width: 900px) {
    .top-bar {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding: 1rem 5%;
    }
    .top-bar-left, .top-bar-right {
        justify-content: center;
        gap: 1rem;
    }
}