/* --- RESET & FONTS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Montserrat', sans-serif;
    background: #292C64; /* Colore di sfondo scuro */
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden; /* Impedisce lo scorrimento orizzontale */
}

/* --- UTILITIES --- */
.container { 
    max-width: 960px; 
    margin: 0 auto; 
    padding: 20px; 
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #ffd700; /* Giallo oro per i titoli */
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ffd700;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER & NAVIGATION (COPIA ESATTA DAL MENU.CSS) --- */
header.nav {
    width: 100%;
    height: 80px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #292C64;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-link { display: flex; align-items: center; flex: 1; }
.logo { 
    height: 40px; 
    width: auto;
    max-width: 150px; /* Assicurati che non diventi troppo grande */
}

.nav-right { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-shrink: 0; 
}

/* Language Selector */
.lang-selector { 
    display: flex; 
    gap: 3px; 
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    color: #fff;
    padding: 4px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: 0.3s;
}

.lang-btn.active { background: #fff; color: #292C64; }

/* Hamburger Icon */
.hamburger { 
    font-size: 24px; 
    cursor: pointer; 
    color: #fff; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

/* Side Menu Overlay */
#sideMenu {
    position: fixed;
    top: 0;
    right: -280px; /* Nascosto */
    width: 280px;
    height: 100%;
    background: #1a1c40;
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px 25px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

#sideMenu.open { 
    right: 0; 
}

.close-btn { 
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 35px; 
    cursor: pointer; 
    margin-bottom: 30px; 
    display: block;
}

.side-nav-links { 
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
}

.side-nav-links a { 
    color: #fff; 
    text-decoration: none; 
    font-size: 20px; 
    text-transform: uppercase; 
    font-weight: 600; 
    transition: color 0.3s;
}
.side-nav-links a:hover {
    color: #ffd700;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh; /* Altezza piena dello schermo */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(41, 44, 100, 0.8), rgba(41, 44, 100, 0.8)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    /* Assicurati che 'hero-bg.jpg' esista nella cartella 'img' */
    color: #fff;
    padding: 20px;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #ffd700;
    color: #292C64;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: background 0.3s, color 0.3s;
}
.hero-btn:hover {
    background: #e6c200;
    color: #fff;
}

/* --- ABOUT SECTION --- */
.about-section {
    display: flex;
    flex-wrap: wrap; /* Permette agli elementi di andare a capo su mobile */
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
    background: #1a1c40; /* Sfondo leggermente più chiaro */
}

.about-content {
    flex: 2; /* Occupazione dello spazio */
    min-width: 300px;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}
.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- GALLERY SECTION (CON OVERLAY) --- */
.gallery-section {
    padding: 60px 20px;
    background: #292C64;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 250px min, si adatta */
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Altezza fissa per coerenza */
    object-fit: cover; /* Ritaglia l'immagine per coprire l'area */
    display: block;
    transition: transform 0.4s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Zoom leggero all'hover */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 44, 100, 0.7); /* Overlay scuro */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Nascosto di default */
    transition: opacity 0.4s ease-in-out;
    border-radius: 8px;
}

.gallery-item:hover .overlay {
    opacity: 1; /* Appare all'hover */
}

.overlay-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- CALL TO ACTION SECTION --- */
.cta-section {
    background: #ffd700; /* Sfondo giallo per contrasto */
    color: #292C64;
    padding: 60px 20px;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #292C64;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: background 0.3s, color 0.3s;
}
.cta-btn:hover {
    background: #1a1c40;
}

/* --- FOOTER --- */
footer {
    background: #1a1c40;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- MEDIA QUERIES (RESPONSIVE DESIGN) --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .section-title { font-size: 1.8rem; }
    .cta-title { font-size: 2rem; }
    .cta-text { font-size: 1rem; }

    .about-section { flex-direction: column; text-align: center; }
    .about-image { order: -1; margin-bottom: 30px; } /* Immagine sopra il testo su mobile */
}

@media (max-width: 480px) {
    header.nav { height: 70px; }
    .logo { height: 35px; }
    .lang-btn { font-size: 9px; padding: 3px 5px; }
    .hamburger { font-size: 20px; width: 25px; height: 25px; }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-btn { padding: 12px 25px; font-size: 1rem; }

    .section-title { font-size: 1.5rem; margin-bottom: 30px; }
    .about-content p { font-size: 1rem; }

    .gallery-grid { grid-template-columns: 1fr; } /* Una colonna su schermi piccoli */
    .gallery-item img { height: 200px; } /* Altezza più piccola per le immagini */
    .overlay-text { font-size: 1rem; }

    .cta-title { font-size: 1.8rem; }
    .cta-text { font-size: 0.9rem; }
    .cta-btn { padding: 12px 25px; font-size: 1rem; }
}