/* ==========================================================================
   EDICOM — foglio di stile
   Palette: calcestruzzo (fondo), asfalto (scuro), blu di progetto (quote),
   arancio cantiere (accento, usato con parsimonia).
   Tipografia: Archivo (asse larghezza: Expanded per i titoli, Condensed per
   le etichette), Source Serif 4 per il testo.
   ========================================================================== */

:root {
  --cemento: #E4E6E2;
  --cemento-2: #D3D6D0;
  --carta: #F4F4F1;
  --asfalto: #15181C;
  --asfalto-2: #21262C;
  --acciaio: #4A525B;
  --acciaio-2: #8A929B;
  --progetto: #1F4E8C;
  --progetto-light: #7FA6D9;
  --cantiere: #F26B1D;
  --cantiere-dark: #C9520E;

  --display: 'Archivo', 'Arial Black', Impact, sans-serif;
  --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --sez-pad: clamp(80px, 11vw, 160px);

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur: .8s;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
/* lo scorrimento morbido si attiva da JS dopo il caricamento, così il ripristino
   della posizione fatto dal browser non parte come un'animazione verso il fondo */
html.smooth { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.smooth { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cemento);
  color: var(--asfalto);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--asfalto); color: #fff; padding: 10px 14px;
  font-family: var(--display); font-size: 14px; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- tipografia ---------- */
.h2 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 14ch;
}
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--acciaio); max-width: 52ch; }
.eyebrow {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--progetto);
}
.didascalia {
  font-family: var(--display); font-stretch: 78%; font-weight: 500;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--acciaio); margin-top: 12px;
}

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-stretch: 100%; font-weight: 700;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 16px 26px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s;
  line-height: 1;
}
.btn--accent { background: var(--cantiere); color: #fff; border-color: var(--cantiere); }
.btn--accent:hover { background: var(--cantiere-dark); border-color: var(--cantiere-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn:active { transform: translateY(1px); }

.link-arrow {
  font-family: var(--display); font-stretch: 100%; font-weight: 700; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--progetto); border-bottom: 2px solid currentColor; padding-bottom: 4px;
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--cantiere); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  transition: background-color .35s, box-shadow .35s, color .35s;
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.nav.is-solid { background: rgba(21,24,28,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo__mark { width: 26px; height: 26px; fill: currentColor; }
.logo__word {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: 20px; letter-spacing: .06em;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a, .mobile a:not(.btn) {
  font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  opacity: .85; transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }
.nav__cta { padding: 12px 20px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 7px; align-items: center; color: inherit;
}
.nav__toggle span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile[hidden] { display: none; }
.mobile {
  background: var(--asfalto); padding: 8px var(--gutter) 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.mobile a:not(.btn) { font-size: 18px; }
.mobile .btn { align-self: flex-start; margin-top: 8px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------- hero ---------- */
html.shot .hero { min-height: 900px; }
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: #fff; background: var(--asfalto); overflow: hidden;
  padding: 110px var(--gutter) clamp(56px, 8vw, 110px);
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center 40%; }
.hero__media img { transform-origin: 55% 35%; will-change: transform; }
.hero.is-loaded .hero__media img { animation: heroZoom 6.5s cubic-bezier(.15, .6, .2, 1) both; }
@keyframes heroZoom { from { transform: scale(1.22); filter: brightness(.7); } to { transform: scale(1); filter: brightness(1); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21,24,28,.55) 0%, rgba(21,24,28,.05) 35%, rgba(21,24,28,.25) 65%, rgba(21,24,28,.92) 100%),
    linear-gradient(90deg, rgba(21,24,28,.35), transparent 60%);
}

.hero__content {
  position: relative; z-index: 2;
  max-width: var(--wrap); width: 100%; margin: 0 auto;
}
.hero__eyebrow { color: var(--progetto-light); margin-bottom: 22px; }
.hero__title {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(46px, 9.4vw, 148px); line-height: .92; letter-spacing: -.025em;
  text-transform: uppercase; display: flex; flex-direction: column;
}
.hero__line { display: block; overflow: hidden; }
.hero__lead { margin-top: 28px; max-width: 46ch; font-size: clamp(17px, 1.5vw, 21px); color: rgba(255,255,255,.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 3;
  width: 22px; height: 44px; border: 2px solid rgba(255,255,255,.5); border-radius: 12px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* quote di misura (HTML, testo a dimensione fissa) */
.hquota {
  --q: var(--cantiere);
  display: flex; align-items: center; gap: 14px; color: #fff;
  font-family: var(--display); font-stretch: 80%; font-weight: 600; font-size: 14px;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  pointer-events: none;
}
.hquota__txt { text-shadow: 0 0 8px rgba(21,24,28,.95), 0 1px 3px rgba(21,24,28,.9); }
.hquota::before, .hquota::after { content: ""; flex: 1; background: var(--q); }

.hquota--h {
  position: relative; z-index: 2; width: min(620px, 100%); height: 22px; margin-bottom: 26px;
  border-left: 1.5px solid var(--q); border-right: 1.5px solid var(--q);
}
.hquota--h::before, .hquota--h::after { height: 1.5px; }
.hquota--h::before { transform-origin: left center; }
.hquota--h::after { transform-origin: right center; }

.hquota--v {
  position: absolute; z-index: 2; right: calc(var(--gutter) + 4px); top: 12%; height: 56%; width: 22px;
  flex-direction: column; border-top: 1.5px solid var(--q); border-bottom: 1.5px solid var(--q);
}
.hquota--v::before, .hquota--v::after { width: 1.5px; }
.hquota--v::before { transform-origin: center top; }
.hquota--v::after { transform-origin: center bottom; }
.hquota--v .hquota__txt { writing-mode: vertical-rl; transform: rotate(180deg); }

/* ingresso: le linee si disegnano, poi appare il testo */
.hquota::before, .hquota::after { transform: scaleX(0); }
.hquota--v::before, .hquota--v::after { transform: scaleY(0); }
.hquota { border-color: transparent; }
.hquota__txt { opacity: 0; }
.hero.is-loaded .hquota--h::before, .hero.is-loaded .hquota--h::after { animation: drawX 1.2s var(--ease-out) .9s forwards; }
.hero.is-loaded .hquota--v::before, .hero.is-loaded .hquota--v::after { animation: drawY 1.2s var(--ease-out) 1.1s forwards; }
.hero.is-loaded .hquota { animation: borderIn .4s 2s forwards; }
.hero.is-loaded .hquota__txt { animation: fadeIn .7s 2.1s forwards; }
@keyframes drawX { to { transform: scaleX(1); } }
@keyframes drawY { to { transform: scaleY(1); } }
@keyframes borderIn { to { border-color: var(--q); } }
@keyframes fadeIn { to { opacity: 1; } }
@media (max-width: 900px) {
  .hero__scroll { display: none; }
  /* sul telefono la quota resta a destra: il testo del hero le lascia una colonna libera */
  .hero__content { padding-right: 46px; }
  .hquota--v { right: var(--gutter); top: 9%; height: 62%; width: 18px; font-size: 12px; letter-spacing: .14em; gap: 10px; }
  .hero__title { font-size: clamp(34px, 8.6vw, 72px); }
}

@media (max-height: 820px) {
  .hero { padding-top: 96px; padding-bottom: 56px; }
  .hero__title { font-size: clamp(38px, 6.6vw, 96px); }
  .hero__lead { margin-top: 18px; font-size: 17px; }
  .hero__actions { margin-top: 22px; }
}
@media (max-height: 700px) { .hero__title { font-size: clamp(34px, 5.8vw, 80px); } }

/* animazione d'ingresso del titolo */
.hero__line > span { display: inline-block; transform: translateY(110%); }
.hero.is-loaded .hero__line > span { animation: riseUp 1s var(--ease-out) forwards; }
.hero.is-loaded .hero__line:nth-child(2) > span { animation-delay: .12s; }
.hero.is-loaded .hero__line:nth-child(3) > span { animation-delay: .24s; }
@keyframes riseUp { to { transform: translateY(0); } }
.hero__eyebrow, .hero__lead, .hero__actions { opacity: 0; }
.hero.is-loaded :is(.hero__eyebrow, .hero__lead, .hero__actions) { animation: fadeIn .9s .55s forwards; }

/* ---------- numeri ---------- */
.numeri { background: var(--asfalto); color: #fff; }
.numeri__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.numero {
  padding: 40px 28px 36px 0; margin-right: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; gap: 10px;
}
.numero__val {
  font-family: var(--display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(38px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.numero__val small { font-size: .42em; font-stretch: 90%; font-weight: 600; margin-left: .15em; color: var(--acciaio-2); }
.numero__val small:first-child { margin: 0 .1em 0 0; }
.numero__lbl { font-family: var(--body); font-size: 15px; color: rgba(255,255,255,.7); }
@media (max-width: 900px) {
  .numeri__list { grid-template-columns: repeat(2, 1fr); }
  .numero { padding: 28px 16px 28px 0; margin-right: 16px; }
}

/* ---------- sezioni e quote di sezione ---------- */
.sez { padding-block: var(--sez-pad); }

.quota {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--display); font-stretch: 78%; font-weight: 500; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--progetto);
  margin-bottom: clamp(36px, 5vw, 64px);
}
.quota::before, .quota::after {
  content: ""; flex: 1; height: 1.5px; background: currentColor;
  position: relative;
}
.quota::after { flex: 0 0 clamp(60px, 10vw, 160px); }
.quota--light { color: var(--progetto-light); }
/* tacche alle estremità */
.quota { position: relative; border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.quota span { position: relative; padding: 0 2px; }

/* ---------- gruppo ---------- */
.sez--gruppo { background: var(--cemento); }
.gruppo { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.gruppo__testo { display: flex; flex-direction: column; gap: 22px; }
.gruppo__testo .h2 { margin-bottom: 6px; }
.gruppo__testo > p:not(.lead) { max-width: 58ch; color: var(--asfalto-2); }
.attivita {
  list-style: none; padding: 0; margin-top: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px;
}
.attivita li {
  font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase; padding: 14px 0;
  border-top: 1px solid var(--cemento-2);
}
.foto-clip { overflow: hidden; }
.gruppo__foto img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
@media (max-width: 900px) {
  .gruppo { grid-template-columns: 1fr; }
  .attivita { grid-template-columns: 1fr; }
}

/* ---------- settori ---------- */
.sez--settori { background: var(--asfalto); color: #fff; }
.settori__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.settori__head .lead { color: rgba(255,255,255,.7); }
.settori { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.settore { position: relative; overflow: hidden; background: var(--asfalto-2); aspect-ratio: 4/5; }
.settore img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.settore:hover img { transform: scale(1.08); }
.settore::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,24,28,0) 40%, rgba(21,24,28,.92) 100%);
}
.settore__body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 24px; }
.settore__body h3 {
  font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 20px;
  text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05;
}
.settore__body p {
  font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.78); margin-top: 10px;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease-out), opacity .4s;
}
.settore:hover .settore__body p, .settore:focus-within .settore__body p { max-height: 8em; opacity: 1; }
@media (max-width: 1100px) { .settori { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .settori__head { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .settori { grid-template-columns: 1fr; }
  .settore { aspect-ratio: 4/3; }
  .settore__body p { max-height: none; opacity: 1; }
}
@media (hover: none) { .settore__body p { max-height: none; opacity: 1; } }

/* ---------- progetti ---------- */
.sez--progetti { background: var(--carta); }
.progetti__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }
.progetti { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px) 24px; }
.progetto { display: flex; flex-direction: column; gap: 18px; }
.progetto__media { display: block; overflow: hidden; background: var(--cemento-2); }
.progetto__media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.progetto__media:hover img { transform: scale(1.07); }
.progetto__info h3 {
  font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 22px;
  text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; margin: 10px 0 10px;
}
.progetto__info p:not(.eyebrow) { color: var(--acciaio); font-size: 16px; }

.progetto--hero { grid-column: 1 / -1; flex-direction: row; gap: clamp(28px, 4vw, 56px); align-items: center; margin-bottom: 16px; }
.progetto--hero .progetto__media { flex: 1.3; }
.progetto--hero .progetto__media img { aspect-ratio: 16/9; }
.progetto--hero .progetto__info { flex: 1; }
.progetto--hero .progetto__info h3 { font-size: clamp(28px, 3.2vw, 44px); }
.progetto--hero .progetto__info p:not(.eyebrow) { font-size: 17px; }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 22px; border-top: 1.5px solid var(--progetto); }
.specs div { padding: 12px 0; border-bottom: 1px solid var(--cemento-2); }
.specs dt { font-family: var(--display); font-stretch: 78%; font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--progetto); }
.specs dd { margin: 4px 0 0; font-family: var(--display); font-stretch: 105%; font-weight: 700; font-size: 20px; }

@media (max-width: 1000px) {
  .progetti { grid-template-columns: repeat(2, 1fr); }
  .progetto--hero { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) { .progetti { grid-template-columns: 1fr; } }

/* ---------- fascia materiali ---------- */
.fascia { background: var(--asfalto); overflow: hidden; }
.fascia img { width: 100%; height: clamp(180px, 32vw, 460px); object-fit: cover; }
@supports (animation-timeline: view()) {
  .fascia img { height: calc(clamp(180px, 32vw, 460px) * 1.35); margin-top: calc(clamp(180px, 32vw, 460px) * -0.175); animation: parallasse linear both; animation-timeline: view(); }
  @keyframes parallasse { from { transform: translateY(-12%); } to { transform: translateY(12%); } }
}

/* ---------- metodo ---------- */
.sez--metodo { background: var(--cemento); }
.metodo__head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.metodo__head .h2 { max-width: 18ch; }
.fasi { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--progetto); }
.fase { padding: 28px 28px 8px 0; position: relative; }
.fase + .fase { border-left: 1px solid var(--cemento-2); padding-left: 28px; }
.fase__num {
  display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--cantiere); margin-bottom: 18px;
}
.fase h3 { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 20px; text-transform: uppercase; margin-bottom: 12px; }
.fase p { font-size: 16px; color: var(--asfalto-2); }
@media (max-width: 1000px) {
  .fasi { grid-template-columns: 1fr 1fr; }
  .fase:nth-child(3) { border-left: 0; padding-left: 0; }
  .fase:nth-child(n+3) { border-top: 1px solid var(--cemento-2); }
}
@media (max-width: 900px) { .metodo__head { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .fasi { grid-template-columns: 1fr; }
  .fase + .fase { border-left: 0; padding-left: 0; border-top: 1px solid var(--cemento-2); }
}

/* ---------- contatti ---------- */
.sez--contatti { background: var(--asfalto); color: #fff; }
.contatti { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); }
.contatti__testo { display: flex; flex-direction: column; gap: 22px; }
.contatti__testo .lead { color: rgba(255,255,255,.72); }
.recapiti { font-style: normal; display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.recapiti p { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline; }
.recapiti a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.recapiti a:hover { text-decoration-color: var(--cantiere); }
.recapiti__lbl { font-family: var(--display); font-stretch: 78%; font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--progetto-light); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: flex; flex-direction: column; gap: 8px; }
.form label { font-family: var(--display); font-stretch: 78%; font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); border-radius: 0;
  padding: 14px 16px; transition: border-color .2s, background-color .2s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form select option { color: var(--asfalto); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cantiere); background: rgba(255,255,255,.09); }
.form textarea { resize: vertical; min-height: 130px; }
.form__err { color: #FFB38A; font-size: 15px; }
.form .btn { align-self: flex-start; margin-top: 6px; }
.form.is-sent .btn { background: var(--progetto); border-color: var(--progetto); }
@media (max-width: 900px) { .contatti { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: #0E1013; color: rgba(255,255,255,.7); padding: 48px 0 36px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.footer__brand { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; color: #fff; }
.footer__brand .logo__mark { width: 22px; height: 22px; }
.footer__brand .logo__word { font-size: 18px; }
.footer__brand p { grid-column: 1 / -1; font-size: 14px; color: rgba(255,255,255,.55); }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; justify-self: end; }
.footer__links a { font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__credit { float: right; }
.footer__credit a { color: rgba(255,255,255,.7); text-decoration-color: rgba(255,255,255,.25); }
.footer__credit a:hover { color: #fff; text-decoration-color: var(--cantiere); }
@media (max-width: 700px) { .footer__credit { float: none; display: block; margin-top: 8px; } }
.footer__legal { grid-column: 1 / -1; font-size: 13px; color: rgba(255,255,255,.4); margin-top: 20px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }
@media (max-width: 700px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-self: start; }
}

/* ---------- reveal allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal :is(.settore > img, .progetto__media img, .foto-clip img) { transform: scale(1.2); transition: transform 1.8s cubic-bezier(.15, .6, .2, 1); }
.reveal.is-in :is(.settore > img, .progetto__media img, .foto-clip img) { transform: scale(1); }
.settore.reveal { transform: translateY(28px); }
.settore.reveal > img { transform: scale(1.2); }
.settore.reveal.is-in > img { transform: scale(1); transition: transform 1.8s cubic-bezier(.15, .6, .2, 1); }
.settore.reveal.is-in:hover > img { transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
.progetto__media img, .foto-clip img { transition: transform 1.8s cubic-bezier(.15, .6, .2, 1); }
.reveal.is-in .progetto__media:hover img { transform: scale(1.07); transition: transform 1.2s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__line > span, .hero__eyebrow, .hero__lead, .hero__actions { opacity: 1; transform: none; animation: none !important; }
  .hquota { border-color: var(--q); animation: none !important; }
  .hquota::before, .hquota::after { transform: none; animation: none !important; }
  .hquota__txt { opacity: 1; animation: none !important; }
  .hero.is-loaded .hero__media img { animation: none; }
  .hero__scroll span { animation: none; }
  .settore img, .progetto__media img, .foto-clip img { transition: none; transform: none !important; }
  .fascia img { animation: none; height: clamp(180px, 32vw, 460px); margin-top: 0; }
}

/* ---------- modalità screenshot (?shot): tutto fermo e visibile ---------- */
html.shot .reveal { opacity: 1; transform: none; transition: none; }
html.shot .reveal img { transform: none !important; transition: none; }
html.shot :is(.hero__line > span, .hero__eyebrow, .hero__lead, .hero__actions) { opacity: 1; transform: none; animation: none !important; }
html.shot .hquota { border-color: var(--q); animation: none !important; }
html.shot .hquota::before, html.shot .hquota::after { transform: none; animation: none !important; }
html.shot .hquota__txt { opacity: 1; animation: none !important; }
html.shot .hero__media img { animation: none !important; }
