@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Nunito:wght@400;600;700&display=swap');

:root{
  --green:#183f24;
  --green-2:#2e633a;
  --lime:#dbe91e;
  --cream:#f6f3e9;
  --cream-2:#eee9da;
  --ink:#20251f;
  --muted:#667063;
  --white:#fff;
  --shadow:0 12px 30px rgba(31,64,35,.10);
  --radius:18px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.55}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(var(--max),calc(100% - 36px));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid #e8eadf}
.header-inner{min-height:76px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:12px;margin-right:auto}
.brand img{width:56px;height:56px;object-fit:cover}
.brand strong{display:block;font-size:24px;color:var(--green);letter-spacing:.2px}
.brand small{display:block;font-size:11px;letter-spacing:1.5px}
.nav{display:flex;gap:25px;align-items:center}
.nav a{font-size:14px;padding:26px 0 22px;border-bottom:3px solid transparent}
.nav a:hover,.nav a.active{color:var(--green);border-bottom-color:var(--green)}
.nav-toggle{display:none;background:none;border:0;font-size:26px}

.hero{
  background:linear-gradient(180deg,#f7f5ed 0%,#fff 100%);
  padding:28px 0 34px;
  overflow:hidden;
}
.hero-layout{
  width:min(var(--max),calc(100% - 36px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(320px,.88fr) minmax(0,1.45fr);
  min-height:470px;
  border-radius:24px;
  overflow:hidden;
  background:#f7f5ed;
  box-shadow:var(--shadow);
  border:1px solid #e5e9df;
}
.hero-text{
  display:flex;
  align-items:center;
  min-width:0;
  background:linear-gradient(135deg,#fbfaf5 0%,#f1efe4 100%);
}
.hero-text-inner{
  width:100%;
  padding:52px 48px;
  margin:0;
}
.hero-image{
  min-width:0;
  min-height:470px;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
}
.kicker{font-size:15px;letter-spacing:1.4px;text-transform:uppercase;color:var(--green-2);font-weight:700}
h1,h2,h3{color:var(--green);margin:0 0 16px}
h1{font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;font-size:58px;line-height:1.06;font-weight:700;letter-spacing:-1.5px}
h2{font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;font-size:38px;line-height:1.12;font-weight:700;letter-spacing:-.6px}
h3{font-size:22px}
.lead{font-size:19px;max-width:720px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--green);color:#fff;border-radius:8px;padding:14px 22px;font-weight:700;margin-top:12px}
.btn.secondary{background:#fff;color:var(--green);border:1px solid var(--green)}
.section{padding:70px 0}
.soft{background:var(--cream)}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.card{background:#fff;border-radius:var(--radius);padding:26px;box-shadow:var(--shadow);border:1px solid #edf0e7}
.card.soft-card{background:linear-gradient(145deg,#f7f6ef,#edf3e8)}
.icon{font-size:36px;margin-bottom:12px}
.center{text-align:center}
.stat{padding:28px 20px;border-right:1px solid #dfe4d8}
.stat:last-child{border-right:0}
.stat strong{display:block;color:var(--green);font-size:24px}
.photo-card{overflow:hidden;border-radius:var(--radius);box-shadow:var(--shadow)}
.photo-card img{width:100%;height:100%;min-height:320px;object-fit:cover}
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:34px;align-items:stretch}
.note{background:#eff4e7;border-left:5px solid var(--lime);padding:18px 20px;border-radius:10px}
.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:30px}
.timeline .step{padding-top:26px;position:relative}
.timeline .step:before{content:"";width:14px;height:14px;background:var(--green);border-radius:50%;position:absolute;top:0;left:0}
.timeline .step:after{content:"";height:2px;background:#b8caa9;position:absolute;top:6px;left:14px;right:-20px}
.timeline .step:last-child:after{display:none}
.filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin:20px 0 30px}
input,select,textarea{width:100%;padding:13px 14px;border:1px solid #ced5c8;border-radius:8px;background:white;font:inherit}
.producer-card{display:flex;flex-direction:column;gap:10px}
.producer-meta{color:var(--muted);font-size:14px}
.badge{display:inline-block;background:#e6efdf;color:var(--green);padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700}
.news-card img{height:180px;width:100%;object-fit:cover;border-radius:12px}
.faq details{background:#fff;border:1px solid #e0e5db;border-radius:10px;padding:14px 16px;margin:10px 0}
.contact-card .big{font-size:26px;font-weight:700;color:var(--green)}
.site-footer{background:var(--green);color:white;padding:38px 0 28px;margin-top:0}
.footer-grid{display:grid;grid-template-columns:1.2fr 2fr .8fr;gap:30px;align-items:start}
.footer-brand{display:flex;gap:12px;align-items:center}
.footer-brand img{width:62px;height:62px}
.footer-links{display:flex;flex-wrap:wrap;gap:18px;font-size:13px;margin-top:14px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.17);margin-top:25px;padding-top:18px;font-size:12px;color:#dbe6da}
.pill-row{display:flex;gap:10px;flex-wrap:wrap}
.pill{padding:8px 12px;border-radius:999px;border:1px solid #cbd5c5;background:#fff;font-size:13px}
.notice{font-size:14px;color:var(--muted)}
@media(max-width:900px){
 .nav-toggle{display:block;margin-left:auto}
 .nav{display:none;position:absolute;top:76px;left:0;right:0;background:white;padding:10px 22px 20px;flex-direction:column;align-items:flex-start;border-bottom:1px solid #ddd}
 .nav.open{display:flex}
 .nav a{padding:10px 0}
 .brand strong{font-size:20px}
 .grid-4,.grid-3,.grid-2,.timeline,.split,.filters,.footer-grid{grid-template-columns:1fr}
 .stat{border-right:0;border-bottom:1px solid #dfe4d8}
}

/* V3: all hero text is HTML; images contain photography only */
.hero-image{
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
  min-width:0;
}
@media (max-width:900px){
  .hero-image{min-height:260px;}
}

body{overflow-x:hidden}
.region-panel{
  background:linear-gradient(145deg,#f2f5ec,#e8efdf);
  border:1px solid #d7e1cf;
  border-radius:var(--radius);
  padding:32px;
  min-height:360px;
}
.region-cloud{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.region-chip{
  background:#fff;border:1px solid #cbd8c4;border-radius:999px;
  padding:10px 14px;font-weight:700;color:var(--green)
}
.region-chip.primary{background:var(--green);color:#fff;border-color:var(--green)}
.meta-row{display:grid;grid-template-columns:92px 1fr;gap:10px;align-items:start;font-size:14px}
.meta-label{font-weight:700;color:var(--green)}
.meta-value{color:var(--ink)}
.producer-card h3{margin-bottom:4px}
.producer-card .badge{align-self:flex-start}
.small-source{font-size:11px;color:var(--muted);margin-top:16px}
@media(max-width:900px){
  .hero-layout{grid-template-columns:1fr;min-height:auto}
  .hero-text-inner{padding:40px 26px}
  .hero-image{min-height:300px}
  h1{font-size:46px}
}

/* V4.1 HOME: conserva frase di apertura e cartello della grafica approvata */
body.home-page .hero-image{
  background-size:cover;
  background-position:center center;
}

/* V5 visual system: stabile, caldo, senza font artificiosi */
body{font-size:16px}
p{font-size:16px;line-height:1.65}
.card p{margin-bottom:0}
h3{font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;font-weight:700}
.home-page .hero-image{
  background-size:contain !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
  background-color:#eef3ea;
}
.news-photo img{
  width:100%;
  height:100%;
  min-height:320px;
  object-fit:cover;
}
.text-visual{
  min-height:320px;
  border-radius:var(--radius);
  background:linear-gradient(145deg,#edf3e7,#f7f4ec);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:38px;
  text-align:center;
  color:var(--green);
}
.text-visual strong{font-size:30px;line-height:1.25}
@media(max-width:900px){
  .home-page .hero-image{min-height:250px}
}

/* =========================================================
   V6 — SISTEMA VISIVO UNICO APPROVATO
   ========================================================= */
:root{
  --page:#ffffff;
  --paper:#f7f5ed;
  --paper-2:#eef3e8;
  --forest:#174a2b;
  --forest-soft:#315f3d;
  --line:#dfe6da;
}
body{background:var(--page);color:#20251f}
h1,h2,h3,.brand strong{
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;
}
h1{font-size:clamp(42px,5vw,58px);line-height:1.05}
h2{font-size:clamp(31px,3.5vw,38px);line-height:1.12}
h3{line-height:1.25}
.lead{line-height:1.65}
.section{padding:68px 0}
.card{
  border:1px solid var(--line);
  box-shadow:0 10px 28px rgba(30,65,38,.08);
}
.btn{border-radius:9px}
.hero{padding:28px 0 38px}
.hero-layout{min-height:455px}
.hero-text-inner{padding:50px 46px}
.hero-image{min-height:455px}
.photo-card img{object-position:center}
.kicker{letter-spacing:1.2px}
.note{background:#f0f4e9}
.site-footer{margin-top:0}

/* No decorative/placeholder images in informational blocks. */
.text-visual{
  background:linear-gradient(145deg,#edf3e7,#f8f6ef);
  border:1px solid var(--line);
  box-shadow:0 10px 28px rgba(30,65,38,.07);
}

/* Producer directory follows the same cards and typography. */
.region-panel{box-shadow:0 10px 28px rgba(30,65,38,.07)}
.producer-card{min-height:285px}
.producer-card .meta-row{margin-top:3px}

/* Contact page: authentic Casetta image only in the location section. */
.contact-card{min-height:245px}

@media(max-width:900px){
  .section{padding:50px 0}
  .hero{padding:18px 0 28px}
  .hero-layout{border-radius:18px}
  .hero-text-inner{padding:38px 26px}
  .hero-image{min-height:280px}
}

/* V7 immagini approvate */
.chi-page .hero-image{background-image:url('assets/hero-chi-v7.jpg')!important;background-size:cover;background-position:center}
.ordini-page .hero-image{background-image:url('assets/hero-ordini-v7.jpg')!important;background-size:cover;background-position:center;background-color:#eef3e8}
.news-page .hero-image{background-image:url('assets/hero-news-v7.jpg')!important;background-size:cover;background-position:center}
.home-page .hero-image{background-image:url('assets/hero-home-v7.jpg')!important}
.contatti-page img[src*="casetta-v7"]{width:100%;height:100%;object-fit:cover;object-position:center}

/* V8: correzioni immagini mirate */
.home-page .hero-image{background-image:url('assets/hero-home-v8.jpg')!important;background-size:cover!important;background-position:center!important}
.funziona-page .hero-image{background-image:url('assets/hero-funziona-v8.jpg')!important;background-size:cover!important;background-position:center!important}
.contatti-page .location-grid .photo-card{display:flex;align-items:center;justify-content:center;background:#f3f5ee;overflow:hidden}
.contatti-page .location-grid .photo-card img[src*="casetta-v8"]{width:min(100%,420px)!important;height:auto!important;object-fit:contain!important;image-rendering:auto}


/* =========================================================
   V9 — SOLO LE DUE CORREZIONI RICHIESTE
   1. Tipografia coerente con il mockup approvato
   2. Foto Home completa, senza tagli laterali
   ========================================================= */

/* Font del mockup: caldo/familiare per i titoli, pulito per i testi. */
700&family=Nunito:wght@400;600;700&display=swap');

body,
nav,
p,
a,
button,
input,
select,
textarea,
.meta-row,
.kicker,
.badge,
.btn,
.big,
.brand,
.brand strong{
  font-family:"Nunito","Trebuchet MS","Segoe UI",Arial,sans-serif !important;
}

h1,h2,h3{
  font-family:"Kalam","Segoe Print","Bradley Hand",cursive !important;
  color:var(--green);
  letter-spacing:0 !important;
}

h1{
  font-weight:700 !important;
  line-height:1.02 !important;
}

h2{
  font-weight:700 !important;
  line-height:1.08 !important;
}

h3{
  font-weight:700 !important;
  line-height:1.15 !important;
}

/* La fotografia della Home deve essere visibile per intero.
   Niente più background-size: cover che tagliava il lato sinistro/destro. */
.home-page .hero-image{
  background-image:url('assets/hero-home-v8.jpg') !important;
  background-size:contain !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
  background-color:#eef3e8 !important;
}


/* =========================================================
   V10 — HOME RESPONSIVE SMARTPHONE
   Nessuna modifica a contenuti, palette o stile approvato.
   ========================================================= */

.home-page .home-hero-media{
  background:none !important;
  min-height:0 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.home-page .home-hero-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
}

/* Tablet / smartphone */
@media (max-width:900px){
  .home-page .hero{
    padding:14px 0 24px;
  }

  .home-page .hero-layout{
    width:min(100% - 24px, 680px);
    grid-template-columns:1fr !important;
    min-height:0 !important;
    border-radius:18px;
  }

  .home-page .hero-text{
    order:1;
  }

  .home-page .hero-text-inner{
    padding:30px 24px 26px !important;
  }

  .home-page .hero-text-inner h1{
    font-size:clamp(40px,12vw,52px) !important;
    line-height:1.00 !important;
    margin-bottom:18px;
  }

  .home-page .hero-text-inner .lead{
    font-size:17px;
    line-height:1.58;
    margin-bottom:0;
  }

  .home-page .home-hero-media{
    order:2;
    width:100%;
    aspect-ratio:16 / 7;
    min-height:0 !important;
    background:#eef3e8 !important;
  }

  .home-page .home-hero-media img{
    width:100%;
    height:100%;
    object-fit:contain;
  }

  .home-page .grid-4{
    grid-template-columns:1fr 1fr !important;
    gap:0;
  }

  .home-page .stat{
    padding:22px 12px;
    border-bottom:1px solid #dfe4d8;
  }

  .home-page .section{
    padding:42px 0;
  }

  .home-page .grid-3,
  .home-page .grid-2,
  .home-page .split{
    grid-template-columns:1fr !important;
  }

  .home-page .photo-card img{
    width:100%;
    height:auto;
  }
}

/* Telefoni stretti */
@media (max-width:560px){
  .container{
    width:min(100% - 24px, var(--max));
  }

  .site-header .header-inner{
    min-height:68px;
    gap:10px;
  }

  .site-header .brand img{
    width:46px;
    height:46px;
  }

  .site-header .brand strong{
    font-size:18px !important;
  }

  .site-header .brand small{
    font-size:9px;
    letter-spacing:1px;
  }

  .nav{
    top:68px !important;
  }

  .home-page .hero-layout{
    width:calc(100% - 20px);
    border-radius:16px;
  }

  .home-page .hero-text-inner{
    padding:27px 20px 23px !important;
  }

  .home-page .hero-text-inner h1{
    font-size:clamp(38px,12vw,48px) !important;
  }

  .home-page .hero-text-inner .lead{
    font-size:16px;
  }

  .home-page .home-hero-media{
    aspect-ratio:auto;
  }

  .home-page .home-hero-media img{
    height:auto;
  }

  .home-page .grid-4{
    grid-template-columns:1fr !important;
  }

  .home-page .section h2{
    font-size:34px !important;
  }

  .home-page .card{
    padding:22px;
  }

  .site-footer{
    padding-left:4px;
    padding-right:4px;
  }
}

/* V12 · adesioni */
.narrow{max-width:900px}
.adhesion-head{padding-bottom:34px}
.adhesion-head h1{margin-bottom:14px}
.notice{margin-top:24px;padding:16px 18px;border-radius:14px;background:#eef5df}
.adhesion-cta{margin-top:34px;padding:28px;border-radius:22px;background:#eef5df;display:flex;align-items:center;justify-content:space-between;gap:24px}
.adhesion-cta h2{margin:4px 0 8px}
.adhesion-cta p{margin:0;max-width:650px}
.adhesion-form{display:grid;gap:22px}
.adhesion-form[hidden]{display:none}
.adhesion-form fieldset{border:0;margin:0;padding:26px;background:#fff;border-radius:20px;box-shadow:0 8px 24px rgba(31,57,33,.06)}
.adhesion-form legend{font-family:"Kalam","Segoe Print","Bradley Hand",cursive;font-size:28px;font-weight:700;color:var(--green);padding:0 8px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.adhesion-form label{display:grid;gap:7px;font-weight:700}
.adhesion-form input,.adhesion-form textarea{width:100%;box-sizing:border-box;border:1px solid #cfd8ca;border-radius:12px;padding:13px 14px;font:inherit;background:#fff;color:inherit}
.adhesion-form input:focus,.adhesion-form textarea:focus{outline:2px solid #b8cf65;outline-offset:1px}
.adhesion-form .full{grid-column:1/-1}
.adhesion-form .check{display:flex;align-items:flex-start;gap:12px;font-weight:400;margin:14px 0}
.adhesion-form .check input{width:20px;height:20px;flex:0 0 20px;margin-top:2px}
.form-note{font-size:14px;opacity:.78}
.form-actions{padding:6px 2px 10px}
.form-actions .btn{border:0;cursor:pointer;font:inherit;font-weight:800}
@media(max-width:760px){.form-grid{grid-template-columns:1fr}.adhesion-cta{align-items:flex-start;flex-direction:column}.adhesion-form fieldset{padding:20px}.adhesion-form legend{font-size:24px}}

/* V13 - area adesioni informativa */
.adhesion-info h2,.adhesion-info h3,.form-intro h2{color:#285f3c}.adhesion-info h3{margin-top:28px}.adhesion-info ul{line-height:1.75;padding-left:22px}.quote-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.quote-grid>div{background:#f4f0df;border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:5px}.quote-grid strong{font-size:1.35rem;color:#285f3c}.quote-grid span{line-height:1.4}.doc-actions{margin:22px 0 34px}.btn-outline{background:transparent!important;color:#285f3c!important;border:2px solid #285f3c}.form-intro{margin-bottom:22px}@media(max-width:700px){.quote-grid{grid-template-columns:1fr}}
