/* =========================
   RESET DI BASE
   Elimina margini e padding predefiniti del browser
   e rende più prevedibile il comportamento degli elementi.
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   STILE GENERALE DEL BODY
   Imposta font, colori e altezza della linea.
========================= */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #2f2f2f;
    background-color: #fffdf9;
}

/* =========================
   CONTENITORE CENTRALE
   Limita la larghezza del contenuto e lo centra.
========================= */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* =========================
   HERO HEADER
   Sezione iniziale ad alto impatto visivo.
   Uso un gradiente come sfondo per evitare dipendenze da immagini esterne.
========================= */
.hero {
    min-height: 70vh;
    background: linear-gradient(135deg, #5a7d4d, #c8a96b);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

/* Overlay contenitivo del testo */
.overlay {
    max-width: 800px;
}

/* Titolo principale */
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

/* Paragrafo introduttivo */
.hero p {
    font-size: 1.15rem;
    margin-bottom: 25px;
}

/* Bottone principale */
.btn-primary {
    display: inline-block;
    background-color: #ffffff;
    color: #3d5a35;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s ease;
}

/* Effetto hover sul bottone */
.btn-primary:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
}

/* =========================
   SEZIONI GENERICHE
========================= */
.section {
    padding: 70px 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #3d5a35;
}

.section p {
    margin-bottom: 15px;
}

/* Sfondo alternato per dare ritmo visivo alla pagina */
.bg-light {
    background-color: #f6f3ed;
}

/* =========================
   GRIGLIA DELLE CARD
   Usata per elencare le attività di sostenibilità.
========================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Singola card */
.card {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.card h3 {
    color: #7a5c2e;
    margin-bottom: 12px;
}

/* Effetto al passaggio del mouse */
.card:hover {
    transform: translateY(-4px);
}

/* =========================
   STATISTICHE
========================= */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background-color: #3d5a35;
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* =========================
   AREA DOWNLOAD
========================= */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.download-item {
    display: block;
    background-color: white;
    color: #3d5a35;
    text-decoration: none;
    padding: 18px 20px;
    border-left: 6px solid #c8a96b;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
}

.download-item:hover {
    background-color: #fcfaf6;
    transform: translateX(5px);
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: #2f3d2a;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.95rem;
}

/* =========================
   RESPONSIVE DESIGN
   Adatta font e spaziature agli schermi più piccoli.
========================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section h2 {
        font-size: 1.6rem;
    }
}
