/* PALETTE BLU LUXURY + ORO */
:root {
    --primary: #003366;  /* Blu Belvedere */
    --secondary: #A3BAC3;
    --gold: #C5A059;     /* Oro Luxury */
    --text-dark: #222222;
    --text-light: #666666;
    --text: #444444;
    --bg-white: #FFFFFF;
    --bg-soft: #fffaf1;  /* Avorio di fondo */
    --sans: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background-color: var(--bg-white); line-height: 1.6; }

h1, h2, h3 { font-weight: 700; color: var(--primary); }

/* Navbar con Logo Extra Large */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 5%; /* Ridotto lo spazio verticale per compensare il logo più grande */
    background-color: #ffffff; position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo-container img { 
    height: 110px; /* Nuova dimensione extra large per il computer */
    width: auto; 
    transition: transform 0.3s ease;
}

/* Effetto interattivo quando si passa il mouse sul logo */
.logo-container img:hover {
    transform: scale(1.02);
}
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links li { margin-left: 0; } /* Gestito tramite gap */
.nav-links a { 
    text-decoration: none; color: var(--primary); 
    font-weight: 600; font-size: 0.95rem; 
    transition: 0.3s;
}
.nav-links a:hover { color: var(--gold); }

/* Pulsante Hamburger Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 5px;
}
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
    border-radius: 2px;
}

/* Header e Hero */
.hero, .page-header {
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; color: #fff; position: relative;
    text-align: center;
}
.hero { height: 85vh; background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('EMOZIONALE_1.png.png'); }
.page-header { height: 30vh; }
.page-header::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 51, 102, 0.4); }

.hero-content, .header-content { position: relative; z-index: 1; padding: 0 20px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 3px;}
.header-content h1 {
    color: #ffffff;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero p { font-size: 1.2rem; margin-bottom: 40px; font-weight: 300; }

/* Pulsanti Smussati e Tondeggianti */
.btn { 
    display: inline-block;
    padding: 12px 30px; background: var(--primary); color: #fff; 
    text-decoration: none; font-weight: 600; border: 1px solid var(--primary);
    transition: 0.3s; cursor: pointer;
    border-radius: 50px;
}
.btn:hover { background: transparent; color: var(--primary); }
.btn-gold { background-color: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background-color: transparent; color: var(--gold); }

/* Layout e Struttura delle Pagine */
section { padding: 80px 8%; }
.container { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.text-center { text-align: center; }
.section-title { color: var(--primary); font-size: 2rem; margin-bottom: 40px; }
.subtitle { display: block; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; }

/* Griglie Responsive */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }

/* Componenti Specifici (Card) */
.card { 
    background: #ffffff; border-radius: 20px; padding: 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); border: 1px solid #f5f5f5;
    transition: 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.card h3 { color: var(--primary); margin: 15px 0 10px 0; }
.highlight { color: var(--gold); font-weight: 700; }

/* --- REGOLE PER L'ASSOCIAZIONE NEXUS E IMMAGINI AFFIANCATE --- */
.nexus-logo { 
    max-height: 120px; 
    width: auto; 
    object-fit: contain; 
    margin-bottom: 15px; 
    display: inline-block; 
}

.double-img-container {
    display: flex;
    gap: 10px;
    width: 100%;
    height: 260px;
    margin-bottom: 15px;
}

.split-img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.split-img:hover {
    transform: scale(1.03);
}

/* Footer */
footer { background-color: var(--primary); color: #ffffff; text-align: center; padding: 30px 20px; font-size: 0.9rem; margin-top: 80px; }

/* --- REGOLE SPECIFICHE PER SMARTPHONE (SOTTO I 768PX) --- */
@media screen and (max-width: 768px) {
    .logo-container img { height: 70px; } /* Ridimensionamento ottimale del logo su smartphone */
    section { padding: 50px 5%; }
    .hero h1 { font-size: 1.8rem; }
    
    .menu-toggle {
        display: flex; /* Mostra l'hamburger sul telefono */
        z-index: 999;
    }

    .nav-links {
        display: none; /* Nasconde il menu standard */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.08);
        padding: 30px 0;
        text-align: center;
        gap: 20px;
        z-index: 998;
    }

    .nav-links.active {
        display: flex !important; /* Mostra il menu quando cliccato tramite JS */
    }

    .grid-3, .grid-2 {
        grid-template-columns: 1fr !important; /* Forza il layout a una colonna sul telefono */
        gap: 40px !important;
    }

    .page-header { height: 20vh; }
    .header-content h1 { font-size: 1.8rem; }
}