/* Vetreria Appia Tuscolana — home (step 5, design versione 9)
   Colori misurati dal design con confronta-design.py --colori e campionati sulle sezioni. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --nero: #131313;          /* titoli */
  --testo: #353636;         /* testi */
  --testo-2: #4D4D4D;       /* risposte */
  --bianco: #FFFFFF;
  --notte: #0B1411;         /* fondo della hero */
  --notte-2: #0D1612;
  --su-notte: #C7CBC8;      /* testi chiari sulla hero */
  --menta: #6FD2B9;         /* pulsanti */
  --menta-hero: #75CAB1;    /* pulsante della hero */
  --menta-testo: #6DC6AD;   /* «forma nel vetro.» */
  --verde: #1C745C;         /* icone e linee */
  --verde-linea: #5FCFB6;   /* linea del tempo e separatori */
  --petrolio: #154840;      /* pannelli scuri */
  --petrolio-2: #095243;    /* «Indicazioni» */
  --su-petrolio: #D1DFDD;
  --chiaro: #F1F7F5;        /* pannelli chiari */
  --chiaro-2: #E6F3F1;      /* riquadro WhatsApp */
  --carta: #FAFBFB;         /* scheda delle domande */
  --bordo: #DFE7E6;
  --scuro-su-menta: #143628;
  --mappa: #E7E7E7;
  --mappa-verde: #A8DBAB;

  --raggio: 18px;
  --raggio-s: 12px;
  --gutter: 16px;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* entrate e uscite (Emil Kowalski) */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* cose che si spostano sullo schermo */
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.menu-aperto { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--testo);
  background: var(--bianco);
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; }

[id] { scroll-margin-top: 84px; }

.wrap {
  width: 100%;
  max-width: calc(1360px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.salta {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--bianco); color: var(--nero); padding: 10px 16px; border-radius: 8px;
}
.salta:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--menta); outline-offset: 3px; }

/* ── Pulsanti ─────────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out);
  cursor: pointer;
}
.btn img { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--menta { background: var(--menta); color: var(--scuro-su-menta); }
.btn--vetro { background: rgba(255, 255, 255, .02); color: var(--bianco); border-color: rgba(255, 255, 255, .78); }
.btn--bianco { background: var(--bianco); color: var(--nero); border-color: #191A1B; }
.btn--petrolio { background: var(--petrolio-2); color: var(--bianco); }
.btn--pieno { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--menta:hover { background: #86DCC6; }
  .btn--vetro:hover { background: rgba(255, 255, 255, .1); border-color: var(--bianco); }
  .btn--bianco:hover { background: var(--chiaro); }
  .btn--petrolio:hover { background: #0B5E4E; }
}

/* ── Testata ──────────────────────────────────────────────────────────────────────────────── */
.testata {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--bianco);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.testata.scrolled { background: rgba(11, 20, 17, .96); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.testata__riga { display: flex; align-items: center; gap: 12px; height: 68px; }
.logo { display: block; margin-right: auto; }
.logo img { width: auto; height: 27px; }
.menu { display: none; }
.testata__chiama { min-height: 40px; padding: 8px 14px; font-size: 14px; font-weight: 500; border-radius: 9px; }
.menu-apri {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; background: none; cursor: pointer;
}
.menu-apri span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--bianco); }
.menu-apri:active { opacity: .6; }

.menu-mobile {
  position: fixed; inset: 0; z-index: 60;
  height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--notte); color: var(--bianco);
  display: flex; flex-direction: column; gap: 28px; padding-bottom: 32px;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile__testa { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.menu-mobile__logo { width: auto; height: 27px; }
.menu-chiudi { position: relative; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; cursor: pointer; }
.menu-chiudi span { position: absolute; left: 10px; top: 21px; width: 24px; height: 2px; background: var(--bianco); border-radius: 2px; }
.menu-chiudi span:first-child { transform: rotate(45deg); }
.menu-chiudi span:last-child { transform: rotate(-45deg); }
.menu-mobile__voci, .menu-mobile__voci ul, .menu-mobile__voci li { display: flex; flex-direction: column; } /* le voci in un elenco (<ul><li><a>), come il menu in alto: il pannello le cambia insieme */
.menu-mobile__voci a {
  padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 24px; text-decoration: none; color: var(--bianco);
}
.menu-mobile__voci a:active { color: var(--menta); }
.menu-mobile__azioni { display: grid; gap: 12px; }

@media (max-width: 359px) {
  .testata__chiama { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--notte); color: var(--bianco);
  padding: 104px 0 36px;
}
.hero__fondo { position: absolute; inset: 0; z-index: -1; }
.hero__fondo picture { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero__img--lastra { object-position: 74% 100%; opacity: .9; }
.hero__fondo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 20, 17, .82) 0%, rgba(11, 20, 17, .55) 55%, rgba(11, 20, 17, .7) 100%);
}
.hero__occhiello {
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #E5E9E7;
}
.hero__titolo {
  margin-top: 10px;
  font-size: clamp(40px, 11.4vw, 90px); font-weight: 400; line-height: 1.02; letter-spacing: -0.022em;
  color: #F9F9F9;
}
.hero__titolo .riga { display: block; }
.hero__titolo .riga--menta { color: var(--menta-testo); }
.hero__testo { margin-top: 16px; max-width: 38em; font-size: 15px; line-height: 1.6; color: #D3D7D4; }
.hero__azioni { display: grid; gap: 12px; margin-top: 24px; }
.hero__azioni .btn--menta { background: var(--menta-hero); }
.hero__numeri {
  display: grid; grid-template-columns: 0.82fr 1.1fr 1.08fr; gap: 12px; margin-top: 28px;
}
.hero__numeri li { display: flex; flex-direction: column; gap: 4px; padding-left: 12px; border-left: 1.5px solid rgba(117, 202, 177, .8); }
.hero__numeri li:first-child { padding-left: 0; border-left: 0; }
.hero__numeri strong { font-size: 15.5px; font-weight: 400; line-height: 1.2; color: var(--bianco); }
.hero__numeri span { font-size: 12px; line-height: 1.35; color: var(--su-notte); }

/* ── Fascia dei servizi ──────────────────────────────────────────────────────────────────── */
.fascia { margin-top: 12px; }
.fascia__lista {
  display: flex; flex-wrap: wrap; justify-content: center;
  background: var(--chiaro); border: 1px solid #E3ECEA; border-radius: var(--raggio);
  padding: 8px 4px;
}
.fascia__lista li { flex: 0 0 33.333%; }
.fascia__lista a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 6px; text-align: center; text-decoration: none; color: #2F3231;
  font-size: 14px; line-height: 1.3; border-radius: 12px;
  transition: background-color .2s ease;
}
.fascia__lista img { width: 38px; height: 38px; }
.fascia__lista span span { display: block; }
.fascia__lista a:active { background: rgba(28, 116, 92, .07); }
@media (hover: hover) and (pointer: fine) { .fascia__lista a:hover { background: rgba(28, 116, 92, .06); } }

/* ── Sezioni ──────────────────────────────────────────────────────────────────────────────── */
.sezione { padding-top: 44px; }
.sezione--ultima { padding-bottom: 48px; }
.titolo {
  font-size: clamp(27px, 7.4vw, 52px); font-weight: 400; line-height: 1.12; letter-spacing: -0.022em;
  color: var(--nero); margin-bottom: 18px;
}
.titolo-riga { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.titolo-riga .titolo { margin-bottom: 0; }

.foto { position: relative; overflow: hidden; border-radius: var(--raggio); background: #E9EEED; }
.foto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.pannello { border-radius: var(--raggio); padding: 22px 20px; }
.pannello--chiaro { background: var(--chiaro); border: 1px solid #E5EEEB; }
.pannello--petrolio { background: var(--petrolio); color: var(--su-petrolio); }

.duo { display: grid; gap: 14px; }
.duo > *, .passi-riga > *, .trio > * { min-width: 0; }
.duo .foto--alta { aspect-ratio: 4 / 3; }

.elenco { display: grid; gap: 18px; }
.elenco li { display: flex; align-items: center; gap: 16px; font-size: 16px; line-height: 1.4; color: var(--testo); }
.elenco img { width: 34px; height: 34px; flex: none; }
.pannello--petrolio .elenco li { color: var(--su-petrolio); }
.elenco--righe { gap: 0; }
.elenco--righe li { padding: 15px 0; border-bottom: 1px solid #D5E2DF; }
.elenco--righe li:last-child { border-bottom: 0; }
.pannello--petrolio .elenco--righe li { border-color: rgba(209, 223, 221, .22); }
.pannello .btn--pieno { margin-top: 22px; }

/* Dalla foto al lavoro finito */
.passi-riga { display: grid; gap: 14px; }
.passi {
  position: relative; display: grid; gap: 0;
  border: 1px solid var(--bordo); border-radius: var(--raggio); background: var(--bianco);
  padding: 10px 20px;
}
.passi li { position: relative; display: grid; grid-template-columns: 56px auto 1fr; align-items: center; gap: 0 14px; padding: 10px 0; }
.passi li::before {         /* la linea che unisce i passi */
  content: ""; position: absolute; left: 27px; top: 50%; height: 100%; width: 1.5px; background: var(--verde-linea); opacity: .7;
}
.passi li:last-child::before { display: none; }
.passi__icona {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bianco); border: 1px solid var(--bordo);
}
.passi__icona img { width: 30px; height: 30px; }
.passi b { font-weight: 600; font-size: 15px; color: var(--scuro-su-menta); }
.passi li > span:last-child { font-size: 15px; line-height: 1.35; color: var(--testo); }
.whatsapp-box:where(:not([data-pagina] *)) {
  display: grid; gap: 16px; align-content: center;
  background: var(--chiaro-2); border-radius: var(--raggio); padding: 22px 20px;
}
.whatsapp-box:where(:not([data-pagina] *)) p { font-size: 18px; line-height: 1.4; color: #222625; }

/* Su misura per la casa */
.foto-doppia:where(:not([data-blocco="mappa"])) { position: relative; }
.foto-doppia:where(:not([data-blocco="mappa"])) .foto--alta { aspect-ratio: 4 / 3; }
.foto--inserto {
  position: absolute; right: 12px; bottom: 12px; width: 44%; aspect-ratio: 16 / 10;
  border: 3px solid var(--bianco); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

/* Tipi di vetro */
.tipi {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border: 1px solid var(--bordo); border-radius: var(--raggio); background: var(--bianco);
  margin-inline: calc(-1 * var(--gutter)); border-radius: 0; border-inline: 0;
  padding: 6px var(--gutter); scroll-padding-inline: var(--gutter);
}
.tipi::-webkit-scrollbar { display: none; }
.tipi li {
  flex: 0 0 30%; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 6px; text-align: center; font-size: 14px; color: #2C3232;
  border-left: 1px solid var(--bordo);
}
.tipi li:first-child { border-left: 0; }
.tipi img { width: 36px; height: 36px; }

/* Galleria */
.schede { display: flex; gap: 22px; }
.scheda {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 6px 2px; border: 0; background: none; cursor: pointer;
  font-size: 16px; font-weight: 500; color: #2A2C2B;
  user-select: none; -webkit-user-select: none;
}
.scheda img { width: 24px; height: 24px; }
.scheda span, .scheda { position: relative; }
.scheda[aria-selected="true"] { color: var(--verde); }
.scheda[aria-selected="true"]::after {
  content: ""; position: absolute; left: 33px; right: 0; bottom: 4px; height: 2.5px; border-radius: 2px; background: var(--verde-linea);
  transform-origin: left; animation: sottolinea .35s var(--ease-out);
}
@keyframes sottolinea { from { transform: scaleX(0); } }
.scheda { transition: color .2s ease, transform .16s var(--ease-out); }
.scheda:active { transform: scale(.97); }

.galleria {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.galleria::-webkit-scrollbar { display: none; }
.lavoro {
  position: relative; flex: 0 0 80%; scroll-snap-align: start;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--raggio); background: #E9EEED;
}
.lavoro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.lavoro figcaption, .clip figcaption {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  padding: 9px 14px 12px; border-radius: 10px;
  background: rgba(15, 22, 20, .66); color: var(--bianco); font-size: 14px; line-height: 1.25;
}
.lavoro figcaption::after, .clip figcaption::after {
  content: ""; display: block; width: 30px; height: 2.5px; margin-top: 6px; border-radius: 2px; background: var(--verde-linea);
}
@media (hover: hover) and (pointer: fine) { .lavoro:hover img { transform: scale(1.03); } }

.video-riga[hidden] { display: none; }
.video-riga__pista {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.video-riga__pista::-webkit-scrollbar { display: none; }
.clip {
  position: relative; flex: 0 0 66%; scroll-snap-align: start;
  aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--raggio); background: #1A2421;
}
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.audio {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; width: max-content; max-width: calc(100% - 20px);
  min-height: 36px; padding: 7px 11px; border: 0; border-radius: 9px; cursor: pointer;
  background: rgba(15, 22, 20, .62); color: var(--bianco); font-size: 12px; line-height: 1.2; text-align: left;
  user-select: none; -webkit-user-select: none;
}
.audio img { width: 16px; height: 16px; flex: none; }
.audio:active { transform: scale(.97); }
.frecce { display: none; }

/* Decori e cornici */
.trio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trio__testo { grid-column: 1 / -1; grid-row: 1; display: grid; gap: 0; padding: 4px 20px; }
.trio__a, .trio__b { aspect-ratio: 4 / 5; }
.blocco { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
.blocco + .blocco { border-top: 1px solid #D5E2DF; }
.blocco img { width: 38px; height: 38px; }
.blocco h3 { font-size: 22px; font-weight: 400; line-height: 1.2; color: var(--nero); }
.blocco p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--testo); }

/* Storia */
.storia__intro { font-size: 17px; line-height: 1.5; color: var(--bianco); }
.tempo { position: relative; display: grid; gap: 22px; margin-top: 24px; padding-left: 36px; }
.tempo::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 1.5px; background: var(--verde-linea); }
.tempo li { position: relative; font-size: 16px; line-height: 1.4; color: var(--su-petrolio); }
.tempo li::before {
  content: ""; position: absolute; left: -36px; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--verde-linea); background: var(--petrolio);
}
.tempo b { font-weight: 400; color: var(--bianco); }

/* Domande */
.faq { border: 1px solid var(--bordo); border-radius: var(--raggio); background: var(--carta); padding: 4px 18px; }
.faq__voce { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--bordo); }
.faq__colonna:last-child .faq__voce:last-child { border-bottom: 0; }
.faq__voce img { width: 36px; height: 36px; }
.faq__voce h3 { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--nero); }
.faq__voce p { margin-top: 5px; font-size: 15px; line-height: 1.45; color: var(--testo-2); }
.centro { margin-top: 22px; text-align: center; }
.btn--largo { width: 100%; font-size: 15px; padding-inline: 12px; }

/* Contatti */
.mappa { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--raggio); background: var(--mappa); }
.mappa__disegno { position: absolute; inset: 0; width: 100%; height: 100%; }
.mappa__zona {
  position: absolute; padding: 6px 12px; border-radius: 9px; background: var(--bianco);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12); font-size: 13px; font-weight: 500; color: #1E201F; white-space: nowrap;
}
.mappa__punto { position: absolute; display: flex; align-items: center; gap: 6px; }
.mappa__pin { width: 30px; height: 38px; flex: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .16)); }
.mappa__punto span {
  padding: 6px 12px; border-radius: 9px; background: var(--bianco); box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
  font-size: 13px; font-weight: 600; color: #1E201F; white-space: nowrap;
}
.contatti { display: grid; gap: 20px; }
.contatti__dati { display: grid; gap: 14px; }
.contatti__dati li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: #1F2221; }
.contatti__dati img { width: 28px; height: 28px; flex: none; }
.contatti__dati a { text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 359px) { .contatti__dati li { font-size: 15px; gap: 10px; } .pannello { padding-inline: 16px; } }
.contatti__azioni:where(:not(.whatsapp-box > *)) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contatti__azioni:where(:not(.whatsapp-box > *)) .btn { padding-inline: 10px; }
.btn--doppio { grid-column: 1 / -1; }

/* ── Piede ────────────────────────────────────────────────────────────────────────────────── */
.piede { border-top: 1px solid var(--bordo); padding: 28px 0 96px; color: #2E3130; }
.piede__riga { display: grid; justify-items: center; gap: 16px; text-align: center; }
.piede__logo img { width: auto; height: 32px; }
.piede__nome { font-size: 15px; }
.piede__link { display: flex; flex-wrap: wrap; justify-content: center; }
.piede__link li + li { border-left: 1.5px solid var(--verde-linea); }
.piede__link a { display: inline-block; padding: 8px 16px; font-size: 15px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .piede__link a:hover, .piede__legale a:hover { color: var(--verde); } }
.piede__legale { display: grid; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--bordo); text-align: center; font-size: 13px; line-height: 1.5; color: #5A605E; }
.piede__legale a { color: inherit; }
.credit a { font-weight: 500; }

/* Barra fissa da telefono */
.barra-tel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--bordo); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
}
.barra-tel .btn { min-height: 48px; padding: 10px 12px; }

/* ── Tablet ──────────────────────────────────────────────────────────────────────────────── */
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .hero { padding: 130px 0 52px; }
  .hero__occhiello { font-size: 16px; }
  .hero__testo { font-size: 18px; }
  .hero__azioni { display: flex; flex-wrap: wrap; gap: 14px; }
  .hero__numeri { display: flex; gap: 0; margin-top: 44px; }
  .hero__numeri li { padding: 0 44px 0 30px; }
  .hero__numeri li:first-child { padding-left: 0; }
  .hero__numeri strong { font-size: 26px; }
  .hero__numeri span { font-size: 15px; }

  .fascia__lista { flex-wrap: nowrap; padding: 14px 10px; }
  .fascia__lista li { flex: 1 1 0; border-left: 1px solid #C9D6D3; }
  .fascia__lista li:first-child { border-left: 0; }
  .fascia__lista a { font-size: 16px; padding: 12px 8px; }
  .fascia__lista img { width: 44px; height: 44px; }

  .tipi { overflow: visible; margin-inline: 0; border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 8px 6px; }
  .tipi li { flex: 1 1 0; padding: 18px 4px; font-size: 15px; }

  .galleria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .lavoro { aspect-ratio: 4 / 3; }
  .clip { flex-basis: 38%; }

  .passi { grid-template-columns: repeat(4, 1fr); align-items: start; padding: 24px 12px; }
  .passi li { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; padding: 0 8px; }
  .passi li::before { left: calc(50% + 40px); top: 28px; width: calc(100% - 80px); height: 1.5px; opacity: 1; }
  .passi__icona { border: 0; width: 56px; height: 56px; }
  .passi__icona img { width: 42px; height: 42px; }
  .passi b { margin-top: 6px; }

  .trio { grid-template-columns: 1fr 1fr; }
  .blocco { grid-template-columns: 44px 1fr; gap: 16px; }
  .faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; padding: 6px 26px; }
  .faq__colonna:first-child .faq__voce:last-child { border-bottom: 0; }
  .faq__colonna + .faq__colonna { position: relative; }
  .btn--largo { width: auto; min-width: 380px; }
  .contatti__azioni:where(:not(.whatsapp-box > *)) .btn { min-height: 54px; }
}

/* ── Computer ────────────────────────────────────────────────────────────────────────────── */
@media (min-width: 1040px) {
  body { font-size: 17px; }
  [id] { scroll-margin-top: 92px; }
  .testata__riga { height: 84px; gap: 20px; }
  .logo img { height: 46px; }
  .menu ul { display: flex; gap: 32px; }
  .menu a { position: relative; font-size: 18px; text-decoration: none; color: rgba(255, 255, 255, .92); padding: 6px 0; }
  .menu a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--menta);
    transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
  }
  .menu a:focus-visible::after { transform: scaleX(1); }
  @media (hover: hover) and (pointer: fine) { .menu a:hover::after { transform: scaleX(1); } }
  .testata__chiama { min-height: 50px; padding: 10px 24px; font-size: 18px; font-weight: 500; border-radius: 10px; }

  .hero { min-height: 664px; padding: 118px 0 40px; }
  .hero::after { content: none; }
  .hero__fondo::after { background: linear-gradient(90deg, rgba(11, 20, 17, .55) 0%, rgba(11, 20, 17, .25) 38%, rgba(11, 20, 17, 0) 60%); }
  .hero__img { object-position: 100% 50%; }
  .hero__img--lastra { object-position: 100% 50%; opacity: 1; }
  .hero__occhiello { font-size: 21px; letter-spacing: .08em; font-weight: 500; }
  .hero__titolo { margin-top: 14px; }
  .hero__testo { margin-top: 20px; font-size: 21.5px; line-height: 1.62; max-width: 38em; }
  .hero__azioni { margin-top: 26px; gap: 20px; }
  .hero__azioni .btn { min-height: 60px; padding: 14px 32px; font-size: 20px; font-weight: 600; }
  .hero__azioni .btn img { width: 24px; height: 24px; }
  .hero__numeri { margin-top: 36px; }
  .hero__numeri li { padding: 4px 64px 4px 54px; border-left-width: 2px; }
  .hero__numeri li:first-child { padding-left: 0; }
  .hero__numeri strong { font-size: 32px; }
  .hero__numeri span { font-size: 18px; }

  .fascia { margin-top: 12px; }
  .fascia__lista { padding: 22px 12px; border-radius: 22px; }
  .fascia__lista a { font-size: 23px; gap: 12px; color: #2A2D2C; }
  .fascia__lista img { width: 62px; height: 62px; }

  .sezione { padding-top: 46px; }
  .titolo { font-size: 55px; margin-bottom: 26px; }
  .titolo-riga { margin-bottom: 26px; }
  .pannello { padding: 34px 38px; }

  .duo--foto-larga { grid-template-columns: 1.5fr 1fr; gap: 16px; }
  .duo--foto-larga .foto--alta { aspect-ratio: auto; min-height: 500px; height: 100%; }
  #pronto-intervento .pannello { display: flex; flex-direction: column; justify-content: center; }
  .elenco { gap: 32px; }
  .elenco li { font-size: 22px; gap: 28px; }
  .elenco img { width: 58px; height: 58px; }
  .elenco--righe { gap: 0; }
  .elenco--righe li { padding: 22px 0; }
  .pannello .btn--pieno { margin-top: 40px; min-height: 66px; font-size: 23px; font-weight: 600; }
  .pannello .btn--pieno img { width: 24px; height: 24px; }

  .passi-riga { grid-template-columns: 2.78fr 1fr; gap: 16px; }
  .passi { padding: 30px 26px 28px; }
  .passi b { font-size: 21px; }
  .passi li > span:last-child { font-size: 21px; }
  .passi__icona img { width: 72px; height: 72px; }
  .passi__icona { width: 78px; height: 78px; }
  .passi li::before { left: calc(50% + 50px); top: 39px; width: calc(100% - 100px); }
  .whatsapp-box:where(:not([data-pagina] *)) { padding: 26px 30px; gap: 22px; }
  .whatsapp-box:where(:not([data-pagina] *)) p { font-size: 25px; line-height: 1.3; }
  .whatsapp-box:where(:not([data-pagina] *)) .btn { font-size: 20px; font-weight: 600; min-height: 56px; }

  .duo--casa { grid-template-columns: 1.69fr 1fr; }
  .duo--casa .foto-doppia:where(:not([data-blocco="mappa"])), .duo--casa .foto--alta { min-height: 400px; height: 100%; }
  .foto-doppia:where(:not([data-blocco="mappa"])) .foto--alta { aspect-ratio: auto; }
  .foto--inserto { right: 10px; bottom: 0; width: 40%; aspect-ratio: 2.06; border-width: 4px; box-shadow: 0 -4px 18px rgba(0, 0, 0, .18); }
  .foto--inserto > img { object-position: 50% 58%; }
  .duo--casa .pannello { padding: 18px 38px; display: flex; align-items: center; }
  .duo--casa .elenco { width: 100%; }

  .tipi { padding: 10px 8px; }
  .tipi li { padding: 22px 4px 20px; font-size: 19.5px; gap: 16px; }
  .tipi img { width: 64px; height: 64px; }

  .duo--attivita { grid-template-columns: 1.24fr 1fr; gap: 24px; }
  .duo--attivita .foto--alta { aspect-ratio: auto; min-height: 470px; height: 100%; }
  .duo--attivita .pannello { padding: 22px 46px; display: flex; align-items: center; }
  .elenco--attivita { width: 100%; }
  .elenco--attivita li { font-size: 22.5px; padding: 19px 0; }

  .scheda { font-size: 23px; }
  .scheda img { width: 44px; height: 44px; }
  .scheda[aria-selected="true"]::after { left: 53px; }
  .lavoro figcaption, .clip figcaption { left: 24px; bottom: 24px; padding: 12px 20px 14px; font-size: 21px; }
  .clip { flex-basis: calc((100% - 3 * 16px) / 3.6); }
  .video-riga__pista { gap: 16px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .frecce { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
  .freccia {
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--bordo); background: var(--bianco);
    font-size: 28px; line-height: 1; color: var(--verde); cursor: pointer;
  }
  .freccia { transition: background-color .2s ease, transform .16s var(--ease-out); }
  .freccia:active { transform: scale(.95); }
  @media (hover: hover) and (pointer: fine) { .freccia:hover { background: var(--chiaro); } }
  .audio { font-size: 13px; }

  .trio { grid-template-columns: 0.88fr 1fr 0.98fr; gap: 20px; }
  .trio__testo { grid-column: auto; grid-row: auto; padding: 16px 28px; align-content: center; }
  .trio__a, .trio__b { aspect-ratio: auto; min-height: 455px; }
  .blocco { grid-template-columns: 52px 1fr; gap: 22px; padding: 26px 0; }
  .blocco img { width: 48px; height: 48px; }
  .blocco h3 { font-size: 34px; line-height: 1.15; letter-spacing: -0.015em; }
  .blocco p { font-size: 20.5px; margin-top: 14px; }
  .blocco img { width: 66px; height: 66px; }
  .blocco { grid-template-columns: 70px 1fr; }

  .duo--storia { grid-template-columns: 1.54fr 1fr; gap: 20px; }
  .duo--storia .foto--alta { aspect-ratio: auto; min-height: 360px; height: 100%; }
  .duo--storia .pannello { padding: 32px 46px; display: flex; flex-direction: column; justify-content: center; }
  .storia__intro { font-size: 24px; }
  .tempo { gap: 30px; margin-top: 30px; padding-left: 50px; }
  .tempo::before { left: 11px; }
  .tempo li { font-size: 24px; }
  .tempo li::before { left: -50px; width: 24px; height: 24px; top: 1px; }

  .faq { padding: 8px 36px; gap: 0 54px; }
  .faq__colonna + .faq__colonna::before { content: ""; position: absolute; left: -27px; top: 20px; bottom: 20px; width: 1px; background: var(--bordo); }
  .faq__voce { grid-template-columns: 68px 1fr; gap: 20px; padding: 22px 0; }
  .faq__voce img { width: 66px; height: 66px; }
  .faq__voce h3 { font-size: 23px; }
  .faq__voce p { font-size: 20.5px; }
  .centro { margin-top: 30px; }
  .btn--largo { min-height: 64px; min-width: 570px; font-size: 22px; font-weight: 600; }
  .btn--largo img { width: 28px; height: 28px; }

  .duo--contatti { grid-template-columns: 1.06fr 0.94fr; gap: 34px; }
  .mappa { aspect-ratio: auto; min-height: 360px; height: 100%; }
  .mappa__zona { font-size: 21px; font-weight: 600; padding: 10px 20px; border-radius: 12px; }
  .mappa__pin { width: 40px; height: 50px; }
  .mappa__punto span { font-size: 20px; padding: 10px 20px; border-radius: 12px; }
  .contatti { padding: 30px 26px; gap: 26px; align-content: center; }
  .contatti__dati { gap: 16px; padding-left: 26px; }
  .contatti__dati li { font-size: 23px; gap: 30px; }
  .contatti__dati img { width: 52px; height: 52px; }
  .contatti__azioni:where(:not(.whatsapp-box > *)) { gap: 18px 22px; }
  .contatti__azioni:where(:not(.whatsapp-box > *)) .btn { min-height: 64px; font-size: 21px; font-weight: 600; }
  .contatti__azioni:where(:not(.whatsapp-box > *)) .btn img { width: 26px; height: 26px; }

  .piede { padding: 22px 0 26px; }
  .piede__riga { grid-template-columns: auto auto 1fr; justify-items: start; align-items: center; gap: 0; text-align: left; }
  .piede__logo { padding-right: 50px; }
  .piede__logo img { height: 46px; }
  .piede__nome { padding: 4px 50px; border-left: 2px solid var(--verde-linea); font-size: 18px; }
  .piede__link { justify-self: end; }
  .piede__link li + li, .piede__link li:first-child { border-left: 2px solid var(--verde-linea); }
  .piede__link a { padding: 4px 44px; font-size: 18px; }
  .piede__link li:last-child a { padding-right: 0; }
  .piede__legale { grid-template-columns: 1fr auto; text-align: left; margin-top: 18px; padding-top: 14px; font-size: 14px; }

}

@media (min-width: 1280px) {
  .menu { display: block; margin-right: 46px; }
  .menu-apri { display: none; }
  .barra-tel { display: none; }
}
@media (max-width: 1279px) {
  .testata__chiama { display: none; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .menu ul { gap: 22px; }
  .menu a { font-size: 16.5px; }
  .menu { margin-right: 24px; }
  .logo img { height: 40px; }
  .testata__chiama { font-size: 16.5px; padding: 10px 18px; }
}
@media (min-width: 1040px) and (max-width: 1279px) {
  .piede { padding-bottom: 96px; }
  .logo img { height: 38px; }
  .hero__numeri li { padding: 4px 36px 4px 30px; }
  .piede__nome { padding: 4px 24px; }
  .piede__link a { padding: 4px 20px; }
  .piede__logo { padding-right: 24px; }
  .blocco h3 { font-size: 28px; }
}


/* ── Pagine legali e 404 ─────────────────────────────────────────────────────────────────── */
:where([data-pagina="legale"]) .testata { background: rgba(11, 20, 17, .96); }
.interna { padding: 104px 0 56px; }
.interna__corpo { max-width: calc(860px + 2 * var(--gutter)); }
.legale h1 { font-size: clamp(30px, 7vw, 48px); font-weight: 400; line-height: 1.12; letter-spacing: -0.02em; color: var(--nero); }
.legale h1 + p { margin-top: 10px; font-size: 14px; color: #5A605E; }
.legale h2 { margin-top: 34px; font-size: 22px; font-weight: 500; line-height: 1.3; color: var(--nero); }
.legale p, .legale li { font-size: 16px; line-height: 1.65; color: var(--testo); overflow-wrap: break-word; }
.legale p { margin-top: 12px; }
.legale ul { margin-top: 12px; padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.legale a { color: var(--verde); }
.legale table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; }
.legale th, .legale td { padding: 10px 8px; border-bottom: 1px solid var(--bordo); text-align: left; vertical-align: top; }
.legale th { font-weight: 600; color: var(--nero); }
.legale--404 { padding: 40px 0 20px; }
.legale__azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px !important; }
@media (max-width: 600px) {
  .legale table, .legale thead, .legale tbody, .legale tr, .legale th, .legale td { display: block; }
  .legale thead { display: none; }
  .legale tr { padding: 10px 0; border-bottom: 1px solid var(--bordo); }
  .legale td { padding: 2px 0; border: 0; }
  .legale td:first-child { font-weight: 600; color: var(--nero); }
}
@media (min-width: 1040px) {
  .interna { padding: 140px 0 80px; }
  .legale p, .legale li { font-size: 17px; }
}


/* ══ Movimento (step 5-bis) ═══════════════════════════════════════════════════════════════════
   Curve e durate di Emil Kowalski: entrate --ease-out, cose che si spostano --ease-in-out, colori «ease»,
   solo transform e opacity. Le entrate si nascondono solo con .js (fallback: tutto visibile). */

/* La hero entra al caricamento, solo CSS. La lastra non parte mai da opacity 0. */
@keyframes sale { from { opacity: 0; transform: translateY(var(--da, 28px)); } }
@keyframes cala { from { opacity: 0; transform: translateY(-14px); } }
@keyframes posa { from { transform: scale(1.07); } }
@keyframes compare { from { opacity: 0; } }
.testata__riga { animation: cala .7s var(--ease-out) .05s both; }
.hero__occhiello { animation: sale .8s var(--ease-out) .1s both; --da: 22px; }
.hero__titolo .riga { animation: sale .9s var(--ease-out) .18s both; --da: 40px; }
.hero__titolo .riga--menta { animation-delay: .29s; }
.hero__testo { animation: sale .85s var(--ease-out) .42s both; }
.hero__azioni { animation: sale .85s var(--ease-out) .52s both; }
.hero__numeri li { animation: sale .8s var(--ease-out) .64s both; --da: 22px; }
.hero__numeri li:nth-child(2) { animation-delay: .71s; }
.hero__numeri li:nth-child(3) { animation-delay: .78s; }
.hero__vetro { position: absolute; inset: 0; will-change: transform; }
.hero__vetro picture { position: absolute; inset: 0; }
.hero__img--lastra { animation: posa 1.8s var(--ease-out) both; transform-origin: 80% 60%; }

/* il riflesso di luce che passa sul vetro: una fascia chiara, ritagliata sulla forma della lastra */
.hero__riflesso {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: url("../img/hero-lastra-m.webp") 74% 100% / cover no-repeat;
          mask: url("../img/hero-lastra-m.webp") 74% 100% / cover no-repeat;
}
.hero__riflesso::before {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 34%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(214, 255, 240, .07) 30%, rgba(236, 255, 248, .48) 50%, rgba(214, 255, 240, .07) 70%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-110%) rotate(8deg);
  animation: riflesso 8s var(--ease-in-out) 1.6s infinite;
}
@keyframes riflesso {
  0% { transform: translateX(-110%) rotate(8deg); }
  42%, 100% { transform: translateX(330%) rotate(8deg); }
}
@media (min-width: 701px) {
  .hero__riflesso {
    -webkit-mask-image: url("../img/hero-lastra.webp");
            mask-image: url("../img/hero-lastra.webp");
  }
}
@media (min-width: 1040px) {
  .hero__riflesso { -webkit-mask-position: 100% 50%; mask-position: 100% 50%; }
}

/* Le sezioni arrivano scorrendo */
.js .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
}
.js .reveal.reveal--dopo { transition-delay: .12s; }
.js .reveal.in { opacity: 1; transform: none; }
/* la foto sale e intanto si posa */
.js .foto.reveal > img, .js .foto-doppia:where(:not([data-blocco="mappa"])).reveal .foto--alta > img { transform: scale(1.06); transition: transform 1.3s var(--ease-out); }
.js .foto.reveal.in > img, .js .foto-doppia:where(:not([data-blocco="mappa"])).reveal.in .foto--alta > img { transform: none; }
.js .foto-doppia:where(:not([data-blocco="mappa"])).reveal .foto--inserto { opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .7s var(--ease-out) .45s, transform .8s var(--ease-out) .45s; }
.js .foto-doppia:where(:not([data-blocco="mappa"])).reveal.in .foto--inserto { opacity: 1; transform: none; }

/* Le serie: uno dopo l'altro, a 60 ms */
.js [data-reveal="serie"] > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
}
.js [data-reveal="serie"].in > * { opacity: 1; transform: none; }
.js [data-reveal="serie"] > :nth-child(2) { transition-delay: 60ms; }
.js [data-reveal="serie"] > :nth-child(3) { transition-delay: 120ms; }
.js [data-reveal="serie"] > :nth-child(4) { transition-delay: 180ms; }
.js [data-reveal="serie"] > :nth-child(5) { transition-delay: 240ms; }
.js [data-reveal="serie"] > :nth-child(6) { transition-delay: 300ms; }
.js [data-reveal="serie"] > :nth-child(7) { transition-delay: 360ms; }
/* nelle righe che scorrono col dito niente spostamento in verticale (aprirebbe uno scorrimento in alto e in basso) */
@media (max-width: 759px) {
  .js .galleria[data-reveal="serie"] > *, .js .tipi[data-reveal="serie"] > * { transform: scale(.96); }
  .js .galleria[data-reveal="serie"].in > *, .js .tipi[data-reveal="serie"].in > * { transform: none; }
}
/* le domande, colonna per colonna */
.js .faq.reveal .faq__voce { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.js .faq.reveal.in .faq__voce { opacity: 1; transform: none; }
.js .faq.reveal .faq__voce:nth-child(2) { transition-delay: 80ms; }
.js .faq.reveal .faq__voce:nth-child(3) { transition-delay: 160ms; }
.js .faq.reveal .faq__colonna + .faq__colonna .faq__voce { transition-delay: 120ms; }
.js .faq.reveal .faq__colonna + .faq__colonna .faq__voce:nth-child(2) { transition-delay: 200ms; }
.js .faq.reveal .faq__colonna + .faq__colonna .faq__voce:nth-child(3) { transition-delay: 280ms; }

/* I quattro passaggi: la linea si disegna dopo ogni icona */
.js .passi li::before { transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease-in-out); }
.js .passi.in li::before { transform: none; }
.js .passi.in li:nth-child(1)::before { transition-delay: .25s; }
.js .passi.in li:nth-child(2)::before { transition-delay: .4s; }
.js .passi.in li:nth-child(3)::before { transition-delay: .55s; }
@media (min-width: 760px) {
  .js .passi li::before { transform: scaleX(0); transform-origin: left; }
  .js .passi.in li::before { transform: none; }
}

/* La storia: la linea del tempo si disegna, i punti si accendono */
.js .reveal .tempo::before { transform: scaleY(0); transform-origin: top; transition: transform 1.1s var(--ease-in-out) .3s; }
.js .reveal.in .tempo::before { transform: none; }
.js .reveal .tempo li { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in .tempo li { opacity: 1; transform: none; }
.js .reveal.in .tempo li:nth-child(1) { transition-delay: .35s; }
.js .reveal.in .tempo li:nth-child(2) { transition-delay: .6s; }
.js .reveal.in .tempo li:nth-child(3) { transition-delay: .85s; }

/* La mappa: il segnaposto si posa, le zone compaiono, un'onda leggera intorno al punto */
.js .mappa.reveal .mappa__zona { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.js .mappa.reveal.in .mappa__zona { opacity: 1; transform: none; }
.js .mappa.reveal.in .mappa__zona:nth-of-type(1) { transition-delay: .35s; }
.js .mappa.reveal.in .mappa__zona:nth-of-type(2) { transition-delay: .43s; }
.js .mappa.reveal.in .mappa__zona:nth-of-type(3) { transition-delay: .51s; }
.js .mappa.reveal.in .mappa__zona:nth-of-type(4) { transition-delay: .59s; }
.js .mappa.reveal .mappa__punto { opacity: 0; transform: translateY(-22px); transition: opacity .5s var(--ease-out) .2s, transform .8s var(--ease-out) .2s; }
.js .mappa.reveal.in .mappa__punto { opacity: 1; transform: none; }
.mappa__pin { position: relative; z-index: 1; }
.mappa__punto::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 30px; height: 30px; margin-top: -4px; border-radius: 50%;
  background: rgba(111, 210, 185, .5); transform: scale(.4); opacity: 0;
  animation: onda 2.6s var(--ease-out) 1.2s infinite;
}
@media (min-width: 1040px) { .mappa__punto::before { width: 40px; height: 40px; } }
@keyframes onda { 0% { transform: scale(.4); opacity: .75; } 100% { transform: scale(2.4); opacity: 0; } }

/* Il tocco e il mouse */
.fascia__lista a { transition: background-color .2s ease, transform .16s var(--ease-out); }
.fascia__lista a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .fascia__lista a img { transition: transform .3s var(--ease-out); }
  .fascia__lista a:hover img { transform: translateY(-3px); }
  .foto > img { transition: transform .9s var(--ease-out); }
  .foto:hover > img, .foto-doppia:where(:not([data-blocco="mappa"])):hover .foto--alta > img,
  .js .foto.reveal.in:hover > img, .js .foto-doppia:where(:not([data-blocco="mappa"])).reveal.in:hover .foto--alta > img { transform: scale(1.03); }
  .lavoro:hover img { transform: scale(1.04); }
  .clip video { transition: transform .9s var(--ease-out); }
  .clip:hover video { transform: scale(1.03); }
}

/* L'intestazione: scorrendo il logo si fa un po' più piccolo */
.logo img { transform-origin: left center; transition: transform .35s var(--ease-out); }
.testata.scrolled .logo img { transform: scale(.9); }

/* Il menu da telefono: si apre in 350 ms, si chiude più in fretta */
.menu-mobile { opacity: 0; transition: opacity .2s ease; }
.menu-mobile.aperto { opacity: 1; transition-duration: .3s; }
.menu-mobile__voci a, .menu-mobile__azioni .btn { opacity: 0; transform: translateY(18px); transition: opacity .2s ease, transform .2s var(--ease-out); }
.menu-mobile.aperto .menu-mobile__voci a, .menu-mobile.aperto .menu-mobile__azioni .btn { opacity: 1; transform: none; transition: opacity .45s var(--ease-out), transform .5s var(--ease-out); }
.menu-mobile.aperto .menu-mobile__voci li:nth-child(1) a { transition-delay: .06s; }
.menu-mobile.aperto .menu-mobile__voci li:nth-child(2) a { transition-delay: .1s; }
.menu-mobile.aperto .menu-mobile__voci li:nth-child(3) a { transition-delay: .14s; }
.menu-mobile.aperto .menu-mobile__voci li:nth-child(4) a { transition-delay: .18s; }
.menu-mobile.aperto .menu-mobile__azioni .btn { transition-delay: .24s; }
.menu-mobile.aperto .menu-mobile__azioni .btn + .btn { transition-delay: .29s; }
.menu-mobile.aperto .menu-mobile__azioni .btn:active { transform: scale(.97); transition-delay: 0s; transition-duration: .16s; }

/* Le schede Foto e Video: il pannello nuovo entra */
@keyframes pannello { from { opacity: 0; transform: translateY(14px); } }
.entra { animation: pannello .45s var(--ease-out); }

/* Le righe che scorrono col dito non trascinano la pagina */
.galleria, .video-riga__pista, .tipi { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }

/* Meno movimento, non zero: restano le dissolvenze e i colori, spariscono gli spostamenti */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .testata__riga, .hero__occhiello, .hero__titolo .riga, .hero__testo, .hero__azioni, .hero__numeri li { animation-name: compare; animation-duration: .5s; }
  .hero__img--lastra { animation: none; }
  .hero__riflesso { display: none; }
  .js .reveal, .js [data-reveal="serie"] > *, .js .faq.reveal .faq__voce, .js .reveal .tempo li,
  .js .mappa.reveal .mappa__zona, .js .mappa.reveal .mappa__punto, .js .foto-doppia:where(:not([data-blocco="mappa"])).reveal .foto--inserto { transform: none; }
  .js .foto.reveal > img, .js .foto-doppia:where(:not([data-blocco="mappa"])).reveal .foto--alta > img { transform: none; }
  .js .passi li::before, .js .reveal .tempo::before { transform: none; }
  .mappa__punto::before { animation: none; opacity: 0; }
  .menu-mobile__voci a, .menu-mobile__azioni .btn { transform: none; }
  .entra { animation-name: compare; }
  .logo img, .testata.scrolled .logo img { transform: none; }
}


/* ══ Step 6 · il copy dentro la forma del design ════════════════════════════════════════════════ */
.hero__titolo { font-size: clamp(31px, 9vw, 72px); max-width: 10.2em; line-height: 1.04; }

/* testi nelle schede, sopra le righe con le icone */
.pannello__testo { font-size: 15.5px; line-height: 1.55; color: var(--testo); }
.pannello__testo + .pannello__testo { margin-top: 8px; }
.pannello__testo--forte { font-weight: 600; color: var(--scuro-su-menta); }
.pannello--petrolio .pannello__testo { color: var(--su-petrolio); }
.pannello__testo + .elenco { margin-top: 16px; }
.elenco--compatto { gap: 12px; }
.sezione__testo { margin: -4px 0 18px; max-width: 62em; font-size: 15.5px; line-height: 1.55; color: var(--testo); }

/* i rimandi alle pagine interne: link nel testo, non pulsanti */
.rimando { margin-top: 16px; font-size: 15.5px; }
.rimando a, .rimando__link {
  color: var(--verde); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 4px; text-decoration-color: rgba(28, 116, 92, .35); transition: text-decoration-color .2s ease, color .2s ease;
}
.rimando--chiaro a, .pannello--petrolio .rimando a { color: var(--bianco); text-decoration-color: rgba(255, 255, 255, .45); }
@media (hover: hover) and (pointer: fine) {
  .rimando a:hover, .rimando__link:hover { text-decoration-color: currentColor; }
}
.passi a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(28, 116, 92, .35); }

/* la storia: le tappe con la riga sotto */
.storia__intro--dopo { margin-top: 8px; color: var(--su-petrolio); }
.tempo b { display: block; }
.tempo li span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--su-petrolio); }

/* pulsanti con testi lunghi: vanno su due righe, senza tagliare niente */
.btn { text-wrap: balance; }
.contatti__azioni:where(:not(.whatsapp-box > *)) .btn { font-size: 14.5px; }
.contatti__dati li { font-size: 15.5px; }

/* barra fissa da telefono: i due pulsanti per esteso, su una riga; sotto 375 px uno sopra l'altro */
.barra-tel .btn { font-size: 14px; line-height: 1.2; padding: 8px 10px; gap: 8px; }
@media (max-width: 479px) { .barra-tel .btn img { display: none; } }
@media (max-width: 374px) { .barra-tel { grid-template-columns: 1fr; gap: 8px; } .barra-tel .btn { min-height: 44px; } .piede { padding-bottom: 150px; } }

/* piede: le colonne del design, coi link delle pagine */
.piede__nome { display: grid; gap: 4px; }
.piede__nome p { font-size: 14px; color: #4A504E; }
.piede__nome .piede__motto { font-size: 15.5px; color: #2E3130; font-weight: 600; }
.piede__nome a { color: inherit; text-decoration: none; }
.piede__link { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 2px 0; }
.piede__link li + li { border-left: 0; }
.piede__link a { padding: 6px 12px; font-size: 14.5px; }
.piede__legale p a { text-decoration: underline; text-underline-offset: 2px; }
.credit a { text-decoration: underline; }

@media (min-width: 760px) {
  .pannello__testo, .sezione__testo, .rimando { font-size: 17px; }
  .tempo li span { font-size: 16px; }
}
@media (min-width: 1040px) {
  .pannello__testo { font-size: 18.5px; }
  .pannello__testo + .elenco { margin-top: 18px; }
  .sezione__testo { font-size: 19px; margin: -8px 0 24px; }
  .rimando { margin-top: 18px; font-size: 18.5px; }
  #pronto-intervento .pannello { padding: 30px 38px; }
  .elenco--compatto { gap: 14px; }
  .elenco--compatto li { font-size: 20px; gap: 24px; }
  .elenco--compatto img, .elenco--righe img { width: 46px; height: 46px; }
  .pannello .btn--pieno { margin-top: 24px; min-height: 60px; font-size: 21px; }
  .duo--casa .pannello { flex-direction: column; align-items: stretch; justify-content: center; padding: 26px 38px; }
  .duo--casa .elenco--righe li { padding: 12px 0; font-size: 20px; }
  .duo--attivita .pannello { flex-direction: column; align-items: stretch; justify-content: center; padding: 26px 46px; }
  .elenco--attivita li { font-size: 20px; padding: 11px 0; }
  .whatsapp-box:where(:not([data-pagina] *)) p { font-size: 22px; }
  .whatsapp-box:where(:not([data-pagina] *)) .btn { font-size: 17px; min-height: 56px; padding: 10px 16px; }
  .blocco h3 { font-size: 32px; }
  .blocco { padding: 20px 0; }
  .storia__intro { font-size: 21px; }
  .tempo { gap: 18px; margin-top: 20px; }
  .tempo li { font-size: 21px; line-height: 1.25; }
  .tempo li span { font-size: 17px; }
  .rimando--chiaro { margin-top: 18px; }
  .faq__voce { padding: 18px 0; }
  .faq__voce p { font-size: 18.5px; }
  .contatti { gap: 16px; padding: 26px 30px; }
  .contatti__dati { gap: 10px; padding-left: 0; }
  .contatti__dati li { font-size: 19px; gap: 22px; }
  .contatti__dati img { width: 40px; height: 40px; }
  .contatti__azioni:where(:not(.whatsapp-box > *)) { gap: 14px 16px; }
  .contatti__azioni:where(:not(.whatsapp-box > *)) .btn { min-height: 60px; font-size: 17px; padding: 10px 16px; }
  .contatti .rimando { margin-top: 2px; }

  /* piede su una riga di tre colonne, alto come nel design */
  .piede { padding: 20px 0 22px; }
  .piede__riga { grid-template-columns: auto 1fr auto; align-items: center; }
  .piede__nome { padding: 2px 40px; }
  .piede__nome p { font-size: 14.5px; }
  .piede__nome .piede__motto { font-size: 16px; }
  .piede__link { grid-template-columns: repeat(4, auto); justify-content: end; gap: 6px 0; }
  .piede__link li, .piede__link li:first-child, .piede__link li + li { border-left: 2px solid var(--verde-linea); }
  .piede__link li:nth-child(4n+1) { border-left: 0; }
  .piede__link a { padding: 2px 22px; font-size: 16px; }
  .piede__link li:nth-child(4n+1) a { padding-left: 0; }
  .piede__link li:nth-child(4n) a, .piede__link li:last-child a { padding-right: 0; }
  .piede__legale { margin-top: 14px; padding-top: 12px; font-size: 13.5px; }
}

/* numeri di telefono mai spezzati; pulsanti da telefono su una riga dove ci stanno */
a[href^="tel:"]:not(.btn) { white-space: nowrap; }
@media (max-width: 759px) {
  .hero__azioni .btn, .menu-mobile__azioni .btn { font-size: 15px; padding-inline: 14px; }
  .contatti__azioni:where(:not(.whatsapp-box > *)) { grid-template-columns: 1fr; }
  .contatti__azioni:where(:not(.whatsapp-box > *)) .btn { font-size: 15px; }
  /* piede da telefono più compatto */
  .piede { padding-top: 22px; }
  .piede__riga { gap: 12px; }
  .piede__link a { padding: 4px 10px; }
  .piede__legale { margin-top: 14px; padding-top: 12px; }
}
@media (min-width: 1040px) {
  .blocco p { font-size: 19px; }
  .piede { padding: 16px 0 18px; }
  .piede__link a { padding: 2px 16px; }
  .piede__nome { padding: 2px 32px; }
  .piede__legale { margin-top: 10px; padding-top: 10px; }
}

/* i quattro passaggi: l'etichetta in due righe a 1440, come nel design (colonne un po' più larghe) */
@media (min-width: 1040px) {
  .passi-riga { grid-template-columns: 3fr 1fr; }
  .passi { padding-inline: 12px; }
  .passi li { padding: 0 4px; }
}

/* il primo passaggio è tutto un link alla telefonata: il numero resta intero */
.passi a.passi__tel { white-space: normal; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(28, 116, 92, .35); }

/* leggibilità sopra la lastra: il testo della hero non passa sul bordo luminoso del vetro */
.hero .btn--vetro { background: rgba(11, 20, 17, .38); }
@media (min-width: 1040px) { .hero__testo { max-width: 34em; } }
/* barra da telefono: «Richiedi informazioni senza impegno» in due righe, non tre */
.barra-tel .btn { padding: 8px; font-size: 13.5px; }

.barra-tel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 374px) { .barra-tel { grid-template-columns: 1fr; } }

/* ══ Step 6-bis · le pagine interne, coi pezzi della home ═══════════════════════════════════════ */
/* la voce della pagina in cui si è */
.menu a[aria-current="page"] { color: var(--bianco); }
.menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu-mobile__voci a[aria-current="page"] { color: var(--menta); }

/* la testata della pagina: la hero della home, più bassa */
:where([data-pagina]) .hero { padding: 104px 0 34px; }
:where([data-pagina]) .hero .hero__titolo { font-size: clamp(30px, 8.2vw, 58px); max-width: 15em; }
:where([data-pagina]) .hero .hero__testo + .hero__testo { margin-top: 8px; }
:where([data-testata="foto"]) .hero .hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: posa 1.8s var(--ease-out) both; }
:where([data-testata="foto"]) .hero .hero__fondo::after { background: linear-gradient(180deg, rgba(11, 20, 17, .88) 0%, rgba(11, 20, 17, .74) 60%, rgba(11, 20, 17, .82) 100%); }
:where(.hero) .contatti__dati { margin-top: 18px; display: grid; gap: 10px; }
:where(.hero) .contatti__dati li { color: #E5E9E7; font-size: 15.5px; display: flex; align-items: center; gap: 12px; }
:where(.hero) .contatti__dati img { width: 28px; height: 28px; flex: none; }
:where(.hero) .contatti__dati a { color: var(--bianco); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }

/* testi delle sezioni e pannelli larghi */
[data-blocco="intro"] { margin-bottom: 18px; }
[data-blocco="intro"] .sezione__testo { margin: 0; }
[data-blocco="intro"] .sezione__testo + .sezione__testo { margin-top: 6px; }
[data-blocco~="largo"] { display: grid; gap: 12px; }
[data-testo="grande"] { font-size: 19px; line-height: 1.4; color: var(--nero); font-weight: 500; }
.pannello--petrolio [data-testo="grande"] { color: var(--bianco); }
[data-testo="dopo"] { margin-top: 14px; }
[data-blocco="icone"] { display: flex; gap: 22px; margin-bottom: 4px; }
[data-blocco="icone"] img { width: 46px; height: 46px; }
[data-blocco~="blocchi"] { gap: 0; }
[data-blocco~="blocchi"] .blocco p { margin-top: 0; }
.blocco h2 { font-size: 22px; font-weight: 400; line-height: 1.2; color: var(--nero); letter-spacing: -0.01em; }
.blocco h2 + p, .blocco p + p { margin-top: 10px; }

/* il video accanto al testo (decori fatti a mano) */
[data-blocco="video"] { aspect-ratio: 3 / 4; background: #1A2421; }
[data-blocco="video"] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* la mappa con la foto dell'ingresso nell'angolo, come la foto piccola della casa */
[data-blocco="mappa"] { position: relative; }
[data-blocco="mappa"] .foto--inserto { width: 40%; right: 10px; bottom: 10px; }

/* la chiusura: il riquadro WhatsApp della home, largo */
:where([data-pagina]) .whatsapp-box { display: grid; gap: 18px; background: var(--chiaro-2); border-radius: var(--raggio); padding: 26px 20px; }
:where([data-pagina]) .whatsapp-box .titolo { margin-bottom: 10px; }
:where([data-pagina] .whatsapp-box) > .contatti__azioni { display: grid; gap: 10px; }
:where([data-pagina]) .whatsapp-box .tipi { margin: 0; border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 6px; overflow: visible; display: grid; grid-template-columns: repeat(2, 1fr); }
:where([data-pagina]) .whatsapp-box .tipi li { border-left: 0; padding: 12px 6px; }
:where([data-pagina]) .whatsapp-box .tipi li:nth-child(2n) { border-left: 1px solid var(--bordo); }
:where([data-pagina]) .whatsapp-box .tipi li:nth-child(n+3) { border-top: 1px solid var(--bordo); }

/* /lavori: i gruppi a griglia (due per riga da telefono), i salti ai gruppi, i video */
:where([data-pagina="lavori"] [role="tabpanel"]) > [aria-labelledby] + [aria-labelledby] { margin-top: 40px; }
:where([data-pagina="lavori"] [role="tabpanel"]) .titolo { font-size: clamp(24px, 6.4vw, 40px); margin-bottom: 8px; }
:where([data-pagina="lavori"]) [role="tabpanel"] .sezione__testo { margin: 0 0 16px; }
:where([data-pagina="lavori"]) .galleria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; overflow: visible; margin-inline: 0; padding-inline: 0; }
:where([data-pagina="lavori"]) .galleria .lavoro { aspect-ratio: 4 / 3; }
:where([data-pagina="lavori"]) .titolo-riga { justify-content: flex-end; margin: 26px 0 6px; }
:where([data-pagina="lavori"]) .tipi a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: inherit; border-radius: 12px; padding: 4px; transition: background-color .2s ease, transform .16s var(--ease-out); }
:where([data-pagina="lavori"]) .tipi a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { :where([data-pagina="lavori"]) .tipi a:hover { background: rgba(28, 116, 92, .06); } }
:where([data-pagina="servizi"]) .tipi li, :where([data-pagina="lavori"]) .tipi li { line-height: 1.3; }
:where([data-pagina="lavori"] #video) .elenco { margin: 4px 0 18px; }
:where([data-pagina="decori-e-cornici"]) .passi li > span:last-child { font-size: 15px; }

@media (min-width: 760px) {
  :where([data-pagina]) .hero { padding: 130px 0 46px; }
  :where([data-pagina="lavori"]) .galleria { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  :where([data-pagina="decori-e-cornici"]) .passi { grid-template-columns: repeat(5, 1fr); }
  :where([data-pagina]) .whatsapp-box { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 30px 32px; }
  :where([data-pagina] .whatsapp-box) > .contatti__azioni { justify-self: end; min-width: 300px; }
  :where([data-pagina="contatti"]) .whatsapp-box { grid-template-columns: 1fr; }
  :where([data-pagina="contatti"]) .whatsapp-box .tipi { grid-template-columns: repeat(4, 1fr); }
  :where([data-pagina="contatti"]) .whatsapp-box .tipi li { border-top: 0; border-left: 1px solid var(--bordo); }
  :where([data-pagina="contatti"]) .whatsapp-box .tipi li:first-child { border-left: 0; }
  :where([data-pagina="contatti"]) .whatsapp-box > .contatti__azioni { justify-self: start; display: flex; flex-wrap: wrap; }
  [data-blocco~="blocchi"] { grid-template-columns: 1fr 1fr; gap: 0 40px; }
  [data-blocco~="blocchi"] .rimando { grid-column: 1 / -1; }
  :where(.hero) .contatti__dati li { font-size: 18px; }
}
@media (min-width: 1040px) {
  :where([data-pagina]) .hero { min-height: 520px; padding: 140px 0 56px; display: flex; align-items: flex-end; }
  :where([data-pagina]) .hero .hero__corpo { width: 100%; }
  :where([data-testata="foto"]) .hero .hero__fondo::after { background: linear-gradient(90deg, rgba(11, 20, 17, .94) 0%, rgba(11, 20, 17, .84) 42%, rgba(11, 20, 17, .38) 100%); }
  :where([data-testata="foto"]) .hero .hero__img { object-position: 100% 50%; }
  :where([data-pagina]) .hero .hero__testo { max-width: 40em; }
  [data-blocco~="largo"] { padding: 30px 40px; }
  [data-testo="grande"] { font-size: 26px; }
  [data-blocco="duo-video"] [data-blocco="video"] { aspect-ratio: auto; min-height: 520px; height: 100%; }
  [data-blocco="duo-video"] { grid-template-columns: 1.2fr 1fr; }
  .blocco h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.015em; }
  .blocco h2 + p, .blocco p + p { margin-top: 12px; }
  :where([data-pagina="lavori"] [role="tabpanel"]) > [aria-labelledby] + [aria-labelledby] { margin-top: 64px; }
  :where([data-pagina="lavori"] [role="tabpanel"]) .titolo { font-size: 42px; margin-bottom: 10px; }
  :where([data-pagina="lavori"]) [role="tabpanel"] .sezione__testo { margin-bottom: 22px; }
  :where([data-pagina="servizi"]) .tipi li, :where([data-pagina="lavori"]) .tipi li { font-size: 17px; }
  :where([data-pagina="decori-e-cornici"]) .passi li > span:last-child { font-size: 17px; }
  :where([data-pagina="decori-e-cornici"]) .passi li::before { left: calc(50% + 46px); width: calc(100% - 92px); }
  :where([data-pagina]) .whatsapp-box { padding: 40px 48px; gap: 30px; }
  :where([data-pagina]) .whatsapp-box .pannello__testo { font-size: 20px; }
  :where([data-pagina] .whatsapp-box) > .contatti__azioni .btn { min-height: 58px; font-size: 18px; }
  :where([data-pagina="contatti"]) .whatsapp-box .tipi li { padding: 20px 6px 18px; font-size: 19px; }
  :where(.hero) .contatti__dati { gap: 12px; margin-top: 22px; }
  :where(.hero) .contatti__dati li { font-size: 20px; gap: 16px; }
  :where(.hero) .contatti__dati img { width: 34px; height: 34px; }
  [data-blocco="mappa"] .foto--inserto { width: 38%; }
}
/* numeri WhatsApp nel testo mai spezzati; nella mappa dei contatti «Cinecittà» sopra la foto dell'ingresso */
a.rimando__link[href^="https://wa.me"] { white-space: nowrap; }
[data-blocco="mappa"] .foto--inserto { width: 34%; }
[data-blocco="mappa"] .mappa__zona:nth-of-type(3) { top: 44% !important; left: 72% !important; }
/* telefoni stretti: le schede un po' più larghe dentro, così i testi lunghi restano su tre righe */
@media (max-width: 374px) {
  .pannello { padding-inline: 16px; }
  .pannello__testo { font-size: 15px; }
}

/* ══ 6-quater · Il salto di livello ════════════════════════════════════════════════════════════
   Stessa struttura, stesso copy, stesso kit e stessi colori: più profondità, più ritmo, un simbolo del sito
   (la «faccetta di vetro»: una linea menta col rombo, il bordo della lastra della hero) e più struttura. */

/* titoli bilanciati, mai una parola sola in fondo */
.hero__titolo, .hero__titolo .riga, .titolo, .blocco h2, .blocco h3, .faq__voce h3 { text-wrap: balance; }
.titolo { letter-spacing: -0.028em; line-height: 1.07; }
.titolo::before, .hero__occhiello::before, [data-testo="grande"]::before {
  content: ""; display: block; width: 58px; height: 10px; margin-bottom: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 10'%3E%3Cpath d='M0 5h42' stroke='%235FCFB6' stroke-width='2'/%3E%3Cpath d='M51 1l4 4-4 4-4-4z' fill='%231C745C'/%3E%3C/svg%3E") 0 50% / 58px 10px no-repeat;
}
.titolo-riga .titolo::before { margin-bottom: 14px; }
:where([data-pagina]) .whatsapp-box .titolo::before, .hero__occhiello::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 10'%3E%3Cpath d='M0 5h42' stroke='%235FCFB6' stroke-width='2'/%3E%3Cpath d='M51 1l4 4-4 4-4-4z' fill='%236FD2B9'/%3E%3C/svg%3E");
}
.hero__occhiello { display: flex; align-items: center; gap: 14px; }
.hero__occhiello::before { margin: 0; flex: none; width: 46px; background-size: 46px 10px; }

/* il ritmo: più aria e fasce chiare che si alternano al bianco */
.sezione { padding-top: 60px; }
.sezione--banda { background: var(--chiaro); padding-bottom: 60px; margin-top: 60px; }
.sezione--banda + .sezione:not(.sezione--banda) { padding-top: 60px; }
.sezione--banda .pannello--chiaro, .sezione--banda .faq, .sezione--banda .passi, .sezione--banda .tipi { background: var(--bianco); }
.sezione--ultima { padding-bottom: 72px; }

/* testi più leggibili nelle schede */
.pannello__testo, .sezione__testo { color: #2A2C2B; line-height: 1.62; }
.pannello--petrolio .pannello__testo { color: var(--su-petrolio); }
[data-testo="grande"] { color: var(--nero); font-weight: 400; letter-spacing: -0.015em; line-height: 1.3; }
[data-testo="grande"]::before { margin-bottom: 14px; }

/* profondità: foto con un filo di luce, pannelli chiari col bordo della lastra, petrolio col riflesso */
.foto, .lavoro, .mappa { box-shadow: 0 34px 60px -42px rgba(11, 20, 17, .55), 0 2px 8px -4px rgba(11, 20, 17, .12); }
.foto::after, .lavoro::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.pannello--chiaro { position: relative; box-shadow: 0 34px 60px -48px rgba(11, 20, 17, .45); }
.pannello--chiaro::before {
  content: ""; position: absolute; left: 22px; right: 42%; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--verde-linea), rgba(95, 207, 182, 0));
}
.pannello--petrolio {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 36%);
  box-shadow: 0 34px 60px -38px rgba(11, 20, 17, .6);
}

/* le icone del kit nei riquadri: un sistema, non icone sparse */
.elenco li > img, .faq__voce > img, .contatti__dati li > img, .blocco > img, [data-blocco="icone"] img {
  box-sizing: border-box; padding: 8px; border-radius: 14px; background: var(--bianco);
  box-shadow: inset 0 0 0 1px var(--bordo), 0 10px 20px -14px rgba(11, 20, 17, .4);
}
.elenco li > img { width: 44px; height: 44px; }
.faq__voce > img { width: 46px; height: 46px; }
.contatti__dati li > img { width: 40px; height: 40px; }
.blocco > img { width: 50px; height: 50px; }
.pannello--petrolio .elenco li > img, .pannello--petrolio [data-blocco="icone"] img {
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(209, 223, 221, .24);
}
[data-blocco="icone"] { gap: 12px; }
[data-blocco="icone"] img { width: 56px; height: 56px; padding: 10px; }
.passi__icona { background: var(--bianco); box-shadow: inset 0 0 0 1px var(--bordo), 0 12px 24px -16px rgba(11, 20, 17, .45); }
.tipi img { transition: transform .3s var(--ease-out); }

/* la hero della home: a tutto schermo, il testo in basso, i numeri su una lastra traslucida */
.hero:not([data-pagina] *) { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 84px; }
.hero:not([data-pagina] *) .hero__corpo { width: 100%; }
.hero__fondo::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 20, 17, 0) 0%, rgba(11, 20, 17, .6) 100%);
}
.hero__numeri {
  padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.testata:not(.scrolled) .testata__riga { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .09); }

/* la fascia delle icone: una scheda di vetro sovrapposta al bordo della hero */
.fascia { position: relative; z-index: 3; margin-top: -48px; }
.fascia__lista { background: var(--bianco); border-color: #E3ECEA; box-shadow: 0 40px 70px -40px rgba(11, 20, 17, .5), 0 2px 10px -6px rgba(11, 20, 17, .14); }

/* la galleria della home: la prima foto doppia, come in un portfolio */
.lavoro figcaption, .clip figcaption { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }

/* la storia: le tappe come date incise */
.tempo b { font-size: 21px; font-weight: 300; letter-spacing: -0.01em; }

/* la chiusura delle pagine interne: scura, sulla lastra della hero */
:where([data-pagina]) .whatsapp-box { position: relative; overflow: hidden; isolation: isolate; background: var(--notte); box-shadow: 0 40px 70px -40px rgba(11, 20, 17, .7); }
:where([data-pagina]) .whatsapp-box::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/hero-lastra-m.webp") 80% 100% / cover no-repeat;
}
:where([data-pagina]) .whatsapp-box::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 20, 17, .92) 0%, rgba(11, 20, 17, .8) 60%, rgba(11, 20, 17, .7) 100%);
}
:where([data-pagina]) .whatsapp-box .titolo { color: #F9F9F9; }
:where([data-pagina]) .whatsapp-box .pannello__testo { color: #D3D7D4; }
:where([data-pagina]) .whatsapp-box .rimando__link { color: var(--menta); text-decoration-color: rgba(111, 210, 185, .5); }
:where([data-pagina]) .whatsapp-box .btn--bianco { background: rgba(255, 255, 255, .04); color: var(--bianco); border-color: rgba(255, 255, 255, .78); }
:where([data-pagina]) .whatsapp-box .btn--bianco img { filter: brightness(0) invert(1); }
:where([data-pagina]) .whatsapp-box .tipi { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); }
:where([data-pagina]) .whatsapp-box .tipi li { color: #E5E9E7; border-color: rgba(255, 255, 255, .14) !important; }
:where([data-pagina]) .whatsapp-box .tipi img { filter: brightness(0) invert(1); opacity: .85; }
@media (hover: hover) and (pointer: fine) { :where([data-pagina]) .whatsapp-box .btn--bianco:hover { background: rgba(255, 255, 255, .1); } }

/* il piede: scuro come la hero, la cornice di tutto il sito */
.piede { position: relative; background: var(--notte); color: var(--su-notte); border-top: 0; }
.piede::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, rgba(95, 207, 182, 0), rgba(95, 207, 182, .7), rgba(95, 207, 182, 0)); }
.piede__nome .piede__motto { color: var(--bianco); }
.piede__nome p { color: var(--su-notte); }
.piede__link a { color: #E5E9E7; }
.piede__legale { border-top-color: rgba(255, 255, 255, .1); color: #9FA7A4; }
.piede__legale a, .credit a { color: #E5E9E7; }
@media (hover: hover) and (pointer: fine) { .piede__link a:hover, .piede__legale a:hover { color: var(--menta); } }

/* le testate delle pagine interne */
:where(.hero) .contatti__dati li > img { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); padding: 7px; width: 38px; height: 38px; }
:where([data-testata="foto"]) .hero .hero__fondo::after { background: linear-gradient(180deg, rgba(11, 20, 17, .9) 0%, rgba(11, 20, 17, .76) 55%, rgba(11, 20, 17, .88) 100%); }

/* telefono */
@media (max-width: 759px) {
  .hero:not([data-pagina] *) { padding-top: 96px; padding-bottom: 72px; }
  .hero__numeri { margin-top: 24px; }
  .fascia { margin-top: -40px; }
  .titolo::before { width: 50px; background-size: 50px 9px; margin-bottom: 12px; }
}

@media (min-width: 760px) {
  .sezione { padding-top: 76px; }
  .sezione--banda { padding-bottom: 76px; margin-top: 76px; }
  .sezione--banda + .sezione:not(.sezione--banda) { padding-top: 76px; }
  .hero__numeri { width: fit-content; padding: 18px 26px; }
  :where([data-pagina]) .whatsapp-box::before { background-image: url("../img/hero-lastra.webp"); background-position: 100% 50%; }
  :where([data-pagina]) .whatsapp-box::after { background: linear-gradient(90deg, rgba(11, 20, 17, .96) 0%, rgba(11, 20, 17, .82) 50%, rgba(11, 20, 17, .35) 100%); }
}

@media (min-width: 1040px) {
  .sezione { padding-top: 96px; }
  .sezione--banda { padding-bottom: 96px; margin-top: 96px; }
  .sezione--banda + .sezione:not(.sezione--banda) { padding-top: 96px; }
  .sezione--ultima { padding-bottom: 104px; }
  .titolo { font-size: 58px; margin-bottom: 30px; }
  .titolo-riga { margin-bottom: 30px; }

  .hero:not([data-pagina] *) { min-height: min(100svh, 920px); padding: 150px 0 128px; }
  .hero:not([data-pagina] *) .hero__titolo { font-size: 76px; }
  .hero__numeri { margin-top: 40px; padding: 20px 30px; }
  .fascia { margin-top: -76px; }
  .fascia__lista { padding: 26px 14px; border-radius: 24px; }

  .elenco li > img { width: 56px; height: 56px; padding: 10px; border-radius: 16px; }
  .elenco--compatto li > img, .elenco--righe li > img { width: 50px; height: 50px; padding: 9px; }
  .faq__voce > img { width: 58px; height: 58px; padding: 10px; border-radius: 16px; }
  .contatti__dati li > img { width: 48px; height: 48px; padding: 9px; }
  .blocco > img { width: 60px; height: 60px; padding: 10px; border-radius: 16px; }
  [data-blocco="icone"] img { width: 72px; height: 72px; padding: 13px; border-radius: 18px; }

  /* la galleria della home: la prima foto vale due colonne e due righe */
  #lavori .galleria:not([data-pagina] *) { grid-template-columns: repeat(3, 1fr); }
  #lavori .galleria:not([data-pagina] *) .lavoro:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  #lavori .galleria:not([data-pagina] *) .lavoro:first-child figcaption { font-size: 24px; left: 32px; bottom: 32px; }

  .tempo b { font-size: 30px; }
  .tempo li span { margin-top: 4px; }

  /* pannelli larghi: icone a sinistra e testo accanto, più struttura */
  [data-blocco~="largo"]:has([data-blocco="icone"]) { grid-template-columns: auto 1fr; align-items: center; column-gap: 36px; }
  [data-blocco~="largo"]:has([data-blocco="icone"]) [data-blocco="icone"] { grid-row: span 3; margin: 0; }
  [data-blocco~="largo"] .pannello__testo { font-size: 20px; }
  [data-blocco~="blocchi"] .blocco p { font-size: 20px; }

  /* le testate delle pagine interne: più alte, testo in basso, la striscia dei gruppi sovrapposta */
  :where([data-pagina]) .hero { min-height: 580px; padding-bottom: 72px; }
  :where([data-pagina]) .hero .hero__titolo { font-size: 60px; }
  :where([data-testata="foto"]) .hero .hero__fondo::after { background: linear-gradient(90deg, rgba(11, 20, 17, .95) 0%, rgba(11, 20, 17, .82) 40%, rgba(11, 20, 17, .3) 100%), linear-gradient(180deg, rgba(11, 20, 17, 0) 55%, rgba(11, 20, 17, .55) 100%); }
  #galleria { padding-top: 0; }
  :where([data-pagina="lavori"]) .tipi { position: relative; z-index: 3; margin-top: -56px; background: var(--bianco); box-shadow: 0 40px 70px -40px rgba(11, 20, 17, .5), 0 2px 10px -6px rgba(11, 20, 17, .14); }
  :where(.hero) .contatti__dati li > img { width: 46px; height: 46px; padding: 9px; }

  .piede { padding: 30px 0 26px; }
  .piede__logo img { height: 50px; }
}
/* la hero: il testo non passa sul bordo luminoso della lastra */
@media (min-width: 1040px) {
  .hero:not([data-pagina] *) .hero__testo { max-width: 31em; }
  .hero:not([data-pagina] *) .hero__fondo::after { background: linear-gradient(90deg, rgba(11, 20, 17, .78) 0%, rgba(11, 20, 17, .55) 34%, rgba(11, 20, 17, 0) 62%); }
}
@media (min-width: 1040px) {
  /* la lastra un po' più a destra: il bordo luminoso resta fuori dal testo */
  .hero:not([data-pagina] *) .hero__img--lastra { object-position: 62% 50%; }
  .hero:not([data-pagina] *) .hero__riflesso { -webkit-mask-position: 62% 50%; mask-position: 62% 50%; }
}

/* ══ Step 7 · il collaudo, secondo giro ════════════════════════════════════════════════════════ */
/* la fascia dei servizi entra con la hero, al caricamento: il suo bordo alto è già nella prima schermata */
.fascia { animation: sale .9s var(--ease-out) .58s both; --da: 32px; }
.js .fascia__lista[data-reveal="serie"] > * { opacity: 1; transform: none; transition: none; animation: sale .8s var(--ease-out) .7s both; --da: 18px; }
.js .fascia__lista[data-reveal="serie"] > :nth-child(2) { animation-delay: .76s; }
.js .fascia__lista[data-reveal="serie"] > :nth-child(3) { animation-delay: .82s; }
.js .fascia__lista[data-reveal="serie"] > :nth-child(4) { animation-delay: .88s; }
.js .fascia__lista[data-reveal="serie"] > :nth-child(5) { animation-delay: .94s; }
@media (prefers-reduced-motion: reduce) {
  .fascia, .js .fascia__lista[data-reveal="serie"] > * { animation-name: compare; animation-duration: .5s; }
}

/* /contatti, la mappa da telefono: l'etichetta della vetreria a sinistra del segnaposto, «Cinecittà» resta libera */
@media (max-width: 767px) {
  [data-blocco="mappa"] .mappa__punto { flex-direction: row-reverse; left: auto !important; right: calc(62% - 30px); }
  [data-blocco="mappa"] .mappa__punto::before { left: auto; right: 0; }
}
/* le mappe strette: «Cinecittà» staccata dal bordo destro */
@media (max-width: 429px) {
  .mappa:not([data-pagina] *) .mappa__zona:nth-of-type(3) { left: auto !important; right: 10px; }
}
@media (max-width: 374px) {
  [data-blocco="mappa"] .mappa__zona:nth-of-type(3) { top: 40% !important; left: auto !important; right: 10px; }
  [data-blocco="mappa"] .mappa__zona, [data-blocco="mappa"] .mappa__punto span { font-size: 12px; padding: 6px 9px; }
  [data-blocco="mappa"] .mappa__punto { gap: 4px; }
}
@media (max-width: 345px) {
  .mappa .mappa__zona:nth-of-type(2) { left: auto !important; right: 10px; }
  [data-blocco="mappa"] .mappa__punto span { padding-inline: 7px; }
}

/* /lavori: le voci della striscia che scorre più larghe, al massimo tre righe */
@media (max-width: 759px) {
  :where([data-pagina="lavori"]) .tipi li { flex-basis: 150px; }
}
@media (min-width: 760px) and (max-width: 879px) {
  :where([data-pagina="lavori"]) .tipi { flex-wrap: wrap; justify-content: center; }
  :where([data-pagina="lavori"]) .tipi li { flex: 0 0 25%; }
  :where([data-pagina="lavori"]) .tipi li:nth-child(5) { border-left: 0; }
  :where([data-pagina="lavori"]) .tipi li:nth-child(n+5) { border-top: 1px solid var(--bordo); }
}

/* /contatti, «Urgenze»: la faccetta solo davanti alla prima frase */
[data-testo="grande"] ~ [data-testo="grande"]::before { content: none; }

/* /chi-siamo, «Tecnica e arte»: su due colonne niente filetto sopra una colonna sola */
@media (min-width: 760px) {
  [data-blocco~="blocchi"] .blocco + .blocco { border-top: 0; }
}

/* le pagine legali e la 404: il piede sempre in fondo allo schermo */
body[data-pagina="legale"] { display: flex; flex-direction: column; min-height: 100vh; }
body[data-pagina="legale"] > main { flex: 1 0 auto; }

/* Servizi · i 7 tipi di vetro con la riga che li spiega (STOP 1, 08/11/2026: «si capisce tutto?») */
.tipi[data-tipi="spiegati"] {
  display: grid; grid-template-columns: 1fr; overflow: visible; scroll-snap-type: none;
  margin-inline: 0; border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 4px 20px;
}
.tipi[data-tipi="spiegati"] li {
  flex: none; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 3px;
  align-items: start; text-align: left; padding: 16px 0; border-left: 0; border-top: 1px solid var(--bordo);
  font-size: 16px; line-height: 1.35; color: var(--nero);
}
.tipi[data-tipi="spiegati"] li:first-child { border-top: 0; }
.tipi[data-tipi="spiegati"] img { grid-row: 1 / span 2; width: 36px; height: 36px; margin-top: 1px; }
.tipi[data-tipi="spiegati"] span { font-weight: 500; }
.tipi[data-tipi="spiegati"] small { grid-column: 2; font-size: 14.5px; line-height: 1.5; color: var(--testo-2); }
@media (min-width: 760px) {
  .tipi[data-tipi="spiegati"] { grid-template-columns: repeat(2, 1fr); column-gap: 44px; padding: 8px 32px; }
  .tipi[data-tipi="spiegati"] li { grid-template-columns: 48px 1fr; padding: 20px 0; font-size: 17px; }
  .tipi[data-tipi="spiegati"] li:nth-child(2) { border-top: 0; }
  .tipi[data-tipi="spiegati"] li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tipi[data-tipi="spiegati"] img { width: 44px; height: 44px; }
  .tipi[data-tipi="spiegati"] small { font-size: 15px; }
}
/* da computer 4 colonne: 4 + 3, nessuna voce da sola in una riga */
@media (min-width: 1040px) {
  .tipi[data-tipi="spiegati"] { grid-template-columns: repeat(4, 1fr); column-gap: 36px; row-gap: 6px; padding: 14px 32px; }
  .tipi[data-tipi="spiegati"] li, .tipi[data-tipi="spiegati"] li:nth-child(2) { border-top: 0; grid-template-columns: 1fr; padding: 18px 0; }
  .tipi[data-tipi="spiegati"] li:last-child:nth-child(odd) { grid-column: auto; }
  .tipi[data-tipi="spiegati"] img { grid-row: auto; margin: 0 0 8px; }
  .tipi[data-tipi="spiegati"] small { grid-column: 1; }
}

/* ── Il pannello (08/11/2026): gli orari e il pulsante delle recensioni, solo quando il cliente li mette ── */
.contatti__dati li:has(.contatti__orari) { align-items: flex-start; }
.contatti__orari { line-height: 1.45; }
.thk-orari-eccezioni { display: grid; gap: 6px; margin-top: 16px; }
.thk-orari-eccezioni p { margin: 0; font-size: 15px; line-height: 1.45; }
.thk-orari-eccezioni [data-thk-fermo] { font-weight: 700; }
.piede__nome .piede__orari { color: #4A504E; }

/* ══ 7-bis · la foto in cima cambiata dal pannello (una foto vera al posto della lastra del disegno) ════════════════════════
   La lastra di oggi si riconosce dall'indirizzo: hero-lastra nel sito statico, f6ffa7fb3e92ba67… (la sua impronta) nel pannello.
   Con un'altra foto: piena, il velo scuro delle pagine interne (il testo bianco resta leggibile anche su una foto chiara), niente
   riflesso a forma di lastra. Il punto toccato nel pannello (object-position in linea) vince sul centro. Con la lastra niente cambia. */
.hero__img--lastra:not([src*="hero-lastra"]):not([src*="f6ffa7fb3e92ba67"]) { opacity: 1; object-position: 50% 50%; }
.hero__fondo:has(.hero__img--lastra:not([src*="hero-lastra"]):not([src*="f6ffa7fb3e92ba67"])) .hero__riflesso { display: none; }
.hero__fondo:has(.hero__img--lastra:not([src*="hero-lastra"]):not([src*="f6ffa7fb3e92ba67"]))::after { background: linear-gradient(180deg, rgba(11, 20, 17, .88) 0%, rgba(11, 20, 17, .72) 60%, rgba(11, 20, 17, .84) 100%); }
@media (min-width: 1040px) {
  .hero__fondo:has(.hero__img--lastra:not([src*="hero-lastra"]):not([src*="f6ffa7fb3e92ba67"]))::after { background: linear-gradient(90deg, rgba(11, 20, 17, .92) 0%, rgba(11, 20, 17, .78) 40%, rgba(11, 20, 17, .42) 70%, rgba(11, 20, 17, .28) 100%); }
}

/* ══ 7-bis, giro 2 ═══════════════════════════════════════════════════════════════════════════════════════════════════════════
   L'avviso in cima al sito (il pannello lo accende): la testata fissa parte sotto l'avviso. Qui la misura di una riga, che vale
   anche prima che parta lo script; main.js la corregge con l'altezza vera (due righe sul telefono) e la fa salire scorrendo. */
body:has(> .avviso-sito) .testata { top: 42px; }
/* La pagina di pausa (la disegna il pannello col CSS del sito): il fondo scuro della testata, così il logo bianco si vede;
   la linea sopra la scritta col menta del sito, il resto bianco come nella hero. */
.thk-pausa-corpo { background: var(--notte); color: var(--bianco); }
.thk-pausa-corpo .thk-pausa-scritta::before { background: var(--menta); opacity: 1; }

