/* Tema ispirato a cosentino.com: fondo bianco, grigi caldi, testo antracite #3c3c3b,
   accento verde #094a39 (pulsanti con testo bianco, testi in evidenza), verde salvia #8dc2b6 per i testi sui fondi scuri.
   Titoli leggeri (Albert Sans 200–400, al posto del Diagramm proprietario di Cosentino), angoli squadrati (4px).
   Fasce: di base bianche; .band--surface grigio caldo; .offer grigio caldo; .band--accent antracite (contatti); footer antracite.
   Ogni fascia ridefinisce localmente i token: --paper è il fondo, --ink il testo, --surface le card.
   --accent è il colore dei testi in evidenza, --btn il verde dei pulsanti, --dot i punti decorativi.
   Griglia a 12 colonne, max 1240px. */
:root {
  --paper: #ffffff;
  --surface: #f4f4f2;
  --ink: #3c3c3b;
  --muted: #6b6b68;
  --line: #e3e3df;
  --accent: #094a39;
  --accent-ink: #ffffff;
  --accent-soft: #e3efea;
  --accent-hi: #8dc2b6;
  --accent-hi-ink: #232323;
  --accent-hi-soft: #e7f2ef;
  --btn: #094a39;
  --btn-ink: #ffffff;
  --dot: #094a39;
  --wa: #17773f;
  --logo-filter: none;
  --shadow: 0 1px 0 rgba(35, 35, 35, .04), 0 24px 48px -32px rgba(35, 35, 35, .28);
  color-scheme: light;

  --f-display: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Albert Sans", system-ui, sans-serif;

  --s-1: .8125rem; --s0: 1.0625rem; --s1: 1.25rem; --s2: 1.6rem; --s3: 2.2rem; --s4: clamp(2.3rem, 4.6vw, 3.8rem); --s5: clamp(2.8rem, 7vw, 6rem);
  --radius: 4px;
  --max: 1280px;
}
/* Fasce grigio caldo: le card diventano bianche */
.band--surface { --paper: #f4f4f2; --surface: #ffffff; --line: #e0e0db; }
/* Fascia antracite dei contatti; il modulo dentro resta una card chiara */
.band--accent {
  --paper: #3c3c3b; --surface: #474746; --ink: #ffffff; --muted: #cfcfca; --line: #5c5c5a;
  --accent: #8dc2b6; --accent-ink: #232323; --btn: #0c5c47; --btn-ink: #ffffff; --dot: #8dc2b6;
  background: var(--paper); color: var(--ink);
}
.band--accent .lead-form {
  --paper: #ffffff; --surface: #f4f4f2; --ink: #3c3c3b; --muted: #6b6b68; --line: #d9d9d4;
  --accent: #094a39; --accent-ink: #ffffff; --accent-soft: #e3efea; --btn: #094a39; --btn-ink: #ffffff; --dot: #094a39;
  color: var(--ink); color-scheme: light;
}
/* Fasce "invertite": qui --ink è il fondo e --paper il testo */
.band--ink, .site-footer { --ink: #2f2f2e; --paper: #ffffff; --line: #4b4b49; }
.offer { --ink: #f4f4f2; --paper: #3c3c3b; --line: #dcdcd7; }
/* Il pallino finale dei titoli del tema precedente non fa parte di questo stile */
.m-dot { display: none; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--s0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1, h2 { font-weight: 300; letter-spacing: -.02em; line-height: 1.04; }
strong, b { font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.band { padding-block: clamp(56px, 9vw, 112px); }
.band + .band { border-top: 1px solid var(--line); }
.band--surface { background: var(--paper); color: var(--ink); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink .muted { color: color-mix(in srgb, var(--paper) 68%, transparent); }

.label { font: 500 var(--s-1)/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label--accent { color: var(--accent); }
.muted { color: var(--muted); }
.lead { font-size: var(--s1); line-height: 1.55; max-width: 60ch; color: var(--muted); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.sec-head h2 { font-size: var(--s4); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 48px; width: auto; filter: var(--logo-filter); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button { font: 400 1rem var(--f-body); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); background: none; border: 0; color: var(--ink); cursor: pointer; }
.nav > a:hover, .nav-drop > button:hover, .nav > a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav > a.nav-cta { background: var(--btn); color: var(--btn-ink); padding: 12px 20px; margin-left: 10px; border-radius: 4px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--btn) 45%, transparent); animation: cta-ring 2.6s ease-out infinite; }
.nav > a.nav-cta:hover { background: var(--btn); box-shadow: 0 10px 24px -12px rgba(35, 35, 35, .45); animation: none; transform: translateY(-1px); }
@keyframes cta-ring { 0%, 55% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--btn) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) { .nav > a.nav-cta { animation: none; } }
.nav-drop { position: relative; }
.nav-drop .menu { position: absolute; top: calc(100% + 8px); left: -8px; width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: 8px; display: grid; }
.nav-drop .menu a { text-decoration: none; padding: 10px 14px; border-radius: 4px; display: grid; gap: 2px; }
.nav-drop .menu a:hover { background: var(--paper); }
.nav-drop .menu small { color: var(--muted); font-size: var(--s-1); }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .25s; }
@media (max-width: 960px) {
  .burger { display: block; }
  .nav { position: fixed; inset: calc(68px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); max-height: calc(100dvh - 68px); overflow: auto; box-shadow: var(--shadow); }
  .nav:not(.open) { display: none; }
  .nav-drop .menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 8px; }
  .nav > a, .nav-drop > button { padding: 12px; text-align: left; width: 100%; }
  .nav .btn { margin-top: 8px; justify-content: center; }
  .nav > a.nav-cta { margin-left: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 10px; font: 500 var(--s0)/1 var(--f-body); letter-spacing: .01em; text-decoration: none; padding: 17px 26px; border-radius: 4px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--btn); color: var(--btn-ink); }
.btn--accent:hover { box-shadow: 0 10px 24px -12px rgba(35, 35, 35, .45); filter: brightness(.97); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--sm { padding: 10px 16px; font-size: .9375rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.band--ink .btn--ghost { border-color: var(--paper); color: var(--paper); }
.band--ink .btn--accent { background: #0c5c47; color: #fff; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 128px) clamp(56px, 8vw, 112px); position: relative; }
.hero .wrap { position: relative; display: grid; gap: clamp(32px, 5vw, 72px); }
.hero-copy { max-width: 1040px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 6rem); }
@media (max-width: 900px) { .hero h1 { font-size: clamp(2.1rem, 7.6vw, 3.6rem); } }
.hero h1 em { font-style: normal; color: var(--accent); }
/* Hero a tutta larghezza con immagine, come cosentino.com: testo bianco leggero su foto scurita in basso */
.hero--img { min-height: clamp(560px, 86vh, 880px); display: grid; align-items: end; overflow: hidden; color: #fff;
  --ink: #ffffff; --muted: rgba(255, 255, 255, .86); --accent: #8dc2b6; --dot: #8dc2b6; padding-block: clamp(120px, 18vh, 200px) clamp(48px, 8vh, 88px); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 45%; z-index: 0; }
.hero--img::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(25, 25, 25, .74) 0%, rgba(25, 25, 25, .5) 50%, rgba(25, 25, 25, .12) 100%), linear-gradient(180deg, rgba(25, 25, 25, 0) 45%, rgba(25, 25, 25, .55) 100%); }
@media (max-width: 760px) { .hero--img::after { background: linear-gradient(180deg, rgba(25, 25, 25, .35) 0%, rgba(25, 25, 25, .62) 40%, rgba(25, 25, 25, .86) 100%); } }
.hero--img .wrap { z-index: 1; }
.hero--img h1 { font-weight: 200; letter-spacing: -.025em; line-height: 1.02; max-width: 18ch; }
.hero--img .lead { color: rgba(255, 255, 255, .88); }
.hero--img h1 em { color: #fff; background: #094a39; padding: 0 .18em .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-kicker { font: 400 var(--s1)/1.4 var(--f-body); letter-spacing: .01em; color: #fff; }
/* Hero della home su fondo chiaro: titolo leggibile, "dall'idea al cantiere" in verde */
.hero--home { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 64px); }
.hero--home h1 { font-weight: 300; letter-spacing: -.02em; line-height: 1.06; max-width: 20ch; color: #2a2a29; }
.hero--home h1 em { color: #094a39; font-weight: 400; }
.hero--home .hero-kicker { color: var(--muted); }
.hero--home .lead { max-width: 64ch; }
/* Immagine dell'Ingresso Vera Oeste in trasparenza dietro il titolo */
.hero--home { overflow: hidden; }
.hero-veil { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 62%; z-index: 0; }
.hero--home::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .78) 55%, rgba(255, 255, 255, .55) 100%); }
@media (max-width: 760px) { .hero--home::after { background: rgba(255, 255, 255, .84); } }
.hero--home .wrap { z-index: 1; }
.hero--home .lead, .hero--home .trust { color: #3c3c3b; }

/* ---------- Carosello "Progetti recenti" ---------- */
/* Stesso spazio sopra e sotto: la sezione successiva non aggiunge il suo margine superiore */
.ispira { padding-block: clamp(56px, 7vw, 88px); }
.ispira + .band { padding-top: 0; }
.ispira-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 24px; }
.ispira-head h2 { font-size: var(--s3); }
.ispira-all { font-weight: 500; color: var(--accent); text-decoration: none; white-space: nowrap; }
.ispira-all::after { content: " →"; }
.ispira-view { overflow: hidden; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.ispira-view.is-drag { cursor: grabbing; }
.ispira-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.ispira-item img { -webkit-user-drag: none; pointer-events: none; }
.ispira-item { flex: none; width: clamp(280px, 32vw, 440px); text-decoration: none; display: grid; gap: 10px; }
.ispira-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--surface); }
.ispira-item span { font-size: .9375rem; color: var(--muted); }
.ispira-item:hover span { color: var(--ink); }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9375rem; color: var(--muted); }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust span::before { content: ""; width: 7px; height: 7px; background: var(--dot); border-radius: 50%; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Interactive plan */
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 3px; position: relative; }
.seg button { position: relative; z-index: 1; font: 500 .8125rem var(--f-body); background: none; border: 0; padding: 7px 12px; border-radius: 4px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
/* Le tavole sono disegni su carta bianca: restano su foglio bianco anche nel tema scuro */
.plan-sheet { position: relative; aspect-ratio: 1830 / 1290; max-width: 100%; background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.plan-sheet .pl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s ease; }
.plan[data-state="fatto"] .pl-fatto, .plan[data-state="gr"] .pl-gr, .plan[data-state="progetto"] .pl-progetto { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 .75rem var(--f-mono); color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 6px; margin-right: 6px; vertical-align: middle; }
.plan-note { font-size: .875rem; color: var(--muted); min-height: 2.8em; }

/* ---------- Offer strip ---------- */
.offer { background: var(--ink); color: var(--paper); }
.offer .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding-block: 28px; }
.price { font: 700 var(--s4)/1 var(--f-display); letter-spacing: -.03em; }
.price small { font: 500 var(--s-1) var(--f-mono); letter-spacing: .06em; display: block; margin-top: 8px; color: color-mix(in srgb, var(--paper) 65%, transparent); text-transform: uppercase; }
.offer h2 { font-size: var(--s2); margin-bottom: 6px; }
.offer p { color: color-mix(in srgb, var(--paper) 72%, transparent); max-width: 62ch; }
@media (max-width: 860px) { .offer .wrap { grid-template-columns: 1fr; } }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.service { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; transition: border-color .2s, transform .2s; }
.service:hover { border-color: var(--ink); transform: translateY(-3px); }
.service h3 { font-size: var(--s2); }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9375rem; color: var(--muted); }
.service li::before { content: "— "; color: var(--accent); }
.service .go { font-weight: 600; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.service .go::after { content: "→"; transition: transform .2s; }
.service:hover .go::after { transform: translateX(4px); }
.icon-box { width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 4px; display: grid; place-items: center; }
.icon-box svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.5; }

.cost-card { display: grid; gap: 12px; align-content: start; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.cost-card b { font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cost-card b small { font: 500 .875rem var(--f-mono); letter-spacing: 0; color: var(--muted); }
.cost-card:nth-child(1) { border-top: 4px solid var(--accent-hi); }
.cost-card:nth-child(2) { border-top: 4px solid var(--ink); }
.cost-card:nth-child(3) { border-top: 4px solid var(--accent); }
.offer .price { font-size: var(--s3); }

.project { display: grid; gap: 14px; text-decoration: none; }
.project figure { margin: 0; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.project:hover img { transform: scale(1.04); }
.project h3 { font-size: var(--s1); letter-spacing: -.01em; }
.project .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font: 500 .75rem var(--f-mono); padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.placeholder-draw { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--line) 50%, transparent) 10px 11px); }
.placeholder-draw svg { width: 80%; stroke: var(--ink); fill: none; stroke-width: 1.4; }

/* ---------- Enti pubblici ---------- */
.pa-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: pa; }
@media (max-width: 900px) { .pa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pa-grid { grid-template-columns: 1fr; } }
.pa-card { counter-increment: pa; display: grid; gap: 10px; align-content: start; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.pa-card::before { content: counter(pa, decimal-leading-zero); font: 500 var(--s-1) var(--f-mono); color: var(--accent); }
.pa-card h3 { font-size: var(--s1); letter-spacing: -.01em; }
.pa-card p { font-size: .9375rem; color: var(--muted); }
.pa-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { padding: 22px 18px 0 0; display: grid; gap: 8px; align-content: start; position: relative; counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); font: 500 var(--s-1) var(--f-mono); color: var(--accent); }
.step::after { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.step h3 { font-size: var(--s1); letter-spacing: -.01em; }
.step p { font-size: .9375rem; color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); padding-left: 20px; } .step { padding-top: 0; } .step::after { top: 4px; left: -25px; } }

/* ---------- Tools: wizard + estimator ---------- */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tool-q, .tool-a { padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.tool-a { background: var(--paper); border-left: 1px solid var(--line); }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } .tool-a { border-left: 0; border-top: 1px solid var(--line); } }
.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .35s; }
.q-title { font: 700 var(--s2)/1.15 var(--f-display); letter-spacing: -.02em; }
.choices { display: grid; gap: 10px; }
.choice { text-align: left; font: 500 var(--s0)/1.35 var(--f-body); padding: 14px 16px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; display: grid; gap: 2px; transition: border-color .15s, background .15s; }
.choice small { color: var(--muted); font-weight: 400; font-size: .875rem; }
.choice:hover { border-color: var(--ink); }
.choice.sel { border-color: var(--accent); background: var(--accent-soft); }
.tool-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.linkbtn { background: none; border: 0; padding: 6px 0; font: 500 .9375rem var(--f-body); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.verdict { display: grid; gap: 12px; }
.verdict .big { font: 800 clamp(2.4rem, 6vw, 4rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--accent); }
.verdict ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: .9375rem; }
.fine { font-size: .8125rem; color: var(--muted); line-height: 1.5; }

.field { display: grid; gap: 8px; }
.field > label, .field > .flabel { font-weight: 600; font-size: .9375rem; display: flex; justify-content: space-between; gap: 8px; }
.field output { font: 600 .9375rem var(--f-mono); color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 9px 14px; border-radius: 4px; border: 1.5px solid var(--line); font-size: .9375rem; transition: all .15s; }
.pills input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.est-out { display: grid; gap: 4px; }
.est-num { font: 800 clamp(2rem, 5vw, 3.2rem)/1.05 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .875rem; }
.bar .track { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--ink); border-radius: 6px; transition: width .4s; }
.bar .fill.r { background: var(--accent); }
.bar .fill.y { background: var(--accent-hi); }
.bar b { font: 600 .8125rem var(--f-mono); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .bar { grid-template-columns: 90px minmax(0, 1fr) auto; } }
.timeline { display: flex; gap: 3px; height: 34px; border-radius: 6px; overflow: hidden; }
.timeline div { display: grid; place-items: center; font: 500 .6875rem var(--f-mono); color: var(--paper); background: var(--ink); min-width: 0; overflow: hidden; white-space: nowrap; transition: flex-grow .4s; }
.timeline div:nth-child(2) { background: var(--muted); }
.timeline div:nth-child(3) { background: var(--accent); color: var(--accent-ink); }
.timeline div:nth-child(4) { background: var(--accent-hi); color: var(--accent-hi-ink); }

/* ---------- Form ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 3.5vw, 36px); display: grid; gap: 20px; box-shadow: var(--shadow); }
.lead-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .lead-form .row { grid-template-columns: 1fr; } }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form input[type="tel"], .lead-form select, .lead-form textarea {
  width: 100%; font: 400 var(--s0) var(--f-body); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 12px 2px; }
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); }
.form-steps { display: flex; gap: 6px; }
.form-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.form-steps i.on { background: var(--accent); }
.fstep { display: grid; gap: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--accent); }
.err { color: var(--accent); font-size: .875rem; font-weight: 500; }
.done { display: grid; gap: 14px; }
.done pre { white-space: pre-wrap; font: 400 .8125rem/1.5 var(--f-mono); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 0; max-height: 240px; overflow: auto; }
.contact-list { display: grid; gap: 18px; margin-top: 28px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list a { font-weight: 600; text-decoration: none; }

/* ---------- Content pages ---------- */
.crumbs { font: 500 .8125rem var(--f-mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-hero { padding-block: clamp(36px, 6vw, 72px) clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); position: relative; }
.page-hero .wrap { display: grid; gap: 22px; }
.page-hero h1 { font-size: var(--s4); max-width: 22ch; }
/* Titolo affiancato da un visualizzatore (pagina ristrutturazioni) */
.page-hero__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.page-hero__copy { display: grid; gap: 22px; align-content: center; min-width: 0; }
@media (max-width: 900px) { .page-hero__split { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 4px; background: var(--surface); overflow: hidden; }
.facts div { padding: 18px 20px; display: grid; gap: 4px; border-right: 1px solid var(--line); min-width: 0; }
.facts div:last-child { border-right: 0; }
.facts b { font: 700 var(--s2)/1.1 var(--f-display); letter-spacing: -.02em; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.article { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 6vw, 80px); }
.toc { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); align-self: start; display: grid; gap: 4px; font-size: .9375rem; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 0 6px 14px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--accent); }
.toc .btn { margin-top: 18px; justify-content: center; color: var(--btn-ink); border-left: 0; padding: 10px 16px; }
.toc .btn:hover { color: var(--btn-ink); }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .toc { position: static; display: none; } }
.prose { display: grid; gap: 22px; max-width: 72ch; min-width: 0; }
.prose h2 { font-size: var(--s3); margin-top: 28px; scroll-margin-top: 96px; }
.prose h3 { font-size: var(--s1); letter-spacing: -.01em; margin-top: 8px; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.7; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose strong { font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); padding: 18px 20px; border-radius: 8px; display: grid; gap: 6px; font-size: .9875rem; }
.callout--accent { border-left-color: var(--accent); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 .75rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.case { display: grid; gap: 10px; padding: 22px; border: 1px dashed var(--line); border-radius: 4px; }
.case .label { color: var(--accent); }

.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font: 600 1.0625rem/1.4 var(--f-body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.6rem/1 var(--f-mono); color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); display: grid; gap: 10px; max-width: 70ch; }

.zone-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.zone-links a { text-decoration: none; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); display: grid; gap: 4px; transition: border-color .2s; }
.zone-links a:hover { border-color: var(--accent); }
.zone-links b { font-family: var(--f-display); font-size: var(--s1); }
@media (max-width: 900px) { .zone-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .zone-links { grid-template-columns: 1fr; } }

.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.guides a { text-decoration: none; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; transition: color .2s; }
.guides a:hover h3 { color: var(--accent); }
.guides h3 { font-size: var(--s1); letter-spacing: -.01em; transition: color .2s; }
.guides p { font-size: .9375rem; color: var(--muted); }
@media (max-width: 900px) { .guides { grid-template-columns: 1fr; } }

.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.cta-band h2 { font-size: var(--s4); }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Progetti ---------- */
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
@media (max-width: 900px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pj-grid { grid-template-columns: 1fr; } }
.pj { display: grid; gap: 12px; text-align: left; background: none; border: 0; padding: 0; color: var(--ink); cursor: zoom-in; font: inherit; }
.pj figure { margin: 0; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.pj img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pj:hover img, .pj:focus-visible img { transform: scale(1.04); }
.pj figure::after { content: "Sfoglia ↗"; position: absolute; right: 12px; bottom: 12px; font: 500 .75rem var(--f-mono); background: var(--surface); color: var(--ink); padding: 6px 10px; border-radius: 4px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.pj:hover figure::after, .pj:focus-visible figure::after { opacity: 1; transform: none; }
.pj-meta { display: grid; gap: 6px; }
.pj-meta b { font: 700 var(--s1)/1.2 var(--f-display); letter-spacing: -.01em; }
.pj-sub { display: flex; gap: 10px; align-items: center; font-size: .875rem; }
.pj-serv { font-size: .875rem; line-height: 1.45; color: var(--accent); }
.pj-kicker { font: 500 var(--s-1) var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex-basis: 100%; }
.chips, .pj-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-jump { margin-top: 20px; }
.pj-jump .chip { text-decoration: none; }
.pj-jump .chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.pj-group { scroll-margin-top: 90px; }
.pj-group + .pj-group { margin-top: 56px; }
.pj-group-h { font-size: var(--s2, 1.5rem); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pj-group-h .muted { font: 500 .9375rem var(--f-body); }
.chip { font: 500 .9375rem var(--f-body); padding: 9px 16px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); }

.lb { position: fixed; inset: 0; z-index: 80; background: rgba(35, 35, 35, .97); color: #ffffff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); gap: 12px; }
.lb .muted { color: #b9b9b4; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--f-display); font-size: var(--s1); }
.lb-serv { display: block; margin-top: 4px; font: 400 .875rem/1.4 var(--f-body); color: #8dc2b6; }
.lb-serv:empty { display: none; }
.lb-x, .lb-nav { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 1.2rem; cursor: pointer; flex: none; }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 0; }
/* Colonne fisse: con una sola immagine le frecce spariscono ma l'immagine resta nella colonna centrale */
.lb-stage img { grid-column: 2; grid-row: 1; justify-self: center; max-width: 100%; max-height: 100%; width: auto; height: auto; margin: auto; object-fit: contain; border-radius: 4px; min-height: 0; }
.lb-nav[data-lb-prev] { grid-column: 1; grid-row: 1; }
.lb-nav[data-lb-next] { grid-column: 3; grid-row: 1; }
@media (max-width: 700px) { .lb-stage { grid-template-columns: minmax(0, 1fr); } .lb-stage img { grid-column: 1; } .lb-nav { display: none; } }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; justify-content: safe center; padding-bottom: 4px; }
.lb-thumbs button { flex: none; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.lb-thumbs button.on { border-color: #8dc2b6; opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.send-pair { display: flex; flex-wrap: wrap; gap: 10px; }
.wiz-send { display: grid; gap: 10px; padding: 18px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); }

/* ---------- Strumenti in home ---------- */
.tools-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .tools-2 { grid-template-columns: 1fr; } }
.tool-card { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; transition: border-color .2s, transform .2s; }
.tool-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.tool-card h3 { font-size: var(--s2); font-weight: 300; }
.tool-card p { color: var(--muted); }
.tool-card .go { font-weight: 500; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.tool-card .go::after { content: "→"; transition: transform .2s; }
.tool-card:hover .go::after { transform: translateX(4px); }

/* ---------- Calcolatore costi ---------- */
.calc { margin-top: 48px; }
.calc .tool-q { gap: 22px; }
.calc .row-2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.calc .est-num { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
@media (max-width: 560px) { .calc .row-2 { grid-template-columns: 1fr; } }
.calc .btn { justify-self: start; }
.c-select, .c-input { width: 100%; font: 400 var(--s0) var(--f-body); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 11px 2px; }
.c-select option, .lead-form select option { background: var(--paper); color: var(--ink); }
.c-select:focus, .c-input:focus { outline: none; border-color: var(--accent); }
.calc .tool-a > div { display: grid; gap: 18px; align-content: start; }
.calc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.calc-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; display: grid; gap: 4px; }
.calc-facts dt { font: 500 .75rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.calc-facts dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .calc-facts { grid-template-columns: 1fr; } }
.calc-send { display: grid; gap: 12px; padding: 18px; border-radius: 4px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.calc-send .c-input { background: var(--surface); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 56px 72px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1100px) { .site-footer .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.site-footer h4 { font: 500 var(--s-1) var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 60%, transparent); margin-bottom: 14px; }
.site-footer a { text-decoration: none; display: block; padding: 3px 0; color: var(--paper); opacity: .9; }
.site-footer a:hover { opacity: 1; color: #8dc2b6; }
.site-footer p { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: .9375rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); padding-top: 20px; font-size: .8125rem; color: color-mix(in srgb, var(--paper) 55%, transparent); }
.foot-brand img { height: clamp(52px, 6vw, 72px); width: auto; filter: invert(1); margin-bottom: 20px; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Floating WhatsApp (desktop) */
.wa-float { position: fixed; right: max(24px, calc(env(safe-area-inset-right, 0px) + 16px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0,0,0,.5); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.site-footer .legal a { display: inline; color: inherit; text-decoration: underline; margin: 0; padding: 0; }

/* ---------- Banner cookie ---------- */
.cookie-bar { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 440px; width: calc(100% - 32px);
  background: #fff; color: #2a2a29; border: 1px solid #dcdcd7; border-radius: 4px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.35); padding: 18px; display: grid; gap: 14px; }
.cookie-bar p { font-size: .875rem; line-height: 1.5; margin: 0; }
.cookie-act { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-bar .btn--ghost { border-color: #2a2a29; color: #2a2a29; }
@media (max-width: 560px) { .cookie-bar { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } .cookie-act .btn { flex: 1; } }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 720px) { .wa-float { display: none; } }

/* ---------- Animazioni allo scorrimento ----------
   Attive solo con JavaScript (classe .anim-on su <html>) e senza "riduci movimento": senza, tutto è visibile e fermo.
   site.js marca gli elementi con .sa, li nasconde con .sa-pre e toglie .sa-pre quando entrano nello schermo;
   --sa-d è il ritardo a cascata tra elementi vicini. */
.anim-on .sa { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--sa-d, 0ms); }
.anim-on .sa.sa-pre { opacity: 0; transform: translateY(36px); }
.anim-on .sa-pre.service, .anim-on .sa-pre.pa-card, .anim-on .sa-pre.cost-card, .anim-on .sa-pre.plan-card, .anim-on .sa-pre.tool, .anim-on .sa-pre.lead-form { transform: translateY(48px) scale(.97); }
.anim-on .pj img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.anim-on .pj.sa-pre img { transform: scale(1.14); }
.m-dot { transition: transform .55s cubic-bezier(.3, 1.6, .5, 1) .45s; }
.anim-on .sa-pre .m-dot, .anim-on .sa-pre.m-dot { transform: scale(0); }
.step::after { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) .35s; }
.anim-on .step.sa-pre::after { transform: scale(0); }
.scroll-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: var(--btn); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.site-header { transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(35, 35, 35, .35); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .scroll-bar { display: none; }
}
