/* Caratteri serviti dal sito stesso: nessuna chiamata a Google Fonts,
   quindi nessun indirizzo IP dei visitatori viene inviato a terzi. */
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-600.woff2") format("woff2");
}
@font-face {
  font-family: "Big Shoulders Display"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/big-shoulders-display-var.woff2") format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/jetbrains-mono-500.woff2") format("woff2");
}

/* Layout: scheda tecnica di cantiere. Testo allineato a sinistra, modelli 3D su un piatto girevole quotato,
   linee e gocce ambra = il grasso che scorre e collega le sezioni. */
:root {
  --paper: #EEF1F4;
  --panel: #F8FAFB;
  --ink: #0E2C52;
  --ink-2: #42536A;
  --ink-3: #5A6B7E;
  --line: #C9D3DD;
  --grease: #F06B14;
  --grease-ink: #A84A08;
  --on-grease: #1B1206;
  --danger: #B3261E;
  --band: #082A50;
  --band-fg: #E9EEF3;
  --band-2: #A9BCD0;
  --logo-ink: #083162;
  --plate-1: #DCE3EA;
  --plate-2: #B4C1CE;
  --plate-ink: #12294A;
  --plate-hi: rgba(255, 255, 255, .55);

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --radius: 4px;
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1626; --panel: #102035; --ink: #E6ECF2; --ink-2: #A9B8C8; --ink-3: #8A9BAE; --line: #22344A;
    --grease: #FF7A2E; --grease-ink: #FF9452; --on-grease: #1B1206; --danger: #F2857B;
    --band: #0F2440; --band-fg: #E6ECF2; --band-2: #9FB2C6; --logo-ink: #E6ECF2;
    --plate-1: #34485F; --plate-2: #1C2C40; --plate-ink: #E6ECF2; --plate-hi: rgba(255, 255, 255, .12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B1626; --panel: #102035; --ink: #E6ECF2; --ink-2: #A9B8C8; --ink-3: #8A9BAE; --line: #22344A;
    --grease: #FF7A2E; --grease-ink: #FF9452; --on-grease: #1B1206; --danger: #F2857B;
    --band: #0F2440; --band-fg: #E6ECF2; --band-2: #9FB2C6; --logo-ink: #E6ECF2;
    --plate-1: #34485F; --plate-2: #1C2C40; --plate-ink: #E6ECF2; --plate-hi: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: color-mix(in srgb, var(--ink) 35%, transparent) var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--grease) 75%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
::selection { background: color-mix(in srgb, var(--grease) 40%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--grease); outline-offset: 3px; border-radius: 2px; }
input, textarea, select { caret-color: var(--grease-ink); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--grease); color: var(--on-grease); padding: 10px 14px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Gutter */
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
@media (min-width: 1180px) { .wrap { padding-left: max(56px, env(safe-area-inset-left, 0px)); padding-right: max(56px, env(safe-area-inset-right, 0px)); } }
.inner { max-width: 1240px; margin-inline: auto; min-width: 0; }

/* Type */
.h1 { font: 800 clamp(2.7rem, 1.65rem + 3.9vw, 5rem)/.94 var(--display); letter-spacing: -.004em; }
.h2 { font: 760 clamp(2.05rem, 1.5rem + 2.1vw, 3.3rem)/1 var(--display); }
.h3 { font: 600 1.24rem/1.3 var(--body); }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.prose { max-width: 64ch; color: var(--ink-2); display: grid; gap: 1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.label { font: 500 .74rem/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grease); transform: scaleX(0); transform-origin: left; pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after { animation: grease-level linear both; animation-timeline: scroll(root); }
    @keyframes grease-level { to { transform: scaleX(1); } }
  }
}
.site-header .inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand .logo-icon { height: 46px; width: auto; flex: none; }
.logo-text { display: grid; gap: 4px; }
.logo-word { display: block; width: 136px; height: 21px; background: var(--logo-ink);
  -webkit-mask: url(logo-word.png) left center / contain no-repeat; mask: url(logo-word.png) left center / contain no-repeat; }
.brand-name { display: block; font: 800 1.62rem/.9 var(--display); letter-spacing: .03em; }
.brand-sub { display: block; font: 500 .6rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .has-sub > a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font: 500 .98rem/1 var(--body); color: var(--ink-2); text-decoration: none; border-radius: var(--radius);
  transition: color .15s ease;
}
.nav > a:hover, .has-sub > a:hover { color: var(--ink); }
.nav [aria-current="page"], .nav .is-section { color: var(--ink); }
.nav [aria-current="page"]::after, .nav .is-section::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--grease); border-radius: 2px;
}
.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > a { padding-right: 4px; }
.sub-toggle { all: unset; display: grid; place-items: center; width: 28px; height: 44px; cursor: pointer; color: var(--ink-3); border-radius: var(--radius); }
.sub-toggle svg { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.sub-toggle:focus-visible { outline: 2px solid var(--grease); }
.sub {
  position: absolute; top: calc(100% + 6px); left: 0; width: 320px; display: grid; gap: 2px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px;
  box-shadow: 0 22px 44px -22px color-mix(in srgb, var(--ink) 50%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top left;
  transition: opacity .16s var(--ease-out), transform .16s var(--ease-out), visibility 0s linear .16s;
}
.has-sub.is-open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) { .has-sub:hover .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }
.sub a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.sub a small { font-weight: 400; font-size: .84rem; line-height: 1.35; color: var(--ink-3); }
.sub a:hover, .sub a:focus-visible { background: color-mix(in srgb, var(--grease) 12%, transparent); }
.sub a[aria-current="page"] { background: color-mix(in srgb, var(--grease) 16%, transparent); }

.call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; white-space: nowrap;
  font: 500 .88rem/1 var(--mono); color: var(--ink); transition: border-color .2s ease, background-color .2s ease, transform .16s var(--ease-out);
}
.call svg { width: 17px; height: 17px; color: var(--grease-ink); }
.call:hover { border-color: var(--ink); }
.call:active { transform: scale(.97); }
.menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: none; color: var(--ink); font: 600 .95rem/1 var(--body); cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 1079px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .brand .logo-icon { height: 40px; }
  .logo-word { width: 118px; height: 18px; }
  .call .call-num { display: none; }
  .call { padding: 0 12px; }
  .brand-sub { display: none; }
}
@media (max-width: 400px) {
  .site-header .inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand .logo-icon { height: 34px; }
  .logo-word { width: 100px; height: 16px; }
}
.mobile-nav {
  position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 29;
  background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  padding-top: 8px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}
.mobile-nav > .inner { display: grid; }
.mobile-nav a { display: block; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); font: 760 2rem/1.1 var(--display); color: var(--ink); }
.mobile-nav a[aria-current="page"] { color: var(--grease-ink); }
.mobile-nav .m-sub { display: grid; padding: 4px 0 8px 16px; border-bottom: 1px solid var(--line); }
.mobile-nav .m-sub a { font: 500 1.08rem/1.3 var(--body); border: 0; padding: 9px 0; color: var(--ink-2); }
.mobile-nav .m-call { margin-top: 24px; font: 500 1.05rem/1.4 var(--mono); border: 0; color: var(--ink); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font: 600 1rem/1 var(--body); letter-spacing: .005em;
  transition: transform .16s var(--ease-out), background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease-out); }
.btn-primary { background: var(--grease); color: var(--on-grease); }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 28%, transparent); color: var(--ink); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--grease) 84%, var(--ink)); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn:hover svg { transform: translateX(3px); }
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); padding-block: 6px; }
.link-arrow svg { width: 18px; height: 18px; color: var(--grease-ink); transition: transform .25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { margin-top: 28px; }

/* Hero */
.hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; align-content: center; }
.hero-phone { color: var(--ink-2); font-size: .98rem; }
.hero-phone a { color: var(--ink); white-space: nowrap; }
.page-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (min-width: 900px) { .page-hero .hero-grid:has(.photo) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.page-hero .hero-copy { gap: 20px; }
@media (max-width: 899px) {
  .hero-grid, .page-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 0; list-style: none; font: 500 .74rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }

/* Hero con video */
.hero-video { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(540px, 76svh, 800px); background: #071A30; color: var(--band-fg); }
.hv-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; background: #071A30; }
.hv-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 22, 42, .9) 0%, rgba(6, 22, 42, .72) 34%, rgba(6, 22, 42, .18) 66%, rgba(6, 22, 42, 0) 100%),
    linear-gradient(0deg, rgba(6, 22, 42, .5) 0%, rgba(6, 22, 42, 0) 32%);
}
.hv-content { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); }
.hv-copy { max-width: 620px; }
.hero-video .h1 { color: #F2F5F6; text-shadow: 0 2px 24px rgba(6, 22, 42, .35); }
.hero-video .lead { color: #D3DCE0; }
.hero-video .hero-phone { color: #C2CDD2; }
.hero-video .hero-phone a { color: #F2F5F6; }
.hero-video .btn-ghost { color: #F2F5F6; border-color: rgba(242, 245, 246, .4); }
.hero-video .btn-ghost:hover { border-color: #F2F5F6; }
@media (min-width: 1100px) {
  .hv-media { left: auto; width: 66%; object-position: 50% 50%; }
  .hv-scrim {
    background:
      linear-gradient(90deg, #071A30 0%, #071A30 34%, rgba(7, 26, 48, .6) 42%, rgba(7, 26, 48, .12) 56%, rgba(7, 26, 48, 0) 66%),
      linear-gradient(0deg, rgba(6, 22, 42, .45) 0%, rgba(6, 22, 42, 0) 30%);
  }
  .hv-copy { max-width: 560px; }
}
@media (max-width: 719px) {
  /* Telefono: video verticale a tutta larghezza in alto, il titolo entra sul fondo sfumato e il resto prosegue sotto */
  .hero-video { display: block; min-height: 0; --hv-h: min(80svh, 160vw); }
  .hv-media { position: relative; inset: auto; display: block; width: 100%; height: var(--hv-h); object-position: 50% 28%; z-index: auto; }
  .hv-scrim { inset: 0 0 auto 0; height: var(--hv-h); z-index: 0;
    background: linear-gradient(0deg, #071A30 0%, rgba(7, 26, 48, .9) 16%, rgba(7, 26, 48, .45) 34%, rgba(7, 26, 48, 0) 52%),
                linear-gradient(180deg, rgba(7, 26, 48, .35) 0%, rgba(7, 26, 48, 0) 14%); }
  .hv-content { position: relative; z-index: 1; margin-top: calc(-1 * clamp(150px, 22svh, 210px)); padding-top: 0; padding-bottom: 44px; }
  .hero-video .h1 { font-size: clamp(2.35rem, 1.2rem + 5.4vw, 2.9rem); }
  .hero-video .lead { font-size: 1.05rem; }
  .hero-video .hero-copy { gap: 20px; }
}
.specs-band { padding-top: 8px; }
.specs-band .specs { margin-top: 0; border-top: 0; }
.inside-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.inside-grid .hero-copy { gap: 22px; }
@media (max-width: 899px) { .inside-grid { grid-template-columns: minmax(0, 1fr); } }

/* Foto Chi siamo */
.photo { margin: 0; display: grid; gap: 10px; min-width: 0; }
.photo-frame { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 5; max-width: 100%;
  box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--ink) 70%, transparent); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; background: var(--panel);
}

/* 3D scene */
.scene { position: relative; margin: 0; width: 100%; max-width: 100%; aspect-ratio: 6 / 5; min-width: 0; }
.scene-hero { aspect-ratio: 7 / 6; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; border-radius: 6px; }
.scene canvas:focus-visible { outline-offset: -2px; }
.scene.is-grabbing canvas { cursor: grabbing; }
.scene-fallback { position: absolute; inset: 10% 4% 14%; display: grid; place-items: center; color: var(--ink-2); transition: opacity .6s ease, visibility 0s linear .6s; }
.scene.is-ready .scene-fallback { opacity: 0; visibility: hidden; }
.scene.is-fallback .scene-cap { display: none; }
.scene-fallback svg { width: 100%; height: auto; max-height: 100%; }
.scene-cap { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 8px; pointer-events: none; }
.scene-cap svg { width: 16px; height: 16px; color: var(--grease-ink); }
.scene-label { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease; will-change: transform; }
.scene.is-ready .scene-label.is-on { opacity: 1; }
.scene-label::before { content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--grease); box-shadow: 0 0 0 4px color-mix(in srgb, var(--grease) 28%, transparent); }
.scene-label span {
  position: absolute; left: 14px; top: 0; transform: translateY(-50%); white-space: nowrap;
  font: 500 .72rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
  background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--line); border-radius: 3px; padding: 6px 8px;
}
.scene-label.flip span { left: auto; right: 14px; }
.scene-label.low span { top: 26px; }
@media (max-width: 600px) { .scene-label { display: none; } }

/* Spec strip */
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(28px, 4vw, 48px) 0 0; border-top: 1px solid var(--line); }
.spec { margin: 0; padding: 18px 20px 0 0; display: grid; gap: 4px; align-content: start; min-width: 0; }
.spec + .spec { padding-left: 20px; border-left: 1px solid var(--line); }
.spec dt { font: 760 1.55rem/1.05 var(--display); color: var(--ink); }
.spec dd { margin: 0; color: var(--ink-2); font-size: .96rem; line-height: 1.45; }
@media (max-width: 820px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
}

/* Sections */
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.section.ruled { border-top: 1px solid var(--line); }
.section.tint { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .lead { justify-self: start; }
@media (max-width: 899px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 64px; align-items: start; }
.split-head { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 899px) { .split { grid-template-columns: minmax(0, 1fr); } .split-head { position: static; } }

/* Benefits list: each point is a grease drop */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.benefits li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 4px 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.benefits li::before { content: ""; grid-row: span 2; width: 11px; height: 11px; margin-top: .45em; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--grease); }
.benefits h3 { font: 600 1.12rem/1.3 var(--body); }
.benefits p { color: var(--ink-2); font-size: 1rem; }
.benefits.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 720px) { .benefits { grid-template-columns: minmax(0, 1fr); } }

/* Sector rows */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.row a {
  position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 46px; gap: 10px 32px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.row a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grease); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.row-name { font: 760 clamp(1.85rem, 1.25rem + 2vw, 2.85rem)/1 var(--display); }
.row-desc { display: grid; gap: 8px; color: var(--ink-2); min-width: 0; }
.row-meta { font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.row-go { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .35s var(--ease-out); }
.row-go svg { width: 18px; height: 18px; }
.row a:focus-visible { outline-offset: -2px; }
.row a:focus-visible::after, .row a.is-active::after { transform: scaleX(1); }
.row a.is-active .row-go { background: var(--grease); border-color: var(--grease); color: var(--on-grease); }
@media (hover: hover) and (pointer: fine) {
  .row a:hover::after { transform: scaleX(1); }
  .row a:hover .row-go { background: var(--grease); border-color: var(--grease); color: var(--on-grease); transform: rotate(45deg); }
}
@media (max-width: 720px) {
  .row a { grid-template-columns: minmax(0, 1fr) 46px; }
  .row-desc { grid-column: 1 / -1; grid-row: 2; }
}

/* Schematic and steps */
.schematic-box { margin-bottom: clamp(28px, 4vw, 44px); color: var(--ink); }
.schematic { width: 100%; height: auto; display: block; }
.schematic .flow path { stroke-dasharray: 0 20; }
@media (prefers-reduced-motion: no-preference) {
  .schematic .flow path { animation: bead 1.3s linear infinite; }
  @keyframes bead { to { stroke-dashoffset: -20; } }
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps.five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { display: grid; gap: 10px; align-content: start; padding-top: 16px; border-top: 2px solid var(--ink); min-width: 0; }
.step-n { font: 500 .78rem/1 var(--mono); letter-spacing: .06em; color: var(--grease-ink); }
.steps h3 { font: 760 1.6rem/1.05 var(--display); }
.steps p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 960px) { .steps, .steps.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps, .steps.five { grid-template-columns: minmax(0, 1fr); } }

/* Offer list */
.offers { display: grid; }
.offer { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 12px 56px; padding: 30px 0; border-top: 1px solid var(--line); align-items: baseline; }
.offer:last-child { border-bottom: 1px solid var(--line); }
.offer h3 { font: 760 clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem)/1.05 var(--display); }
.offer div { display: grid; gap: 12px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 760px) { .offer { grid-template-columns: minmax(0, 1fr); } }

/* Method (home) */
.method-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.method-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.method-cols > div { display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.method-cols p { color: var(--ink-2); }
@media (max-width: 960px) { .method-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .method-cols { grid-template-columns: minmax(0, 1fr); } }

/* Machines (sector pages) */
.machines { list-style: none; margin: 0; padding: 0; display: grid; }
.machines li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.machines li:last-child { border-bottom: 1px solid var(--line); }
.machines b { font: 760 clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem)/1.05 var(--display); }
.machines span { font: 500 .72rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
.points { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.points li { font: 500 .78rem/1 var(--mono); letter-spacing: .04em; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--panel); }
.quote { font: 700 clamp(1.7rem, 1.2rem + 1.8vw, 2.7rem)/1.12 var(--display); max-width: 30ch; text-wrap: balance; }
.quote em { font-style: normal; color: var(--grease-ink); }

/* Settori hub */
.hub { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 56px; align-items: start; }
.hub-scene { position: sticky; top: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)); }
.hub-scene .scene { aspect-ratio: 1 / 1; }
.hub-note { margin-top: 24px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 899px) { .hub { grid-template-columns: minmax(0, 1fr); } .hub-scene { position: static; order: -1; } .hub-scene .scene { aspect-ratio: 5 / 4; } }

/* Nameplate */
.plate-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: center; }
@media (max-width: 899px) { .plate-wrap { grid-template-columns: minmax(0, 1fr); } }
.plate {
  position: relative; border-radius: 10px; padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(135deg, var(--plate-1) 0%, var(--plate-2) 100%); color: var(--plate-ink);
  box-shadow: inset 0 1px 0 var(--plate-hi), 0 28px 56px -32px color-mix(in srgb, var(--ink) 65%, transparent);
  max-width: 620px; width: 100%;
}
.plate::before { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--plate-ink) 22%, transparent); border-radius: 6px; pointer-events: none; }
.rivet { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--plate-hi), color-mix(in srgb, var(--plate-ink) 35%, var(--plate-2)) 70%); }
.rivet:nth-of-type(1) { top: 18px; left: 18px; } .rivet:nth-of-type(2) { top: 18px; right: 18px; }
.rivet:nth-of-type(3) { bottom: 18px; left: 18px; } .rivet:nth-of-type(4) { bottom: 18px; right: 18px; }
.plate-title { font: 800 clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem)/1 var(--display); letter-spacing: .02em; text-shadow: 0 1px 0 var(--plate-hi); margin: 8px 0 20px; }
.plate dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; font-family: var(--mono); font-size: .86rem; font-variant-numeric: tabular-nums; }
.plate dt { text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; opacity: .72; padding-top: .15em; }
.plate dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .plate dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .plate dd { margin-bottom: 10px; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; grid-auto-flow: dense; }
.gallery-teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .gallery-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 5px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transform-style: preserve-3d; transition: transform .5s var(--ease-out), box-shadow .4s ease; min-width: 0; }
.tile.tall { grid-row: span 2; aspect-ratio: auto; }
/* Galleria completa: righe calcolate sulla larghezza, foto verticali su 2 righe, panoramiche su 2 colonne */
.gallery-wrap { container-type: inline-size; }
.gallery-full { --cols: 5; --gap: 12px; gap: var(--gap); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * .75); }
.gallery-full .tile { aspect-ratio: auto; min-height: 0; }
.gallery-full .tile.tall { grid-row: span 2; }
.gallery-full .tile.wide { grid-column: span 2; }
@media (max-width: 1099px) { .gallery-full { --cols: 4; } }
@media (max-width: 719px) { .gallery-full { --cols: 3; } }
@media (max-width: 559px) { .gallery-full { --cols: 2; --gap: 8px; } }
@supports not (width: 1cqi) { .gallery-full .tile { aspect-ratio: 4 / 3; } .gallery-full .tile.tall, .gallery-full .tile.wide { grid-row: auto; grid-column: auto; } }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.tile button { all: unset; position: absolute; inset: 0; cursor: zoom-in; z-index: 2; }
.tile button:focus-visible { outline: 2px solid var(--grease); outline-offset: -4px; border-radius: 5px; }
.tile .ph {
  position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 10px; text-align: center;
  color: var(--ink-3); background: repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--ink) 6%, transparent) 11px 12px);
}
.tile .ph svg { width: 34px; height: 34px; color: var(--ink-3); }
.tile .ph b { font: 500 .74rem/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; font-weight: 500; }
.tile.is-missing img { display: none; }
.tile.is-missing .ph { display: grid; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { box-shadow: 0 24px 40px -26px color-mix(in srgb, var(--ink) 55%, transparent); }
  .tile:hover img { transform: scale(1.04); }
}
.gallery-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: color-mix(in srgb, var(--paper) 96%, transparent); color: var(--ink); }
.lightbox::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
.lb-bottom { padding-top: 12px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); justify-content: center; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; height: 100%; overflow: hidden; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-height: 0; object-fit: contain; border-radius: 4px; }
.lb-stage .ph { display: none; width: min(720px, 100%); aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 6px; place-content: center; justify-items: center; gap: 10px; color: var(--ink-3); text-align: center; padding: 24px; background: repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--ink) 6%, transparent) 11px 12px); }
.lb-stage .ph svg { width: 40px; height: 40px; }
.lightbox.is-missing .lb-stage img { display: none; }
.lightbox.is-missing .lb-stage .ph { display: grid; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: transform .16s var(--ease-out), border-color .2s ease; }
.icon-btn:active { transform: scale(.95); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.is-done { border-color: var(--grease); color: var(--grease-ink); }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 64px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { font: 500 .72rem/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.contact-list .v { font-size: 1.1rem; overflow-wrap: anywhere; min-width: 0; }
.contact-list .v.mono { font-size: 1.02rem; }
.contact-list .v a { text-decoration: none; }
.contact-list .v a:hover { text-decoration: underline; }
@media (max-width: 520px) { .contact-list li { grid-template-columns: minmax(0, 1fr) auto; } .contact-list .k { grid-column: 1 / -1; } }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; transition: border-color .2s ease; }
.chip-link:hover { border-color: var(--ink); }
.chip-link svg { width: 15px; height: 15px; color: var(--grease-ink); }

.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 3.5vw, 36px); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .96rem; }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field .hint { font-size: .86rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 50px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field ::placeholder { color: var(--ink-3); opacity: 1; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--grease); box-shadow: 0 0 0 3px color-mix(in srgb, var(--grease) 26%, transparent); }
.field .err { font-size: .86rem; color: var(--danger); }
.field .err:empty { display: none; }
.field.has-error :is(input, select, textarea) { border-color: var(--danger); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .95rem; color: var(--ink-2); font-weight: 400 !important; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--grease); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.form-status.is-error { background: color-mix(in srgb, var(--danger) 10%, var(--panel)); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.form-status { grid-column: 1 / -1; padding: 16px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--grease) 13%, var(--panel)); border: 1px solid color-mix(in srgb, var(--grease) 55%, transparent); display: grid; gap: 4px; }
.form-status b { font-weight: 600; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.band { background: var(--band); color: var(--band-fg); position: relative; overflow: hidden; }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--grease) 0 6px, transparent 6px 22px);
}
@media (prefers-reduced-motion: no-preference) {
  .band::before { animation: band-flow 1.6s linear infinite; }
  @keyframes band-flow { to { background-position: 22px 0; } }
}
.band .inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 56px; align-items: end; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.band .h2 { color: var(--band-fg); max-width: 16ch; }
.band p { color: var(--band-2); max-width: 52ch; margin-top: 16px; }
.band-side { display: grid; gap: 18px; justify-items: start; }
.band-phone { font: 500 clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem)/1 var(--mono); letter-spacing: -.01em; color: var(--band-fg); text-decoration: none; font-variant-numeric: tabular-nums; }
.band-phone:hover { color: var(--grease); }
.band .btn-ghost { color: var(--band-fg); border-color: color-mix(in srgb, var(--band-fg) 35%, transparent); }
.band .btn-ghost:hover { border-color: var(--band-fg); }
.band .label { color: var(--band-2); }
@media (max-width: 860px) { .band .inner { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { padding-top: 56px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px 40px; }
.foot-grid h2 { font: 500 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand .logo-icon { height: 58px; }
.foot-brand .logo-word { width: 170px; height: 26px; }
.foot-brand p { color: var(--ink-2); max-width: 38ch; font-size: .98rem; }
.legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .84rem; color: var(--ink-3); }
.legal a { color: var(--ink-2); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

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


/* ===================== Effetti su testi e foto ===================== */
.w { display: inline-block; vertical-align: top; overflow: clip; overflow-clip-margin: .06em; padding-block: .04em .1em; margin-block: -.04em -.1em; }
.wi { display: inline-block; will-change: transform; }
.quote .w { overflow: visible; }

/* Link del menu: sottolineatura arancione che entra da sinistra */
.nav > a:not([aria-current]):not(.is-section)::after, .has-sub > a:not([aria-current]):not(.is-section)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--grease);
  transform: scaleX(0); transform-origin: right; transition: transform .32s var(--ease-out);
}
.has-sub > a:not([aria-current]):not(.is-section)::after { right: 4px; }
@media (hover: hover) and (pointer: fine) {
  .nav > a:hover::after, .has-sub > a:hover::after { transform: scaleX(1); transform-origin: left; }
  /* Riflesso sul pulsante principale */
  .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
  .btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .42) 48%, transparent 66%);
    translate: -130% 0; transition: translate .7s var(--ease-out); }
  .btn-primary:hover::after { translate: 130% 0; }
  .row a:hover .row-name .wi { animation: nudge .5s var(--ease-out) both; animation-delay: calc(var(--wi) * 35ms); }
  @keyframes nudge { 40% { transform: translateY(-14%); } }
}

@media (prefers-reduced-motion: no-preference) {
  /* Titolo principale: le parole salgono dalla loro cornice, una dopo l'altra */
  .js-split .h1.rise { animation: none; }
  .js-split .h1 .wi { animation: word-up 1s var(--ease-out) both; animation-delay: calc(140ms + var(--wi) * 60ms); }
  @keyframes word-up { from { transform: translateY(112%) rotate(5deg); } }

  /* Foto Chi siamo: tendina che si apre al caricamento */
  .photo-frame { animation: curtain 1.2s var(--ease-io) .25s both; }
  @keyframes curtain { from { clip-path: inset(100% 0 0 0 round 8px); } to { clip-path: inset(0 0 0 0 round 8px); } }
  .photo img { animation: settle 1.6s var(--ease-out) .25s both; }
  @keyframes settle { from { scale: 1.25; } to { scale: 1.08; } }
  .photo figcaption { animation: rise .8s var(--ease-out) 1.1s both; }

  /* Lightbox: la foto entra con una leggera dissolvenza */
  .lb-stage img.is-in { animation: lb-in .45s var(--ease-out) both; }
  @keyframes lb-in { from { opacity: 0; scale: .965; filter: blur(6px); } }

  @supports (animation-timeline: view()) {
    /* Titoli di sezione: parole che salgono mentre il titolo entra nello schermo */
    .js-split .h2 { view-timeline: --title block; }
    .js-split .h2 .wi { animation: word-up linear both; animation-timeline: --title;
      animation-range: entry calc(var(--wi) * 6%) entry calc(75% + var(--wi) * 6%); }

    /* Citazione: le parole si accendono man mano che scorri */
    .js-split .quote { view-timeline: --quote block; }
    .js-split .quote .wi { animation: ink-in linear both; animation-timeline: --quote;
      animation-range: cover calc(12% + var(--wi) * 2.2%) cover calc(26% + var(--wi) * 2.2%); }
    @keyframes ink-in { from { opacity: .14; } }

    /* Paragrafi, elenchi e righe: salgono e compaiono entrando */
    .sec-head .lead, .split-head .prose, .benefits li, .offer, .steps li, .machines li, .row, .method-cols > div,
    .contact-list li, .specs .spec, .plate, .schematic-box, .points li, .hub-note {
      animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
    @keyframes lift { from { opacity: 0; translate: 0 34px; } }

    /* Foto della galleria: tendina dal basso e immagine che si assesta */
    .tile { animation: tile-in linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    @keyframes tile-in { from { clip-path: inset(30% 0 0 0 round 5px); translate: 0 40px; opacity: .2; } to { clip-path: inset(0 0 0 0 round 5px); } }
    .tile img { animation: img-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    @keyframes img-settle { from { scale: 1.22; } }

    /* Foto Chi siamo: profondità mentre scorri */
    .photo img { animation: settle 1.6s var(--ease-out) .25s both, depth linear both; animation-timeline: auto, view(); animation-range: normal, cover 0% cover 100%; animation-composition: replace, add; }
    @keyframes depth { from { translate: 0 -4%; } to { translate: 0 4%; } }

    /* Hero con video: il video si avvicina e il testo si allontana mentre esci */
    .hv-media { animation: hv-zoom linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes hv-zoom { to { scale: 1.14; } }
    .hv-copy { animation: hv-away linear both; animation-timeline: view(); animation-range: exit 10% exit 80%; }
    @keyframes hv-away { to { opacity: 0; translate: 0 -48px; } }
  }
}

/* Didascalie della galleria */
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 26px 12px 10px;
  font: 500 .78rem/1.35 var(--body); color: #fff;
  background: linear-gradient(to top, rgba(8, 14, 20, .82) 0%, rgba(8, 14, 20, .55) 45%, transparent 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.tile:hover .tile-cap,
.tile:focus-within .tile-cap { opacity: 1; transform: none; }
.tile.is-missing .tile-cap { opacity: 1; transform: none; background: none; color: var(--ink-2); text-shadow: none; }

.lb-cap {
  margin: 0; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  text-align: center; font: 500 .9rem/1.4 var(--body); color: var(--ink-2);
  text-wrap: balance;
}
.lb-cap[hidden] { display: none; }

/* Pagine legali: testo lungo da leggere */
.prose b { color: var(--ink); font-weight: 600; }
.prose .h2 { margin-top: .7em; }
.prose .h2:first-child { margin-top: 0; }
.prose h3 { font: 600 1.02rem/1.35 var(--body); color: var(--ink); margin: .5em 0 -.4em; }
.prose ul { margin: 0; padding-left: 1.15em; display: grid; gap: .55em; }
.prose li { padding-left: .15em; }
.prose li::marker { color: var(--grease); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--grease) 60%, transparent); }
.prose a:hover { text-decoration-color: var(--grease); }
.page-hero .label { color: var(--ink-3); }
