/*
  Breakpoint Studio — foglio di stile
  Layout e sistema di motion derivati dal template gratuito "Reflow" di 8B
  (https://8b.com/templates/reflow/, codice MIT). Foto: Unsplash License.
  Ordine dei layer: tokens → base → atoms → layout → sections → scenes.
*/

/* ── Font (Google Fonts, latin + latin-ext) ─────────────────────────────── */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 500; font-stretch: 100%; font-display: swap; src: url(https://fonts.gstatic.com/s/instrumentsans/v4/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0She1YmV.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 500; font-stretch: 100%; font-display: swap; src: url(https://fonts.gstatic.com/s/instrumentsans/v4/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0SZe1Q.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'TikTok Sans'; font-style: normal; font-weight: 500; font-stretch: 75%; font-display: swap; src: url(https://fonts.gstatic.com/s/tiktoksans/v8/70kbu7g-Lm8OXGnh_Ow1sUfFMmlnhbRF425wxXH-UGeud7XItbaHtxhggMrrmAvSNAHtMV7v5PpBL2J5Rgbj-Bo7OuHFrVDpITI.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'TikTok Sans'; font-style: normal; font-weight: 500; font-stretch: 75%; font-display: swap; src: url(https://fonts.gstatic.com/s/tiktoksans/v8/70kbu7g-Lm8OXGnh_Ow1sUfFMmlnhbRF425wxXH-UGeud7XItbaHtxhggMrrmAvSNAHtMV7v5PpBL2J5Rgbj-Bo7OuHFo1Dp.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@layer tokens, base, atoms, layout, sections, scenes;

/* ── Tokens ─────────────────────────────────────────────────────────────── */
@layer tokens {
  :root {
    --color-1: #0e0e0e;   /* inchiostro / superficie scura */
    --color-2: #f5f5f5;   /* carta / superficie chiara */
    --color-3: #d0d0d0;   /* testo su scuro */
    --color-4: #8e8e8e;   /* testo secondario su scuro */
    --color-5: #575757;   /* testo secondario su chiaro */
    --color-6: #5b6f91;   /* accento (tinta unita: contorni, testo di errore) */
    --led: #FF7A35;       /* LED arancio delle immagini */
    --led-ink: #FF9152;   /* LED per testo su grafite */
    --coral: var(--led);
    --accent: linear-gradient(115deg, #1c2536 0%, #3B4A66 50%, #6a7fa1 100%); /* accento: ardesia → acciaio (Orbit Sweep) */
    --accent-metal: linear-gradient(135deg, #E9EEF5 0%, #c3cfdf 28%, #8FA3C0 62%, #3B4A66 100%); /* superfici metalliche */
    --color-7: #1b1b1b;   /* filetti su scuro */
    --color-8: #e2e2e2;   /* filetti / pannelli su chiaro */
    --font-1: "Instrument Sans", "Instrument Sans Fallback", Arial, sans-serif;
    --font-2: "TikTok Sans", "TikTok Sans Fallback", "Arial Narrow", Arial, sans-serif;
    --font-display: "Archivo", "Instrument Sans", Arial, sans-serif; /* titoli: Archivo Expanded (OFL), caricato da Google Fonts in index.html */
    --font-code: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
    --radius-1: 999px;
    --radius-2: 2px;
    --space-1: clamp(16px, 1.6vw, 24px);
    --space-2: clamp(88px, 11vw, 168px);
    --ease: cubic-bezier(.7, 0, .2, 1);
  }
}

/* ── Base ───────────────────────────────────────────────────────────────── */
@layer base {
  @font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); font-weight: 100 549; size-adjust: 102.1%; ascent-override: 95%; descent-override: 24.5%; line-gap-override: 0%; }
  @font-face { font-family: "TikTok Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); font-weight: 100 549; size-adjust: 80.9%; ascent-override: 123.5%; descent-override: 37.1%; line-gap-override: 0%; }
  *, *::before, *::after { box-sizing: border-box; }
  html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 48px; }
  body { margin: 0; background: #0b0d10; color: #14171b; font-family: var(--font-1); font-size: 17px; line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
  h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; }
  button, input, select, textarea { font: inherit; color: inherit; }
  ::selection { background: #FF7A35; color: #14100d; }
  :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
  .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .skip { position: fixed; left: var(--space-1); top: -80px; z-index: 50; padding: 10px 14px; background: var(--color-2); color: var(--color-1); }
  .skip:focus { top: 8px; }
  .skip:focus-visible { outline-color: var(--color-2); }
}

/* ── Atoms ──────────────────────────────────────────────────────────────── */
@layer atoms {
  .m-text { font-family: var(--font-1); font-size: 17px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
  .m-text-2 { font-family: var(--font-1); font-size: clamp(56px, 10.4vw, 152px); font-weight: 400; line-height: .94; letter-spacing: -.035em; }
  .m-text-3 { font-family: var(--font-2); font-size: 13px; font-weight: 500; font-stretch: 75%; line-height: 1.25; letter-spacing: .03em; text-transform: uppercase; }
  .m-text-4 { font-family: var(--font-1); font-size: clamp(26px, 2.9vw, 40px); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
  .m-text-5 { font-family: var(--font-2); font-size: 17px; font-weight: 500; font-stretch: 75%; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; }
  .m-spread { font-family: var(--font-2); font-size: 12px; font-weight: 500; font-stretch: 75%; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; text-align: justify; text-align-last: justify; }
  .m-select { background: var(--accent) no-repeat 0 0 / 100% 100%; color: #f5f5f5; padding-inline: .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .m-dash { display: inline-block; height: .5em; min-width: .9em; border-radius: var(--radius-1); background: currentColor; vertical-align: middle; }

  .m-btn, .m-btn-2 { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px 13px; border: 0; border-radius: var(--radius-2); font-family: var(--font-2); font-size: 14px; font-weight: 500; font-stretch: 75%; line-height: 1; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; overflow: hidden; }
  .m-btn { background: var(--color-3); color: var(--color-1); }
  .m-btn-2 { background: var(--color-1); color: var(--color-2); }
  .m-btn::before, .m-btn-2::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--coral); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
  .m-btn::after, .m-btn-2::after { content: ""; width: 1.4em; height: .5em; border-radius: var(--radius-1); background: currentColor; transition: transform .45s var(--ease); }
  .m-btn__label { transition: color .3s; }
  @media (hover: hover) {
    .m-btn:hover::before, .m-btn-2:hover::before { transform: scaleX(1); }
    .m-btn:hover, .m-btn-2:hover { color: #14100d; }
    .m-btn:hover::after, .m-btn-2:hover::after { transform: translateX(.35em) scaleX(1.5); }
  }
  .m-btn:focus-visible::before, .m-btn-2:focus-visible::before { transform: scaleX(1); }
  .m-btn:focus-visible, .m-btn-2:focus-visible { color: #14100d; outline: 2px solid var(--color-6); outline-offset: 3px; }
  .m-btn:focus-visible { outline-color: var(--color-3); }
  .m-btn[disabled], .m-btn-2[disabled] { opacity: .6; cursor: progress; }

  .m-link { color: inherit; text-decoration: none; background: repeating-linear-gradient(90deg, currentColor 0 .7em, transparent .7em 1em) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
  @media (hover: hover) { .m-link:hover { animation: m-link-flow .7s linear infinite; } }
  @keyframes m-link-flow { to { background-position: 2em 100%; } }

  .m-icon-btn { display: inline-grid; place-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid currentColor; border-radius: var(--radius-2); background: transparent; color: inherit; cursor: pointer; }
  .m-icon-btn__bar { display: block; width: 20px; height: 5px; border-radius: var(--radius-1); background: currentColor; transition: transform .4s var(--ease); }
  @media (hover: hover) {
    .m-icon-btn:hover .m-icon-btn__bar:first-child { transform: translateX(4px); }
    .m-icon-btn:hover .m-icon-btn__bar:last-child { transform: translateX(-4px); }
  }

  .m-field { display: grid; gap: 8px; }
  .m-field__label { font-family: var(--font-2); font-size: 13px; font-weight: 500; font-stretch: 75%; line-height: 1.25; letter-spacing: .03em; text-transform: uppercase; }
  .m-field__control { width: 100%; min-height: 48px; padding: 12px 0 10px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: transparent; font-family: var(--font-1); font-size: 17px; line-height: 1.3; }
  .m-field__control:focus-visible { outline: 2px solid var(--color-6); outline-offset: 4px; }
  select.m-field__control { appearance: none; -webkit-appearance: none; padding-right: 28px; background: linear-gradient(currentColor, currentColor) no-repeat right 2px center / 14px 5px; cursor: pointer; }
  textarea.m-field__control { min-height: 96px; resize: vertical; }

  /* Logo Breakpoint: laptop con lo schermo che si sfoglia come pagine */
  .bp-logo { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .bp-logo path { vector-effect: non-scaling-stroke; }
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
@layer layout {
  .l-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-1); }
  @media (max-width: 47.99em) { .l-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
@layer sections {

  /* Navigazione: solo il logo e due tacche; il menu si apre a destra (assets/js/main.js).
     Chiari su grafite, scuri su argento: stage.js li cambia quando il passaggio raggiunge il loro angolo. */
  .nv-logo, .nv-bars { position: fixed; z-index: 42; top: clamp(14px, 1.9vw, 26px); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: #f4f6f9; cursor: pointer; transition: color .35s ease; }
  .nv-ask.ask, .talk { position: fixed; z-index: 42; color: #f4f6f9; transition: color .35s ease; }
  #navigation > :is(.nv-logo, .nv-bars, .nv-ask, .talk).is-ink, .svc-on #navigation > :is(.nv-logo, .nv-bars, .nv-ask, .talk) { color: #13161a; }
  #navigation.is-open > :is(.nv-bars, .talk) { color: #f4f6f9 !important; }
  @media (max-width: 47.99em) { #navigation.is-open > :is(.nv-logo, .nv-ask) { color: #f4f6f9 !important; } }
  @media (max-width: 22.4em) { .nv-ask.ask { left: 66px !important; font-size: 13px !important; } .talk { right: 54px !important; } }
  .nv-ask.ask { left: calc(clamp(20px, 2.6vw, 44px) + 36px + clamp(16px, 1.7vw, 28px)); top: calc(clamp(14px, 1.9vw, 26px) + 24px); translate: 0 -38%; font-size: clamp(14.5px, 1.16vw, 19px); letter-spacing: -.022em; }
  .talk { top: clamp(14px, 1.9vw, 26px); right: calc(clamp(20px, 2.6vw, 44px) + 40px + clamp(2px, .9vw, 14px)); }
  .nv-logo { left: calc(clamp(20px, 2.6vw, 44px) - 6px); }
  .nv-logo svg { width: 36px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.3px; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
  .nv-bars { right: calc(clamp(20px, 2.6vw, 44px) - 8px); }
  .nv-bars i { grid-area: 1 / 1; width: 32px; height: 1.5px; background: currentColor; transition: transform .55s cubic-bezier(.65, 0, .15, 1); }
  .nv-bars i:first-child { transform: translateY(-4.5px); }
  .nv-bars i:last-child { transform: translateY(4.5px); }
  @media (hover: hover) {
    .nv-bars:hover i:first-child { transform: translate(-4px, -4.5px); }
    .nv-bars:hover i:last-child { transform: translate(4px, 4.5px); }
  }
  #navigation.is-open .nv-bars i:first-child { transform: rotate(45deg); }
  #navigation.is-open .nv-bars i:last-child { transform: rotate(-45deg); }
  .nv-logo:focus-visible, .nv-bars:focus-visible { outline: 1.5px solid currentColor; outline-offset: 2px; border-radius: 6px; }

  /* velo sfocato dietro alla testata, solo dove i testi le scorrono sotto */
  #navigation::before { content: ""; position: fixed; inset: 0 0 auto; z-index: 39; height: clamp(92px, 10vw, 124px); pointer-events: none; opacity: 0; transition: opacity .45s ease; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); background: linear-gradient(180deg, rgb(196 200 207 / .9) 30%, rgb(196 200 207 / 0)); -webkit-mask-image: linear-gradient(180deg, #000 56%, transparent); mask-image: linear-gradient(180deg, #000 56%, transparent); }
  #navigation.is-veil::before, .svc-on #navigation::before { opacity: 1; }
  #navigation.is-veil--dark::before { background: linear-gradient(180deg, rgb(16 18 22 / .9) 30%, rgb(16 18 22 / 0)); }
  .svc-on #navigation::before { background: linear-gradient(180deg, rgb(205 208 214 / .94) 30%, rgb(205 208 214 / 0)); }
  .nv-scrim { position: fixed; inset: 0; z-index: 40; background: rgb(8 9 11 / .34); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
  #navigation.is-open .nv-scrim { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
  .nv-panel { position: fixed; inset: 0 0 0 auto; z-index: 41; display: flex; flex-direction: column; width: min(540px, 100vw); padding: clamp(84px, 12svh, 132px) clamp(24px, 3.2vw, 56px) clamp(22px, 4svh, 40px); overflow-y: auto; overscroll-behavior: contain; background: rgb(18 21 25 / .74); -webkit-backdrop-filter: saturate(150%) blur(26px); backdrop-filter: saturate(150%) blur(26px); color: #eceff3; clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .6s cubic-bezier(.76, 0, .24, 1), visibility 0s linear .6s; }
  #navigation.is-open .nv-panel { clip-path: inset(0); visibility: visible; transition: clip-path .75s cubic-bezier(.76, 0, .24, 1), visibility 0s; }
  /* filo di luce sul bordo del pannello */
  .nv-panel::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgb(255 255 255 / .34) 30%, rgb(255 255 255 / .12) 70%, transparent); }
  .nv-list { margin-block: auto; }
  .nv-item { border-top: 1px solid rgb(236 239 243 / .14); }
  .nv-item:last-child { border-bottom: 1px solid rgb(236 239 243 / .14); }
  .nv-row { position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%; padding: clamp(13px, 1.9svh, 20px) 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
  .nv-name { font-family: var(--font-display); font-stretch: 125%; font-size: clamp(25px, 2.35vw, 37px); font-weight: 400; line-height: 1.06; letter-spacing: -.042em; transition: translate .6s cubic-bezier(.22, 1, .36, 1), color .3s ease; }
  .nv-plus { position: relative; flex: none; width: 17px; height: 17px; }
  .nv-plus::before, .nv-plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: rgb(236 239 243 / .8); transition: transform .55s cubic-bezier(.65, 0, .15, 1), background-color .3s ease; }
  .nv-plus::after { transform: rotate(90deg); }
  [aria-expanded="true"] > .nv-plus::after { transform: rotate(0deg); }
  [aria-expanded="true"] > .nv-plus::before { background: var(--led); }
  [aria-expanded="true"] > .nv-plus::after { background: var(--led); }
  @media (hover: hover) { .nv-row:hover .nv-name { translate: 8px 0; } }
  .nv-row:focus-visible { outline: 1.5px solid #eceff3; outline-offset: -2px; }
  .nv-sub { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .65s cubic-bezier(.65, 0, .15, 1), visibility 0s linear .65s; }
  .nv-sub.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .65s cubic-bezier(.65, 0, .15, 1), visibility 0s; }
  .nv-sub__in { overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 24px; }
  .nv-main { display: grid; align-content: start; gap: 9px; padding: 2px 0 24px; }
  .nv-main a { font-family: var(--font-display); font-stretch: 112%; font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
  .nv-side { display: grid; align-content: start; gap: 18px; padding: 4px 0 24px; }
  .nv-side p { margin-bottom: 7px; font-size: 13px; color: rgb(236 239 243 / .5); }
  .nv-side ul { display: grid; gap: 7px; }
  .nv-side :is(a, span) { font-size: 14px; line-height: 1.35; color: rgb(236 239 243 / .86); }
  .nv-panel a { color: inherit; text-decoration: none; }
  .nv-sub a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s cubic-bezier(.22, 1, .36, 1); width: fit-content; }
  .nv-sub a:hover { background-size: 100% 1px; }
  .nv-panel a:focus-visible { outline: 1.5px solid #eceff3; outline-offset: 3px; }
  .nv-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 28px; padding-top: clamp(22px, 4svh, 40px); font-size: 14px; color: rgb(236 239 243 / .62); }
  .nv-foot .ask { font-size: 19px; }
  .nv-foot p { display: grid; gap: 3px; }
  /* le voci si scrivono con il fascio di luce quando il pannello si apre */
  #navigation .nv-item, #navigation .nv-foot { opacity: 0; transition: opacity .25s ease; }
  #navigation.is-open .nv-item, #navigation.is-open .nv-foot { opacity: 1; transition: opacity .6s ease calc(.28s + var(--i, 5) * .06s); }
  @media (max-width: 47.99em) {
    .nv-panel { padding-inline: 20px; }
    .nv-name { font-size: clamp(25px, 7.6vw, 34px); }
    .nv-sub__in { grid-template-columns: 1fr; }
    .nv-main { padding-bottom: 16px; } .nv-side { padding-bottom: 22px; }
  }

  /* Richiedi un preventivo: testo e un filo di luce, nient'altro */
  .ask { position: relative; display: inline-block; padding-bottom: .46em; font-family: var(--font-display); font-stretch: 116%; font-weight: 400; line-height: 1.1; letter-spacing: -.03em; white-space: nowrap; color: inherit; text-decoration: none; }
  .ask::before, .ask::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; }
  .ask::before { background: currentColor; opacity: .34; }
  .ask::after { background: linear-gradient(90deg, transparent, var(--led) 45%, #ffb27f 55%, transparent) -40% 0 / 34% 100% no-repeat; box-shadow: none; }
  @media (prefers-reduced-motion: no-preference) { .ask::after { animation: ask-run 5.4s cubic-bezier(.5, 0, .3, 1) 4s infinite; } }
  @keyframes ask-run { 0% { background-position: -60% 0; } 46%, 100% { background-position: 160% 0; } }
  .ask__line { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: linear-gradient(90deg, #ff9a5c, var(--led)); box-shadow: 0 0 12px rgb(255 122 53 / .7); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s cubic-bezier(.65, 0, .15, 1); }
  .ask:hover .ask__line, .ask:focus-visible .ask__line { transform: none; transform-origin: 0 50%; }
  .ask:focus-visible { outline: none; }

  /* Assistente: due fumetti a filo, tre punti di luce */
  .talk { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
  .talk svg { width: 34px; height: auto; overflow: visible; }
  .talk path { fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; transition: translate .55s cubic-bezier(.22, 1, .36, 1); }
  .talk circle { fill: var(--led); transform-box: fill-box; transform-origin: 50% 50%; }
  .is-ink.talk circle, .svc-on .talk circle { fill: #e8590f; }
  #navigation.is-open .talk circle { fill: var(--led); }
  @media (prefers-reduced-motion: no-preference) {
    .has-stage .talk path { stroke-dasharray: 1; stroke-dashoffset: 1; }
    .stage-ready .talk path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.5, 0, .2, 1) 1.5s, translate .55s cubic-bezier(.22, 1, .36, 1); }
    .stage-ready .talk .talk__back { transition-delay: 1.8s, 0s; }
    .talk circle { animation: talk-breathe 2.6s ease-in-out infinite; }
    .talk circle:nth-of-type(2) { animation-delay: .22s; } .talk circle:nth-of-type(3) { animation-delay: .44s; }
  }
  @keyframes talk-breathe { 0%, 60%, 100% { opacity: 1; transform: none; } 28% { opacity: .3; transform: translateY(-1.6px); } }
  @media (hover: hover) { .talk:hover .talk__back { translate: 1.8px 1.6px; } .talk:hover .talk__front { translate: -1px -1px; } .talk:hover circle { animation-duration: 1.2s; } }
  .talk:focus-visible { outline: 1.5px solid currentColor; outline-offset: 2px; border-radius: 8px; }
  @media (max-width: 47.99em) { .talk { right: 60px; } .talk svg { width: 32px; } }

  /* Assistente (assets/js/chat.js) */
  .bp-chat { --ink: #eef2f8; --ink-2: rgb(236 241 248 / .64); --ink-3: rgb(236 241 248 / .4); --line: rgb(236 241 248 / .1); --glass: rgb(236 241 248 / .05); position: fixed; inset: 0; z-index: 60; pointer-events: none; font-family: var(--font-1); }
  .bp-chat[hidden] { display: none; }
  .bp-chat__backdrop { position: absolute; inset: 0; pointer-events: auto; background: transparent; }
  .bp-chat__win { position: absolute; top: 88px; right: clamp(16px, 2.6vw, 44px); display: flex; flex-direction: column; width: min(420px, calc(100vw - 32px)); height: min(620px, calc(100svh - 112px)); overflow: hidden; pointer-events: auto; border: 1px solid var(--line); border-radius: 20px; background: rgb(16 18 22 / .92); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .55), 0 0 0 1px rgb(0 0 0 / .4); transform-origin: calc(100% - 60px) -10px; opacity: 0; transform: translateY(-8px) scale(.96); transition: opacity .22s ease, transform .32s cubic-bezier(.16, .8, .2, 1), width .3s var(--ease), height .3s var(--ease); }
  .bp-chat.is-open .bp-chat__win { opacity: 1; transform: none; }
  .bp-chat__win.is-wide { width: min(760px, calc(100vw - 32px)); height: min(820px, calc(100svh - 88px)); }
  .bp-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); background: var(--glass); }
  .bp-chat__who { flex: 1; min-width: 0; }
  .bp-chat__title { font-size: 15px; font-weight: 500; line-height: 1.2; }
  .bp-chat__sub { margin-top: 2px; font-size: 12px; color: var(--ink-3); }
  .bp-chat__icon { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
  .bp-chat__icon:hover { background: var(--glass); color: var(--ink); }
  .bp-chat__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .bp-chat__icon .i-min, .bp-chat__win.is-wide .bp-chat__icon .i-max { display: none; }
  .bp-chat__win.is-wide .bp-chat__icon .i-min { display: inline; }
  .bp-chat__avatar { position: relative; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); }
  .bp-chat__head .bp-chat__avatar { width: 38px; height: 38px; }
  .bp-chat__avatar svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .bp-chat__avatar--user { border-color: rgb(143 163 192 / .4); background: rgb(143 163 192 / .16); color: #b9c8dd; }
  .bp-chat__avatar.is-online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #3ccf7a; box-shadow: 0 0 0 2px rgb(14 18 27); }
  .bp-chat__log { flex: 1; display: grid; align-content: start; gap: 18px; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 20px; scrollbar-width: thin; scrollbar-color: rgb(236 241 248 / .14) transparent; }
  .bp-chat__log:focus { outline: none; }
  .bp-msg { display: flex; gap: 10px; align-items: flex-start; }
  .bp-msg--user { flex-direction: row-reverse; }
  .bp-msg__col { display: grid; gap: 4px; max-width: 82%; }
  .bp-msg--user .bp-msg__col { justify-items: end; }
  .bp-msg__bubble { padding: 11px 14px; border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; background: var(--glass); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
  .bp-msg--user .bp-msg__bubble { border: 0; border-radius: 16px 16px 5px 16px; background: var(--accent); color: #f4f7fb; }
  .bp-msg__bubble p + p, .bp-msg__bubble p + ul, .bp-msg__bubble p + ol, .bp-msg__bubble ul + p, .bp-msg__bubble ol + p { margin-top: 9px; }
  .bp-msg__bubble ul, .bp-msg__bubble ol { display: grid; gap: 4px; margin: 0; padding-left: 20px; list-style: disc; }
  .bp-msg__bubble ol { list-style: decimal; }
  .bp-msg__bubble strong { font-weight: 600; color: #fff; }
  .bp-msg__bubble a { color: #c9d5e6; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .bp-msg__time { padding-inline: 4px; font-size: 10.5px; color: var(--ink-3); }
  .bp-msg.is-new { animation: msg-in .28s cubic-bezier(.16, .8, .2, 1) both; }
  @keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
  .bp-dots { display: inline-flex; gap: 4px; align-items: center; height: 14px; }
  .bp-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dot 1s ease-in-out infinite; }
  .bp-dots i:nth-child(2) { animation-delay: .15s; } .bp-dots i:nth-child(3) { animation-delay: .3s; }
  @keyframes dot { 0%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
  .bp-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
  .bp-chat__chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); color: var(--ink-2); font: 13px/1.2 var(--font-1); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease; }
  .bp-chat__chip:hover { border-color: rgb(143 163 192 / .5); background: rgb(143 163 192 / .14); color: var(--ink); }
  .bp-chat__chip:active { transform: scale(.96); }
  .bp-chat__down { position: absolute; right: 14px; bottom: 92px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgb(26 32 45); color: var(--ink-2); cursor: pointer; }
  .bp-chat__down[hidden] { display: none; }
  .bp-chat__down svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bp-chat__form { padding: 12px 14px 10px; border-top: 1px solid var(--line); background: rgb(236 241 248 / .02); }
  .bp-chat__row { display: flex; align-items: flex-end; gap: 8px; }
  .bp-chat__input { flex: 1; min-height: 42px; max-height: 120px; padding: 10px 14px; resize: none; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); color: var(--ink); font: 15px/1.45 var(--font-1); transition: border-color .2s ease, background-color .2s ease; }
  .bp-chat__input::placeholder { color: var(--ink-3); }
  .bp-chat__input:focus { outline: none; border-color: rgb(143 163 192 / .6); background: rgb(236 241 248 / .07); }
  .bp-chat__send { display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 13px; background: var(--accent); color: #f4f7fb; cursor: pointer; transition: opacity .2s ease, transform .15s ease; }
  .bp-chat__send:disabled { opacity: .35; cursor: default; }
  .bp-chat__send:not(:disabled):active { transform: scale(.94); }
  .bp-chat__send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .bp-chat__send:focus-visible, .bp-chat__chip:focus-visible, .bp-chat__icon:focus-visible { outline: 2px solid #8FA3C0; outline-offset: 2px; }
  .bp-chat__hint { margin-top: 7px; text-align: center; font-size: 10.5px; color: var(--ink-3); }
  @media (max-width: 47.99em) {
    .bp-chat__backdrop { background: rgb(0 0 0 / .4); }
    .bp-chat__win, .bp-chat__win.is-wide { inset: auto 0 0 0; top: auto; right: 0; width: 100%; height: min(88svh, 720px); border-radius: 20px 20px 0 0; border-bottom: 0; transform: translateY(24px); transform-origin: 50% 100%; }
    .bp-chat.is-open .bp-chat__win { transform: none; }
    .bp-chat__icon[data-chat-expand], .bp-chat__hint { display: none; }
    .bp-chat__input { font-size: 16px; }
  }
  @media (prefers-reduced-motion: reduce) { .bp-chat__win, .bp-msg.is-new { transition: none; animation: none; } }
}

/* ── Palcoscenico e sezioni ──────────────────────────────────────────────────
   Due sfondi che si alternano: grafite (volto) e argento (cuore, cervello, mano).
   Le scene le disegna assets/js/stage.js; qui ci sono testi, tempi e composizione. */
@layer sections {
  #stage { display: none; }
  .has-stage #stage { position: fixed; inset: 0; z-index: 0; display: block; width: 100%; height: 100vh; height: 100lvh; background: #0b0d10; }
  main, #footer { position: relative; z-index: 1; }
  .act { position: relative; color: var(--ink); }
  .act--volto, .act--guardia, .act--fondo { --ink: #eceff3; --ink-2: rgb(228 232 238 / .78); --line: rgb(228 232 238 / .2); }
  .act--cuore, .act--cervello, .act--mano { --ink: #13161a; --ink-2: rgb(19 22 26 / .80); --line: rgb(19 22 26 / .28); }
  .has-stage .act + .act, .has-stage main + #footer { margin-top: 30vh; margin-top: 30svh; }
  .has-stage .act--mano { margin-bottom: 0; }
  .has-stage main + #footer.act { margin-top: 0; }
  .has-stage .act--pin { height: calc(var(--len) * 1vh); height: calc(var(--len) * 1svh); }
  .act__pin { position: relative; }
  .has-stage .act__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
  .act__anchor { position: absolute; left: 0; top: calc((var(--len, 100) - 100) * var(--f, .84) * 1svh); }
  .has-stage .act__still { display: none; }

  /* caratteri */
  .t-xl, .t-l, .t-lead, .t-name, .t-quote, .hero__title { font-family: var(--font-display); font-stretch: 125%; }
  .t-xl { font-size: clamp(46px, 9.2vw, 168px); font-weight: 500; line-height: .92; letter-spacing: -.05em; }
  .t-l { font-size: clamp(38px, 5.2vw, 92px); font-weight: 400; line-height: .98; letter-spacing: -.048em; }
  .t-lead { font-stretch: 112%; font-size: clamp(20px, 1.75vw, 30px); font-weight: 400; line-height: 1.22; letter-spacing: -.022em; }
  .t-name { font-size: clamp(24px, 2.35vw, 40px); font-weight: 400; line-height: 1.04; letter-spacing: -.04em; white-space: nowrap; }
  .t-quote { font-stretch: 112%; font-size: clamp(18px, 1.45vw, 25px); font-weight: 400; line-height: 1.3; letter-spacing: -.018em; }
  .t-m { font-family: var(--font-1); font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
  .t-s { font-family: var(--font-1); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
  .act .m-link { color: var(--ink); }
  .has-stage [data-type] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* ingressi: i testi si scrivono con un fascio di luce da sinistra, come proiettati sulla visiera */
  .has-stage [data-beat] { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
  .has-stage [data-beat].is-on { opacity: 1; pointer-events: auto; transition: opacity .25s ease; }
  .has-stage .steps.is-on { pointer-events: none; }
  .has-stage .steps.is-on .steps__nav, .has-stage .found.is-on :is(a, article, .found__quote) { pointer-events: auto; }
  .has-stage [data-beat].is-warm { opacity: .004; transition: none; }
  .has-stage .is-warm .scan { -webkit-mask-position: 40% 0 !important; mask-position: 40% 0 !important; }
  .scan { display: block; }
  .has-stage .scan { -webkit-mask: linear-gradient(94deg, #000 0 44%, rgb(0 0 0 / .25) 48%, transparent 54%) 100% 0 / 225% 100% no-repeat; mask: linear-gradient(94deg, #000 0 44%, rgb(0 0 0 / .25) 48%, transparent 54%) 100% 0 / 225% 100% no-repeat; padding-block: .06em .14em; margin-block: -.06em -.14em; }
  .has-stage .is-on .scan, .has-stage .is-on.scan { -webkit-mask-position: 0 0; mask-position: 0 0; transition: -webkit-mask-position 1.25s cubic-bezier(.3, .6, .1, 1) var(--d, 0s), mask-position 1.25s cubic-bezier(.3, .6, .1, 1) var(--d, 0s); }

  /* ── Home ── */
  .hero { position: absolute; inset: 0; }
  .hero__name { position: absolute; inset: auto 0 0; display: grid; justify-items: center; gap: clamp(8px, 1.3svh, 16px); padding: 0 var(--space-1) clamp(18px, 3.4svh, 42px); text-align: center; }
  .intro-done .hero__sub { animation-delay: .5s !important; }
  .intro-done .hero { --d0: .1s; }
  /* motto: lo stesso tratto delle scritte sul casco, in LED rosso, con la luce che cade sul tessuto (stage.js) */
  .motto { --mh: clamp(13px, 1.06vw, 20px); position: relative; justify-self: center; height: var(--mh); aspect-ratio: 342.2 / 26; margin: 0 0 clamp(2px, .9svh, 12px); }
  .motto svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .motto path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .motto__air { filter: blur(calc(var(--mh) * .36)); }
  .motto__air path { stroke: #ff1d12; stroke-width: 7; opacity: .85; }
  .motto__tube { stroke: #ff2a1c; stroke-width: 3; }
  .motto__core { stroke: #ffb3a6; stroke-width: 1.05; }
  .motto__hot { stroke: #fff; stroke-width: 1.9; opacity: 0; }
  .motto__spark { position: absolute; left: 100%; top: 50%; width: calc(var(--mh) * 2.1); height: 1.5px; margin-top: -.75px; border-radius: 2px; background: linear-gradient(90deg, transparent, #ff2a1c 60%, #fff); opacity: 0; }
  .has-stage .motto__led g { opacity: 0; }
  .has-stage .motto__air { opacity: 0; transition: opacity .3s ease; }
  .stage-ready :is(.hero.is-on, .ft.is-lit) .motto__led g { opacity: 1; animation: led-on .95s steps(1, end) calc(var(--dm, 1.75s) + var(--o) * .06s) both; }
  .stage-ready :is(.hero.is-on, .ft.is-lit) .motto__air { opacity: 1; transition: opacity 1s ease calc(var(--dm, 1.75s) + .25s); }
  .intro-done .hero { --dm: .15s; }
  @media (prefers-reduced-motion: no-preference) {
    /* ogni tanto una luce attraversa il motto e prosegue oltre l'ultima lettera */
    .stage-ready :is(.hero.is-on, .ft.is-lit) .motto__hot { animation: motto-pass 8.5s linear calc(6s + var(--i) * .085s) infinite; }
    .stage-ready :is(.hero.is-on, .ft.is-lit) .motto__spark { animation: motto-beyond 8.5s cubic-bezier(.2, .6, .2, 1) 6.9s infinite; }
  }
  @keyframes motto-pass { 0% { opacity: 0; } 1.4% { opacity: 1; } 6.5%, 100% { opacity: 0; } }
  @keyframes motto-beyond { 0% { opacity: 0; transform: translateX(-60%) scaleX(.3); } 1.5% { opacity: 1; } 11%, 100% { opacity: 0; transform: translateX(170%) scaleX(1); } }
  .hero__title { font-size: min(8.3vw, 16svh, 180px); font-weight: 500; line-height: .9; letter-spacing: -.055em; white-space: nowrap; padding-bottom: .12em; margin-bottom: -.1em; background: linear-gradient(180deg, #fff 14%, #d9dfe9 50%, #828a97 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero__sub { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(16px, 1.5vw, 25px); font-weight: 400; letter-spacing: -.005em; color: var(--led-ink); }
  .has-stage .hero__title { -webkit-mask: linear-gradient(180deg, #000 0 44%, transparent 56%) 0 100% / 100% 230% no-repeat; mask: linear-gradient(180deg, #000 0 44%, transparent 56%) 0 100% / 100% 230% no-repeat; }
  .stage-ready .hero.is-on .hero__title { -webkit-mask-position: 0 0; mask-position: 0 0; transition: -webkit-mask-position 1.9s cubic-bezier(.3, .6, .1, 1) var(--d0, 1s), mask-position 1.9s cubic-bezier(.3, .6, .1, 1) var(--d0, 1s); }
  .has-stage .hero__sub { opacity: 0; }
  .stage-ready .hero.is-on .hero__sub { opacity: 1; animation: led-on 1s steps(1, end) 2.1s both; }
  @keyframes led-on { 0% { opacity: 0; } 8% { opacity: .8; } 14% { opacity: .1; } 26% { opacity: .95; } 34% { opacity: .3; } 48%, 100% { opacity: 1; } }

  .say { position: absolute; inset: 0; }
  .say__title { position: absolute; left: clamp(20px, 3.4vw, 64px); top: 50%; translate: 0 -50%; font-size: min(4.05vw, 80px); }
  .say__text { position: absolute; right: clamp(20px, 3.4vw, 64px); top: 50%; translate: 0 -50%; display: grid; gap: 16px; width: min(24vw, 400px); }
  .say__text .t-lead { text-wrap: balance; }
  .say__text .t-m { font-size: clamp(15px, 1.18vw, 19px); }

  /* ── Chi siamo ── */
  .col { position: absolute; top: 50%; translate: 0 -50%; display: grid; gap: 18px; width: min(34vw, 500px); }
  .col--l { left: clamp(24px, 7vw, 132px); }
  .col--r { right: clamp(24px, 7vw, 132px); }
  .col .t-lead { font-size: clamp(26px, 2.7vw, 46px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
  .found { position: absolute; inset: 0; }
  .found__head { position: absolute; left: clamp(24px, 5vw, 96px); top: calc(var(--nav-h, 48px) + 7svh); font-weight: 400; }
  .found__one { position: absolute; top: 41%; display: grid; gap: 12px; }
  .found__one--a { left: clamp(24px, 5vw, 96px); }
  .found__one--b { right: clamp(24px, 5vw, 96px); }
  .found__quote { position: absolute; left: clamp(24px, 5vw, 96px); bottom: 8svh; display: grid; gap: 12px; width: min(29vw, 440px); color: var(--ink); }
  .found__quote .t-quote { text-wrap: balance; }
  .leads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .lead { fill: none; stroke: var(--ink); stroke-width: 1px; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .6; vector-effect: non-scaling-stroke; }
  .lead__dot { fill: var(--led); stroke: #fff; stroke-width: 1.2px; opacity: 0; }
  .is-on > .leads .lead { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.3, .6, .1, 1) .35s; }
  .is-on > .leads .lead__dot { opacity: 1; transition: opacity .4s ease .25s; }

  /* ── Processo ── */
  .act__lead { position: absolute; left: clamp(20px, 2.2vw, 42px); bottom: 7svh; width: min(36vw, 470px); }
  .act__lead .scan { color: var(--ink-2); }
  .steps { position: absolute; inset: 0; }
  .steps__list { position: absolute; left: clamp(24px, 6.4vw, 120px); top: 50%; translate: 0 -50%; display: grid; width: min(31vw, 500px); }
  .step { grid-area: 1 / 1; display: grid; align-content: center; gap: 16px; }
  .step__n { font-family: var(--font-display); font-stretch: 125%; font-size: clamp(64px, 8.4vw, 150px); font-weight: 300; line-height: .8; letter-spacing: -.06em; color: transparent; background: linear-gradient(180deg, rgb(19 22 26 / .62), rgb(19 22 26 / .16)); -webkit-background-clip: text; background-clip: text; padding: .06em .08em .1em 0; }
  .steps__nav { position: absolute; left: clamp(24px, 6.4vw, 120px); bottom: 5.4svh; width: min(47vw, 700px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
  .steps__nav button { position: relative; display: grid; gap: 10px; justify-items: start; padding: 14px 0 10px; border: 0; background: none; font-family: var(--font-1); font-size: 14px; color: rgb(19 22 26 / .56); text-align: left; cursor: pointer; transition: color .4s ease; }
  .steps__nav button::before, .steps__nav button::after { content: ""; position: absolute; left: 0; right: 10px; top: 0; height: 1px; background: rgb(19 22 26 / .26); }
  .steps__nav button::after { background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.3, .6, .1, 1); }
  .steps__nav button.is-done::after, .steps__nav button.is-now::after { transform: scaleX(1); }
  .steps__nav i { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--led); opacity: 0; scale: .2; transition: opacity .4s ease, scale .5s cubic-bezier(.22, 1, .36, 1); }
  .steps__nav .is-now { color: var(--ink); }
  .steps__nav .is-now i { opacity: 1; scale: 1; }
  .steps__nav button:hover { color: var(--ink); }
  .steps__nav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

  /* ── Manutenzione ── */
  .has-stage .act--guardia { min-height: 195vh; min-height: 195svh; }
  .care { display: grid; align-content: center; gap: clamp(28px, 5svh, 56px); min-height: 100svh; padding: calc(var(--nav-h, 48px) + 4svh) clamp(24px, 6.4vw, 120px) 6svh; }
  .has-stage .care { position: sticky; top: 0; }
  .care__head { display: grid; gap: 14px; width: min(46vw, 640px); }
  .care__head .t-l { font-size: clamp(36px, 4.5vw, 80px); }
  .care__head .t-m { max-width: 46ch; }
  .care__list { width: min(47vw, 660px); }
  .care__row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 24px; padding: clamp(10px, 1.6svh, 18px) 0; }
  .care__row::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); transform-origin: 0 50%; }
  .care__row h3 { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(17px, 1.3vw, 21px); font-weight: 400; letter-spacing: -.02em; }
  .care__row p { margin-top: 4px; max-width: 44ch; font-size: 15px; line-height: 1.45; color: rgb(228 232 238 / .64); }
  .care__state { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; color: var(--ink); }
  .care__state i { width: 7px; height: 7px; border-radius: 50%; background: #eaf2ff; box-shadow: 0 0 10px 2px rgb(190 215 255 / .75); }
  .care__link { justify-self: start; font-size: 17px; }
  .has-stage .care__row::before { transform: scaleX(0); }
  .has-stage .care__row > * { opacity: 0; }
  .has-stage .is-on .care__row::before { transform: none; transition: transform 1.1s cubic-bezier(.3, .6, .1, 1) calc(.3s + var(--i) * .16s); }
  .has-stage .is-on .care__row > * { opacity: 1; transition: opacity .7s ease calc(.45s + var(--i) * .16s); }
  .has-stage .is-on .care__state { transition: none; animation: led-on .9s steps(1, end) calc(.9s + var(--i) * .32s) both; }

  @media (max-height: 800px) {
    .has-stage .act--guardia { min-height: 0; }
    .has-stage .care { position: relative; padding-block: calc(var(--nav-h, 48px) + 9svh) 14svh; }
  }

  /* ── Contatti (impostazione conservata, la mano al posto della foto) ── */
  #contatti { padding: 0 var(--space-1) 26vh; }
  #contatti .vs-open { display: grid; align-content: start; padding-top: calc(var(--nav-h, 48px) + clamp(36px, 8svh, 92px)); }
  .has-stage #contatti .vs-open { min-height: 118vh; min-height: 118svh; }
  #contatti .vs-title { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-1); font-family: var(--font-display); font-stretch: 125%; font-weight: 500; letter-spacing: -.045em; font-size: min(7.6vw, 110px); color: var(--ink); }
  #contatti .vs-w { justify-self: start; white-space: nowrap; transform-origin: 0 0; }
  #contatti .vs-w1 { grid-column: 1 / span 2; }
  #contatti .vs-w2 { grid-column: 2 / span 2; }
  #contatti .vs-w3 { grid-column: 3 / span 2; justify-self: end; }
  #contatti .vs-grid { row-gap: 48px; align-items: start; }
  #contatti .vs-info { grid-column: 1 / span 2; display: grid; gap: 36px; }
  #contatti .vs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--space-1); }
  #contatti .vs-facts dt { margin-bottom: 6px; color: var(--ink-2); }
  #contatti .vs-hand { height: clamp(420px, 74svh, 780px); }
  html:not(.has-stage) #contatti .vs-hand { display: none; }
  #contatti .vs-form { grid-column: 3 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px var(--space-1); padding: clamp(20px, 2.4vw, 36px); border-radius: 4px; border: 1px solid rgb(255 255 255 / .42); background: rgb(255 255 255 / .30); -webkit-backdrop-filter: blur(22px) saturate(120%); backdrop-filter: blur(22px) saturate(120%); box-shadow: 0 40px 90px -50px rgb(20 23 28 / .45); }
  @media (min-width: 64em) and (prefers-reduced-motion: no-preference) { .has-stage #contatti .vs-form { transform: translateX(calc((1 - var(--shown, 1)) * 64px)); } }
  #contatti .vs-form { position: relative; }
  /* i contatti si scrivono quando la mano si è aperta */
  @media (min-width: 64em) and (prefers-reduced-motion: no-preference) {
    .has-stage #contatti .vs-facts > div { -webkit-mask: linear-gradient(94deg, #000 0 44%, rgb(0 0 0 / .25) 48%, transparent 54%) 100% 0 / 225% 100% no-repeat; mask: linear-gradient(94deg, #000 0 44%, rgb(0 0 0 / .25) 48%, transparent 54%) 100% 0 / 225% 100% no-repeat; transition: -webkit-mask-position .5s ease, mask-position .5s ease; }
    .has-stage #contatti.is-told .vs-facts > div, .has-stage #contatti .vs-facts:focus-within > div { -webkit-mask-position: 0 0; mask-position: 0 0; transition: -webkit-mask-position 1.2s cubic-bezier(.3, .6, .1, 1) calc(var(--o, 0) * .09s), mask-position 1.2s cubic-bezier(.3, .6, .1, 1) calc(var(--o, 0) * .09s); }
    #contatti .vs-facts > div:nth-child(2) { --o: 1; } #contatti .vs-facts > div:nth-child(3) { --o: 2; } #contatti .vs-facts > div:nth-child(4) { --o: 3; }
  }
  #contatti .vs-form::after { content: ""; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit; pointer-events: none; opacity: 0; background: conic-gradient(from var(--lit, 250deg), transparent 0 70%, rgb(255 122 53 / .2) 78%, #ff9a5c 92%, #fff 97%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
  @media (prefers-reduced-motion: no-preference) { #contatti .vs-form.is-lit::after { animation: form-lit 2.6s cubic-bezier(.45, 0, .25, 1) .15s both; } }
  #contatti .vs-form__title, #contatti .vs-wide, #contatti .vs-submit, #contatti .vs-privacy { grid-column: 1 / -1; }
  #contatti .m-field__control::placeholder { color: rgb(19 22 26 / .62); opacity: 1; }
  #contatti .vs-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  #contatti .vs-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
  #contatti .vs-status { color: var(--ink); }
  #contatti .vs-status.is-error { color: #9c2a06; }
  #contatti .vs-privacy { color: var(--ink-2); }

  /* ── Footer (conservato) ── */
  #footer { --ink: #f1f3f6; --ink-2: rgb(221 226 233 / .74); --line: rgb(226 231 238 / .2); color: var(--ink); overflow: clip; }
  .ft { --dm: .05s; --pad: clamp(20px, 2.8vw, 48px); position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: 0 var(--pad); overflow: clip; }
  /* la scena: i punti li disegna stage.js sopra questo riquadro; senza WebGL resta l'immagine */
  .ft-scene { position: relative; flex: 1 0 clamp(390px, 54vh, 760px); flex-basis: clamp(390px, 54svh, 760px); margin: 0 calc(var(--pad) * -1); container-type: size; }
  .ft-pic { position: absolute; left: 50%; bottom: 0; height: min(110cqh, 89cqw); aspect-ratio: 1024 / 572; translate: -51.6% 6.2%; background: url(../img/stage/contatto.webp) center / 100% 100%; -webkit-mask: linear-gradient(#000 66%, transparent 98%), linear-gradient(90deg, transparent, #000 14% 86%, transparent); -webkit-mask-composite: source-in; mask: linear-gradient(#000 66%, transparent 98%), linear-gradient(90deg, transparent, #000 14% 86%, transparent); mask-composite: intersect; mix-blend-mode: screen; }
  .has-stage .ft-pic { background: none; -webkit-mask: none; mask: none; mix-blend-mode: normal; }
  .motto--foot { container-type: normal; position: absolute; left: 52.35%; top: 72%; width: 22.6%; height: auto; margin: 0; translate: -50% -50%; --mh: 1.75cqh; }

  .ft-cols { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 22fr) minmax(0, 20fr); column-gap: clamp(28px, 3vw, 56px); }
  .ft-col h2 { position: relative; padding-bottom: clamp(9px, 1.25svh, 13px); font-family: var(--font-display); font-stretch: 112%; font-size: clamp(14px, 1.02vw, 18px); font-weight: 600; line-height: 1.2; letter-spacing: -.005em; text-transform: uppercase; }
  .ft-col h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
  .ft-col ul { margin: clamp(9px, 1.3svh, 14px) 0 0; padding: 0; list-style: none; }
  .ft-col li { font-size: clamp(15px, 1.06vw, 18px); line-height: 1.5; color: var(--ink-2); }
  .ft-col li a:not(.ft-pill), .ft-copy { position: relative; display: inline-block; padding: 1px 0; color: inherit; text-decoration: none; transition: color .3s ease, translate .6s cubic-bezier(.22, 1, .36, 1); }
  .ft-col li a:not(.ft-pill, .ft-in)::before { content: ""; position: absolute; left: -15px; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--led); box-shadow: 0 0 12px 2px rgb(255 122 53 / .6); opacity: 0; scale: .2; transition: opacity .35s ease, scale .5s cubic-bezier(.22, 1, .36, 1); }
  .ft-col li a:not(.ft-pill, .ft-in):is(:hover, :focus-visible) { color: var(--ink); translate: 15px 0; }
  .ft-col li a:not(.ft-pill, .ft-in):is(:hover, :focus-visible)::before { opacity: 1; scale: 1; }
  .ft-copy { min-width: 10em; border: 0; background: none; overflow: hidden; font: inherit; text-align: left; vertical-align: top; cursor: pointer; }
  .ft-copy span { display: block; transition: translate .55s cubic-bezier(.65, 0, .15, 1), opacity .4s ease; }
  .ft-copy__b { position: absolute; left: 0; top: 1px; white-space: nowrap; color: var(--led-ink); translate: 0 120%; opacity: 0; }
  .ft-copy.is-done .ft-copy__a { translate: 0 -120%; opacity: 0; }
  .ft-copy.is-done .ft-copy__b { translate: 0 0; opacity: 1; }
  .ft-copy:hover { color: var(--ink); }
  .ft-col small { display: block; font-size: 12.5px; line-height: 1.45; letter-spacing: .01em; color: rgb(221 226 233 / .6); }
  .ft-col--who li + li { margin-top: clamp(5px, .8svh, 9px); }
  .ft-col li a.ft-in { margin-left: .7em; padding: 0; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
  .ft-col li a.ft-in:hover { color: var(--led-ink); }
  .ft-col--who li.ft-cta { margin-top: clamp(11px, 1.7svh, 20px); }
  .ft-pill { position: relative; display: inline-block; padding: 8px 18px 9px; border: 1px solid rgb(241 243 246 / .72); border-radius: 99px; font-size: clamp(14px, .98vw, 16px); line-height: 1.25; white-space: nowrap; color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate; transition: color .35s ease, border-color .35s ease, transform .2s ease; }
  .ft-pill::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: #f1f3f6; translate: 0 101%; transition: translate .55s cubic-bezier(.22, 1, .36, 1); }
  .ft-pill:is(:hover, :focus-visible) { color: #101317; border-color: #f1f3f6; }
  .ft-pill:is(:hover, :focus-visible)::before { translate: 0 0; }
  .ft-pill:active { transform: scale(.97); }
  @media (min-width: 48em) and (max-width: 74em) { .ft-cols { grid-template-columns: minmax(0, 38fr) minmax(0, 29fr) minmax(0, 27fr); } .ft-pill { padding: 8px 14px 9px; } }
  @media (max-width: 23.4em) { .ft-base { flex-wrap: wrap; } .ft-base p { order: 2; flex-basis: 100%; } .ft-base .ft-legal { margin-left: 0; } .ft-cols:has(.ft-pill) { grid-template-columns: minmax(0, 1fr); } .ft-col--reach, .ft-col--who { grid-column: 1 / -1; } }

  .ft-base { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(8px, 1.6svh, 22px); font-size: 13px; color: rgb(221 226 233 / .66); }
  .ft-legal { margin: 0 auto 0 clamp(18px, 2vw, 32px); padding: 8px 0; color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 7px) / 0 1px no-repeat; transition: color .3s ease, background-size .45s cubic-bezier(.22, 1, .36, 1); }
  .ft-legal:is(:hover, :focus-visible) { color: var(--ink); background-size: 100% 1px; }
  .ft-up { display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color .3s ease; }
  .ft-up:hover { color: var(--ink); }
  .ft-up i { position: relative; width: 1px; height: 26px; background: rgb(238 241 245 / .34); overflow: hidden; }
  .ft-up i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, transparent, var(--led) 60%, #fff); translate: 0 101%; }
  @media (prefers-reduced-motion: no-preference) { .ft-up i::after { animation: ft-up 3.6s cubic-bezier(.5, 0, .2, 1) infinite; } .ft-up:hover i::after { animation-duration: 1.3s; } }
  @keyframes ft-up { 0% { translate: 0 101%; } 55%, 100% { translate: 0 -101%; } }

  /* la scritta: buia in alto, bianca in basso, tagliata dal bordo della pagina */
  .ft-word { --cut: .70; position: relative; height: calc(var(--ft-size, 18vw) * .70 * var(--cut)); margin: clamp(2px, .8svh, 10px) 0 0; font-family: var(--font-display); font-stretch: 100%; font-weight: 600; font-size: var(--ft-size, 18vw); line-height: 1; letter-spacing: -.045em; white-space: nowrap; pointer-events: none; user-select: none; }
  .ft-word span { display: block; width: max-content; margin: -.145em 0 0 var(--ft-left, -.06em); padding-right: .1em; background: linear-gradient(180deg, rgb(233 237 243 / 0) .12em, rgb(233 237 243 / .07) .20em, rgb(236 239 244 / .40) .42em, rgb(240 242 246 / .84) .60em, #f3f5f8 .68em); -webkit-background-clip: text; background-clip: text; color: transparent; }

  .has-stage .ft-col h2::after { transform: scaleX(0); }
  .has-stage :is(.ft-col h2 span, .ft-base) { opacity: 0; }
  .has-stage .ft-col li { opacity: 0; translate: 0 10px; }
  .has-stage .ft-word span { opacity: 0; translate: 0 22%; }
  .has-stage .ft.is-on .ft-col h2::after { transform: none; transition: transform 1.2s cubic-bezier(.3, .6, .1, 1) calc(.1s + var(--c) * .12s); }
  .has-stage .ft.is-on .ft-col h2 span { opacity: 1; transition: opacity .8s ease calc(.2s + var(--c) * .12s); }
  .has-stage .ft.is-on .ft-col li { opacity: 1; translate: 0 0; transition: opacity .8s ease calc(.3s + var(--c) * .12s + var(--i) * .06s), translate .9s cubic-bezier(.22, 1, .36, 1) calc(.3s + var(--c) * .12s + var(--i) * .06s); }
  .has-stage .ft.is-on .ft-base { opacity: 1; transition: opacity .9s ease .7s; }
  .has-stage .ft.is-on .ft-word span { opacity: 1; translate: 0 0; transition: opacity 1.3s ease .25s, translate 1.5s cubic-bezier(.16, 1, .3, 1) .25s; }
  /* scelta dell'app email: finestra al centro sul computer, foglio dal basso sul telefono */
  .mp { position: fixed; inset: 0; width: min(380px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; background: none; color: #f1f3f6; overflow: visible; opacity: 0; scale: .965; transition: opacity .22s ease, scale .22s cubic-bezier(.23, 1, .32, 1), translate .3s cubic-bezier(.32, .72, 0, 1), overlay .3s allow-discrete, display .3s allow-discrete; }
  .mp[open] { opacity: 1; scale: 1; transition-duration: .3s, .34s, .5s, .5s, .5s; }
  @starting-style { .mp[open] { opacity: 0; scale: .965; } }
  .mp::backdrop { background: rgb(6 7 9 / 0); touch-action: none; transition: background-color .3s ease, overlay .3s allow-discrete, display .3s allow-discrete; }
  .mp[open]::backdrop { background: rgb(6 7 9 / .58); }
  @starting-style { .mp[open]::backdrop { background: rgb(6 7 9 / 0); } }
  .mp__card { border-radius: 24px; background: rgb(25 28 33 / .9); -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09), 0 30px 90px rgb(0 0 0 / .5); overflow: hidden; }
  .mp__card:focus { outline: 0; }
  .mp__head { padding: 22px 24px 16px; }
  .mp__head h2 { font-family: var(--font-display); font-stretch: 112%; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
  .mp__head p { margin-top: 4px; font-size: 14px; line-height: 1.4; color: rgb(221 226 233 / .7); overflow-wrap: anywhere; }
  .mp__list { margin: 0; padding: 0 10px 10px; list-style: none; }
  .mp__list :is(a, button) { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 9px 14px; border: 0; border-radius: 15px; background: none; font: 400 16px/1.25 var(--font-1); text-align: left; text-decoration: none; color: inherit; cursor: pointer; transition: background-color .2s ease, scale .16s ease-out; -webkit-tap-highlight-color: transparent; }
  .mp__list :is(a, button):active { scale: .98; background: rgb(255 255 255 / .1); }
  @media (hover: hover) { .mp__list :is(a, button):hover { background: rgb(255 255 255 / .08); } }
  .mp__list :is(a, button):focus-visible { outline: 1.5px solid rgb(255 255 255 / .75); outline-offset: -2px; }
  .mp__list svg { flex: none; width: 40px; height: 40px; }
  .mp__list b { font-weight: 400; }
  .mp__list small { display: block; margin-top: 2px; font-size: 13px; color: rgb(221 226 233 / .62); }
  .mp__cancel { display: block; width: 100%; min-height: 54px; margin-top: 10px; border: 0; border-radius: 20px; background: rgb(25 28 33 / .9); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09); font: 500 16px/1 var(--font-1); color: inherit; cursor: pointer; transition: background-color .2s ease, scale .16s ease-out; }
  .mp__cancel:active { scale: .98; }
  @media (hover: hover) { .mp__cancel:hover { background: rgb(48 53 60 / .94); } }
  .mp__cancel:focus-visible { outline: 1.5px solid rgb(255 255 255 / .75); outline-offset: 3px; }
  @media (max-width: 34em) {
    .mp { width: calc(100vw - 20px); margin: auto auto 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); opacity: 1; scale: 1; translate: 0 105%; }
    .mp[open] { translate: 0 0; }
    @starting-style { .mp[open] { opacity: 1; scale: 1; translate: 0 105%; } }
  }
  @media (max-height: 420px) { .mp { width: min(560px, calc(100vw - 32px)); overflow: auto; } .mp__list { display: grid; grid-template-columns: 1fr 1fr; } .mp__head { padding: 14px 24px 8px; } }
  @media (prefers-reduced-motion: reduce) { .mp, .mp[open] { scale: 1; translate: 0 0; transition: opacity .2s ease; } }

  :is(.ft-copy, .ft-up, .ft-legal, .ft-pill, .ft-col a):focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; }

  /* ── Servizi: sei lame di vetro, come le fasce di luce del casco ── */
  .svc { --ink: #13161a; --ink-2: rgb(19 22 26 / .80); position: fixed; inset: 0; z-index: 38; color: var(--ink); }
  .svc[hidden] { display: none; }
  .svc__blades, .wipe { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
  .svc__blades i, .wipe i { margin-right: -1px; background: linear-gradient(180deg, #cfd2d8 0%, #bfc3ca 45%, #a9adb5 100%); box-shadow: inset 1px 0 rgb(255 255 255 / .5), inset -24px 0 40px -30px rgb(19 22 26 / .25); transform: scaleY(0); transform-origin: 50% 0; transition: transform .72s cubic-bezier(.76, 0, .24, 1) calc(var(--k) * 45ms); }
  .svc.is-open .svc__blades i { transform: none; }
  .svc:not(.is-open) .svc__blades i, .wipe.is-out i { transform-origin: 50% 100%; }
  :is(.svc__blades, .wipe) i:nth-child(1) { --k: 0; } :is(.svc__blades, .wipe) i:nth-child(2) { --k: 1; } :is(.svc__blades, .wipe) i:nth-child(3) { --k: 2; } :is(.svc__blades, .wipe) i:nth-child(4) { --k: 3; } :is(.svc__blades, .wipe) i:nth-child(5) { --k: 4; } :is(.svc__blades, .wipe) i:nth-child(6) { --k: 5; }
  .wipe { position: fixed; z-index: 37; pointer-events: none; visibility: hidden; }
  .wipe.is-in, .wipe.is-out { visibility: visible; }
  .wipe i { transition-duration: .46s; transition-delay: calc(var(--k) * 28ms); }
  .wipe.is-in i { transform: none; }
  .wipe--dark i { background: linear-gradient(180deg, #2a2f36 0%, #1e2227 50%, #0c0e11 100%); box-shadow: inset 1px 0 rgb(255 255 255 / .08); }
  .svc__scroll { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 36%, #dadde2 0%, #bfc3ca 58%, #a6aab2 100%) fixed; overflow-y: auto; overscroll-behavior: contain; padding: calc(48px + clamp(36px, 8svh, 92px)) clamp(20px, 6.4vw, 120px) 60px; opacity: 0; transition: opacity .25s ease; outline: none; }
  .svc.is-open .svc__scroll { opacity: 1; transition: opacity .55s ease .62s; }
  .svc__close { position: absolute; top: calc(48px + 18px); right: clamp(20px, 6.4vw, 120px); display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; border: 0; background: none; font: 400 15px/1 var(--font-1); color: var(--ink); cursor: pointer; }
  .svc__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: rotate .5s cubic-bezier(.22, 1, .36, 1); }
  .svc__close:hover svg { rotate: 90deg; }
  .svc__close:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
  .svc__head { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 32px; }
  .svc__note { display: grid; gap: 12px; max-width: 46ch; }
  .pr-table { width: 100%; margin-top: clamp(40px, 8svh, 88px); border-collapse: collapse; text-align: left; }
  .pr-table thead th { padding: 0 16px 12px 0; font: 400 14px/1.3 var(--font-1); color: var(--ink-2); border-bottom: 1px solid rgb(19 22 26 / .5); }
  .pr-table thead th:last-child, .pr-table .pr-fit { text-align: right; padding-right: 0; }
  .pr-table .pr-scale { display: none; }
  .pr-table .pr-group th { padding: 34px 0 6px; font: 400 14px/1.3 var(--font-1); color: var(--ink-2); }
  .pr-table tbody tr:not(.pr-group) > * { padding: 18px 16px 18px 0; vertical-align: top; border-bottom: 1px solid rgb(19 22 26 / .2); font-weight: 400; }
  .pr-table .pr-name { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: clamp(19px, 1.7vw, 27px); letter-spacing: -.025em; line-height: 1.15; }
  .pr-table .pr-models { display: block; max-width: 52ch; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
  .pr-table .pr-time { display: grid; gap: 12px; padding-top: 5px; font-size: 16px; }
  .pr-table .pr-bar { order: 2; width: calc(var(--m) / 5 * min(100%, 260px)); height: 3px; border-radius: 3px; background: linear-gradient(90deg, #ff8f4a, var(--led)); box-shadow: 0 0 14px rgb(255 110 40 / .45); transform-origin: 0 50%; transform: scaleX(0); }
  .svc.is-open .pr-bar { transform: none; transition: transform 1.1s cubic-bezier(.3, .6, .1, 1) 1s; }
  .pr-table td.pr-fit { font-size: 16px; white-space: nowrap; }
  .pr-table td:nth-child(2) { width: 27%; }
  .svc__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 36px; }
  .svc__cta { padding: 15px 26px; border-radius: 99px; background: #13161a; color: #f3f5f8; font: 400 16px/1 var(--font-1); text-decoration: none; transition: background-color .3s ease, color .3s ease; }
  .svc__cta:hover { background: var(--led); color: #14100d; }
  .svc__cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

  /* ── Tablet e telefoni ── */
  @media (max-width: 63.99em) {
    .steps__list, .care__head, .care__list { width: min(48vw, 520px); }
    #contatti .vs-info, #contatti .vs-form { grid-column: 1 / -1; }
  }
  @media (max-width: 47.99em), (max-aspect-ratio: 86 / 100) {
    .t-m { font-size: 16px; line-height: 1.5; }
    .hero { display: grid; align-content: end; padding: 0 20px clamp(18px, 3.2svh, 34px); gap: clamp(16px, 2.8svh, 28px); }
    .hero__name { position: static; padding: 0; gap: 8px; }
    .motto { --mh: clamp(13px, 2.1vw, 20px); margin-bottom: 4px; }
    .hero__title { font-size: min(15.6vw, 12.2svh); white-space: normal; line-height: .88; }
    .hero__sub { font-size: clamp(15px, 4vw, 20px); }
    .step .t-m { font-size: clamp(13px, min(3.9vw, 1.9svh), 16px); line-height: 1.45; }
    .step__n { display: none; }
    .say { display: grid; align-content: end; gap: 12px; padding: 0 20px clamp(20px, 4svh, 40px); background: linear-gradient(180deg, rgb(9 11 14 / .9) 0, rgb(9 11 14 / .74) 8%, transparent 21%), linear-gradient(180deg, transparent 34%, rgb(7 8 10 / .72) 54%, rgb(6 7 9 / .94) 72%); }
    .say__title, .say__text { position: static; translate: none; width: auto; }
    .say__title { font-size: min(10.4vw, 8svh); }
    .say__text { gap: 10px; }
    .say__text .t-m { font-size: clamp(14px, min(4.1vw, 2.2svh), 17px); line-height: 1.48; }
    .col, .col--l, .col--r { inset: auto 20px clamp(26px, 6svh, 60px); top: auto; translate: none; width: auto; gap: 12px; }
    .col .t-lead { font-size: clamp(24px, 7vw, 34px); }
    .found { display: grid; align-content: end; gap: clamp(10px, 1.9svh, 18px); padding: 0 20px clamp(18px, 3.4svh, 34px); }
    .found__head, .found__one, .found__quote { position: static; }
    .found__one { gap: 4px; }
    .found__one .t-s { font-size: 14px; line-height: 1.45; }
    .found__quote { width: auto; margin-top: 6px; gap: 6px; }
    .found__quote .t-quote { font-size: clamp(15px, 4.3vw, 19px); line-height: 1.28; }
    .found__quote .t-m { font-size: clamp(13px, min(3.7vw, 1.9svh), 16px); line-height: 1.42; }
    .leads { display: none; }
    .act__lead { left: 20px; right: 20px; bottom: 5svh; width: auto; }
    .steps__list { left: 20px; right: 20px; top: auto; bottom: calc(5svh + 58px); translate: none; width: auto; }
    .step { gap: 10px; align-content: end; }
    .steps__nav { left: 20px; right: 20px; bottom: 3svh; width: auto; gap: 6px; }
    .steps__nav button { font-size: 0; min-height: 40px; padding: 0; }
    .steps__nav button::before, .steps__nav button::after { top: 20px; right: 0; }
    .steps__nav i { top: 17px; }
    .has-stage .act--guardia { min-height: 0; }
    .care, .has-stage .care { position: relative; padding: 54svh 20px 12svh; background: linear-gradient(180deg, transparent 36svh, rgb(7 8 10 / .72) 58svh, rgb(6 7 9 / .9) 70svh); }
    .care__head, .care__list { width: auto; }
    .care__row { grid-template-columns: 1fr; gap: 8px; }
    #contatti { padding-bottom: 22vh; }
    .has-stage #contatti .vs-open { min-height: 46svh; }
    #contatti .vs-title { grid-template-columns: 1fr; font-size: 13vw; }
    #contatti .vs-w1, #contatti .vs-w2, #contatti .vs-w3 { grid-column: 1; }
    #contatti .vs-w2 { margin-left: 20%; } #contatti .vs-w3 { justify-self: start; }
    #contatti .vs-facts, #contatti .vs-form { grid-template-columns: 1fr; }
    #contatti .vs-hand { order: -1; height: 62svh; margin-bottom: 4svh; }
    .ft-scene { flex-basis: clamp(300px, 42svh, 560px); }
    .ft-pic { translate: -51.6% 4%; height: min(100cqh - 44px, 89cqw); }
    .ft-cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 14px; row-gap: clamp(20px, 2.8svh, 34px); }
    .ft-col--menu { grid-column: 1 / -1; }
    .ft-col--menu ul { display: grid; grid-template-columns: 1.05fr .95fr; column-gap: 14px; }
    .ft-col li { font-size: clamp(14px, 3.6vw, 18px); }
    .ft-col--menu li a { padding: 7px 0; min-width: 60%; }
    .ft-col--reach li { display: flex; align-items: center; min-height: 32px; }
    .ft-col--reach li :is(a, button) { padding: 5px 0 !important; }
    .ft-copy__b { top: 5px; }
    .ft-pill { padding: 10px 12px 11px; font-size: 13px; }
    .ft-col li a.ft-in { display: block; width: fit-content; margin: 3px 0; }
    .ft-col small { font-size: 12px; letter-spacing: 0; }
    .ft-base { margin-top: clamp(12px, 2svh, 24px); }
    .ft-word { --cut: .80; font-stretch: 70%; letter-spacing: -.03em; }
    .svc__head { grid-template-columns: 1fr; }
    .pr-table, .pr-table tbody, .pr-table tr, .pr-table th, .pr-table td { display: block; width: auto !important; }
    .pr-table thead { display: none; }
    .pr-table tbody tr:not(.pr-group) { padding: 18px 0; border-bottom: 1px solid rgb(19 22 26 / .2); }
    .pr-table tbody tr:not(.pr-group) > * { padding: 0; border: 0; text-align: left !important; }
    .pr-table td { margin-top: 12px; }
    .pr-table td.pr-fit { color: var(--ink-2); font-size: 15px; }
  }

  /* ── Senza WebGL: sezioni ferme con le immagini ── */
  html:not(.has-stage) :is(.act--volto, .act--guardia) { background: linear-gradient(180deg, #23282e, #0b0d10); }
  html:not(.has-stage) #footer { background: #08090b; }
  html:not(.has-stage) :is(.act--cuore, .act--cervello, .act--mano) { background: radial-gradient(circle at 50% 35%, #dadde2, #a8acb4); }
  html:not(.has-stage) :is(.act__pin, .care) { display: grid; gap: 40px; padding: 96px clamp(20px, 6vw, 110px); }
  html:not(.has-stage) :is(.hero, .hero__name, .say, .say__title, .say__text, .col, .found, .found__head, .found__one, .found__quote, .steps, .steps__list, .act__lead) { position: static; translate: none; width: auto; max-width: 760px; }
  html:not(.has-stage) .step { grid-area: auto; margin-bottom: 32px; }
  html:not(.has-stage) :is(.leads, .steps__nav) { display: none; }
  html:not(.has-stage) .act__still { width: min(560px, 100%); margin-inline: auto; mix-blend-mode: normal; }
}

/* titolo dei contatti che cresce dalla riga (motion kit) */
@layer scenes {
  @keyframes visit-grow { from { translate: var(--visit-x, 0px) var(--visit-y, 0px); scale: var(--visit-s, 1); } }
  [data-8b-live] #contatti .vs-title { view-timeline: --visit-title block; }
  [data-8b-live] #contatti .vs-w { animation: visit-grow linear both; animation-timeline: --visit-title; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  [data-8b-live] #contatti .vs-w1 { animation-range: cover 15vh cover 66.7241vh; }
  [data-8b-live] #contatti .vs-w2 { animation-range: cover 19.1379vh cover 70.8621vh; }
  [data-8b-live] #contatti .vs-w3 { animation-range: cover 23.2759vh cover 75vh; }
  @media (prefers-reduced-motion: reduce) {
    .has-stage .scan { -webkit-mask: none; mask: none; }
    .has-stage .hero__title { -webkit-mask: none; mask: none; }
    .stage-ready .hero.is-on .hero__sub, .stage-ready :is(.hero.is-on, .ft.is-lit) .motto__led g, .has-stage .is-on .care__state { animation: none; }
    .nv-panel, .nv-sub, .nv-scrim, .nv-item, .nv-foot { transition-duration: .01s !important; transition-delay: 0s !important; }
    .lead, .svc__blades i, .wipe i, .svc__scroll { transition-duration: .01s !important; transition-delay: 0s !important; }
  }
}
.warm-patch { position: fixed; left: 0; bottom: 0; z-index: 36; display: flex; opacity: .006; pointer-events: none; }
.warm-patch i { position: relative; display: block; width: 60px; height: 60px; border-radius: 4px; }
.warm-patch i:nth-child(1) { border: 1px solid rgb(255 255 255 / .42); background: rgb(255 255 255 / .3); -webkit-backdrop-filter: blur(22px) saturate(120%); backdrop-filter: blur(22px) saturate(120%); box-shadow: 0 40px 90px -50px rgb(20 23 28 / .45); }
.warm-patch i:nth-child(2) { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(180deg, #000 56%, transparent); mask-image: linear-gradient(180deg, #000 56%, transparent); }
.warm-patch i:nth-child(3) { padding: 1.5px; background: conic-gradient(from var(--lit, 250deg), transparent 0 70%, rgb(255 122 53 / .2) 78%, #ff9a5c 92%, #fff 97%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: form-lit 2s linear both; }
.warm-patch i:nth-child(4) { background: linear-gradient(180deg, rgb(255 255 255 / .78), rgb(200 207 216 / .04)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: blur(1.4px); }
@property --lit { syntax: '<angle>'; inherits: false; initial-value: 250deg; }
@keyframes form-lit { 0% { --lit: 250deg; opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { --lit: 640deg; opacity: 0; } }
