@font-face{font-family:'Open Sans';font-weight:400;font-style:normal;font-display:swap;src:url(fonts/OpenSans-400.ttf) format('truetype')}
@font-face{font-family:'Open Sans';font-weight:700;font-style:normal;font-display:swap;src:url(fonts/OpenSans-700.ttf) format('truetype')}
@font-face{font-family:'Play';font-weight:700;font-style:normal;font-display:swap;src:url(fonts/Play-700.ttf) format('truetype')}

:root{
  --verde:#52AE32;
  --verde-scuro:#3a9d34;
  --azzurro:#009bd9;
  --testo:#555;
  --max:62rem;
}
*{box-sizing:border-box}
html{background:#fff}
body{margin:0;font-family:'Open Sans',sans-serif;color:var(--testo);background:#fff;-webkit-text-size-adjust:none}

/* Header (come sito originale, senza menu attivo) */
#head{background:url(bghead.png) 0 0/100% 100%;position:relative;z-index:10}
header{max-width:var(--max);margin:0 auto;padding:1.25rem 1rem}
header img{display:block;margin:0;max-width:100%;height:auto}

/* Hero: immagine di sfondo (cover, centrata) con maschera per la leggibilita' del testo. */
.hero{position:relative;overflow:hidden;min-height:27vw;display:flex;align-items:center;color:#fff;background:linear-gradient(100deg,rgba(4,36,60,.82) 0%,rgba(4,44,78,.74) 25%,rgba(2,50,88,.62) 50%,rgba(0,130,190,.38) 100%),#06243b url(hero_biogas.jpg) center/cover no-repeat}
.hero .in{width:100%;max-width:var(--max);margin:0 auto;padding:3.5rem 1rem 5.4rem}
.hero h1{font-family:'Play',sans-serif;font-weight:700;font-size:2.3rem;line-height:1.2;margin:0;text-shadow:1px 1px 2px rgba(0,0,0,.5);max-width:48rem}
.hero .bar{width:5.5rem;height:.3rem;background:#8cc63f;margin:1.4rem 0}
.hero .btn{margin-top:2.8rem}
.hero p{font-size:1.1rem;line-height:1.45;margin:0;max-width:44rem;font-weight:700;text-shadow:1px 1px 2px rgba(0,0,0,.5)}

/* Fascia verde con card (cerchio con icona come nel sito originale) */
.verde{background:linear-gradient(#1ba1a2,#52AE32);padding:0 0 2.2rem}
.cards{max-width:var(--max);margin:-2.9rem auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;padding:0 1rem;list-style:none;position:relative;z-index:2}
.card{position:relative;background:#fff;padding:3.4rem 1.2rem 1.4rem;text-align:center;margin-top:2.9rem;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.card .ico{position:absolute;top:-2.9rem;left:50%;transform:translateX(-50%);width:5.8rem;height:5.8rem;border-radius:50%;background:#fff;padding:.4rem}
.card .ico img{display:block;width:100%;height:100%}
.card h2{font-family:'Play',sans-serif;font-size:1.05rem;margin:0 0 .5rem;color:var(--verde);text-transform:uppercase}
.card p{margin:0;font-size:.85rem;line-height:1.45;color:var(--testo)}

/* Testo */
.testo{max-width:var(--max);margin:0 auto;padding:2rem 1rem 1rem}
.testo p{font-size:.95rem;line-height:1.55;margin:0 0 .9rem;color:#222}
.testo strong{font-weight:700;color:#111}
.btn{display:inline-flex;align-items:center;gap:.7rem;font-family:'Play',sans-serif;font-weight:700;font-size:1.2rem;color:var(--verde-scuro);text-decoration:none;border:2px solid var(--verde-scuro);border-radius:2.5rem;padding:.8rem 2.6rem;background:#fff;transition:all .3s}
.btn:hover,.btn:focus-visible{background:var(--verde);border-color:var(--verde);color:#fff}
.btn svg{width:1.3rem;height:1.3rem}

/* Footer (come sito originale) */
footer{background:#fff;border-top:1px solid #eee;padding:.9rem 0 .5rem}
footer .centro{max-width:var(--max);margin:0 auto;position:relative;min-height:5rem;padding:.6rem 1rem}
footer p{font-size:.875rem;line-height:1.5;margin:0;color:var(--testo)}
footer p strong{font-family:'Play',sans-serif;font-size:1.2rem;color:var(--verde)}
footer a{color:var(--verde);font-weight:700;text-decoration:none}
footer a:hover{color:#E30613}
footer a.grigio{color:var(--testo)}
footer .conf{position:absolute;top:.3rem;right:1rem;width:12.5rem;height:4.4rem;background:url(conf.jpg) center/contain no-repeat}

@media (max-width:960px){
  #head{background:#fff;padding-bottom:0}
  header img{width:70%;max-width:300px}

  .hero .in{padding:2.5rem 1rem 5.4rem}
  .hero h1{font-size:1.5rem}
  .hero p{font-size:1rem}
  .cards{grid-template-columns:1fr;gap:0}
  .card{margin-bottom:.4rem}
  footer .centro{padding-bottom:5rem}
  footer .conf{top:auto;bottom:.3rem}
}

/* Pagina 404 */
.nf{max-width:var(--max);margin:0 auto;padding:4rem 1rem 3rem;text-align:center}
.nf .code{font-family:'Play',sans-serif;font-size:5rem;line-height:1;color:var(--verde);margin:0}
.nf h1{font-family:'Play',sans-serif;font-size:1.8rem;margin:.5rem 0 1rem;color:#222}
.nf p{font-size:1rem;line-height:1.55;margin:0 0 2rem}
.nf .home{margin:1.5rem 0 0}
.nf .home a{color:var(--verde);font-weight:700}

/* Pagine di testo (privacy) */
.doc{max-width:var(--max);margin:0 auto;padding:2.5rem 1rem 3rem;color:#222}
.doc h1{font-family:'Play',sans-serif;font-size:1.9rem;line-height:1.25;margin:0 0 .4rem;color:var(--verde-scuro)}
.doc .meta{font-size:.85rem;color:var(--testo);margin:0 0 1.6rem}
.doc h2{font-family:'Play',sans-serif;font-size:1.15rem;margin:1.8rem 0 .5rem;color:var(--verde-scuro)}
.doc p,.doc li{font-size:.95rem;line-height:1.6}
.doc p{margin:0 0 .9rem}
.doc ul{margin:0 0 .9rem;padding-left:1.3rem}
.doc li{margin-bottom:.4rem}
.doc a{color:var(--verde-scuro);font-weight:700}
.doc a:hover{color:#E30613}
.doc .back{margin-top:2rem}
