/* LPM Movimento Terra e Costruzioni — dal design 17 (kit design-marco-italiano)
   Colori misurati con confronta-design.py --colori sul design; caratteri serviti dal sito. */

@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --oliva-scuro: #31321E;   /* titoli e testo */
  --oliva-titolo: #2A2A06;  /* titoli condensati */
  --oliva: #3C3C12;         /* testata */
  --oliva-piede: #363C12;   /* piè di pagina */
  --arancione: #FD6702;     /* barre, numeri, punti elenco */
  --verde-wa: #1A8701;      /* pulsante WhatsApp */
  --verde-wa-chiaro: #1D9202;
  --carta: #FDF5EB;         /* fondo */
  --carta-2: #FBF1E6;       /* schede */
  --carta-3: #FEF8EE;       /* testo chiaro sul verde */
  --filo: #E2E1DB;          /* separatori e bordi */
  --terra: #725637;
  --ocra: #C0A791;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --contenuto: 1312px;
  --gutter: clamp(16px, 2.4vw, 32px);
  --raggio: 14px;
  --testata: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--testata) + 12px); }
html.menu-aperto { overflow: hidden; }
body { margin: 0; background: var(--carta); color: var(--oliva-scuro);
  font: 400 18px/1.55 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: clip; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
a, button, summary { touch-action: manipulation; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.salta { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--oliva); color: var(--carta);
  padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.salta:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--arancione); outline-offset: 3px; border-radius: 6px; }

.contenitore { width: 100%; max-width: calc(var(--contenuto) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* ── Titoli condensati con la barra obliqua del kit ───────────────────────── */
.titolo { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-style: italic; font-weight: 800;
  text-transform: uppercase; color: var(--oliva-titolo); line-height: .92; letter-spacing: -.005em;
  font-size: clamp(2.4rem, 4.6vw, 4.25rem); position: relative; padding-left: .62em; text-wrap: balance; }
.titolo::before { content: ""; position: absolute; left: 0; top: .02em; height: .98em; width: .34em;
  background: url("../img/icone/barra-obliqua.svg") no-repeat left top / contain; }
.titolo--piccolo { font-size: clamp(2rem, 3.6vw, 3.4rem); }

/* ── Pulsanti ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; cursor: pointer; border: 0;
  font: 600 1.25rem/1.2 "Figtree", sans-serif; border-radius: 12px; padding: 16px 28px 16px 20px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(.97); }
.btn--wa { color: #fff; background: linear-gradient(180deg, var(--verde-wa-chiaro), var(--verde-wa));
  box-shadow: 0 10px 24px -12px rgba(26, 135, 1, .7), inset 0 1px 0 rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.35); }
.btn--wa svg { width: 1.9em; height: 1.9em; flex: none; fill: currentColor; }
.btn--grande { font-size: clamp(1.15rem, 2vw, 1.65rem); padding: 20px 40px 20px 28px; border-radius: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn--wa:hover { box-shadow: 0 16px 30px -12px rgba(26, 135, 1, .8), inset 0 1px 0 rgba(255,255,255,.3); background: var(--verde-wa-chiaro); }
}
.link-freccia { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--oliva-titolo);
  text-decoration: none; border-bottom: 2px solid var(--arancione); padding: 4px 0; margin-top: 8px;
  -webkit-user-select: none; user-select: none; transition: color 180ms ease; }
.link-freccia::after { content: "→"; color: var(--arancione); transition: transform 200ms var(--ease-out); }
.link-freccia:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .link-freccia:hover { color: var(--terra); }
  .link-freccia:hover::after { transform: translateX(5px); }
}

/* ── Testata ─────────────────────────────────────────────────────────────── */
.testata { position: sticky; top: 0; z-index: 50; background: var(--oliva); color: var(--carta);
  padding-top: env(safe-area-inset-top, 0px); transition: box-shadow 250ms ease; }
.testata.scorsa { box-shadow: 0 8px 24px -14px rgba(0,0,0,.6); }
.testata__barra { display: flex; align-items: center; gap: 24px; height: var(--testata); }
.logo { display: block; flex: none; margin-right: auto; }
.logo img { height: 54px; width: auto; }
.menu { display: flex; align-items: center; }
.menu ul { display: flex; align-items: center; gap: 4px; }
.menu li + li::before { content: "·"; color: rgba(253,245,235,.45); margin: 0 6px 0 2px; }
.menu a { color: var(--carta); text-decoration: none; font-weight: 500; font-size: 1.06rem; padding: 8px 6px;
  border-radius: 6px; -webkit-user-select: none; user-select: none; transition: color 180ms ease; position: relative; }
.menu a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--arancione); }
@media (hover: hover) and (pointer: fine) { .menu a:hover { color: var(--ocra); } }
.wa-testata { display: inline-grid; place-items: center; width: 54px; height: 46px; border-radius: 10px; flex: none;
  background: linear-gradient(180deg, var(--verde-wa-chiaro), var(--verde-wa)); border: 1px solid rgba(255,255,255,.45);
  color: #fff; transition: transform 140ms var(--ease-out); }
.wa-testata svg { width: 30px; height: 30px; fill: currentColor; }
.wa-testata:active { transform: scale(.94); }
.hamburger { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid rgba(253,245,235,.35);
  background: transparent; color: var(--carta); cursor: pointer; padding: 0; position: relative; }
.hamburger span, .hamburger span::before, .hamburger span::after { position: absolute; left: 12px; right: 12px; height: 2px;
  background: currentColor; border-radius: 2px; content: ""; transition: transform 220ms var(--ease-out), opacity 150ms ease; }
.hamburger span { top: 22px; }
.hamburger span::before { left: 0; right: 0; top: -7px; }
.hamburger span::after { left: 0; right: 0; top: 7px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.hamburger:active { transform: scale(.94); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; color: var(--carta-3); background: var(--oliva-scuro); overflow: hidden; isolation: isolate; }
.hero__foto { position: absolute; inset: 0; z-index: -2; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(49,50,30,.92) 0%, rgba(49,50,30,.78) 30%, rgba(49,50,30,.25) 55%, rgba(49,50,30,0) 70%); }
.hero__testo { min-height: clamp(520px, 41vw, 640px); display: flex; flex-direction: column; justify-content: center;
  padding-top: 48px; padding-bottom: 56px; max-width: 760px; margin-left: 0; }
.hero h1 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-style: italic; font-weight: 800;
  text-transform: uppercase; line-height: .9; font-size: clamp(2.7rem, 5.6vw, 5.4rem); color: #FEF8EE;
  position: relative; padding-left: .6em; text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero h1::before { content: ""; position: absolute; left: 0; top: .04em; height: 1.05em; width: .34em;
  background: url("../img/icone/barra-obliqua.svg") no-repeat left top / contain; }
.hero__sotto { font-size: clamp(1.1rem, 1.7vw, 1.6rem); line-height: 1.35; margin: 22px 0 30px; max-width: 34ch;
  text-shadow: 0 1px 10px rgba(0,0,0,.45); }

/* ── Riepilogo dei tre servizi ──────────────────────────────────────────── */
.riepilogo { border-bottom: 1px solid var(--filo); }
.riepilogo ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.riepilogo li + li { border-left: 1px solid var(--filo); }
.riepilogo a { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%;
  padding: 40px clamp(16px, 2.4vw, 36px); text-decoration: none; transition: background-color 220ms ease; }
.riepilogo a:active { transform: scale(.98); }
.riepilogo__nome { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; text-transform: uppercase;
  color: var(--oliva-titolo); font-size: clamp(1.7rem, 3vw, 2.9rem); line-height: .9; position: relative; padding-left: .6em; }
.riepilogo__nome::before { content: ""; position: absolute; left: 0; top: .02em; height: 1em; width: .34em;
  background: url("../img/icone/barra-obliqua.svg") no-repeat left top / contain; }
.riepilogo img { width: clamp(80px, 9vw, 130px); height: auto; flex: none; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .riepilogo a:hover { background: var(--carta-2); }
  .riepilogo a:hover img { transform: translateX(6px); }
}

/* ── Sezioni ─────────────────────────────────────────────────────────────── */
.sezione { padding: 52px 0; }
.sezione + .sezione { border-top: 1px solid var(--filo); }
.sezione--senza-filo { border-top: 0 !important; }
.testo-grande { font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.45; }

.due-colonne { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.due-colonne--foto-sinistra { grid-template-columns: 1.05fr 1fr; }
.due-colonne--foto-sinistra .due-colonne__foto { order: -1; }
.foto-arrotondata { display: block; border-radius: var(--raggio); overflow: hidden; background: var(--carta-2);
  box-shadow: 0 22px 40px -30px rgba(49,50,30,.55); }
.foto-arrotondata img { width: 100%; height: 100%; object-fit: cover; }
.foto-arrotondata--larga { aspect-ratio: 16 / 9; }
.foto-arrotondata--alta { aspect-ratio: 4 / 3; }
.due-colonne__testo .titolo { margin-bottom: 24px; }
.due-colonne__testo .testo-grande { margin-bottom: 26px; max-width: 30ch; }

.elenco li { display: flex; align-items: center; gap: 18px; font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.25;
  padding: 7px 0; }
.elenco li::before { content: ""; width: 18px; height: 18px; flex: none;
  background: url("../img/icone/punto-elenco-quadrato.svg") no-repeat center / contain; }
.elenco--tondo li { font-weight: 600; }
.elenco--tondo li::before { background-image: url("../img/icone/punto-elenco-tondo.svg"); }

/* ── Mezzi e lavori: schede con foto ───────────────────────────────────── */
.intro-sezione { margin-bottom: 30px; }
.intro-sezione .titolo { margin-bottom: 14px; }
.griglia-mezzi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.griglia-lavori { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scheda-foto { margin: 0; text-align: center; }
.scheda-foto__img { border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--carta-2);
  box-shadow: 0 16px 32px -26px rgba(49,50,30,.6); cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; }
.scheda-foto__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.griglia-lavori .scheda-foto__img { aspect-ratio: 16 / 10; }
.scheda-foto figcaption { font-weight: 600; font-size: clamp(1.02rem, 1.4vw, 1.3rem); padding-top: 14px; line-height: 1.25; }
@media (hover: hover) and (pointer: fine) { .scheda-foto__img:hover img { transform: scale(1.05); } }

.contatore { display: none; }

/* ── Come lavoriamo ─────────────────────────────────────────────────────── */
.passi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.passo { display: flex; align-items: center; gap: 18px; background: var(--carta-2); border: 1px solid var(--filo);
  border-radius: 14px; padding: 22px 22px; box-shadow: 0 10px 26px -24px rgba(49,50,30,.5); }
.passo__numero { width: 54px; height: 70px; flex: none; object-fit: contain; }
.passo__divisore { width: 1px; align-self: stretch; background: var(--ocra); opacity: .7; flex: none; }
.passo__icona { width: 96px; height: 68px; object-fit: contain; flex: none; }
.passo p { margin: 0; font-size: clamp(1rem, 1.4vw, 1.3rem); line-height: 1.3; font-weight: 500; }

/* ── Zona ───────────────────────────────────────────────────────────────── */
.zona { position: relative; padding: 0; overflow: hidden; isolation: isolate; min-height: clamp(380px, 31vw, 450px);
  display: flex; align-items: center; background: var(--carta); }
.zona__foto { position: absolute; inset: 0; z-index: -2; }
.zona__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.zona::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--carta) 0%, rgba(253,245,235,.92) 24%, rgba(253,245,235,.55) 34%, rgba(253,245,235,0) 46%); }
.zona__curva { position: absolute; bottom: 0; width: clamp(200px, 22vw, 330px); z-index: 0; pointer-events: none; opacity: .9; }
.zona__curva--sx { left: 0; }
.zona__curva--dx { right: 0; }
.zona__testo { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 60px; }
.zona__testo .titolo { margin-bottom: 18px; max-width: 9.5em; }
.zona__testo p { max-width: 24ch; font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 500; }

/* ── Domande frequenti ─────────────────────────────────────────────────── */
.domande .titolo { margin-bottom: 26px; }
.domanda { border: 1px solid var(--filo); border-radius: 12px; background: var(--carta-2); margin-bottom: 12px;
  transition: border-color 200ms ease, background-color 200ms ease; }
.domanda[open] { border-color: var(--ocra); background: #FEF8EE; }
.domanda summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 18px 24px; font-weight: 600; font-size: clamp(1.1rem, 1.7vw, 1.55rem); -webkit-user-select: none; user-select: none; }
.domanda summary::-webkit-details-marker { display: none; }
.domanda summary::after { content: ""; width: 28px; height: 28px; flex: none;
  background: url("../img/icone/piu-domande-frequenti.svg") no-repeat center / contain; transition: transform 240ms var(--ease-out); }
.domanda[open] summary::after { transform: rotate(45deg); }
.domanda__risposta { padding: 0 24px 20px; font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 70ch; }
.domanda__risposta p { margin: 0; }

/* ── Il gruppo ─────────────────────────────────────────────────────────── */
.gruppo .titolo { margin-bottom: 18px; }
.societa { display: grid; grid-template-columns: repeat(3, 1fr); }
.societa li { text-align: center; padding: 8px 20px 18px; display: flex; flex-direction: column; align-items: center; }
.societa li + li { border-left: 1px solid var(--filo); }
.societa__nome { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; color: var(--oliva-titolo);
  font-size: clamp(3.4rem, 7vw, 6.6rem); line-height: .9; letter-spacing: -.01em; }
.societa__cosa { font-size: clamp(1.05rem, 1.6vw, 1.45rem); line-height: 1.25; margin: 6px 0 18px; max-width: 18ch; }
.societa__linea { width: 64%; height: 4px; background: var(--arancione); border-radius: 2px; margin-top: auto; }
.societa .link-freccia { margin: 0 0 16px; font-size: 1rem; }

/* ── Richiesta finale ──────────────────────────────────────────────────── */
.richiesta { text-align: center; padding: 30px 0 64px; }
.richiesta__titolo { display: flex; align-items: center; gap: 28px; justify-content: center; margin-bottom: 22px; }
.richiesta__titolo::before, .richiesta__titolo::after { content: ""; flex: 1; height: 3px; background: var(--arancione);
  max-width: 200px; border-radius: 2px; }
.richiesta h2 { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; text-transform: uppercase;
  color: var(--oliva-titolo); font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: .95; }
.richiesta__testo { max-width: 46ch; margin: 0 auto 26px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }

/* ── Piè di pagina ─────────────────────────────────────────────────────── */
.piede { background: var(--oliva-piede); color: var(--carta); padding: 34px 0 calc(26px + env(safe-area-inset-bottom, 0px)); }
.piede__barra { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.piede__marchio img { height: 64px; width: auto; }
.piede__marchio p { margin: 10px 0 0; font-size: .95rem; opacity: .9; }
.piede nav { border-left: 1px solid rgba(253,245,235,.45); border-right: 1px solid rgba(253,245,235,.45); padding: 4px 32px; }
.piede nav ul { display: flex; flex-wrap: wrap; gap: 6px 30px; justify-content: center; }
.piede nav a { color: var(--carta); text-decoration: none; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .piede nav a:hover { color: var(--ocra); } }
.firma { font-style: italic; text-align: right; line-height: 1.3; font-size: 1rem; }
.firma a { color: var(--carta); font-weight: 600; }
.piede__legale { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(253,245,235,.2); font-size: .9rem;
  display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; opacity: .92; }
.piede__legale a { color: var(--carta); }
.piede__legale p { margin: 0; }

/* ── Pagine interne ───────────────────────────────────────────────────── */
.hero--interna .hero__testo { min-height: clamp(440px, 34vw, 540px); }
.briciole { font-size: .95rem; margin-bottom: 18px; opacity: .92; }
.briciole a { color: inherit; }
.blocco-schede { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.scheda-icona { background: var(--carta-2); border: 1px solid var(--filo); border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 26px -24px rgba(49,50,30,.5); }
.scheda-icona img { width: 100%; max-width: 200px; height: 120px; object-fit: contain; align-self: center; }
.scheda-icona p { margin: 0; font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.fascia-verde { background: var(--oliva); color: var(--carta); position: relative; overflow: hidden; isolation: isolate; }
.fascia-verde .titolo { color: #FEF8EE; }
.fascia-verde .curve { position: absolute; right: 0; bottom: 0; width: 360px; opacity: .5; z-index: -1; }
.opere { columns: 2; column-gap: 48px; }
.opere li { break-inside: avoid; display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--filo); font-size: 1.08rem; }
.opere li::before { content: ""; width: 14px; height: 14px; margin-top: 6px; flex: none;
  background: url("../img/icone/punto-elenco-quadrato.svg") no-repeat center / contain; }
.citazione-numero { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.legale-pagina { max-width: 860px; padding-top: 48px; padding-bottom: 72px; }
.legale-pagina h1 { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--oliva-titolo); margin-bottom: 12px; line-height: .95; }
.legale-pagina h2 { font-size: 1.35rem; margin: 30px 0 10px; }
.legale-pagina li { list-style: disc; margin-left: 1.2em; margin-bottom: 6px; }
.legale-pagina table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legale-pagina td, .legale-pagina th { border: 1px solid var(--filo); padding: 8px; text-align: left; vertical-align: top; }
.pagina-404 { text-align: center; padding: 90px 0 110px; }
.pagina-404 .titolo { display: inline-block; margin-bottom: 18px; }
.pagina-404 p { font-size: 1.25rem; }
.pagina-404 .azioni { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.btn--scuro { background: var(--oliva); color: var(--carta); padding: 16px 28px; }

/* ── Finestra delle foto ──────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,21,10,.94); display: none; color: #fff;
  opacity: 0; transition: opacity 200ms ease; }
.lightbox.aperta { display: block; }
.lightbox.visibile { opacity: 1; }
.lightbox__palco { position: absolute; inset: 56px 0 56px; display: flex; align-items: center; justify-content: center;
  overflow: auto; touch-action: pan-x pan-y pinch-zoom; }
.lightbox__palco img { max-width: min(92vw, 1600px); max-height: 100%; object-fit: contain; border-radius: 8px; cursor: zoom-in;
  transition: transform 260ms var(--ease-out); }
.lightbox__palco.zoom { align-items: flex-start; justify-content: flex-start; }
.lightbox__palco.zoom img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.lightbox button { position: absolute; background: rgba(253,245,235,.12); border: 1px solid rgba(253,245,235,.3); color: #fff;
  width: 52px; height: 52px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background-color 180ms ease, transform 140ms var(--ease-out); -webkit-user-select: none; user-select: none; }
.lightbox button:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .lightbox button:hover { background: rgba(253,245,235,.25); } }
.lightbox__chiudi { top: calc(10px + env(safe-area-inset-top, 0px)); right: 14px; }
.lightbox__prima { left: 14px; top: 50%; margin-top: -26px; }
.lightbox__dopo { right: 14px; top: 50%; margin-top: -26px; }
.lightbox__numero { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); text-align: center;
  font-weight: 600; letter-spacing: .04em; }

/* ── Movimento (step 5-bis) ───────────────────────────────────────────── */
@keyframes entra-su { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes entra-barra { from { opacity: 0; transform: translateY(-18px) skewX(-8deg); } to { opacity: 1; transform: none; } }
@keyframes respiro { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__foto img { animation: respiro 1600ms var(--ease-out) both; }
.hero .entra { animation: entra-su 820ms var(--ease-out) both; }
.hero .entra:nth-child(2) { animation-delay: 120ms; }
.hero .entra:nth-child(3) { animation-delay: 220ms; }
.hero .entra:nth-child(4) { animation-delay: 300ms; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 760ms var(--ease-out), transform 760ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-figli > * { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal-figli.in > * { opacity: 1; transform: none; }
.reveal-figli.in > *:nth-child(2) { transition-delay: 70ms; }
.reveal-figli.in > *:nth-child(3) { transition-delay: 130ms; }
.reveal-figli.in > *:nth-child(4) { transition-delay: 200ms; }
.reveal-figli.in > *:nth-child(5) { transition-delay: 260ms; }
.reveal-figli.in > *:nth-child(6) { transition-delay: 320ms; }
.reveal-figli.in > *:nth-child(7) { transition-delay: 370ms; }
.svela { clip-path: inset(0 0 0 0 round var(--raggio)); }
.reveal .svela, .svela.reveal { clip-path: inset(0 0 12% 0 round var(--raggio)); transition: clip-path 1000ms var(--ease-out), opacity 760ms var(--ease-out), transform 760ms var(--ease-out); }
.reveal.in .svela, .svela.reveal.in { clip-path: inset(0 0 0 0 round var(--raggio)); }
.titolo.reveal::before { transition: transform 700ms var(--ease-out) 120ms; transform: translateY(-14px) skewX(-6deg); }
.titolo.reveal.in::before { transform: none; }
.societa__linea { transform-origin: left center; }
.reveal-figli .societa__linea { transform: scaleX(.2); transition: transform 900ms var(--ease-out) 250ms; }
.reveal-figli.in .societa__linea { transform: scaleX(1); }
.parallasse { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__foto img { animation: none; }
  .hero .entra { animation-name: appare; animation-duration: 400ms; }
  .reveal, .reveal-figli > * { transform: none; transition: opacity 500ms ease; }
  .reveal .svela, .svela.reveal { clip-path: none; }
  .titolo.reveal::before, .reveal-figli .societa__linea { transform: none; }
  .parallasse { transform: none !important; }
}
@keyframes appare { from { opacity: 0; } to { opacity: 1; } }

/* ── Tablet e telefono ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .menu a { font-size: .98rem; }
  .menu li + li::before { margin: 0 3px 0 0; }
}
@media (max-width: 980px) {
  :root { --testata: 64px; }
  .logo img { height: 46px; }
  .hamburger { display: block; }
  .testata__barra { gap: 12px; }
  .menu { position: fixed; inset: calc(var(--testata) + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--oliva);
    height: calc(100dvh - var(--testata) - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain;
    padding: 18px max(var(--gutter), env(safe-area-inset-left, 0px)) calc(30px + env(safe-area-inset-bottom, 0px));
    flex-direction: column; align-items: stretch; visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity 180ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms; }
  .menu.aperto { visibility: visible; opacity: 1; transform: none; transition: opacity 260ms ease, transform 320ms var(--ease-out), visibility 0s; }
  .menu ul { flex-direction: column; align-items: stretch; gap: 0; }
  .menu li + li::before { display: none; }
  .menu li { border-bottom: 1px solid rgba(253,245,235,.15); }
  .menu a { display: block; font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 800; text-transform: uppercase;
    font-size: 2rem; padding: 14px 4px; }
  .menu.aperto li { animation: entra-su 420ms var(--ease-out) both; }
  .menu.aperto li:nth-child(2) { animation-delay: 40ms; } .menu.aperto li:nth-child(3) { animation-delay: 80ms; }
  .menu.aperto li:nth-child(4) { animation-delay: 120ms; } .menu.aperto li:nth-child(5) { animation-delay: 160ms; }
  .riepilogo ul { grid-template-columns: 1fr; }
  .riepilogo li + li { border-left: 0; border-top: 1px solid var(--filo); }
  .riepilogo a { padding: 22px 4px; }
  .due-colonne, .due-colonne--foto-sinistra { grid-template-columns: 1fr; }
  .due-colonne__foto { order: -1; }
  .griglia-mezzi { grid-template-columns: repeat(2, 1fr); }
  .passi { grid-template-columns: 1fr; }
  .societa { grid-template-columns: 1fr; }
  .societa li + li { border-left: 0; border-top: 1px solid var(--filo); padding-top: 22px; }
  .piede__barra { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 22px; }
  .piede nav { border: 0; border-top: 1px solid rgba(253,245,235,.3); border-bottom: 1px solid rgba(253,245,235,.3); padding: 16px 0; width: 100%; }
  .firma { text-align: center; }
  .piede__legale { justify-content: center; text-align: center; }
  .opere { columns: 1; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .sezione { padding: 30px 0; }
  .hero__foto img { object-position: 98% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(49,50,30,.15) 0%, rgba(49,50,30,.2) 30%, rgba(49,50,30,.78) 55%, rgba(49,50,30,.95) 100%); }
  .hero__testo { min-height: min(640px, calc(100svh - var(--testata))); justify-content: flex-end; padding-top: 150px; padding-bottom: 30px; }
  .hero__sotto { margin: 14px 0 22px; }
  .hero .btn { width: 100%; justify-content: center; }
  .btn { font-size: 1.08rem; padding: 14px 18px; }
  .btn--grande { font-size: 1.1rem; padding: 16px 18px; width: 100%; justify-content: center; }
  .griglia-lavori { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .griglia-lavori::-webkit-scrollbar { display: none; }
  .griglia-lavori .scheda-foto { flex: 0 0 82%; scroll-snap-align: start; }
  .griglia-lavori .scheda-foto__img img, .griglia-lavori .scheda-foto__img:active { transform: none; }
  .contatore { display: block; text-align: center; font-weight: 600; margin-top: 10px; color: var(--terra); }
  .zona { flex-direction: column; align-items: stretch; min-height: 0; }
  .zona__foto { position: relative; inset: auto; height: 230px; order: 2; }
  .zona::before { display: none; }
  .zona__testo { padding-top: 32px; padding-bottom: 20px; }
  .zona__curva { display: none; }
  .domanda summary { padding: 16px 18px; }
  .domanda__risposta { padding: 0 18px 18px; }
  .richiesta__titolo { gap: 12px; }
  .richiesta__titolo::before, .richiesta__titolo::after { max-width: 40px; }
  .passo { padding: 16px; gap: 14px; }
  .passo__numero { width: 40px; height: 54px; }
  .passo__icona { width: 76px; height: 54px; }
  .lightbox__prima, .lightbox__dopo { top: auto; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); margin-top: 0; }
}

/* step 6 */
.pre-elenco { font-weight: 600; margin: -8px 0 6px; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.link-coppia { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 4px 0 0; }

/* step 6-bis: pagine interne, coi pezzi della home */
.fascia-chiara { background: var(--carta-2); }
.nota-sotto { margin-top: 26px; max-width: 60ch; }
.due-colonne--larga { grid-template-columns: 1fr 1fr; align-items: start; }
.schede-mezzi { grid-template-columns: repeat(2, 1fr); }
.schede-mezzi .scheda-icona img, .schede-strette .scheda-icona img { height: 96px; }
.schede-chiare .scheda-icona { background: #FEF8EE; }
.schede-strette { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.schede-strette .scheda-icona { padding: 14px; }
.schede-strette .scheda-icona p { font-size: 1rem; }
.due-rimandi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.rimando { background: var(--carta-2); border: 1px solid var(--filo); border-radius: 16px; padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 12px 30px -26px rgba(49,50,30,.5); }
.rimando .titolo { margin-bottom: 16px; }
.fascia-verde .rimando { background: rgba(253,245,235,.06); border-color: rgba(253,245,235,.18); }
.fascia-verde p { color: var(--carta); }
.link-freccia--chiaro { color: #FEF8EE; }
.fascia-chiara .rimando { background: var(--carta); }
.richiesta--pagina { padding: 56px 0 64px; background: var(--carta-2); border-top: 1px solid var(--filo); }
.elenco-centro { display: flex; justify-content: center; margin: 0 0 26px; text-align: left; }
.materiali { display: flex; gap: 12px; }
.materiali img { width: 31%; height: auto; }
.foto-arrotondata--verticale { aspect-ratio: 4 / 5; max-height: 620px; }
.foto-arrotondata--verticale img { object-position: 50% 62%; }
.foto-arrotondata--striscione { aspect-ratio: 1400 / 494; margin-top: 30px; }
.societa--due { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 10px auto 0; }
.gruppo .testo-grande { margin-bottom: 18px; }
@media (max-width: 980px) {
  .due-rimandi { grid-template-columns: 1fr; }
  .societa--due { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .blocco-schede { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .scheda-icona { padding: 14px; }
  .scheda-icona img { height: 84px; }
  .scheda-icona p { font-size: .98rem; }
  .schede-strette { grid-template-columns: repeat(3, 1fr); }
  .schede-strette .scheda-icona p { font-size: .85rem; }
  .elenco-centro { justify-content: flex-start; }
  .foto-arrotondata--verticale { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .blocco-schede > li:last-child:nth-child(odd) { grid-column: span 2; }
  .schede-strette > li:last-child:nth-child(odd) { grid-column: auto; }
}
.menu__chiudi { display: none; }
@media (max-width: 980px) {
  .menu__chiudi { display: block; margin-top: 22px; align-self: flex-start; background: transparent; color: var(--carta);
    border: 1px solid rgba(253,245,235,.35); border-radius: 10px; padding: 12px 18px; font: 600 1rem "Figtree", sans-serif; cursor: pointer; }
  .menu__chiudi:active { transform: scale(.97); }
}
@media (max-width: 760px) {
  .richiesta { padding: 24px 0 44px; }
  .richiesta h2 { font-size: 1.85rem; }
  .richiesta__titolo { gap: 10px; margin-bottom: 18px; }
  .richiesta__titolo::before, .richiesta__titolo::after { max-width: 26px; }
}

/* due colonne larghe: una sola colonna sul telefono (la regola sopra arriva dopo quella generale) */
.due-colonne > * { min-width: 0; }
@media (max-width: 980px) { .due-colonne--larga { grid-template-columns: 1fr; } .due-colonne--larga .due-colonne__foto { order: 0; } }

/* le schede chiare dentro la fascia verde: il testo resta scuro */
.fascia-verde .scheda-icona p { color: var(--oliva-titolo); }
/* la curva del kit sotto al testo, non sopra: più leggera sul telefono */
@media (max-width: 980px) { .fascia-verde .curve { width: 220px; opacity: .28; } }
/* «Per chi lavoriamo» sul telefono: una scheda per riga, disegno a sinistra e testo a destra */
@media (max-width: 600px) {
  .schede-strette { grid-template-columns: 1fr; gap: 10px; }
  .schede-strette .scheda-icona { flex-direction: row; align-items: center; gap: 16px; padding: 12px 16px; }
  .schede-strette .scheda-icona img { width: 72px; height: 60px; flex: none; }
  .schede-strette .scheda-icona p { font-size: 1rem; }
}

/* nova: le due schede in alto, accanto al titolo */
#lavori-edili .due-colonne { align-items: start; }

.hero__foto picture { display: contents; }
