/* ========================================
   1. RESET & GLOBAL TYPOGRAPHY
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: white;
    color: #000;
    line-height: 1.6;
}

/* ========================================
   2. GLOBAL LAYOUT (Main & Sections)
   ======================================== */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    min-height: auto;
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Titoli delle sezioni (Escluso l'H1 della Home) */
section:not(#home) h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #000;
}

/* ========================================
   RESPONSIVE (MOBILE)
   ======================================== */
@media (max-width: 768px) {
    /* Padding ridotto per schermi piccoli */
    main {
        padding: 0 1.5rem;
    }

    section {
        padding-top: 0.5rem;
    }

    /* Rimpiccioliamo leggermente i titoli delle sezioni */
    section:not(#home) h2 {
        font-size: 2rem;
    }

    /* Regole attivate via JS per bloccare e sfuocare il body quando si apre il menu */
    body.menu-open {
        overflow: hidden;
    }

    body.menu-open main {
        filter: blur(5px);
        transition: all 0.3s ease;
        pointer-events: none;
    }
}