/* ==========================================================================
   Landing Edilcoop — Rifacimento tetto
   Stile sobrio, coerente con edilcoopbo.com. Niente gradienti, vetro, glow.
   ========================================================================== */

@font-face { font-family: "Titillium Web"; src: url("../fonts/titillium-web-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Font di riserva con le stesse misure: quando arrivano Titillium e Lato il testo non si sposta (CLS) */
@font-face { font-family: "Titillium Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 700; size-adjust: 87.3%; ascent-override: 129.8%; descent-override: 44.4%; line-gap-override: 0%; }
@font-face { font-family: "Lato Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 97.6%; ascent-override: 101.1%; descent-override: 21.8%; line-gap-override: 0%; }

:root {
  --yellow: #f6d706;
  --navy: #0e1a2b;
  --navy-2: #1f2d42;
  --red: #ac2229;
  --red-dark: #8e1b21;
  --light: #f0eeee;
  --hero-bg: #f0eeee;       /* apertura: stesso grigio delle sezioni */
  --roof: 44px;
  --red-tint: #f8e6e7;       /* fondo tenue delle icone: stesso rosso del marchio */             /* altezza della punta dei divisori a tetto */
  --white: #ffffff;
  --muted: #4a4f57;
  --on-dark-muted: #c9ced6;
  --red-on-dark: #e8828a;
  --wa: #25d366;
  --call: #15803d;          /* verde del numero verde: bianco 5.02:1 */
  --call-dark: #116530;
  --line: #d9d4d4;          /* solo bordi decorativi */
  --line-on-light: #c9c4c4; /* separatori su fondo --light */
  --field-border: #7a7f88;  /* 4.02:1 su bianco */
  --star: #e0a800;          /* decorativo, affiancato da testo per screen reader */

  --font-head: "Titillium Web", "Titillium Fallback", system-ui, sans-serif;
  --font-body: "Lato", "Lato Fallback", system-ui, sans-serif;

  --radius: 8px;
  --pill: 999px;
  --gutter: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --container: 1200px;
  --space-section: 72px;
  --sticky-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --measure: 31em;          /* ~75 caratteri per riga in Lato */
  --tap: 44px;              /* area minima di tocco */

  /* Scala di spaziatura (base 4px): unica per tutta l'apertura, niente valori inventati */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --radius-card: 14px;      /* stesso raggio per riquadro offerta e modulo */
}

@media (min-width: 768px) {
  :root { --gutter: max(24px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); --space-section: 112px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  /* WCAG 2.4.11: la barra fissa mobile non deve coprire l'elemento con focus */
  scroll-padding-bottom: calc(var(--sticky-h) + var(--safe-b) + 16px);
}

@media (min-width: 960px) {
  html { scroll-padding-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  padding-bottom: calc(var(--sticky-h) + var(--safe-b));
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1, h2 { text-transform: uppercase; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.375rem); }
h2 { font-size: clamp(1.625rem, 1.1rem + 2.1vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }   /* evita parole isolate a fine paragrafo */
/* Frasi brevi (sottotitoli, didascalie, note): righe di lunghezza simile invece di una parola sola a capo */
.lead, figcaption, .callband p, .form-card__sub, .zone__ask { text-wrap: balance; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--yellow); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); color: var(--navy); padding: 12px 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.section { padding-block: var(--space-section); }
.section--light { background: var(--light); }
.section--navy { background: var(--navy); color: var(--white); }

.section-head { margin-bottom: 2.5rem; }
.section-head p { margin-bottom: 0; }
.lead { font-size: 1.1875rem; max-width: var(--measure); }
.hl { color: var(--red); }
.on-dark .hl { color: var(--yellow); }
.cta-row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

figure { margin: 0; }
figcaption { font-size: 0.9375rem; color: var(--muted); margin-top: 0.5rem; max-width: var(--measure); }
.on-dark figcaption { color: var(--on-dark-muted); }

/* --- Bottoni --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.75rem 1.5rem;
  border: 0; border-radius: var(--pill);
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem;
  text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none;
  cursor: pointer; transition: background-color 0.15s ease;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover, .btn--red:active { background: var(--red-dark); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover, .btn--navy:active { background: var(--navy-2); }
.btn--call { background: var(--call); color: var(--white); }
.btn--call:hover, .btn--call:active { background: var(--call-dark); }
.btn--wa { background: var(--white); color: var(--navy); }
.btn--wa .icon { color: #128c4a; }
.btn--wa:hover, .btn--wa:active { box-shadow: inset 0 0 0 2px #128c4a; }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover, .btn--ghost:active { background: var(--light); }
.btn--block { width: 100%; }
.btn--big { min-height: 60px; font-size: 1.375rem; padding-inline: 1.75rem; }
.btn[disabled], .btn[disabled]:hover { opacity: 0.6; cursor: progress; }
.btn--red[disabled]:hover { background: var(--red); }

/* --- Icone (sprite Phosphor: fill per l'interfaccia, duotone per le illustrative) --- */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: currentColor;
}
.icon-badge { display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--red-tint); color: var(--red); }
.icon-badge .icon { width: 36px; height: 36px; }   /* Material ha margine interno: 36px ≈ 32px Font Awesome */
.on-dark .icon-badge { background: rgba(246, 215, 6, 0.14); color: var(--yellow); }

/* --- Liste con spunta / croce --- */
.list-check, .list-x { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.list-check li, .list-x li { display: flex; gap: 0.625rem; align-items: flex-start; max-width: var(--measure); }
.list-check .icon, .list-x .icon { margin-top: 0.15em; color: var(--red); }
.on-dark .list-check .icon { color: var(--yellow); }
.on-dark .list-x .icon { color: var(--red-on-dark); }

/* ==== Testata ==== */
.site-header { background: var(--yellow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; padding-block: 0.625rem; }
@media (min-width: 768px) { .site-header__inner { min-height: 100px; } }
.site-header__logo { width: 150px; height: auto; }
@media (min-width: 768px) { .site-header__logo { width: 180px; } }
.site-header .btn { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
@media (max-width: 419px) { .site-header__label { display: none; } }

/* ==== Apertura ==== */

/* ==== Modulo ==== */
.form-card { background: var(--white); color: var(--navy); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 12px 32px rgba(14, 26, 43, 0.25); }
@media (min-width: 768px) { .form-card { padding: 2rem; } }
.form-card :focus-visible { outline-color: var(--red); }
.form-card__title { font-size: 1.625rem; margin-bottom: 0.25rem; }
.form-card__sub { color: var(--muted); margin-bottom: 1.25rem; }
.form-card__phone { margin: 0.5rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.form-card__phone a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--navy); font-weight: 700; }
.scope { border: 2px solid; border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 0.875rem; }
.scope--yes { border-color: var(--call); margin-bottom: 1.5rem; }
.scope__item { display: flex; gap: 0.625rem; align-items: flex-start; margin: 0; font-size: 1.0625rem; max-width: none; }
.scope__item .icon { flex: none; margin-top: 0.15em; color: var(--call); }
.step { border: 0; margin: 0; padding: 0; display: grid; gap: 1rem; min-width: 0; }
.step legend { padding: 0; margin-bottom: 1rem; font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.field { display: grid; gap: 0.375rem; }
.field label { font-weight: 700; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.875rem;
  font: inherit; color: var(--navy); background: var(--white);
  border: 1.5px solid var(--field-border); border-radius: var(--radius);
}
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--light); cursor: not-allowed; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--red); border-width: 2px; }
.field__err { margin: 0; color: var(--red); font-size: 1rem; font-weight: 700; }
.field__err:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; }
.field--check input { width: 24px; height: 24px; min-height: 0; margin: 0.15rem 0 0; accent-color: var(--red); }
.field--check label { font-weight: 400; }
.field--check .field__err { grid-column: 1 / -1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.step__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.step__actions .btn--red { flex: 1; }
.form-msg { margin: 1rem 0 0; font-weight: 700; }
.form-msg:not(:empty) { padding: 0.875rem 1rem; background: var(--light); border-radius: var(--radius); }
.form-msg:empty { display: none; }

/* ==== Confronto ==== */
.compare { display: grid; gap: 1rem; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; gap: 0; } }
.compare__col { padding: 1.75rem; border-radius: var(--radius); }
.compare__col--bad { background: var(--white); }
.compare__col--good { background: var(--navy); color: var(--white); }
@media (min-width: 860px) {
  .compare__col--bad { border-radius: var(--radius) 0 0 var(--radius); }
  .compare__col--good { border-radius: 0 var(--radius) var(--radius) 0; }
}
.compare h3 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 1.25rem; }
.compare__col--good h3 { color: var(--yellow); }

.compare__photos { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .compare__photos { grid-template-columns: 1fr 1fr; } }
.compare__photos figure { margin: 0; }
.compare__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.compare__photos figure:first-child img { object-position: 50% 80%; }
/* villetta dal drone: ritaglio 4:3 come il riquadro, tetto intero e telone Edilcoop visibili */

/* ==== Certificazioni ==== */
.certs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.certs li { display: grid; gap: 0.375rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .certs li { grid-template-columns: minmax(260px, 24rem) 1fr; gap: 2rem; align-items: center; } }
.cert__name { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; text-transform: uppercase; }
.cert__name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.9375rem; text-transform: none; color: var(--muted); }
.cert__desc { margin: 0; }

/* ==== Fascia telefono ==== */
.callband { background: var(--yellow); color: var(--navy); padding-block: 40px; }
.callband__inner { display: grid; gap: 1.25rem; align-items: center; justify-items: start; }
@media (min-width: 900px) { .callband__inner { grid-template-columns: auto 1fr auto; gap: 2rem; } }
.callband__mascot { width: 120px; }
@media (min-width: 768px) { .callband__mascot { width: 150px; } }
.callband h2 { margin-bottom: 0.25rem; }
.callband p { margin: 0; }
.callband__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.callband :focus-visible { outline-color: var(--navy); }

/* ==== Recensioni ==== */
/* Schede recensione: testo originale, stelle Phosphor, iniziali al posto della foto profilo */
.rcards { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 1rem; align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gutter)); padding: 0.25rem var(--gutter) 1rem; scroll-padding-inline: var(--gutter); }
.rcard { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(14, 26, 43, 0.06), 0 8px 24px rgba(14, 26, 43, 0.08); border-top: 4px solid var(--yellow); }
.rcard__head { display: flex; align-items: center; gap: 0.75rem; margin: 0; max-width: none; color: var(--navy); }
.rcard__avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.rcard__avatar--1 { background: #ac2229; }
.rcard__avatar--2 { background: #2e6b3a; }
.rcard__avatar--3 { background: #9a4f00; }
.rcard__avatar--4 { background: #0e1a2b; }
.rcard__avatar--5 { background: #8e1b21; }
.rcard__avatar--6 { background: #1a5fb4; }
.rcard__avatar--7 { background: #6b3fa0; }
.rcard__avatar--8 { background: #00695c; }
.rcard__avatar--9 { background: #37474f; }
.rcard__who { display: grid; line-height: 1.3; }
.rcard__who strong { font-size: 1.0625rem; }
.rcard__who span { font-size: 0.875rem; color: var(--muted); }
.rcard__stars { display: flex; gap: 2px; margin: 0; color: var(--star); }
.reviews-count__stars { display: flex; gap: 2px; color: var(--star); }
.reviews-count__stars .icon { width: 20px; height: 20px; }
.rcard__stars .icon { width: 20px; height: 20px; }
.icon--fill { fill: currentColor; stroke: none; }
.rcard__text { margin: 0; }
.rcard__text p { margin: 0 0 0.5em; }
.rcard__text p:last-child { margin-bottom: 0; }
.rcard__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
.rcard__more { align-self: flex-start; min-height: var(--tap); padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--red); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.reviews-head { display: grid; gap: 1rem; }
@media (min-width: 1100px) { .reviews-head { grid-template-columns: 1fr auto; align-items: end; gap: 2rem; } }
.reviews-head .reviews-count { justify-self: start; }
.reviews-count { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0; padding: 0.75rem 1rem; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(14, 26, 43, 0.06); }
.reviews-count strong { font-family: var(--font-head); font-size: 1.125rem; }
.reviews-foot { display: grid; justify-items: center; gap: 1rem; margin-top: 1rem; text-align: center; }
.reviews-foot__swipe { display: inline-flex; align-items: center; gap: 0.375rem; margin: 0; font-weight: 700; }
@media (min-width: 1000px) { .reviews-foot__swipe { display: none; } }
@media (max-width: 999px) { .reviews-foot__btn { display: none; } }
@media (min-width: 1000px) { .rcards.is-collapsed .rcard--extra { display: none; } }
.rcard__shot { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.375rem; min-height: var(--tap); padding: 0; border: 0; background: none; font: inherit; font-size: 0.9375rem; font-weight: 700; color: var(--navy); cursor: pointer; }
.rcard__shot:hover { text-decoration: underline; text-underline-offset: 3px; }
.rcard__shot .icon { color: var(--muted); }
.rcard__more + .rcard__shot { margin-top: -0.75rem; }
.shot { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 1rem 1rem 0.75rem; border: 0; border-top: 4px solid var(--yellow); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(14, 26, 43, 0.4); color: var(--navy); }
.shot::backdrop { background: rgba(14, 26, 43, 0.72); }
.shot__title { margin: 0 3rem 0.75rem 0; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; }
.shot__close { position: absolute; top: 0.5rem; right: 0.5rem; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--navy); cursor: pointer; }
.shot__img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.shot__note { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted); }
.rcard__tag { max-width: none; margin: 0; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.rcard__img { display: none; width: 100%; height: auto; border-radius: 2px; }
/* Da tablet in su lo screenshot vero è la scheda (dimensione quasi nativa, testo nitido).
   Sotto i 640 px lo screenshot sarebbe illeggibile: resta la scheda con il testo. */
@media (min-width: 640px) and (max-width: 999px) { .rcards { grid-auto-columns: 46%; } }
@media (min-width: 1000px) {
  .rcards { display: block; columns: 2; column-gap: 1.5rem; max-width: none; margin-inline: 0; overflow: visible; padding: 0; }
  .rcard { display: inline-flex; width: 100%; gap: 0; padding: 0.75rem; break-inside: avoid; margin-bottom: 1.5rem; }
  .rcard__head, .rcard__stars, .rcard__text, .rcard__more, .rcard__shot { display: none !important; }
  .rcard__img { display: block; }
  .rcard__tag { margin-top: 0.75rem; padding: 0.625rem 0.25rem 0.125rem; }
}

/* ==== Come lavoriamo ==== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: passo; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.steps li { counter-increment: passo; padding-top: 1rem; border-top: 4px solid var(--navy); }
.steps li { position: relative; }
.steps__icon { position: absolute; top: 1rem; right: 0; }
.steps li::before { content: counter(passo); display: block; margin-bottom: 0.5rem; font-family: var(--font-head); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--red); }
.steps h3 { margin-bottom: 0.25rem; padding-right: 4rem; }
.steps p { margin: 0; }

/* ==== Costi ==== */
.prose > * { max-width: 820px; }
.prose h3 { margin-top: 2rem; }
.factors { list-style: none; margin: 1rem 0 2rem; padding: 0; border-bottom: 1px solid var(--line-on-light); }
.factors li { padding-block: 0.875rem; border-top: 1px solid var(--line-on-light); }
.factors strong { display: block; }
.infobox { max-width: 36rem; margin-top: 1.25rem; padding: 1.25rem 1.5rem; background: var(--white); border-radius: var(--radius); }   /* box stretto quanto il testo */
.infobox h3 { margin: 0 0 0.5rem; }
.infobox p { margin: 0; }

/* ==== Zone e sedi ==== */
.chips { list-style: none; margin: 0 0 2.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.375rem 0.875rem; background: var(--light); border-radius: var(--radius); font-weight: 700; }   /* niente pillola: non è un pulsante */
.zone-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .zone-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; } }
.zone-map img { width: 100%; max-width: 600px; margin-inline: auto; }
.zone-map figcaption { text-align: center; margin-inline: auto; }
.chips li { display: inline-flex; align-items: center; gap: 0.375rem; }
.chips .icon { color: var(--red); }
.zone__ask { font-weight: 700; margin-bottom: 0; }
.zone__ask span, .lead--lines span { display: block; }

/* ==== Modulo finale ==== */
.final { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .final { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.not-doing__title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; margin: 0 0 0.5rem; }
.final .not-doing__title { margin-top: 1.5rem; color: var(--yellow); }
.final__phone { margin-top: 2rem; font-size: 1.125rem; }
.final__phone a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--yellow); font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }

/* ==== FAQ ==== */
.faq > * { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.125rem; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 1.1875rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq summary .icon { transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0 0 1.25rem; }

/* ==== Piè di pagina ==== */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding-block: 48px; font-size: 0.9375rem; }
.site-footer a, .site-footer strong { color: var(--white); }
.site-footer p { margin: 0; }
.site-footer__grid p { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.3em; min-height: var(--tap); }
.site-footer a { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: auto 1fr 1fr; } }
.site-footer__logo { width: 160px; padding: 0.625rem 0.75rem; background: var(--yellow); border-radius: var(--radius); }
.site-footer__legal span { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--navy-2); }
.linkbtn { min-height: var(--tap); padding: 0; border: 0; background: none; font: inherit; color: var(--white); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ==== Barra fissa mobile ==== */
/* Barra attaccata al bordo: niente fessure tra i pulsanti, colore che scende sotto l'area sicura
   dell'iPhone e oltre il bordo (rimbalzo dello scroll), icone grandi da pollice. */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--navy); box-shadow: 0 -6px 18px rgba(14, 26, 43, 0.2); transform: translateZ(0); }
.sticky a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; min-height: var(--sticky-h); padding: 0.625rem 0.25rem calc(0.625rem + var(--safe-b)); background: var(--bg, var(--navy)); box-shadow: 0 80px 0 0 var(--bg, var(--navy)); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; -webkit-tap-highlight-color: transparent; }
.sticky a span { white-space: nowrap; }
.sticky a small { font-size: 0.75rem; letter-spacing: 0.04em; opacity: 0.9; }
.sticky .icon { width: 28px; height: 28px; }
@media (max-width: 359px) { .sticky a { font-size: 0.8125rem; letter-spacing: 0; } .sticky a small { font-size: 0.6875rem; } .sticky .icon { width: 26px; height: 26px; } }
.sticky__call { --bg: var(--call); color: var(--white); }
.sticky__call:active { --bg: var(--call-dark); }
.sticky__wa { --bg: var(--white); color: var(--navy); }
.sticky__wa .icon { color: #128c4a; }
.sticky__wa:active { --bg: var(--light); }
.sticky__cta { --bg: var(--red); color: var(--white); }
.sticky .sticky__cta:active { --bg: var(--red-dark); }
.sticky :focus-visible { outline: 3px solid var(--navy); outline-offset: -4px; }
.sticky__call:focus-visible, .sticky__cta:focus-visible { outline-color: var(--yellow); }
@media (min-width: 960px) { .sticky { display: none; } }

/* ==== Banner cookie ==== */
.cookie { position: fixed; z-index: 50; left: var(--gutter); right: var(--gutter); bottom: calc(var(--sticky-h) + var(--safe-b) + 12px); max-width: 560px; padding: 1.25rem 1.25rem 1rem; background: var(--white); color: var(--navy); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(14, 26, 43, 0.35); }
@media (min-width: 960px) { .cookie { left: 24px; right: auto; bottom: 24px; } }
.cookie__title { margin: 0 3rem 0.5rem 0; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; }
.cookie p { font-size: 0.9375rem; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cookie__actions .btn { min-height: 48px; }
.cookie__close { position: absolute; top: 0.25rem; right: 0.25rem; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--navy); cursor: pointer; }
.zone-grid .chips { margin-bottom: 1.5rem; }

.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 0.75rem; }
@media (min-width: 960px) { .works { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.work { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.work img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.work--wide { grid-column: span 2; }
.work--wide img { aspect-ratio: 2 / 1; }
.work--video { grid-row: span 2; display: flex; flex-direction: column; }
.work__video { flex: 1 1 0; min-height: 0; width: 100%; height: 100%; object-fit: cover; background: var(--navy); }
.brand-strip { margin-top: 2.5rem; }
.brand-strip__video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; border-radius: var(--radius); background: var(--navy); }
@media (min-width: 768px) { .brand-strip__video { aspect-ratio: 8 / 3; } }

/* ==== Tablet: foto e video meno alti quando vanno a tutta larghezza ==== */

/* ==== Recensioni a comparsa: screenshot veri di Google che entrano come notifiche ==== */
.rtoast { position: fixed; z-index: 45; left: 20px; bottom: 20px; width: 380px; padding: 6px; background: var(--white); border-radius: 12px; box-shadow: 0 2px 6px rgba(14, 26, 43, 0.1), 0 18px 44px rgba(14, 26, 43, 0.24); overflow: hidden; opacity: 0; visibility: hidden; transform: translateX(-24px) scale(0.98); pointer-events: none; transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.45s; }
.rtoast.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.rtoast__body { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.rtoast__img { display: block; width: 100%; height: auto; border-radius: 7px; }
.rtoast__close { position: absolute; top: 2px; right: 2px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--white); color: var(--muted); cursor: pointer; box-shadow: 0 1px 4px rgba(14, 26, 43, 0.15); }
.rtoast__close .icon { width: 18px; height: 18px; }
.rtoast__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.rtoast.is-running .rtoast__bar { animation: rtoast-bar var(--rtoast-ms, 6000ms) linear forwards; }
.rtoast.is-paused .rtoast__bar { animation-play-state: paused; }
@keyframes rtoast-bar { to { transform: scaleX(1); } }
@media (max-width: 959px) {
  .rtoast { left: 8px; width: min(340px, calc(100vw - 16px)); bottom: calc(var(--sticky-h) + var(--safe-b) + 8px); transform: translateY(16px); }
}
@media (prefers-reduced-motion: reduce) { .rtoast { transition: opacity 0.2s ease; transform: none; } }

/* ==== Schede sotto l'apertura: prezzo in evidenza + tre fatti ==== */
.facts { background: var(--white); padding-block: 24px 48px; margin-top: calc(-1 * var(--roof) + 8px); }
.facts__grid { list-style: none; margin-block: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .facts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fact--price { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .facts { padding-block: 56px; } .facts__grid { grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)); gap: 1.25rem; } .fact--price { grid-column: auto; } }
.fact { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 6px rgba(14, 26, 43, 0.06), 0 12px 28px rgba(14, 26, 43, 0.08); }
.fact .icon { width: 44px; height: 44px; color: var(--red); }
.fact__text { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.fact--price { background: var(--navy); color: var(--white); box-shadow: none; }
.fact--price .icon { color: var(--yellow); }
.fact__big { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.fact__big strong { display: block; font-size: clamp(2.5rem, 1.9rem + 2vw, 3.25rem); color: var(--yellow); white-space: nowrap; }
.fact__small { margin: 0; font-size: 0.875rem; color: var(--on-dark-muted); }
@media (max-width: 639px) {
  .fact:not(.fact--price) { flex-direction: row; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
  .fact:not(.fact--price) .icon { width: 36px; height: 36px; }
  .fact__text { font-size: 1.0625rem; }
}

/* ==== Divisori a forma di tetto ====
   Le fasce colorate hanno il bordo superiore e inferiore a falda (punta verso l'alto),
   si sovrappongono di poco alle sezioni bianche vicine. */
.roof { position: relative; z-index: 1; clip-path: polygon(0 var(--roof), 50% 0, 100% var(--roof), 100% 100%, 50% calc(100% - var(--roof)), 0 100%); margin-block: calc(-1 * var(--roof)); }
.section.roof { padding-block: calc(var(--space-section) + var(--roof)); }
.callband.roof { padding-block: calc(40px + var(--roof)); }
.roof + .roof { margin-top: 0; }
.site-footer { position: relative; z-index: 2; }
@media (max-width: 767px) { :root { --roof: 22px; } }

/* ==== Titoli centrati (sezioni "manifesto") ==== */
.center-head { text-align: center; max-width: 880px; margin: 0 auto 3rem; }
.center-head h2, h2.center-head { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); margin-bottom: 1rem; }
.center-head__sub { margin: 0 auto; max-width: 40em; font-size: 1.1875rem; color: var(--muted); }
.center-note { text-align: center; margin: 2.5rem auto 0; max-width: 44em; font-size: 1.125rem; }
.cta-row--center { justify-content: center; }

/* ==== Lavori compresi: schede con icona ==== */
.work-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .work-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1024px) { .work-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.work-card { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 6px rgba(14, 26, 43, 0.05), 0 12px 28px rgba(14, 26, 43, 0.07); }
.work-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 12px; background: var(--red-tint); color: var(--red); }
.work-card__icon .icon { width: 28px; height: 28px; }
.work-card h3 { font-size: 1.25rem; margin-bottom: 0.375rem; }
.work-card p { margin: 0; color: var(--muted); }

/* ==== I numeri ==== */
.stats { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; max-width: 960px; text-align: center; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats li { display: grid; gap: 0.5rem; align-content: start; }
.stats strong { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.75rem, 2rem + 3vw, 4rem); line-height: 1; color: var(--red); }
.stats span { font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.02em; color: var(--navy); }
@media (max-width: 639px) {
  .work-cards { gap: 0.75rem; }
  .work-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; padding: 1rem 1.125rem; }
  .work-card__icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; border-radius: 10px; }
  .work-card__icon .icon { width: 24px; height: 24px; }
  .work-card h3 { font-size: 1.0625rem; margin: 0.125rem 0 0.25rem; }
  .work-card p { font-size: 0.9375rem; }
}
#numeri.section.roof { padding-block: calc(64px + var(--roof)); }
.final .form-card__title { text-transform: uppercase; }


/* Pausa dei video in loop (WCAG 2.2.2) */
.work--video, .brand-strip { position: relative; }
.video-toggle { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(14, 26, 43, 0.72); color: var(--white); cursor: pointer; }
.video-toggle .icon { width: 16px; height: 16px; }
.video-toggle:hover { background: var(--navy); }
.video-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Schermi molto stretti e testo ingrandito */
.site-header__inner { flex-wrap: wrap; }
.stats span { overflow-wrap: anywhere; }
@media (min-width: 860px) and (max-width: 1199px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 359px) {
  .site-header__logo { width: 128px; }
  .site-header .btn { padding-inline: 0.75rem; }
  .sticky a span { white-space: normal; text-align: center; }
}
@media print { .sticky, .rtoast, .cookie { display: none !important; } }
/* Testo ingrandito sul telefono: nessun elemento più largo dello schermo */
.fact__big strong { white-space: normal; }
.cookie__title:focus { outline: none; }

/* Apertura su schermi larghi: al titolo serve più spazio, altrimenti va su 5 righe
   e la pillola verde si spezza in due. Il modulo non ha bisogno di crescere oltre 560px. */
/* Fra 960 e 1279 px il modulo non entra accanto al titolo senza schiacciarlo: una colonna sola,
   con foto e modulo larghi quanto la pagina. */

/* Offerta sotto il titolo: il prezzo è la leva commerciale più forte, deve leggersi in due secondi.
   Card bianca con banda rossa, prezzo grande in Titillium, accanto sopralluogo gratuito. */
/* Su schermi larghi il titolo sta sopra le foto: altrimenti nella prima schermata si vedono solo le foto */

/* Banner cookie compatto sul telefono: deve lasciare visibile il titolo della pagina
   a chi arriva dalla pubblicità. Stesso peso per "Rifiuta" e "Accetta". */
@media (max-width: 599px) {
  .cookie { bottom: calc(var(--sticky-h) + var(--safe-b)); padding: 0.75rem 0.875rem; border-radius: 12px 12px 0 0; }
  .cookie .cookie__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .cookie__extra { display: none; }
  .cookie p { font-size: 0.8125rem; line-height: 1.35; margin-bottom: 0.625rem; padding-right: 2.25rem; }
  .cookie__actions { gap: 0.5rem; }
  .cookie__actions .btn { min-height: 44px; font-size: 0.9375rem; }
  .cookie__close { top: -2px; right: -2px; width: 40px; height: 40px; }
}

/* Telefono: foto d'apertura più basse e titolo più compatto, così prezzo e sopralluogo
   restano nella prima schermata anche con il banner cookie aperto. */

/* Riga positiva sulla sicurezza nel blocco finale (accompagna "Cosa NON facciamo") */
.final__safety { display: flex; align-items: flex-start; gap: 0.625rem; margin-top: 1rem; max-width: var(--measure); }
.final__safety .icon { margin-top: 0.15em; color: var(--yellow); flex: none; }

/* Promessa sotto l'offerta: prima riga in evidenza, seconda riga più piccola e leggibile */

/* Tipografia dell'apertura: stessa regola per tutte le città, nessun a capo forzato.
   Il titolo scala con la larghezza e resta su poche righe; la riga rossa va sempre a capo da sola. */

/* Titoli lunghi (elenco di comuni, titolo del modulo): riempire la riga invece di bilanciarla,
   così non resta una parola sola in cima. Vale per tutte le pagine città. */
#zone-title, .zone-grid h2 { text-wrap: pretty; }
.form-card__title { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.625rem); text-wrap: balance; }


/* ==========================================================================
   APERTURA (hero) — tutte le regole in un blocco solo, condivise da ogni
   pagina città. Ordine di lettura: cosa facciamo → vantaggio → offerta →
   fiducia → come lavoriamo. Un solo riquadro (l'offerta), il resto è testo
   tenuto insieme dalla spaziatura, non da bordi.
   ========================================================================== */

.hero { position: relative; z-index: 1; background: var(--hero-bg); color: var(--navy); padding-bottom: var(--roof); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - var(--roof)), 0 100%); }

/* Telefono: foto, promessa+offerta, modulo, poi fiducia e differenza.
   Schermi larghi: due colonne, testo e modulo allineati in alto. */
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "photo" "lead" "form" "support";
  gap: var(--s-5); padding-block: var(--s-5) var(--s-7);
}
.hero__lead { grid-area: lead; }
.hero__support { grid-area: support; }
.hero__photo { grid-area: photo; margin: 0; align-self: start; }
.hero__form { grid-area: form; align-self: start; }

/* Titolo: unica regola per tutte le città, nessun a capo forzato */
.hero h1 {
  margin-bottom: var(--s-4);
  font-size: clamp(1.75rem, 1.05rem + 2.6vw, 2.5rem);
  line-height: 1.08; letter-spacing: -0.02em;
  max-width: 18em; text-transform: none;
  text-wrap: pretty; hyphens: none;
}
.hero h1 mark { color: inherit; background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding-inline: 0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; white-space: nowrap; }
.hero h1 .hl { display: block; color: var(--red); }

/* Offerta: unico riquadro dell'apertura, stesso linguaggio del modulo (bordo, raggio, ombra) */
.hero__offer {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6);
  margin: 0; padding: var(--s-4) var(--s-5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: 0 2px 6px rgba(14, 26, 43, 0.06);
}
.hero__offer-price { margin: 0; display: flex; flex-direction: column; gap: var(--s-1); line-height: 1; }
.hero__offer-price span { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero__offer-price strong { font-family: var(--font-head); font-size: clamp(2.25rem, 1.6rem + 1.6vw, 3rem); line-height: 1; color: var(--red); white-space: nowrap; }
.hero__offer-price sup { font-size: 0.4em; top: -1em; }
.hero__offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: 1.0625rem; }
.hero__offer-list li { display: flex; align-items: flex-start; gap: var(--s-2); max-width: 24em; }
.hero__offer-list .icon { width: 20px; height: 20px; margin-top: 0.15em; color: var(--call); flex: none; }

/* Fiducia: una riga sola, senza scatole. Verde solo nelle icone di conferma. */
.hero__trust {
  list-style: none; margin: 0 0 var(--s-5); padding: var(--s-3) 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5);
  border-block: 1px solid var(--line-on-light);
  font-size: 1rem; line-height: 1.3;
}
.hero__trust li { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.hero__trust .icon { width: 22px; height: 22px; color: var(--call); flex: none; }
.hero__trust strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.01em; }
.hero__trust span { overflow-wrap: anywhere; }
.hero__google { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); color: var(--navy); text-decoration: none; }
.hero__google img { width: 74px; height: auto; flex: none; }
.hero__google span { border-bottom: 1px solid currentColor; font-weight: 700; }
.hero__google:hover span { border-bottom-width: 2px; }

/* Differenza: due righe di testo, niente riquadro */
.hero__claim {
  margin: 0 0 var(--s-2); max-width: 20em;
  font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; line-height: 1.15;
  color: var(--navy); text-wrap: balance;
}
.hero__claim span { display: block; color: var(--red); }
.hero .hero__sub { font-size: 1.0625rem; line-height: 1.5; max-width: 30em; margin-bottom: var(--s-3); }
.hero .hero__sub strong { font-weight: 700; }
.hero .hero__sub span { display: block; }   /* due frasi, due righe: niente <br> */
.hero__note { font-size: 0.875rem; color: #3d4450; max-width: none; margin: 0; }   /* una riga sola dove c'è spazio */

/* Foto: mosaico, stessa curvatura degli altri riquadri */
.hero__photo { display: grid; grid-template-columns: 1.9fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-2); aspect-ratio: 16 / 9; }
.hero__shot { margin: 0; overflow: hidden; border-radius: 10px; box-shadow: 0 10px 28px rgba(14, 26, 43, 0.16); }
.hero__shot--main { grid-row: span 2; }
.hero__shot--main img { object-position: 50% 0; }   /* operai sul tetto sempre interi, anche nel riquadro largo */
.hero__shot img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 599px) {
  .hero__inner { gap: var(--s-4); padding-block: var(--s-3) var(--s-6); }
  .hero__photo { aspect-ratio: 2 / 1; }
  .hero__offer { gap: var(--s-2) var(--s-4); padding: var(--s-3) var(--s-4); }
  .hero__offer-list { font-size: 1rem; }
  .hero__trust { margin-bottom: var(--s-4); gap: var(--s-2) var(--s-4); font-size: 0.9375rem; }
  .hero__trust .icon { width: 20px; height: 20px; }
  .hero__claim { font-size: 1.1875rem; }
  .hero .hero__sub { font-size: 1rem; }
}

@media (min-width: 600px) {
  .hero__photo { gap: var(--s-3); }
  .hero__shot { border-radius: 12px; }
}

@media (min-width: 960px) {
  /* Da laptop in su il messaggio viene prima delle foto: chi arriva dalla pubblicità
     deve leggere subito titolo e prezzo, senza scorrere. */
  .hero__inner { grid-template-areas: "lead" "photo" "form" "support"; }
  .hero__photo { aspect-ratio: 21 / 9; }
  /* Stessa larghezza per titolo, offerta, fiducia e testo: un asse solo */
  .hero__form, .hero__photo { max-width: 720px; }
  .hero__lead, .hero__support { max-width: 720px; }
}

/* Due colonne della stessa altezza (da 1280px):
   sinistra  titolo → offerta → fiducia → differenza → foto
   destra    modulo
   Le foto riempiono lo spazio che resta, così la colonna sinistra finisce
   esattamente dove finisce il modulo: bordo alto e bordo basso in comune. */
@media (min-width: 1280px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(480px, 540px);
    grid-template-areas: "lead form" "support form" "photo form";
    grid-template-rows: auto auto 1fr;
    column-gap: var(--s-7); row-gap: var(--s-5);
    padding-block: var(--s-6) var(--s-7);
    align-items: stretch;
  }
  .hero__lead, .hero__support { max-width: none; }
  .hero__form { max-width: none; width: 100%; margin: 0; align-self: stretch; }
  /* contain: size = le foto non allungano la colonna, occupano solo lo spazio che resta accanto al modulo */
  .hero__photo { max-width: none; aspect-ratio: auto; min-height: 220px; height: 100%; align-self: stretch; contain: size; }

  /* Fiducia: tre celle uguali, stessa riga, stesso allineamento */
  .hero__trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
  .hero__trust li { align-items: center; }
  /* ogni cella su due righe fisse: voce in maiuscolo sopra, dettaglio sotto */
  .hero__trust li > span strong, .hero__google span { display: block; }
  .hero__trust li > span { line-height: 1.25; }
  .hero__google span { border-bottom: 0; text-decoration: underline; text-underline-offset: 3px; }
  .hero__trust li + li { padding-left: var(--s-4); border-left: 1px solid var(--line-on-light); }
  .hero__google { gap: var(--s-2); }
  .hero__google img { width: 64px; }
}

@media (min-width: 1440px) {
  .hero .container { width: min(100% - 2 * var(--gutter), 1340px); }
  .hero__inner { grid-template-columns: minmax(0, 1fr) 560px; column-gap: 4.5rem; }
}

/* ==========================================================================
   ANIMAZIONI SOBRIE (21/09/2026, richieste dal cliente)
   Solo movimenti brevi che accompagnano un'azione o l'arrivo sulla pagina.
   Niente sezioni che compaiono scorrendo, niente zoom sulle foto, niente
   numeri che contano (tolti su richiesta il 18/09). Il titolo e la foto
   principale restano fermi: sono ciò che Google misura per la velocità.
   Con "riduci movimento" attivo si spengono tutte (regola in cima al file).
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Arrivo sulla pagina: offerta, fiducia e modulo salgono di poco, uno dopo l'altro */
  .hero__offer, .hero__trust, .hero__form { animation: ec-sali 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__trust { animation-delay: 0.08s; }
  .hero__form { animation-delay: 0.14s; }

  /* Bottoni: si alzano di un pixel al passaggio, tornano giù al clic */
  .btn { transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(14, 26, 43, 0.18); }
  .btn:active { transform: translateY(0); box-shadow: none; }
  .btn--red .icon { transition: transform 0.15s ease; }
  .btn--red:hover .icon { transform: translateX(2px); }

  /* FAQ: la risposta scende con dolcezza quando si apre */
  .faq details[open] > :not(summary) { animation: ec-apri 0.22s ease-out; }

  /* Modulo: il secondo passo entra con una breve dissolvenza */
  .step:not([hidden]) { animation: ec-apri 0.25s ease-out; }

  /* Barra fissa su telefono: entra dal basso all'apertura */
  .sticky { animation: ec-barra 0.35s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes ec-sali { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ec-apri { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ec-barra { from { transform: translateY(100%); } to { transform: none; } }

/* ==========================================================================
   BANNER OFFERTA (apertura) — stesso schema della scheda prezzo già approvata:
   blu notte, prezzo giallo, testo bianco. Etichetta rossa "Offerta" e un
   riflesso di luce che attraversa il riquadro ogni qualche secondo.
   Niente glow, niente verde vicino al giallo (spunte gialle).
   ========================================================================== */
.hero__offer {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); border-color: var(--navy); color: var(--white);
  box-shadow: 0 10px 24px rgba(14, 26, 43, 0.22);
  padding-top: var(--s-5);
}
.hero__offer-price span { color: var(--on-dark-muted); }
.hero__offer-price strong { color: var(--yellow); }
.hero__offer-list .icon { color: var(--yellow); }
.hero__offer-list strong { color: var(--white); }
.hero__offer-tag {
  position: absolute; top: 0; right: var(--s-5); z-index: 2;
  padding: 0.3125rem 0.75rem 0.375rem;
  background: var(--red); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 0.8125rem; line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 0 0 8px 8px;
}
/* Riflesso di luce: una fascia chiara che scorre sopra il riquadro */
.hero__offer::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.14) 48%, rgba(255, 255, 255, 0.04) 55%, transparent 65%);
  transform: translateX(-120%);
}
.hero__offer > :not(.hero__offer-tag) { position: relative; z-index: 2; }
.hero :focus-visible { outline-color: var(--red); }
@media (max-width: 599px) {
  .hero__offer { padding-top: var(--s-6); }
  .hero__offer-tag { right: var(--s-4); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__offer::after { animation: ec-riflesso 6s 1s ease-in-out infinite; }
  .hero__offer-tag { animation: ec-etichetta 0.45s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1.4) both; }
}
@keyframes ec-riflesso { 0% { transform: translateX(-120%); } 22%, 100% { transform: translateX(120%); } }
@keyframes ec-etichetta { from { transform: translateY(-100%); } to { transform: none; } }
