/* --- RESET E TYPOGRAPHY STILE APPLE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: #1d1d1f;
    background-color: #f5f5f7;
    line-height: 1.5;
}

/* --- NAVBAR TRASLUCIDA --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo img {
    height: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

/* --- STRUTTURA SEZIONI --- */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.content {
    max-width: 800px;
    width: 100%;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

p {
    font-size: 1.2rem;
    color: #515154;
    max-width: 600px;
    margin: 0 auto;
}

.section-light {
    background-color: #ffffff;
}

.section-dark {
    background-color: #000000;
    color: #f5f5f7;
}

.section-dark p {
    color: #a1a1a6;
}

/* --- CAROSELLO HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Evita sbarramenti indesiderati */
    padding: 0;
    background-color: #000; /* Sfondo nero di sicurezza durante il caricamento */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Nasconde tutte le slide di base */
    transition: opacity 1.5s ease-in-out; /* Effetto dissolvenza fluido */
    z-index: 1; /* Le posiziona sotto al testo */
}

.carousel-slide.active {
    opacity: 1; /* Mostra solo la slide attiva */
}

.hero-overlay {
    position: relative;
    z-index: 2; /* Mantiene il testo in primo piano sopra le immagini */
    background-color: rgba(0, 0, 0, 0.3); /* Filtro scuro per far leggere il testo */
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1, .hero p {
    color: #ffffff;
}

/* --- LISTA PROGETTI --- */
.progetti-list {
    list-style: none;
    margin-top: 30px;
    padding: 0;
}

.progetti-list li {
    margin-bottom: 15px;
}

.progetti-list a {
    display: inline-block;
    padding: 15px 25px;
    background-color: #f5f5f7;
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    max-width: 400px;
}

.progetti-list a:hover {
    background-color: #e5e5ea;
    transform: translateY(-2px);
}

/* --- CONTATTI E PROTEZIONE EMAIL --- */
.contact-card {
    background: #1d1d1f;
    padding: 40px;
    border-radius: 18px;
    margin-top: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.protected-email {
    font-weight: 500;
    color: #2997ff;
    user-select: none;
    -webkit-user-select: none;
}

.protected-email::after {
    content: "verona-ovest" "\40" "network.slowfood.it";
}

/* --- HAMBURGER MENU & RESPONSIVE --- */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #1d1d1f;
    border-radius: 3px;
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    
    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease;
    }

    .nav-links.active { left: 0; }
    .nav-links li { margin: 20px 0; }
    .nav-links a { font-size: 1.5rem; font-weight: 600; }

    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
/* --- STILE LOGO HERO CON EFFETTO LUMINESCENTE --- */

.hero-logo {
    display: block;
    margin: 0 auto 30px auto; /* Centra orizzontalmente e dà margine sotto */
    max-width: 400px; /* Larghezza massima su desktop */
    height: auto; /* Mantiene le proporzioni */
    
    
}

/* Responsive: logo leggermente più piccolo sui cellulari */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 200px;
        margin-bottom: 20px;
    }
}