/* igne.it — stile unico per sito pubblico e gestionale */
:root {
  --brand: #d84315;          /* solo grafica decorativa: barre, bordi, icone */
  --brand-text: #952808;     /* testo e link su fondo chiaro — contrasto 7,6:1 */
  --brand-solid: #a82d08;    /* sfondi pieni con testo bianco — contrasto 6,9:1 */
  --brand-dark: #b1300a;
  --ink: #1f2429;
  --muted: #5d6570;
  --bg: #ffffff;
  --alt: #faf6f2;
  --line: #e5e1dc;
  --ok: #1a7f37;
  --err: #b42318;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

.center { text-align: center; }
.muted { color: var(--muted); }
.small-txt { font-size: .85rem; }

/* topbar */
.topbar { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.topbar.dark { background: #22272e; border-color: #333; }
.topbar.dark a { color: #eee; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.2rem; flex-wrap: wrap; }
.nav nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.logo { font-size: 1.25rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-dot { color: var(--brand-text); }
.tag { background: var(--brand-solid); color: #fff; font-size: .7rem; padding: .1rem .5rem; border-radius: 99px; vertical-align: middle; }

/* hero */
.hero { background: linear-gradient(160deg, #fff5ef, #ffe9dd); padding: 4rem 0; }
.hero.small { padding: 2.5rem 0; }
.hero h1 em { color: var(--brand-text); font-style: normal; }
.lead { font-size: 1.15rem; color: #444; max-width: 46rem; }

/* sections */
.section { padding: 3rem 0; }
.section.alt { background: var(--alt); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; color: var(--ink); background: #fff; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); text-decoration: none; }
.card h3 { margin: 0 0 .4rem; }
.card p { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; }
.card .link { color: var(--brand-text); font-weight: 600; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.step .n { display: inline-flex; width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center; background: var(--brand-solid); color: #fff; border-radius: 50%; font-weight: 700; }
.step h3 { margin: .6rem 0 .3rem; }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: .6rem 0; background: #fff; }
details summary { cursor: pointer; font-weight: 600; }

/* buttons */
.btn { display: inline-block; background: var(--brand-solid); color: #fff; padding: .55rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--brand-solid); font-weight: 600; font-size: .95rem; cursor: pointer; }
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.big { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn.small { padding: .3rem .8rem; font-size: .85rem; }
.btn.ghost { background: transparent; color: var(--brand-text); }
.btn.ghost:hover { background: #fff2ea; }
.btn.green { background: var(--ok); border-color: var(--ok); }
.btn.green:hover { background: #14602a; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* form */
.form { display: flex; flex-direction: column; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.form h2 { margin: .8rem 0 0; font-size: 1.15rem; }
.form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .95rem; position: relative; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=password], .form input[type=number],
.form select, .form textarea { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
label.check { flex-direction: row; align-items: flex-start; gap: .5rem; font-weight: 400; }
label.check input { margin-top: .3rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .3rem; }
.consent { font-size: .9rem; color: #444; }
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; }
.cat-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; flex-wrap: wrap; }
.cat-row .inline { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; font-size: .9rem; }
.cat-row input[type=number] { width: 90px; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 6px; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.inline-form input[type=number], .inline-form input[type=text], .inline-form select { padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; }

/* autocomplete */
.suggest { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 0 0 8px 8px; z-index: 40; max-height: 260px; overflow-y: auto; box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.suggest:empty { display: none; }
.suggest div { padding: .5rem .8rem; cursor: pointer; font-weight: 400; }
.suggest div:hover, .suggest div.sel { background: #fff2ea; }

/* pricing */
.pricebox { border: 2px solid var(--brand); border-radius: var(--radius); padding: 1rem 1.2rem; text-align: center; background: #fff; }
.pricebox .price { font-size: 2rem; font-weight: 800; color: var(--brand-text); margin: .2rem 0; }

/* flash & notices */
.flash { padding: .7rem 0; color: #fff; font-weight: 600; }
.flash.ok { background: var(--ok); }
.flash.err { background: var(--err); }
.notice { border-radius: var(--radius); padding: .8rem 1.1rem; margin: 1rem 0; border: 1px solid; }
.notice.orange { background: #fff7e6; border-color: #f5c563; }
.notice.red { background: #fdecea; border-color: #f0a9a2; }
.notice.green { background: #e9f7ee; border-color: #9fd7b0; }

/* panel */
.panel { background: #f5f6f8; }
.panel-main { padding: 1.5rem 1.2rem 3rem; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1rem 0; }
.box h2 { margin-top: 0; font-size: 1.1rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem; margin: 1rem 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; text-align: center; }
.stat .num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--brand-text); }
.stat span:last-child { color: var(--muted); font-size: .85rem; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .93rem; }
.tbl th { text-align: left; background: #f3f0ec; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
.tbl td { padding: .5rem .8rem; border-bottom: 1px solid #f0ede9; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }

/* badge */
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .6rem; border-radius: 99px; color: #fff; }
.badge.green { background: var(--ok); }
.badge.blue { background: #175cd3; }
.badge.orange { background: #b54708; }
.badge.red { background: var(--err); }
.badge.gray { background: #6b7280; }

/* prose & code */
.prose h2 { margin-top: 1.6rem; }
.code { background: #22272e; color: #d8dee6; padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: .85rem; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--alt); padding: 2.5rem 0 1.5rem; margin-top: 3rem; font-size: .92rem; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer p { margin: .25rem 0; }
.footer .legal { margin-top: 1.5rem; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
@media (max-width: 720px) {
  h1 { font-size: 1.6rem; }
  .footer .cols { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0; }
}

/* pagine di zona */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a { color: var(--muted); }
.links-inline a { display: inline-block; margin: .15rem .7rem .15rem 0; white-space: nowrap; }
.cols-list { column-count: 4; column-gap: 2rem; }
.cols-list a { display: block; white-space: normal; }
@media (max-width: 900px) { .cols-list { column-count: 2; } }

/* hero con immagine */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero-img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 1.2rem; } }

/* foto comune (Wikimedia) */
.foto-comune { margin: 0; }
.foto-comune img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.15); object-fit: cover; }
.foto-comune figcaption { font-size: .72rem; color: var(--muted); margin-top: .3rem; text-align: right; }

/* glossario */
.glossario dt { font-weight: 700; margin-top: .9rem; }
.glossario dd { margin: .15rem 0 0 0; color: #444; }
.prose ul { padding-left: 1.2rem; }
.prose table { margin: 1rem 0; }

/* ---- restyling guide: leggibilità e uso dello spazio ---- */
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose > p:first-child { background: #fff7f2; border: 1px solid #f3d9c9; border-left: 5px solid var(--brand);
  padding: 1.1rem 1.3rem; border-radius: 12px; font-size: 1.08rem; }
.prose h2 { margin-top: 2.4rem; margin-bottom: .8rem; padding-left: .8rem; border-left: 5px solid var(--brand); line-height: 1.3; }
.prose ul li, .prose ol li { margin: .4rem 0; }
.prose table.tbl { font-size: .98rem; }
.prose table.tbl tr:nth-child(even) td { background: #faf8f5; }
.prose table.tbl th { background: #f3e8df; }
.prose figure { margin: 1.5rem 0; }
.glossario dt { color: var(--brand-dark); font-size: 1.02rem; }
.correlate { border-top: 2px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; }
.pill-links a { display: inline-block; background: #fff2ea; color: var(--brand-dark); border: 1px solid #f3d9c9;
  padding: .4rem .9rem; border-radius: 99px; margin: .25rem .35rem .25rem 0; font-weight: 600; font-size: .92rem; }
.pill-links a:hover { background: var(--brand-solid); color: #fff; text-decoration: none; }

/* card con miniatura */
.card-thumb { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-thumb img { width: 100%; height: 150px; object-fit: cover; display: block; border-radius: 0; }
.card-thumb h3 { margin: .9rem 1.2rem .3rem; }
.card-thumb p { margin: 0 1.2rem .6rem; }
.card-thumb .link { margin: 0 1.2rem 1rem; }

/* ---- accessibilità AA: contrasto testi e link distinguibili (Lighthouse) ---- */
a { color: var(--brand-dark); }
.logo-dot { color: var(--brand-dark); }
.muted, .crumbs, .crumbs a { color: #5d6570; }
.btn { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:hover { background: #952808; }
.btn.ghost { background: transparent; color: var(--brand-dark); }
.card .link, .stat .num, X_PRICE { color: var(--brand-dark); }
.prose p a:not(.btn), .prose dd a, .prose li a, main > section p a:not(.btn):not(.card) { text-decoration: underline; text-underline-offset: 2px; }
.links-inline a, .pill-links a, .cards a, nav a, .crumbs a { text-decoration: none; }

/* banner call-to-action fotovoltaico */
.banner-fv { background: linear-gradient(135deg, #fff4ec, #ffe4d0); border: 2px solid var(--brand); border-radius: 14px; padding: 1.5rem 1.8rem; margin: 2.5rem 0 1rem; }

/* wizard preventivo a passi */
.wsteps-bar { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.wsteps-bar span { flex: 1; height: 6px; border-radius: 99px; background: #eee2d8; }
.wsteps-bar span.on { background: var(--brand-dark); }
.wstep { display: none; }
.wstep.on { display: block; animation: wfade .25s ease; }
@keyframes wfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wstep .spiega { background: #fff7f2; border-left: 4px solid var(--brand); border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .95rem; color: #444; }
.wnav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.wnav .btn[disabled] { visibility: hidden; }
/* fallback senza JavaScript: wizard come pagina unica */
.no-js .wstep { display: block; }
.no-js .wnav, .no-js .wsteps-bar { display: none; }

/* ---- barra accessibilità + cookie ---- */
.acc-btn { position: fixed; bottom: 18px; left: 18px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-dark); color: #fff; border: 2px solid #fff; font-size: 22px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.acc-panel { position: fixed; bottom: 76px; left: 18px; z-index: 90; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: none; width: 230px; }
.acc-panel.on { display: block; }
.acc-panel h3 { margin: 0 0 .6rem; font-size: 1rem; }
.acc-panel button { display: block; width: 100%; text-align: left; background: #faf6f2; border: 1px solid var(--line);
  border-radius: 8px; padding: .5rem .7rem; margin: .3rem 0; cursor: pointer; font: inherit; font-size: .92rem; }
.acc-panel button[aria-pressed="true"] { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
html.acc-big { font-size: 118%; }
html.acc-bigger { font-size: 135%; }
html.acc-small { font-size: 88%; }
html.acc-contrast, html.acc-contrast body { background: #fff !important; }
html.acc-contrast body, html.acc-contrast p, html.acc-contrast li, html.acc-contrast td, html.acc-contrast dd,
html.acc-contrast h1, html.acc-contrast h2, html.acc-contrast h3, html.acc-contrast .muted, html.acc-contrast .lead { color: #000 !important; }
html.acc-contrast a { color: #0000cc !important; text-decoration: underline !important; }
html.acc-contrast .btn { background: #000 !important; color: #fff !important; border-color: #000 !important; }
html.acc-contrast .hero, html.acc-contrast .section.alt, html.acc-contrast .footer, html.acc-contrast .box,
html.acc-contrast .card, html.acc-contrast .form { background: #fff !important; border-color: #000 !important; }
html.acc-bw body { filter: grayscale(1); }
html.acc-font body, html.acc-font input, html.acc-font select, html.acc-font button, html.acc-font textarea { font-family: Verdana, Arial, sans-serif; }
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; background: #22272e; color: #eee;
  padding: .8rem 1.2rem; display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; font-size: .9rem; }
.cookie-bar a { color: #ffb28f; }
.cookie-bar .btn { padding: .35rem 1rem; }

/* ---- fix allineamento: blocchi a larghezza limitata dentro .center vanno centrati ---- */
.center .lead, .center p, .center .pill-links { margin-left: auto; margin-right: auto; }
.center .lead { max-width: 46rem; }
.narrow-p { max-width: 46rem; }
/* hero-grid: se manca l'immagine la colonna non deve lasciare il vuoto */
.hero-grid:has(> :only-child) { grid-template-columns: 1fr; max-width: 60rem; }

/* ---- wizard: rifinitura grafica ---- */
.form.wizard { max-width: 620px; margin: 0 auto; padding: 1.8rem 2rem 2rem; }
.wsteps-bar { gap: .4rem; margin: 0 0 1.6rem; }
.wsteps-bar span { height: 5px; border-radius: 99px; background: #ece2d8; transition: background .3s; }
.wstep h2 { font-size: 1.2rem; margin: 0 0 .4rem; border: none; padding: 0; }
.wstep .spiega { background: #fff7f2; border-left: 4px solid var(--brand); border-radius: 8px; padding: .75rem 1rem; margin: .6rem 0 1.3rem; font-size: .92rem; color: #4a4640; line-height: 1.55; }
.wizard label { margin-bottom: 1rem; }
.field-hint { display: block; font-size: .8rem; color: #7a746c; margin-top: .3rem; font-weight: 400; }
.wizard input:invalid:not(:placeholder-shown) { border-color: #d98b6a; }
.wizard input:valid:not(:placeholder-shown) { border-color: #7bbf90; }
.wnav { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.wnav .btn { min-width: 130px; }

/* ---- menu: CTA evidente + Chi siamo + responsive ---- */
.nav-cta { background: var(--brand-dark) !important; color: #fff !important; border-color: var(--brand-dark) !important; box-shadow: 0 2px 8px rgba(177,48,10,.25); }
.nav-cta:hover { background: #952808 !important; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--brand-dark); cursor: pointer; padding: .2rem .4rem; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .topbar nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: .3rem; padding-top: .6rem; }
  .topbar nav.open { display: flex; }
  .topbar nav a { padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
  .nav-cta, .topbar nav a.btn { text-align: center; }
}

/* ============ LARGHEZZA E ALLINEAMENTO — regola globale ============ */
/* Il contenuto usa la pagina, non una colonnina centrale. */


/* i testi lunghi restano leggibili ma allineati a sinistra, non centrati nel vuoto */


/* griglie: riempiono la larghezza disponibile */
.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cols2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.cols3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* hero: testo e immagine su tutta la riga */
.hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
/* il form del wizard resta stretto (è giusto), ma allineato a sinistra dentro la sua sezione */
.form.wizard { margin-left: 0; }
.wizard-layout { display: grid; grid-template-columns: minmax(0, 620px) 1fr; gap: 3rem; align-items: start; }
@media (max-width: 1000px) {
  .wrap { padding: 0 1.2rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .wizard-layout { grid-template-columns: 1fr; }
}

/* mai scroll orizzontale di pagina: le tabelle larghe scorrono dentro il loro box */
html, body { overflow-x: hidden; max-width: 100%; }
.tbl { table-layout: auto; width: 100%; }
.wrap > div[style*="overflow-x"], .prose > div[style*="overflow-x"] { max-width: 100%; }
.tbl td, .tbl th { word-break: normal; overflow-wrap: anywhere; }


/* ============ FIX DEFINITIVO SPAZI VUOTI ============ */
/* 1. Le griglie con UN SOLO figlio non devono lasciare la colonna vuota */
.hero-grid:has(> div:only-child),
.cols2:has(> *:only-child),
.cols3:has(> *:only-child) { grid-template-columns: 1fr !important; }

/* 2. Sezioni di solo testo: usa la larghezza, non mezza pagina */



.prose > p, .prose > ul, .prose > ol, .prose > dl { max-width: 74ch; }
.prose > h2, .prose > h3 { max-width: none; }
/* tabelle e figure prendono tutta la larghezza disponibile */
.prose > table, .prose > figure, .prose > .tbl { max-width: none; width: 100%; }

/* 3. Blocchi "quadro" e testi provinciali: due colonne quando il testo è lungo */
.testo-largo { columns: 2; column-gap: 3.2rem; }
.testo-largo p { break-inside: avoid; margin-top: 0; }
@media (max-width: 900px) { .testo-largo { columns: 1; } }

/* 4. Barra menu: compatta e ordinata come prima */
.topbar .nav { padding: .5rem 1.2rem; }
.topbar nav { gap: 1rem; }
.nav-cta { padding: .38rem 1rem !important; }


/* ---- layout guida: testo + colonna laterale utile (niente spazio vuoto) ---- */
.guida-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.guida-testo { min-width: 0; }
.guida-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1rem; }
.guida-side .box { margin: 0; padding: 1.1rem 1.3rem; }
.guida-side h3 { font-size: 1rem; margin: 0 0 .6rem; }
.side-indice ol { margin: 0; padding-left: 1.1rem; font-size: .93rem; line-height: 1.5; }
.side-indice li { margin: .35rem 0; }
.side-indice a { color: var(--brand-dark); }
.side-cta { background: #fff7f2; border-color: #f3d9c9; }
@media (max-width: 1000px) {
  .guida-layout { grid-template-columns: 1fr; }
  .guida-side { position: static; }
}

/* ============ GRAFICA DEI DATI: numeri che si vedono ============ */
/* contatori grandi */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.4rem; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--brand); }
.stat-card .big { display: block; font-size: 2.1rem; font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
.stat-card .lbl { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: #7a746c; margin-bottom: .3rem; font-weight: 700; }
.stat-card .note { font-size: .88rem; color: #5d6570; margin: .5rem 0 0; }
.stat-card.green::before { background: #1a7f37; } .stat-card.green .big { color: #14602a; }
.stat-card.blue::before { background: #175cd3; } .stat-card.blue .big { color: #124da8; }

/* barra di confronto orizzontale */
.bar-row { display: grid; grid-template-columns: 130px 1fr 80px; align-items: center; gap: .8rem; margin: .55rem 0; font-size: .93rem; }
.bar-track { background: #efe7df; border-radius: 99px; height: 22px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #e8930c, #d84315); display: flex; align-items: center; justify-content: flex-end; padding-right: .5rem; color: #fff; font-size: .78rem; font-weight: 700; }
.bar-fill.me { background: linear-gradient(90deg, #b1300a, #7d2107); }
.bar-val { text-align: right; font-weight: 700; color: #1f2429; }

/* card prodotto (classi pellet) con medaglia */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin: 1.2rem 0; }
.prod-card { border: 2px solid var(--line); border-radius: 16px; padding: 1.3rem; background: #fff; position: relative; }
.prod-card.top { border-color: var(--brand); box-shadow: 0 6px 20px rgba(216,67,21,.12); }
.prod-badge { position: absolute; top: -12px; left: 1.2rem; background: var(--brand-dark); color: #fff; font-size: .72rem; font-weight: 800; padding: .25rem .7rem; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.prod-card h4 { margin: .3rem 0 .8rem; font-size: 1.1rem; }
.prod-spec { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed #ece2d8; font-size: .92rem; }
.prod-spec:last-child { border: 0; }
.prod-spec b { color: var(--brand-dark); }
.ash-meter { height: 8px; border-radius: 99px; background: #efe7df; margin-top: .2rem; overflow: hidden; }
.ash-meter i { display: block; height: 100%; background: #8d7b68; }

/* passi numerati grafici */
.steps-vis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.2rem 0; counter-reset: sv; }
.step-vis { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; position: relative; }
.step-vis::before { counter-increment: sv; content: counter(sv); position: absolute; top: -14px; left: 1.1rem; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-dark); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.step-vis p { margin: .6rem 0 0; font-size: .92rem; }

/* fascia icone consegna */
.icon-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.icon-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; text-align: center; }
.icon-card .ico { font-size: 2rem; display: block; margin-bottom: .4rem; }
.icon-card h4 { margin: 0 0 .35rem; font-size: 1rem; }
.icon-card p { margin: 0; font-size: .89rem; color: #5d6570; }

/* guida: colonne più vicine, testo più largo */
.guida-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
.guida-testo .prose > p, .guida-testo .prose > ul, .guida-testo .prose > ol, .guida-testo .prose > dl { max-width: none; }


/* FAQ affiancate: niente colonna vuota */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: .8rem 1.6rem; margin-top: 1rem; }
.faq-grid details { margin: 0; }
/* paragrafi introduttivi di sezione: larghezza di lettura, ma il blocco resta pieno */
.section > .wrap > p:not(.pill-links):not(.links-inline):not(.center) { max-width: 90ch; }


/* larghezza definitiva: piena ma non dispersiva */


.guida-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 2.2rem; }
@media (max-width: 1000px) { .wrap { padding: 0 1.2rem; } }

/* firma redazionale delle guide (E-E-A-T) */
.firma-guida { margin-top: 2.5rem; background: #faf8f5; border-left: 4px solid var(--brand); }
.firma-guida p { margin: .4rem 0; font-size: .92rem; }

/* confronto climatico: barre piene sopra, 4 contatori in fila sotto */
.confronto-box { padding: 1.5rem 1.8rem; margin: 1.2rem 0 1rem; }
.confronto-box .bar-row { grid-template-columns: 200px 1fr 110px; margin: .7rem 0; }
.confronto-box .bar-track { height: 26px; }
.stat-grid.stat-4 { grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 0; }
@media (max-width: 900px) {
  .stat-grid.stat-4 { grid-template-columns: repeat(2, 1fr); }
  .confronto-box .bar-row { grid-template-columns: 120px 1fr 80px; font-size: .86rem; }
}

/* valori barre: numero grande + unità piccola, sempre leggibile */
.bar-val small { font-weight: 400; font-size: .78rem; color: #5d5852; display: block; line-height: 1.1; }
.confronto-box .bar-row { grid-template-columns: 200px 1fr 140px; }
.intro-spiega { background: #fff7f2; border-left: 4px solid var(--brand); border-radius: 8px; padding: .8rem 1.1rem; margin: .8rem 0 1.2rem; max-width: 90ch; font-size: .95rem; }


/* --- accessibilità: link distinguibili non solo dal colore, contrasto AA ovunque --- */
/* i link "isolati" (menu, pulsanti, card, breadcrumb, elenchi di navigazione)
   non stanno dentro un testo corrente: lì la sottolineatura è rumore, la si toglie */
.nav a, .btn, .card, .logo, .crumbs a, .pill-links a, .side-indice a,
.footer a, .tab a, .cookie-bar a.btn, .a11y-bar a, .prod-card, .icon-card,
.card-thumb, .simili a, .cross-links a { text-decoration: none; }
.nav a:hover, .crumbs a:hover, .footer a:hover, .side-indice a:hover { text-decoration: underline; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }
.btn.ghost:hover { background: #fff4ec; }
/* focus visibile su tutto ciò che si può raggiungere da tastiera */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #a82d08; outline-offset: 2px; border-radius: 3px;
}

/* --- niente vuoti: i box affiancati distribuiscono il contenuto sull'altezza reale --- */
.cols2 > .box, .cols3 > .box { display: flex; flex-direction: column; }
.box-cta, .box-flex > p:last-child { margin-top: auto; margin-bottom: 0; padding-top: .6rem; }
.intro-spiega { max-width: none; }
.fatti-lista { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .7rem; }
.fatti-lista li { display: flex; gap: .7rem; align-items: flex-start; background: #faf8f5;
  border: 1px solid var(--line); border-radius: 8px; padding: .7rem .85rem; font-size: .93rem; }
.fatti-ico { font-size: 1.25rem; line-height: 1.2; }
.fatti-tit { color: var(--brand-text); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }

/* --- blocco gradi giorno: spiegazione a tutta larghezza + colonna dati del comune --- */
.gg-spiega { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.6rem; align-items: start;
  background: #fff7f2; border: 1px solid #f3d9c9; border-left: 5px solid var(--brand);
  border-radius: 10px; padding: 1.3rem 1.5rem; margin: .9rem 0 1.6rem; }
.gg-spiega p { margin: 0 0 .8rem; font-size: .96rem; }
.gg-spiega p:last-child { margin-bottom: 0; }
.gg-def { font-size: 1.03rem !important; }
.gg-contesto { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; }
.gg-contesto h3 { margin: 0 0 .7rem; font-size: 1rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--brand-text); }
.gg-contesto ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .55rem; font-size: .92rem; }
.gg-contesto p { margin: .9rem 0 0; }
@media (max-width: 860px) { .gg-spiega { grid-template-columns: 1fr; padding: 1.1rem; } }

/* --- scala delle zone climatiche A→F, riempie la colonna e mostra dove sta il comune --- */
.scala-zone { margin-top: 1.2rem; }
.scala-tit { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--brand-text); font-weight: 700; margin-bottom: .5rem; }
.scala-barra { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.scala-seg { position: relative; text-align: center; padding: .55rem .2rem; border-radius: 6px;
  font-weight: 700; color: #3a3a3a; opacity: .45; }
.scala-seg.qui { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.zona-A { background: #cfe8ff; } .zona-B { background: #bfe3d2; } .zona-C { background: #fde9a9; }
.zona-D { background: #fdc98f; } .zona-E { background: #f7a97f; } .zona-F { background: #e88a8a; }
.scala-tag { position: absolute; left: 50%; transform: translateX(-50%); bottom: -1.35rem;
  font-style: normal; font-size: .7rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.scala-barra:has(.qui) { margin-bottom: 1.4rem; }
.scala-nota { font-size: .88rem; color: #4a4640; margin: .5rem 0 0; }


/* --- pulsante e pannello accessibilità, versione leggibile --- */
.acc-btn { position: fixed; bottom: 18px; left: 18px; z-index: 96; width: auto; height: auto;
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem .6rem .75rem;
  border-radius: 999px; background: #1f2429; color: #fff; border: 2px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.28); font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: background .15s, transform .15s; }
.acc-btn:hover { background: var(--brand-solid); transform: translateY(-1px); }
.acc-btn-ico { display: inline-flex; }
.acc-panel { position: fixed; bottom: 78px; left: 18px; z-index: 97; width: 310px; max-width: calc(100vw - 36px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem;
  box-shadow: 0 14px 40px rgba(0,0,0,.22); display: none; }
.acc-panel.on { display: block; }
.acc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.acc-panel-head h3 { margin: 0; font-size: 1.05rem; }
.acc-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer;
  color: #5d6570; padding: 0 .2rem; border-radius: 6px; }
.acc-close:hover { color: var(--ink); }
.acc-hint { margin: .2rem 0 .9rem; font-size: .82rem; color: #5d6570; }
.acc-group { margin-bottom: .9rem; }
.acc-lab { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  color: #5d6570; font-weight: 700; margin-bottom: .4rem; }
.acc-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.acc-panel .acc-row button { flex: 1 1 auto; width: auto; text-align: center; background: #faf6f2;
  border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; font-size: .85rem;
  cursor: pointer; color: var(--ink); }
.acc-panel .acc-row button b { font-size: 1.05rem; margin-right: .15rem; }
.acc-panel .acc-row button:hover { border-color: var(--brand-solid); }
.acc-panel button[aria-pressed="true"] { background: var(--brand-solid); color: #fff; border-color: var(--brand-solid); }
.acc-reset { width: 100%; background: #fff; border: 1px dashed var(--line); border-radius: 8px;
  padding: .5rem; font-size: .85rem; cursor: pointer; color: var(--ink); }
.acc-reset:hover { border-color: var(--brand-solid); color: var(--brand-text); }
.cookie-azioni { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-bar { padding-left: 5.5rem; }
@media (max-width: 700px) { .cookie-bar { padding-left: 1.2rem; padding-bottom: 4.6rem; } }

/* ============================================================
   Chiusura buchi di impaginazione (revisione 15/08/2026)
   ============================================================ */
/* 7 categorie in una griglia da 3 = ultima riga con 1 card e 2 buchi: con 240px entrano 4 per riga */
.cards { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }
/* card di altezza uguale: il "Leggi →" scende in fondo invece di lasciare vuoto sotto */
.card, .card-thumb { display: flex; flex-direction: column; }
.card .link, .card-thumb .link { margin-top: auto; padding-top: .4rem; }
/* due fasce consecutive con lo stesso fondo creavano 96px di banda morta */
.section + .section:not(.alt):not(.hero) { padding-top: 1.2rem; }
.section.alt + .section.alt { padding-top: 1.2rem; }
/* pagine di solo testo senza colonna laterale: riga di lettura giusta, niente gutter da 330px */

/* elenchi di comuni: le colonne collassano da sole quando i comuni sono pochi */
.cols-list { column-count: auto; columns: 4 15rem; }
/* hero senza foto: il testo può respirare invece di fermarsi a metà riga */
.hero:not(.hero-grid) .lead, .wrap:not(.hero-grid) > div > .lead { max-width: 62rem; }
/* footer: prima colonna meno larga, così non resta mezza vuota */
@media (min-width: 721px) { .footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }

/* colonna laterale del preventivo: riempie il vuoto a destra del wizard e rassicura chi compila */
.wizard-side { display: grid; gap: 1rem; }
.wizard-side .box { padding: 1.1rem 1.3rem; }
.wizard-side h3 { margin: 0 0 .6rem; font-size: 1rem; color: var(--brand-text);
  text-transform: uppercase; letter-spacing: .03em; }
.wizard-side ul, .side-steps { margin: 0; padding-left: 1.1rem; display: grid; gap: .6rem; font-size: .9rem; }
.side-steps li::marker { font-weight: 700; color: var(--brand-text); }
.side-aiuto p { font-size: .9rem; }
/* il primo titolo di una sezione non deve sommare il proprio margine al padding della fascia */
.section > .wrap > h2:first-child, .section > .wrap > h3:first-child { margin-top: 0; }
/* il menu dei suggerimenti sta fuori dalla label (HTML valido): il contenitore fa da riferimento */
.campo-comune { position: relative; display: block; margin-bottom: .9rem; }
.campo-comune label { margin-bottom: 0; }
/* sigilli di validazione nel footer: sobri, e ognuno rimanda al controllo dal vivo */
.valid-badge { font-size: .78rem; color: var(--muted); margin-bottom: .4rem !important; }
.valid-badge a { color: var(--brand-text); text-decoration: none; border-bottom: 1px dotted currentColor; }
.valid-badge a:hover { border-bottom-style: solid; }
/* sigilli di validazione nella pagina accessibilità */
.sigilli { margin-top: 1.5rem; }
.sigilli-riga { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin: 1rem 0; }
.sigilli-riga img { display: block; }
.sigillo-txt { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px; padding: .45rem .8rem; background: #fff;
  color: var(--ink); font-size: .82rem; line-height: 1.25; }
.sigillo-txt:hover { border-color: var(--brand-solid); }
.sigillo-mark { background: var(--ink); color: #fff; font-weight: 800; font-size: .78rem;
  letter-spacing: .04em; padding: .3rem .45rem; border-radius: 4px; }
/* errore di compilazione: visibile, non solo un tooltip che svanisce */
.campo-errore { margin: .35rem 0 .8rem; padding: .5rem .7rem; background: #fdecea;
  border-left: 4px solid var(--err); border-radius: 6px; color: #8a1c12;
  font-size: .88rem; font-weight: 600; }
[aria-invalid="true"] { border-color: var(--err) !important; }

/* avviso sulle regole regionali per la qualità dell'aria: deve farsi notare, è un vincolo di legge */
.avviso-aria { border-left: 6px solid #b45309; background: #fffbeb; }
.avviso-aria h2 { margin-top: 0; }
.avviso-sommario { font-size: 1.02rem; }
.aria-stelle { margin: 1.1rem 0 .6rem; }
.aria-lab { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 700; color: #92400e; margin-bottom: .45rem; }
.aria-scala { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.aria-scala .cl { padding: .4rem .7rem; border-radius: 8px; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.aria-scala .no { background: #fde2e0; color: #8a1c12; text-decoration: line-through; }
.aria-scala .si { background: #dcf5e3; color: #14602a; }

/* prezzo di riferimento del pellet: il dato che l'utente cerca per primo */
.prezzo-box { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.4rem; align-items: center;
  background: #fff; border: 2px solid var(--brand); border-radius: 12px; padding: 1.3rem 1.5rem; margin: .8rem 0; }
.prezzo-lab { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--brand-text); font-weight: 700; }
.prezzo-cifra { display: block; font-size: 2.1rem; line-height: 1.15; margin: .25rem 0; color: var(--ink); }
.prezzo-nota { font-size: .85rem; color: #5d6570; }
.prezzo-rif { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .93rem; }
.prezzo-rif li { border-left: 3px solid var(--line); padding-left: .7rem; }
@media (max-width: 760px) { .prezzo-box { grid-template-columns: 1fr; } }
.nowrap { white-space: nowrap; }

/* --- calcolatore di ricarica per auto elettriche --- */
.ev-calc { background: #fff; border: 2px solid var(--brand); border-radius: 12px; padding: 1.3rem 1.5rem; margin: 1.2rem 0 2rem; }
.ev-campi { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; }
.ev-campi label { display: block; font-weight: 600; font-size: .9rem; }
.ev-campi select { width: 100%; margin-top: .3rem; padding: .55rem .6rem; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; font-weight: 400; background: #fff; }
.ev-sintesi { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.ev-kpi { background: #faf8f5; border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; }
.ev-kpi span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: #5d6570; font-weight: 700; }
.ev-kpi strong { display: block; font-size: 1.5rem; line-height: 1.2; margin: .15rem 0; }
.ev-kpi small { color: #5d6570; font-size: .8rem; }
.ev-kpi-ok { background: #fff7f2; border-color: #f3d9c9; }
.ev-kpi-fv { background: #eefaf1; border-color: #bfe3cd; }
.ev-kpi-fv strong { color: #14602a; }
.ev-tab-wrap { overflow-x: auto; }
.ev-tab { width: 100%; font-size: .9rem; }
.ev-tab th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #5d6570; }
.ev-tab td small { color: #5d6570; }
.ev-tab tr.ev-casa { background: #fffaf6; }
.ev-nota { font-size: .76rem; color: #92400e; font-style: normal; background: #fef3c7; padding: .1rem .35rem; border-radius: 4px; }
.ev-conclusione { background: #eefaf1; border-left: 4px solid #14602a; border-radius: 8px; padding: .8rem 1rem; margin: 1rem 0 0; font-size: .95rem; }
.ev-avviso { background: #fdecea; border-left: 4px solid var(--err); padding: .7rem 1rem; border-radius: 8px; }

/* banner del consenso: Accetta e Rifiuta con lo stesso peso, come chiede il Garante */
.cookie-bar { align-items: flex-start; text-align: left; }
.cookie-testo { max-width: 74ch; font-size: .88rem; line-height: 1.5; }
.cookie-stato { display: inline-block; margin-top: .3rem; font-size: .82rem; color: #ffd9c7; }
.cookie-azioni { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.cookie-bar .btn { white-space: nowrap; }
.cookie-bar .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.cookie-bar .btn.ghost:hover { background: rgba(255,255,255,.14); }
/* pagine di solo testo: il contenuto riempie la colonna invece di lasciare mezzo schermo vuoto */





/* ===========================================================================
   LARGHEZZA DEL CORPO — REGOLA UNICA DEL SITO. Non aggiungerne altre altrove.
   1. Ogni pagina è dentro .wrap: massimo 1180px, centrata.
   2. Le pagine di solo testo (privacy, cookie, guide senza colonna) usano
      .wrap.narrow: 900px, sempre CENTRATA, così il testo riempie la sua colonna
      e i margini restano uguali a destra e a sinistra.
   3. Dentro il contenitore il contenuto occupa il 100%: niente max-width sui
      paragrafi e niente margin-left:0, che è ciò che creava il vuoto a destra.
   =========================================================================== */
.wrap { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 2rem; }
.wrap.narrow { max-width: 900px; }
.prose, .wrap > .prose, .wrap.narrow .prose, .wrap.narrow > .prose { max-width: none; }
.prose:not(.wrap) { margin-left: 0; margin-right: 0; }
.prose > p, .prose > ul, .prose > ol, .prose > dl, .prose > h2, .prose > h3,
.wrap.narrow > h1, .wrap.narrow > h2, .wrap.narrow > p { max-width: none; }
.prose .tbl, .wrap.narrow .tbl { width: 100%; }
@media (max-width: 1000px) { .wrap { padding: 0 1.2rem; } }
/* i tre punti di rassicurazione: leggibili in un colpo d'occhio, non un muro di testo */
.cookie-punti { display: block; margin: .5rem 0; }
.cookie-punti span { display: block; font-size: .85rem; line-height: 1.5; opacity: .92; }
@media (min-width: 900px) { .cookie-punti { display: flex; gap: 1.4rem; flex-wrap: wrap; } }

/* ---------- wizard della richiesta ---------- */
.wiz-barra { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: .2rem 0 .5rem; }
.wiz-avanzamento { height: 100%; background: var(--brand); transition: width .3s; }
.wiz-scelte { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; margin: 1.4rem 0; }
.wiz-card { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; text-align: left;
  border: 2px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 0 .9rem;
  cursor: pointer; overflow: hidden; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.wiz-card:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.wiz-card img { width: 100%; height: 118px; object-fit: cover; display: block; }
.wiz-card .wiz-titolo { font-weight: 700; font-size: 1.02rem; padding: 0 .9rem; }
.wiz-card .wiz-desc { color: var(--muted); font-size: .86rem; line-height: 1.4; padding: 0 .9rem; }
.wiz-multi { position: relative; }
.wiz-multi input { position: absolute; top: .6rem; right: .6rem; width: 1.3rem; height: 1.3rem; accent-color: var(--brand); z-index: 2; }
.wiz-multi:has(input:checked) { border-color: var(--brand); background: #fff7f3; }
.wiz-gruppo { border: 0; padding: 0; margin: 0 0 1.3rem; }
.wiz-gruppo legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.wiz-opzioni { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.wiz-opzione { display: flex; align-items: center; gap: .55rem; border: 2px solid var(--line); border-radius: var(--radius);
  padding: .7rem .8rem; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.wiz-opzione:hover { border-color: var(--brand); }
.wiz-opzione input { accent-color: var(--brand); flex: 0 0 auto; }
.wiz-opzione:has(input:checked) { border-color: var(--brand); background: #fff7f3; font-weight: 600; }
.wiz-azioni { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
@media (max-width: 520px) { .wiz-card img { height: 96px; } }

/* ---------- schede-opzione del wizard (una domanda per schermata) ---------- */
.wiz-gruppo { border: 0; padding: 0; margin: 0 0 1.6rem; }
.wiz-gruppo legend { font-weight: 700; font-size: 1.05rem; margin-bottom: .6rem; padding: 0; }
.schede { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.scheda { display: flex; align-items: flex-start; gap: .7rem; border: 2px solid var(--line);
  border-radius: var(--radius); padding: .85rem .9rem; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s; }
.scheda:hover { border-color: var(--brand); box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.scheda input { position: absolute; opacity: 0; width: 0; height: 0; }
.scheda__icona { flex: 0 0 30px; color: var(--brand); }
.scheda__icona svg { width: 30px; height: 30px; display: block; }
.scheda__testo { display: flex; flex-direction: column; gap: .15rem; }
.scheda__eti { font-weight: 600; line-height: 1.3; }
.scheda__spi { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.scheda:has(input:checked) { border-color: var(--brand); background: #fff7f3; box-shadow: 0 0 0 1px var(--brand) inset; }
.scheda:has(input:focus-visible) { outline: 3px solid #1a73e8; outline-offset: 2px; }
.schede--multi .scheda__icona { color: var(--ink); }
.schede--multi .scheda:has(input:checked) .scheda__icona { color: var(--brand); }
.campo-file input { display: block; margin-top: .4rem; }
/* testo per i soli lettori di schermo: presente per l'accessibilità, invisibile a video */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* le schede stanno dentro .form, che impone label a colonna: qui serve icona accanto al testo */
.form .scheda, .wizard .scheda { flex-direction: row; align-items: flex-start; gap: .7rem;
  margin-bottom: 0; font-weight: 400; font-size: 1rem; }
.wizard .wiz-gruppo { margin-bottom: 1.6rem; }

/* ── barra di avanzamento della lettura bolletta (pagina Luce e gas) ── */
/* si vede: riquadro pieno, bordo del colore del marchio, testo grande. Una barra sottile in
   fondo a un modulo lungo passa inosservata, e chi ha premuto il pulsante crede sia tutto fermo. */
.lg-prog { margin: 1rem 0 0; background: #fff5f0; border: 2px solid var(--brand); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.lg-prog-testo { margin: 0 0 .6rem; font-weight: 700; font-size: 1.1rem; color: var(--brand); }
.lg-prog-barra { height: 16px; background: #f6e5db; border-radius: 99px; overflow: hidden; }
.lg-prog-barra span { display: block; height: 100%; width: 0; border-radius: 99px;
                      background: linear-gradient(90deg, #f0803c, #d84315); transition: width .4s linear;
                      background-size: 200% 100%; animation: lg-onda 1.6s linear infinite; }
@keyframes lg-onda { from { background-position: 0 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .lg-prog-barra span { animation: none; } }
