/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f7f5;
    color:#333;
    line-height:1.7;
}

/* =========================
   COLORI
========================= */

:root{
    --verde-scuro:#1f6d42;
    --verde:#2f8f57;
    --verde-chiaro:#4CAF50;
    --sfondo:#f5f7f5;
    --bianco:#ffffff;
    --testo:#333333;
}

/* =========================
   NAVBAR
========================= */

nav{
    background:var(--verde-scuro);

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px 8%;

    position:sticky;
    top:0;

    z-index:1000;

    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.logo{
    color:white;
    font-size:1.3rem;
    font-weight:700;
}

nav ul{
    display:flex;
    list-style:none;
    gap:25px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:500;

    transition:0.3s;
}

nav a:hover{
    color:#d6ffe0;
}

/* =========================
   HERO
========================= */

.hero{
    height:80vh;

    background:
    linear-gradient(
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.45)
    ),
    url("img/hero.jpg");

    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;

    color:white;
}

.hero-content{
    max-width:700px;
    padding:20px;
}

.hero h1{
    font-size:3.5rem;
    margin-bottom:20px;
}

.hero p{
    font-size:1.2rem;
    margin-bottom:30px;
}

/* =========================
   PULSANTI
========================= */

.btn{
    display:inline-block;

    background:var(--verde);

    color:white;

    text-decoration:none;

    padding:14px 30px;

    border-radius:50px;

    transition:0.3s;
}

.btn:hover{
    background:var(--verde-scuro);
}

/* =========================
   SEZIONI
========================= */

section{
    padding:80px 10%;
}

section h1{
    text-align:center;
    color:var(--verde-scuro);

    margin-bottom:30px;

    font-size:2.5rem;
}

section h2{
    text-align:center;
    color:var(--verde-scuro);

    margin-bottom:30px;

    font-size:2rem;
}

/* =========================
   TESTO
========================= */

.about{
    text-align:center;
}

.about p{
    max-width:900px;
    margin:auto;
}

/* =========================
   CARD
========================= */

.cards{
    display:flex;
    gap:25px;
    flex-wrap:wrap;
}

.card{
    flex:1;
    min-width:260px;

    background:white;

    padding:30px;

    border-radius:15px;

    box-shadow:0 5px 20px rgba(0,0,0,0.08);

    transition:0.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.card h3{
    color:var(--verde-scuro);
    margin-bottom:15px;
}

/* =========================
   NEWS
========================= */

.news{
    background:#edf7ef;
}

.news-container{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

.news-card{
    flex:1;
    min-width:250px;

    background:white;

    padding:25px;

    border-radius:15px;

    box-shadow:0 4px 15px rgba(0,0,0,0.08);
}

.news-card h3{
    color:var(--verde-scuro);
    margin-bottom:10px;
}

/* =========================
   GALLERIA
========================= */

.gallery{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:15px;
}

.gallery img{
    width:100%;
    height:250px;

    object-fit:cover;

    border-radius:15px;

    transition:0.3s;
}

.gallery img:hover{
    transform:scale(1.03);
}

/* =========================
   FORM CONTATTI
========================= */

form{
    max-width:700px;
    margin:auto;
}

input,
textarea{
    width:100%;

    padding:14px;

    border:1px solid #ccc;

    border-radius:10px;

    font-family:'Poppins',sans-serif;

    margin-bottom:15px;
}

button{
    border:none;
    cursor:pointer;
}

/* =========================
   CTA
========================= */

.cta{
    background:var(--verde-scuro);

    color:white;

    text-align:center;
}

.cta h2{
    color:white;
}

.cta p{
    margin-bottom:25px;
}

/* =========================
   FOOTER
========================= */

footer{
    background:#153d27;

    color:white;

    text-align:center;

    padding:40px 20px;
}

footer h3{
    margin-bottom:10px;
}

footer p{
    margin:5px 0;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){

    nav{
        flex-direction:column;
        gap:15px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h1{
        font-size:2.2rem;
    }

    .hero p{
        font-size:1rem;
    }

    section{
        padding:60px 7%;
    }

}