/* =========================================================
   T.F.G. Costruzioni — stile
   Palette e font: vedi DIREZIONE.md
   ========================================================= */

@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --calce: #EFEDE8;
  --basalto: #141518;
  --pietra: #DDD6CA;
  --cemento: #6B675F;
  --blu: #0028E2;
  --bianco: #F8F7F4;
  --testo: #34353A;

  --f-d: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-t: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --g: clamp(16px, 3.4vw, 48px);
  --r: 28px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ombra: 0 30px 60px -36px rgba(20, 21, 24, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--calce);
  color: var(--basalto);
  font-family: var(--f-t);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
::selection { background: var(--blu); color: #fff; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--g); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 300; background: var(--basalto); color: #fff; padding: 12px 18px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Tipografia ---------- */
.label {
  font-family: var(--f-d); font-stretch: 112%; font-weight: 600;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cemento); margin: 0 0 18px;
}
h1, h2, h3 {
  font-family: var(--f-d); font-stretch: 110%; font-weight: 560;
  letter-spacing: -.028em; line-height: 1.02; margin: 0;
}
h1 { font-size: clamp(46px, 6.6vw, 112px); }
.h-xl { font-size: clamp(36px, 4.8vw, 80px); }
.h-l { font-size: clamp(32px, 3.4vw, 56px); }
.lead { font-size: clamp(18px, 1.35vw, 21px); color: var(--testo); max-width: 46ch; }

/* parole divise per l'animazione dei titoli */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 12px; border: 0;
  font-family: var(--f-t); font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn--dark { background: var(--basalto); color: var(--bianco); box-shadow: 0 14px 28px -14px rgba(20, 21, 24, .6), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn--dark:hover { background: var(--blu); }
.btn--light { background: var(--bianco); color: var(--basalto); box-shadow: 0 12px 26px -14px rgba(20, 21, 24, .45), inset 0 0 0 1px rgba(20, 21, 24, .08); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--basalto); box-shadow: inset 0 0 0 1px rgba(20, 21, 24, .24); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--basalto); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blu); outline-offset: 3px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Loader ---------- */
.loader { display: none; }
.anim .loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--basalto); color: #fff;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1);
}
.anim .loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__inner { width: min(320px, 68vw); }
.loader__logo { width: 100%; height: auto; }
.loader__bar { margin-top: 30px; height: 2px; background: rgba(255, 255, 255, .16); position: relative; overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); transition: transform .3s ease-out; }
.loader__txt {
  margin-top: 12px; display: flex; justify-content: space-between;
  font-family: var(--f-d); font-stretch: 112%; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

/* ---------- Navigazione ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(239, 237, 232, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(20, 21, 24, .06);
  transition: transform .55s var(--ease), box-shadow .4s;
}
.nav.is-hidden { transform: translateY(-105%); }
.nav.is-scrolled { box-shadow: 0 10px 30px -24px rgba(20, 21, 24, .5); }
.nav__inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--g); height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 54px; width: auto; }
.nav__links { margin-inline: auto; display: flex; gap: clamp(20px, 2.4vw, 38px); }
.nav__links a { position: relative; text-decoration: none; font-size: 15.5px; font-weight: 500; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { min-height: 46px; padding: 0 20px; font-size: 15px; }
.nav__burger {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--basalto); cursor: pointer; position: relative;
}
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; transition: transform .45s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--calce);
  padding: calc(var(--nav-h) + 32px) var(--g) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity .4s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-family: var(--f-d); font-stretch: 110%; font-weight: 560; letter-spacing: -.02em;
  font-size: clamp(34px, 9vw, 52px); line-height: 1.18; text-decoration: none;
  border-bottom: 1px solid rgba(20, 21, 24, .1); padding: 6px 0;
}
.menu__foot { display: grid; gap: 10px; margin-top: 32px; }

@media (max-width: 1020px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 768px) {
  :root { --nav-h: 66px; --r: 22px; }
  .nav__logo img { height: 40px; }
}

/* =========================================================
   HERO + CANTIERE
   ========================================================= */
.hero__intro {
  padding-top: calc(var(--nav-h) + clamp(40px, 9vh, 104px));
  padding-bottom: clamp(26px, 4vh, 44px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end;
}
.hero__title { grid-column: 1 / span 8; }
.hero__title h1 { max-width: 10.5ch; }
.hero__side { grid-column: 9 / span 4; padding-bottom: 8px; }
.hero__side p { color: var(--testo); max-width: 40ch; }
@media (max-width: 900px) {
  .hero__title, .hero__side { grid-column: 1 / -1; }
  .hero__side { margin-top: 22px; }
}

/* --- Versione statica (senza JS o con movimento ridotto) --- */
.stage { padding: 0 var(--g) var(--g); max-width: 1440px; margin-inline: auto; }
.stage__sticky { position: relative; }
.stage__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #c9d3d8; box-shadow: var(--ombra); }
.stage__poster, .stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__canvas, .stage__scrim, .stage__hint, .ruler { display: none; }
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fasi { list-style: none; margin: 0; padding: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.fase__n { font-family: var(--f-d); font-stretch: 112%; font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cemento); margin-bottom: 12px; }
.fase__t { font-size: clamp(22px, 1.8vw, 28px); }
.fase__p { margin-top: 10px; color: var(--cemento); font-size: 15.5px; }
.fase__cta { margin-top: 18px; }
@media (max-width: 900px) {
  .stage__media { aspect-ratio: 4 / 5; }
  .fasi { grid-template-columns: 1fr; }
}

/* --- Versione animata --- */
.anim .stage { position: relative; height: 600vh; padding: 0; max-width: none; }
.anim .stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.anim .stage__media {
  position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none;
  clip-path: inset(var(--g) var(--g) var(--g) var(--g) round var(--r));
  will-change: clip-path;
}
.anim .stage__canvas { display: block; }
.anim .stage__scrim {
  display: block; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, .18) 0%, rgba(10, 11, 13, 0) 22%, rgba(10, 11, 13, 0) 42%, rgba(10, 11, 13, .7) 100%),
    linear-gradient(90deg, rgba(10, 11, 13, .42) 0%, rgba(10, 11, 13, 0) 50%);
}
.anim .stage__hint {
  display: flex; align-items: center; gap: 12px; position: absolute; left: 50%; bottom: calc(var(--g) + 28px); transform: translateX(-50%);
  color: #fff; font-family: var(--f-d); font-stretch: 112%; font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45); white-space: nowrap;
}
.stage__hint span { width: 1px; height: 34px; background: rgba(255, 255, 255, .5); position: relative; overflow: hidden; }
.stage__hint span::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: #fff; animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { to { top: 100%; } }

.anim .fasi {
  display: block; position: absolute; padding: 0;
  left: calc(var(--g) + clamp(20px, 3.4vw, 64px));
  bottom: calc(var(--g) + clamp(24px, 6vh, 72px));
  width: min(600px, 48vw); height: 260px; color: #fff;
}
.anim .fase { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; visibility: hidden; }
.anim .fase__n { color: rgba(255, 255, 255, .82); }
.anim .fase__t { font-size: clamp(36px, 4.2vw, 68px); color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.anim .fase__p { color: rgba(255, 255, 255, .88); font-size: 17px; max-width: 42ch; margin-top: 14px; }
.anim .fase__cta { margin-top: 24px; }

.anim .ruler {
  display: flex; position: absolute; flex-direction: column; align-items: flex-end; gap: 16px;
  right: calc(var(--g) + clamp(20px, 3.4vw, 64px));
  bottom: calc(var(--g) + clamp(24px, 6vh, 72px));
  color: #fff; opacity: 0;
}
.ruler ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: right; font-size: 14px; }
.ruler li { opacity: .45; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ruler li.is-on { opacity: 1; transform: translateX(-8px); }
.ruler__count { font-family: var(--f-d); font-stretch: 112%; font-size: 12px; letter-spacing: .14em; }
.ruler__count b { font-weight: 700; }
.ruler__bar { width: 170px; height: 2px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.ruler__bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }

/* Cantiere su mobile: finestra 4:5 in alto, testi sotto l'immagine */
@media (max-width: 768px) {
  .anim .stage { height: 520vh; }
  .anim .stage__sticky { --cw: min(calc(100vw - 2 * var(--g)), calc((100svh - 330px) * .8)); }
  .anim .stage__media {
    inset: auto; left: 50%; top: calc(var(--nav-h) + 12px); transform: translateX(-50%);
    width: var(--cw); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden;
    clip-path: none; box-shadow: var(--ombra);
  }
  .anim .stage__scrim { display: none; }
  .anim .stage__hint { bottom: 20px; }
  .anim .fasi {
    left: var(--g); right: var(--g); width: auto; height: auto;
    top: calc(var(--nav-h) + 12px + var(--cw) * 1.25 + 22px); bottom: 64px;
    color: var(--basalto);
  }
  .anim .fase { top: 0; bottom: auto; }
  .anim .fase__n { color: var(--cemento); margin-bottom: 8px; }
  .anim .fase__t { color: var(--basalto); font-size: clamp(26px, 7.6vw, 36px); text-shadow: none; }
  .anim .fase__p { color: var(--cemento); font-size: 15.5px; margin-top: 8px; }
  .anim .fase__cta { display: none; }
  .anim .ruler {
    left: var(--g); right: var(--g); bottom: 24px; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px;
    color: var(--basalto);
  }
  .anim .ruler ul { display: none; }
  .anim .ruler__bar { flex: 1; background: rgba(20, 21, 24, .14); }
  .anim .ruler__bar i { background: var(--blu); }
  .hero__intro { padding-top: calc(var(--nav-h) + 36px); }
}

/* =========================================================
   IMPRESA + NUMERI
   ========================================================= */
.intro { padding-block: clamp(96px, 15vh, 190px) clamp(64px, 10vh, 120px); }
.intro__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.intro__grid h2 { grid-column: 1 / span 7; }
.intro__grid .lead { grid-column: 9 / span 4; }
.numeri { list-style: none; margin: clamp(56px, 9vh, 104px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.numero { border-top: 1px solid rgba(20, 21, 24, .18); padding-top: 24px; }
.numero__v {
  font-family: var(--f-d); font-stretch: 112%; font-weight: 520; letter-spacing: -.04em;
  font-size: clamp(56px, 6.4vw, 104px); line-height: .95; display: flex; align-items: baseline; gap: 4px;
}
.numero__v small { font-size: .36em; letter-spacing: 0; color: var(--blu); font-weight: 600; }
.numero__l { margin-top: 14px; color: var(--cemento); font-size: 15.5px; max-width: 24ch; }
.numero--blu .numero__v { color: var(--blu); }
@media (max-width: 900px) {
  .intro__grid h2, .intro__grid .lead { grid-column: 1 / -1; }
  .intro__grid .lead { margin-top: 24px; }
  .numeri { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

/* =========================================================
   SERVIZI
   ========================================================= */
.servizi { padding-block: clamp(64px, 10vh, 140px); }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; margin-bottom: clamp(40px, 7vh, 88px); }
.sec-head .label { grid-column: 1 / -1; }
.sec-head h2 { grid-column: 1 / span 7; }
.sec-head__p { grid-column: 9 / span 4; color: var(--cemento); }
@media (max-width: 900px) {
  .sec-head h2, .sec-head__p { grid-column: 1 / -1; }
  .sec-head__p { margin-top: 20px; }
}
.servizi__body { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.servizi__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(20, 21, 24, .16); }
.serv { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; padding: 30px 0; border-bottom: 1px solid rgba(20, 21, 24, .16); }
.serv__n { font-family: var(--f-d); font-stretch: 112%; font-weight: 600; font-size: 13px; letter-spacing: .1em; color: var(--cemento); padding-top: 12px; transition: color .4s; }
.serv h3 { font-size: clamp(24px, 2.4vw, 38px); transition: color .45s var(--ease), transform .6s var(--ease); }
.serv p { margin-top: 8px; color: var(--cemento); max-width: 52ch; }
.serv.is-on h3 { color: var(--blu); transform: translateX(8px); }
.serv.is-on .serv__n { color: var(--blu); }
.serv__thumb { display: none; }
.servizi__preview { position: sticky; top: calc(var(--nav-h) + 40px); }
.servizi__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--pietra); box-shadow: var(--ombra); }
.servizi__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.07); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.servizi__frame img.is-on { opacity: 1; transform: scale(1); }
@media (max-width: 900px) {
  .servizi__body { grid-template-columns: 1fr; }
  .servizi__preview { display: none; }
  .serv { grid-template-columns: 44px 1fr; }
  .serv__thumb { display: block; grid-column: 2; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-top: 18px; }
}

/* =========================================================
   LAVORI
   ========================================================= */
.lavori { padding-block: clamp(40px, 6vh, 80px) clamp(40px, 6vh, 80px); }
.riga { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 72px); margin-bottom: clamp(80px, 12vh, 150px); }
.riga__txt { display: flex; flex-direction: column; min-width: 0; }
.riga__txt > p:not(.label) { margin-top: 18px; color: var(--cemento); max-width: 40ch; }
.riga__ctrl { margin-top: auto; padding-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.arrows { display: flex; gap: 10px; }
.arrow {
  width: 46px; height: 46px; border-radius: 10px; border: 0; background: var(--basalto); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(20, 21, 24, .6); transition: background .3s, opacity .3s;
}
.arrow svg, .lb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: var(--blu); }
.arrow:disabled { opacity: .28; cursor: default; background: var(--basalto); }
.slider {
  list-style: none; margin: 0 calc(-1 * var(--g)) 0 0; padding: 4px var(--g) 36px 0; min-width: 0;
  display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
}
.slider:active { cursor: grabbing; }
.slider::-webkit-scrollbar { display: none; }
.slider li { flex: 0 0 auto; scroll-snap-align: start; }
.ph {
  display: block; position: relative; padding: 0; border: 0; border-radius: var(--r); overflow: hidden;
  background: var(--pietra); cursor: zoom-in;
  height: clamp(380px, 64vh, 660px); aspect-ratio: 3 / 4; box-shadow: var(--ombra);
}
.ph--wide { aspect-ratio: 16 / 10; }
.ph--sq { aspect-ratio: 1; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.ph:hover img { transform: scale(1.045); }
.ph__cap {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  padding: 8px 12px; border-radius: 10px; background: rgba(20, 21, 24, .74); color: #fff;
  font-size: 13px; line-height: 1.3; text-align: left;
}
.riga--inv { grid-template-columns: 8fr 4fr; }
.riga--inv .riga__txt { order: 2; }
.riga--inv .slider { order: 1; margin: 0 0 0 calc(-1 * var(--g)); padding: 4px 0 36px var(--g); }
@media (max-width: 900px) {
  .riga, .riga--inv { grid-template-columns: 1fr; }
  .riga--inv .riga__txt { order: 0; }
  .riga--inv .slider { order: 1; }
  .slider, .riga--inv .slider { margin: 8px calc(-1 * var(--g)) 0; padding: 4px var(--g) 30px; scroll-padding-inline: var(--g); }
  .riga__ctrl { padding-top: 24px; }
  .ph { height: min(64svh, 520px); }
}

/* =========================================================
   METODO
   ========================================================= */
.metodo { padding-block: clamp(64px, 10vh, 140px); }
.metodo__line { height: 14px; position: relative; margin-bottom: 44px; }
.metodo__line::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(20, 21, 24, .16), rgba(20, 21, 24, .16)) bottom / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(20, 21, 24, .22) 0 1px, transparent 1px 2.5%) bottom / 100% 8px no-repeat;
}
.metodo__line span { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blu); transform-origin: left; transform: scaleX(0); }
.passi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); }
.passo__n { display: block; font-family: var(--f-d); font-stretch: 112%; font-weight: 600; font-size: 13px; letter-spacing: .1em; color: var(--blu); margin-bottom: clamp(28px, 5vh, 56px); }
.passo h3 { font-size: clamp(24px, 2.2vw, 34px); }
.passo p { margin-top: 12px; color: var(--cemento); max-width: 34ch; }
@media (max-width: 900px) { .passi { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 560px) { .passi { grid-template-columns: 1fr; row-gap: 36px; } .passo__n { margin-bottom: 14px; } }

/* =========================================================
   RECENSIONI
   ========================================================= */
.recensioni { padding-block: clamp(64px, 10vh, 140px); }
.rec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vh, 64px); }
.rating { display: grid; justify-items: end; gap: 8px; text-decoration: none; }
.rating__v { font-family: var(--f-d); font-stretch: 112%; font-weight: 520; font-size: clamp(64px, 7vw, 112px); line-height: .9; letter-spacing: -.04em; }
.rating__s { position: relative; display: inline-block; color: rgba(20, 21, 24, .16); font-size: 22px; letter-spacing: 4px; line-height: 1; }
.rating__s i { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--blu); font-style: normal; }
.rating__l { font-size: 14px; color: var(--cemento); }
.rating:hover .rating__l { color: var(--basalto); }
.quotes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.quote {
  grid-column: span 4; margin: 0; min-height: 230px;
  background: var(--bianco); border-radius: var(--r); padding: clamp(24px, 2.6vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  box-shadow: 0 1px 0 rgba(20, 21, 24, .04), 0 24px 48px -36px rgba(20, 21, 24, .4);
}
.quote--xl { grid-column: span 8; }
.quote blockquote { margin: 0; font-family: var(--f-d); font-stretch: 106%; font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.25; letter-spacing: -.012em; }
.quote--xl blockquote { font-size: clamp(26px, 2.7vw, 44px); line-height: 1.12; letter-spacing: -.02em; }
.quote figcaption { font-size: 14px; color: var(--cemento); }
.quote--dark { background: var(--basalto); color: #fff; }
.quote--dark figcaption { color: rgba(255, 255, 255, .66); }
@media (max-width: 900px) {
  .quote, .quote--xl { grid-column: 1 / -1; min-height: 0; }
  .rating { justify-items: start; }
}

/* =========================================================
   L'IMPRESA
   ========================================================= */
.impresa { padding-block: clamp(32px, 5vh, 64px); }
.impresa__card {
  display: grid; grid-template-columns: 1.1fr 1fr; min-height: clamp(560px, 76vh, 760px);
  background: var(--bianco); border-radius: var(--r); overflow: hidden; box-shadow: var(--ombra);
}
.impresa__txt { padding: clamp(28px, 5vw, 80px); display: flex; flex-direction: column; justify-content: flex-end; position: relative; z-index: 2; }
.impresa__txt > p:not(.label) { margin-top: 20px; color: var(--testo); max-width: 46ch; }
.facts { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid rgba(20, 21, 24, .12); display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px 44px; }
.facts dt { font-family: var(--f-d); font-stretch: 112%; font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cemento); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; }
.impresa__img { position: relative; overflow: hidden; }
.impresa__img img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; object-position: 50% 88%; }
.impresa__img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bianco) 0%, rgba(248, 247, 244, 0) 30%); }
@media (max-width: 900px) {
  .impresa__card { grid-template-columns: 1fr; }
  .impresa__img { order: -1; aspect-ratio: 4 / 3; }
  .impresa__img::before { background: linear-gradient(0deg, var(--bianco) 0%, rgba(248, 247, 244, 0) 35%); }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   CONTATTI
   ========================================================= */
.contatti { padding-block: clamp(64px, 10vh, 130px) clamp(80px, 12vh, 140px); }
.contatti__panel {
  position: relative; overflow: hidden; border-radius: var(--r);
  min-height: clamp(540px, 74vh, 740px); padding: 96px var(--g);
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, #E5E1D9 0%, #D8D2C7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), var(--ombra);
}
.contatti__c { position: relative; z-index: 2; max-width: 640px; }
.contatti__c > p:not(.contatti__alt) { margin: 20px auto 0; color: var(--testo); max-width: 46ch; }
.btns--c { justify-content: center; }
.contatti__alt { margin-top: 22px; font-size: 15px; color: var(--cemento); }
.contatti__alt a { color: var(--basalto); font-weight: 500; }
.tile {
  position: absolute; width: clamp(96px, 11vw, 176px); aspect-ratio: 1; object-fit: cover; border-radius: 22px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .55), 0 26px 40px -18px rgba(20, 21, 24, .55);
}
.t1 { left: 5%; top: 10%; rotate: -8deg; }
.t2 { left: 18%; bottom: 9%; rotate: 6deg; width: clamp(80px, 8.4vw, 136px); }
.t3 { right: 6%; top: 13%; rotate: 7deg; }
.t4 { right: 19%; bottom: 7%; rotate: -5deg; width: clamp(84px, 9vw, 150px); }
.t5 { left: 3%; top: 48%; rotate: 4deg; width: clamp(70px, 6.6vw, 110px); }
.t6 { right: 3%; top: 52%; rotate: -9deg; width: clamp(70px, 7vw, 116px); }
@media (max-width: 1100px) { .t5, .t6 { display: none; } }
@media (max-width: 768px) {
  .contatti__panel { padding: 150px 20px 120px; }
  .t1 { left: -14px; top: 18px; width: 104px; }
  .t3 { right: -14px; top: 30px; width: 112px; }
  .t2 { left: 12%; bottom: -18px; width: 96px; }
  .t4 { right: 8%; bottom: -10px; width: 92px; }
  .btns--c .btn { width: 100%; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--basalto); color: #E9E7E2; padding: clamp(64px, 10vh, 112px) 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; }
.footer__brand img { height: 66px; width: auto; }
.footer__brand p { margin-top: 22px; color: rgba(233, 231, 226, .7); max-width: 34ch; font-size: 15.5px; }
.footer__h { font-weight: 500; color: #fff; margin-bottom: 14px; }
.footer__col a, .footer__col > p:not(.footer__h) { display: block; width: fit-content; color: rgba(233, 231, 226, .72); text-decoration: none; font-size: 15px; line-height: 1.5; margin-bottom: 10px; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(233, 231, 226, .58);
}
.todo { background: #FFD84D; color: var(--basalto); padding: 0 6px; border-radius: 4px; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lb {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  background: rgba(12, 12, 14, .97); color: #fff; overflow: hidden;
}
.lb::backdrop { background: rgba(12, 12, 14, .7); }
.lb[open] { display: grid; place-items: center; }
.lb__fig { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lb__img { max-width: 92vw; max-height: 84vh; max-height: 84dvh; width: auto; height: auto; object-fit: contain; border-radius: 12px; user-select: none; }
.lb__cap { font-size: 14px; color: rgba(255, 255, 255, .75); text-align: center; padding-inline: 16px; }
.lb__btn {
  position: fixed; width: 52px; height: 52px; border-radius: 12px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; font-size: 18px;
  transition: background .3s;
}
.lb__btn:hover { background: rgba(255, 255, 255, .22); }
.lb__close { top: 18px; right: 18px; }
.lb__prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb__next { right: 18px; top: 50%; translate: 0 -50%; }
@media (max-width: 768px) {
  .lb__prev, .lb__next { top: auto; bottom: 18px; translate: none; }
  .lb__prev { left: calc(50% - 60px); } .lb__next { right: calc(50% - 60px); }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
