/* CWLab — sito istituzionale
   Layout: bande a tutta larghezza alternate (canvas chiaro / vault scuro) su una griglia di 12 colonne,
   contenuto max 1240px; foto e video solo nelle bande scure, prodotto mostrato in cornice.
   Token dal design system CW Lab: petrolio unico colore di marca, Newsreader / Hanken Grotesk / IBM Plex Mono. */

@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --canvas: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #eeeee9;
  --line: #e2e3df;
  --line-strong: #c9cbc5;
  --line-control: #858b93;
  --ink: #0d1117;
  --ink-2: #565c66;
  --petrol: #0d5c54;
  --on-petrol: #ffffff;
  --petrol-tint: #e3efec;
  --vault: #0f1f1d;
  --vault-2: #152a27;
  --vault-line: #24403b;
  --on-vault: #e3efec;
  --on-vault-2: #a9bfba;
  --petrol-light: #6fd0c0;
  --ok: #2e6a46;
  --watch: #835500;
  --risk: #b03d0c;
  --shadow-frame: 0 1px 2px rgba(13,17,23,.06), 0 24px 60px -24px rgba(13,31,28,.35);

  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --band-y: clamp(72px, 10vw, 136px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0c1615; --surface: #122120; --surface-2: #0f1c1b; --line: #24332f; --line-strong: #3d4f4a; --line-control: #6f827d;
    --ink: #eef3f1; --ink-2: #b9c6c2; --petrol: #4fb3a3; --on-petrol: #0f1f1d; --petrol-tint: #1a2e2b;
    --vault: #07100f; --vault-2: #0f1d1b; --vault-line: #1f3632;
    --ok: #7fbf97; --watch: #e0a64a; --risk: #f08a64;
    --shadow-frame: 0 0 0 1px rgba(255,255,255,.04), 0 24px 60px -24px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0c1615; --surface: #122120; --surface-2: #0f1c1b; --line: #24332f; --line-strong: #3d4f4a; --line-control: #6f827d;
  --ink: #eef3f1; --ink-2: #b9c6c2; --petrol: #4fb3a3; --on-petrol: #0f1f1d; --petrol-tint: #1a2e2b;
  --vault: #07100f; --vault-2: #0f1d1b; --vault-line: #1f3632;
  --ok: #7fbf97; --watch: #e0a64a; --risk: #f08a64;
  --shadow-frame: 0 0 0 1px rgba(255,255,255,.04), 0 24px 60px -24px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--vault); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--petrol-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; border-radius: 4px; }
.band--vault :focus-visible, .hero :focus-visible, .site-header:not(.is-solid) :focus-visible { outline-color: var(--petrol-light); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: var(--band-y); position: relative; }
.band--vault { background: var(--vault); color: var(--on-vault); }
.band--tint { background: var(--surface-2); }
.band--surface { background: var(--surface); }
.band + .band:not(.band--vault):not(.band--tint) { border-top: 1px solid var(--line); }

/* ——— Tipografia ——— */
.label {
  font-family: var(--f-mono); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--petrol);
}
.band--vault .label, .hero .label, .cta-photo .label, .page-hero .label { color: var(--petrol-light); }
.display-xl, .display-lg, .display-md { font-family: var(--f-display); font-weight: 400; margin: 0; text-wrap: balance; }
.display-xl { font-size: clamp(44px, 6.6vw, 92px); line-height: 1.02; letter-spacing: -.025em; }
.display-lg { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.02em; }
.display-md { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.01em; }
.display-xl em, .display-lg em, .display-md em { font-style: italic; color: var(--petrol); }
.band--vault .display-lg em, .hero em, .page-hero em, .cta-photo em { color: var(--petrol-light); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin: 0; text-wrap: pretty; }
.band--vault .lead { color: var(--on-vault-2); }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.band--vault .muted { color: var(--on-vault-2); }
.section-head { display: grid; gap: 20px; max-width: 820px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.section-head--split .lead { justify-self: start; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: minmax(0, 1fr); } }

/* ——— Pulsanti e link ——— */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 8px; font: 600 15px/1 var(--f-sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--petrol); color: var(--on-petrol); }
.btn-primary:hover { background: color-mix(in oklab, var(--petrol) 86%, var(--ink)); }
.btn-light { background: #f2f6f4; color: #0f1f1d; }
.btn-light:hover { background: #ffffff; }
.btn-outline-light { border-color: rgba(227,239,236,.45); color: #f2f6f4; }
.btn-outline-light:hover { border-color: #f2f6f4; background: rgba(242,246,244,.08); }
.btn-secondary { border-color: var(--line-control); color: var(--ink); background: var(--surface); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--petrol);
  text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .15s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover svg { transform: translateX(3px); }
.band--vault .link-arrow { color: var(--petrol-light); }

/* ——— Intestazione ——— */
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  color: #f2f6f4; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: var(--canvas); color: var(--ink); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 34px; width: auto; }
.brand .logo-dark { display: none; }
.site-header:not(.is-solid) .brand .logo-light { display: none; }
.site-header:not(.is-solid) .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header.is-solid .brand .logo-light { display: none; } :root:not([data-theme="light"]) .site-header.is-solid .brand .logo-dark { display: block; } }
:root[data-theme="dark"] .site-header.is-solid .brand .logo-light { display: none; }
:root[data-theme="dark"] .site-header.is-solid .brand .logo-dark { display: block; }
.nav-links { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 500;
  opacity: .86; transition: opacity .15s var(--ease), background-color .15s var(--ease);
}
.nav-links a:hover { opacity: 1; background: color-mix(in oklab, currentColor 8%, transparent); }
.nav-links a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
.nav .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.site-header:not(.is-solid) .nav .btn-primary { background: #f2f6f4; color: #0f1f1d; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 8px; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .25s var(--ease), opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav-links, .nav .btn { display: none; }
  .menu-open .site-header { background: var(--canvas); color: var(--ink); }
  .menu-open .site-header .brand .logo-light { display: block; }
  .menu-open .site-header .brand .logo-dark { display: none; }
  .menu-open .nav-links {
    display: flex; flex-direction: column; position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--canvas);
    padding: 24px var(--gutter-r) 24px var(--gutter-l); gap: 0; margin: 0; overflow-y: auto;
  }
  .menu-open .nav-links a { font-family: var(--f-display); font-size: 30px; padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; opacity: 1; box-shadow: none; }
  .menu-open .nav-links .nav-cta { display: block; margin-top: 24px; border: 0; }
  .menu-open .nav-links .nav-cta a { font-family: var(--f-sans); font-size: 16px; text-align: center; background: var(--petrol); color: var(--on-petrol); border-radius: 8px; padding: 16px; border: 0; }
}
.nav-links .nav-cta { display: none; }

/* ——— Hero home con video ——— */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; color: #f2f6f4; background: #0b1715; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media.is-live .hero-still { visibility: hidden; }
.slide-dots { display: inline-flex; gap: 6px; flex: none; }
.slide-dots i { width: 9px; height: 9px; border-radius: 2px; border: 1px solid rgba(227,239,236,.45); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.slide-dots i.is-on { background: #6fd0c0; border-color: #6fd0c0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,16,15,.92) 0%, rgba(7,16,15,.74) 38%, rgba(7,16,15,.18) 72%, rgba(7,16,15,.10) 100%),
    linear-gradient(0deg, rgba(7,16,15,.85) 0%, rgba(7,16,15,0) 34%);
}
.hero-body { flex: 1; display: flex; align-items: center; padding-top: calc(76px + 48px); padding-bottom: 48px; }
.hero-copy { max-width: 760px; display: grid; gap: 28px; }
.hero-copy .lead { color: #c9d8d4; max-width: 56ch; }
.hero-foot { border-top: 1px solid rgba(227,239,236,.16); }
.hero-foot .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.ticker { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 48s linear infinite; }
.ticker-track span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #a9bfba; white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; }
.ticker-track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--petrol-light); }
@keyframes ticker { to { transform: translateX(-50%); } }
.video-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(227,239,236,.3); background: transparent; color: #e3efec; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.video-toggle:hover { border-color: #e3efec; }
.video-toggle svg { width: 12px; height: 12px; }

/* Ingresso dell'hero (stato finale visibile) */
.intro > * { animation: intro 1s var(--ease) both; }
.intro > *:nth-child(2) { animation-delay: .12s; }
.intro > *:nth-child(3) { animation-delay: .24s; }
.intro > *:nth-child(4) { animation-delay: .36s; }
@keyframes intro { from { opacity: 0; transform: translateY(18px); } }

/* ——— Hero delle pagine interne ——— */
.page-hero { position: relative; color: #f2f6f4; background: #0b1715; overflow: hidden; isolation: isolate; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); animation: slowzoom 18s var(--ease) both; }
@keyframes slowzoom { from { transform: scale(1.14); } }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,16,15,.9) 0%, rgba(7,16,15,.66) 45%, rgba(7,16,15,.2) 100%), linear-gradient(0deg, rgba(7,16,15,.6), rgba(7,16,15,0) 40%); }
.page-hero .wrap { padding-top: calc(76px + clamp(72px, 10vw, 140px)); padding-bottom: clamp(64px, 8vw, 112px); }
.page-hero .hero-copy { max-width: 820px; }
.crumbs { display: flex; gap: 10px; align-items: center; }
.crumbs a { text-decoration: none; color: #a9bfba; }
.crumbs a:hover { color: #fff; }

/* ——— Fascia delle norme ——— */
.norms { background: var(--surface); border-bottom: 1px solid var(--line); }
.norms .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 48px; align-items: center; padding-block: 28px; }
.norms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; }
.norms li { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.norms li small { display: block; font-family: var(--f-sans); font-size: 13px; letter-spacing: 0; color: var(--ink-2); }
.norms .label { color: var(--ink-2); }
@media (max-width: 760px) { .norms .wrap { grid-template-columns: minmax(0,1fr); } .norms ul { gap: 14px 28px; } }

/* ——— Cornice del prodotto ——— */
.frame {
  border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-frame);
}
.frame-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.frame-bar span { margin-left: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); letter-spacing: .02em; padding: 3px 10px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* Panoramica in evidenza con indicatori sovrapposti */
.showcase { position: relative; margin-top: clamp(40px, 5vw, 72px); }
.showcase .frame { transform: perspective(2200px) rotateX(var(--tilt, 6deg)); transform-origin: 50% 0; transition: transform .1s linear; }
.chip-float {
  position: absolute; z-index: 2; display: grid; gap: 4px; padding: 14px 16px; border-radius: 10px; min-width: 210px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -18px rgba(13,31,28,.45);
  animation: bob 7s ease-in-out infinite;
}
.chip-float .label { color: var(--ink-2); font-size: 11px; }
.chip-float strong { font-family: var(--f-mono); font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.chip-float .state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--ok); } .dot.watch { background: var(--watch); } .dot.risk { background: var(--risk); } .dot.petrol { background: var(--petrol); }
.chip-a { left: -28px; top: 22%; }
.chip-b { right: -32px; top: 46%; animation-delay: -2.4s; }
.chip-c { left: 18%; bottom: -36px; animation-delay: -4.6s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 860px) { .chip-float { display: none; } .showcase .frame { transform: none; } }

/* ——— Moduli ——— */
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.module {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; border-radius: 12px; overflow: hidden;
  color: #f2f6f4; text-decoration: none; isolation: isolate; background: #0b1715;
}
.module img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.module::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,16,15,.95) 0%, rgba(7,16,15,.72) 42%, rgba(7,16,15,.1) 75%); transition: background-color .3s; }
.module:hover img { transform: scale(1.05); }
.module-body { padding: 28px; display: grid; gap: 12px; }
.module h3 { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: -.01em; }
.module p { color: #c9d8d4; font-size: 15px; line-height: 1.55; }
.module .link-arrow { color: #f2f6f4; margin-top: 8px; }
@media (max-width: 1080px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } .module { min-height: 440px; } }
@media (max-width: 600px) { .modules { grid-template-columns: minmax(0, 1fr); } .module { min-height: 400px; } }

/* Catalogo: moduli in lavorazione */
.next { margin-top: 48px; display: grid; gap: 20px; scroll-margin-top: 110px; }
.next-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.next-head h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.01em; }
.next-head p { color: var(--ink-2); font-size: 15px; max-width: 52ch; }
.next-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.next-card { padding: 24px; border-radius: 12px; border: 1px dashed var(--line-control); background: transparent; display: grid; gap: 10px; align-content: start; }
.next-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.next-top .label { color: var(--ink-2); font-size: 11px; }
.next-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--watch); font-weight: 500; }
.next-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.15; }
.next-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 1080px) { .next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .next-grid { grid-template-columns: minmax(0, 1fr); } }

/* ——— Animazione: dall'obbligo all'evidenza ——— */
.flow-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.flow-tab {
  position: relative; overflow: hidden; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--vault-line);
  background: transparent; color: var(--on-vault-2); font: 500 14px/1 var(--f-sans); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
}
.flow-tab:hover { color: var(--on-vault); border-color: #3b5f58; }
.flow-tab[aria-selected="true"] { color: #0f1f1d; background: #e3efec; border-color: #e3efec; }
.flow-tab .progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--petrol); }
.flow-tab[aria-selected="true"] .progress { animation: tabprogress var(--cycle, 9s) linear forwards; }
.flow.is-paused .flow-tab .progress { animation-play-state: paused; }
@keyframes tabprogress { to { width: 100%; } }
.flow-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.flow-line { position: absolute; left: 10%; right: 10%; top: 28px; height: 1px; background: var(--vault-line); }
.flow-line b { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(111,208,192,0), var(--petrol-light)); }
.flow-line i { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--petrol-light); box-shadow: 0 0 0 6px rgba(111,208,192,.16); opacity: 0; }
.flow-step { position: relative; display: grid; gap: 16px; align-content: start; }
.flow-node {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--vault-2); border: 1px solid var(--vault-line);
  color: var(--on-vault-2); transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); position: relative; z-index: 1;
}
.flow-node svg { width: 24px; height: 24px; }
.flow-step.is-on .flow-node { background: #e3efec; color: #0d5c54; border-color: #e3efec; transform: translateY(-2px); }
.flow-step .label { color: var(--on-vault-2); }
.flow-step.is-on .label { color: var(--petrol-light); }
.flow-card {
  min-height: 150px; padding: 18px; border-radius: 10px; background: var(--vault-2); border: 1px solid var(--vault-line);
  display: grid; gap: 8px; align-content: start; transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.flow-step.is-on .flow-card { border-color: #3b5f58; background: #18302c; }
.flow-card .ref { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--petrol-light); }
.flow-card strong { font-weight: 600; font-size: 16px; line-height: 1.35; color: #f2f6f4; }
.flow-card span { font-size: 14px; line-height: 1.5; color: var(--on-vault-2); }
.flow-card .swap { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.flow.is-swapping .flow-card .swap { opacity: 0; transform: translateY(6px); }
.flow-caption { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--on-vault-2); font-size: 15px; }
@media (max-width: 960px) {
  .flow-track { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .flow-line { left: 27px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; }
  .flow-line b { width: 100%; height: 0; background: linear-gradient(180deg, rgba(111,208,192,0), var(--petrol-light)); }
  .flow-line i { display: none; }
  .flow-step { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; }
  .flow-step .label { grid-column: 2; grid-row: 1; align-self: center; }
  .flow-card { grid-column: 2; min-height: 0; }
  .flow-node { grid-row: 1 / span 2; }
}

/* ——— Tour del prodotto (sticky) ——— */
.tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.tour-steps { display: grid; }
.tour-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-block: 32px; opacity: .38; transition: opacity .5s var(--ease); }
.tour-step:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 12vh; }
.tour-step.is-on { opacity: 1; }
.tour-step h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.01em; }
.tour-step ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tour-step li { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 10px; font-size: 16px; color: var(--ink-2); }
.tour-step li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; border: 1.5px solid var(--petrol); }
.tour-stage { position: sticky; top: calc(76px + 9vh); }
.tour-stage .frame { position: relative; }
.tour-shots { position: relative; aspect-ratio: 16 / 10; background: var(--surface); }
.tour-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.015); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.tour-shots img.is-on { opacity: 1; transform: none; }
.tour-focus { position: absolute; border: 2px solid var(--petrol); border-radius: 8px; box-shadow: 0 0 0 9999px rgba(13,17,23,.18); transition: all .8s var(--ease); pointer-events: none; opacity: 0; }
.tour-focus.is-on { opacity: 1; }
.tour-index { display: flex; gap: 6px; margin-top: 18px; }
.tour-index button { flex: 1; height: 3px; border: 0; padding: 0; background: var(--line-strong); border-radius: 2px; cursor: pointer; transition: background-color .3s; }
.tour-index button.is-on { background: var(--petrol); }
.tour-mobile-shot { display: none; }
@media (max-width: 960px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-stage { display: none; }
  .tour-step, .tour-step:first-child { min-height: 0; opacity: 1; padding-block: 24px; }
  .tour-mobile-shot { display: block; margin-top: 8px; }
}

/* ——— Matrice del rischio ——— */
.method { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.method-copy { display: grid; gap: 24px; }
.method-points { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.method-points div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.method-points dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.method-points dd { margin: 0; }
.matrix-card { padding: clamp(18px, 2.4vw, 28px); border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-frame); }
.matrix-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.matrix-head strong { font-weight: 600; font-size: 16px; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 14px; border: 0; background: transparent; border-radius: 6px; font: 500 13px/1 var(--f-sans); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.matrix-wrap { display: grid; grid-template-columns: 22px 18px minmax(0, 1fr); grid-template-rows: minmax(0,1fr) 18px 22px; gap: 4px; }
.matrix-axis-y { grid-row: 1; grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 12px; color: var(--ink-2); }
.matrix-ticks-y { grid-row: 1; grid-column: 2; display: grid; grid-template-rows: repeat(10, 1fr); font: 11px/1 var(--f-mono); color: var(--ink-2); align-items: center; text-align: right; }
.matrix-ticks-x { grid-row: 2; grid-column: 3; display: grid; grid-template-columns: repeat(10, 1fr); font: 11px/1 var(--f-mono); color: var(--ink-2); text-align: center; align-items: center; }
.matrix-axis-x { grid-row: 3; grid-column: 3; text-align: center; font-size: 12px; color: var(--ink-2); }
.matrix { grid-row: 1; grid-column: 3; position: relative; display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr); gap: 2px; aspect-ratio: 1; }
.matrix .cell { border-radius: 2px; transform-origin: 50% 50%; }
.matrix.is-building .cell { animation: cellin .5s var(--ease) both; animation-delay: calc(var(--d) * 14ms); }
@keyframes cellin { from { opacity: 0; transform: scale(.6); } }
.marker {
  position: absolute; width: 9%; aspect-ratio: 1; margin: -4.5% 0 0 -4.5%; border-radius: 50%; display: grid; place-items: center;
  background: #0f1f1d; color: #fff; font: 500 12px/1 var(--f-mono); box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0,0,0,.25);
  transition: left 1.1s var(--ease), top 1.1s var(--ease); z-index: 2;
}
.matrix-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 12px; margin-top: 18px; font-size: 12px; color: var(--ink-2); }
.matrix-legend span { display: grid; grid-template-columns: 12px minmax(0,1fr); align-items: start; gap: 7px; min-width: 0; line-height: 1.25; }
.matrix-legend small { display: block; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-2); opacity: .8; }
.matrix-legend i { width: 12px; height: 12px; border-radius: 2px; margin-top: 2px; }
.matrix-note { margin-top: 14px; font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
@media (max-width: 960px) { .method { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .matrix-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } .method-points div { grid-template-columns: minmax(0,1fr); gap: 4px; } }

/* ——— Agent (chat ricostruita) ——— */
.agent { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.agent-copy { display: grid; gap: 24px; }
.agent-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--vault-line); }
.agent-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--vault-line); color: var(--on-vault-2); font-size: 15px; }
.agent-list li strong { color: #f2f6f4; font-weight: 600; display: block; }
.agent-list svg { width: 20px; height: 20px; color: var(--petrol-light); margin-top: 2px; }
.chat { border-radius: 12px; background: #f6f6f3; color: #0d1117; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.06); }
.chat-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-bottom: 1px solid #e2e3df; background: #fff; }
.chat-bar img { width: 26px; height: 26px; }
.chat-bar strong { font-weight: 600; font-size: 15px; }
.chat-bar .tag { font: 500 10px/1 var(--f-mono); letter-spacing: .08em; padding: 4px 6px; border: 1px solid #c9cbc5; border-radius: 4px; color: #565c66; }
.chat-bar button { margin-left: auto; border: 0; background: none; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #0d5c54; cursor: pointer; padding: 8px; border-radius: 6px; }
.chat-body { height: 560px; padding: 22px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; overflow: hidden; }
.msg { max-width: 88%; font-size: 14.5px; line-height: 1.55; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.msg.is-pending { opacity: 0; transform: translateY(10px); }
.msg-user { align-self: flex-end; background: #0d5c54; color: #fff; padding: 10px 14px; border-radius: 12px 12px 4px 12px; }
.msg-bot { align-self: flex-start; display: grid; gap: 10px; }
.msg-steps { font: 500 11px/1.4 var(--f-mono); letter-spacing: .04em; color: #565c66; display: flex; align-items: center; gap: 8px; }
.msg-steps .spin { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #c9cbc5; border-top-color: #0d5c54; animation: spin .8s linear infinite; }
.msg-steps.is-done .spin { animation: none; border-color: #2e6a46; background: #2e6a46; }
@keyframes spin { to { transform: rotate(360deg); } }
.msg-text { background: #fff; border: 1px solid #e2e3df; padding: 12px 14px; border-radius: 12px 12px 12px 4px; }
.cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cite { font: 500 11px/1 var(--f-mono); padding: 5px 7px; border-radius: 4px; background: #e3efec; color: #0d5c54; letter-spacing: .02em; }
.proposal { background: #fff; border: 1px solid #c9cbc5; border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
.proposal .label { color: #565c66; font-size: 11px; }
.proposal-row { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 8px; font-size: 13.5px; }
.proposal-row span:first-child { color: #565c66; }
.proposal-actions { display: flex; gap: 8px; margin-top: 4px; }
.proposal-actions span { height: 34px; padding: 0 14px; border-radius: 8px; font: 600 13px/34px var(--f-sans); }
.proposal-actions .ok { background: #0d5c54; color: #fff; transition: box-shadow .3s; }
.proposal-actions .ok.is-pulse { box-shadow: 0 0 0 4px rgba(13,92,84,.22); }
.proposal-actions .no { border: 1px solid #858b93; color: #0d1117; }
.typing::after { content: "▍"; color: #0d5c54; animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 960px) { .agent { grid-template-columns: minmax(0, 1fr); } .chat-body { height: 600px; } }

/* ——— Numeri ——— */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 32px 24px 32px 0; display: grid; gap: 10px; align-content: start; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact strong { font-family: var(--f-mono); font-weight: 500; font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.fact span { font-size: 15px; color: var(--ink-2); max-width: 28ch; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact:nth-child(3) { padding-left: 0; border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 460px) { .facts { grid-template-columns: minmax(0,1fr); } .fact, .fact + .fact { padding-left: 0; border-left: 0; } .fact + .fact { border-top: 1px solid var(--line); } }

/* ——— Griglia di caratteristiche ——— */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 32px 32px 36px 0; display: grid; gap: 12px; align-content: start; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.feature svg { width: 24px; height: 24px; color: var(--petrol); stroke-width: 1.6; }
.feature p { font-size: 15.5px; color: var(--ink-2); }
.band--vault .features, .band--vault .feature { border-color: var(--vault-line); }
.band--vault .feature svg { color: var(--petrol-light); }
.band--vault .feature p { color: var(--on-vault-2); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .feature:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } .feature:nth-child(2n) { padding-left: 0; border-left: 0; } .feature { padding-right: 0; } }

/* ——— Società (split con foto) ——— */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3.4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform .1s linear; }
.split-copy { display: grid; gap: 24px; }
.split--rev .split-media { order: 2; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } .split--rev .split-media { order: 0; } }

/* ——— CTA con foto ——— */
.cta-photo { position: relative; color: #f2f6f4; isolation: isolate; overflow: hidden; background: #0b1715; }
.cta-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,16,15,.9), rgba(7,16,15,.55) 60%, rgba(7,16,15,.35)); }
.cta-photo .wrap { padding-block: clamp(96px, 13vw, 180px); display: grid; gap: 28px; }
.cta-photo .lead { color: #c9d8d4; }

/* ——— Pagina prodotto: blocchi alternati ——— */
.rows { display: grid; gap: clamp(72px, 9vw, 128px); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.row:nth-child(even) .row-copy { order: 2; }
.row-copy { display: grid; gap: 18px; }
.row-copy h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.12; letter-spacing: -.01em; }
.ticks { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 8px; font-size: 16px; color: var(--ink-2); }
.ticks li svg { width: 18px; height: 18px; color: var(--petrol); margin-top: 3px; }
.band--vault .ticks li { color: var(--on-vault-2); }
.band--vault .ticks li svg { color: var(--petrol-light); }
@media (max-width: 960px) { .row { grid-template-columns: minmax(0, 1fr); } .row:nth-child(even) .row-copy { order: 0; } }

/* Modulo in dettaglio */
.mod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 100px; }
.mod + .mod { margin-top: 24px; }
.mod-media { position: relative; min-height: 420px; background: #0b1715; }
.mod-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mod-body { padding: clamp(28px, 4vw, 56px); display: grid; gap: 18px; align-content: center; }
.mod-body h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: -.01em; }
.mod-refs { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-refs span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .05em; padding: 5px 8px; border-radius: 4px; background: var(--petrol-tint); color: var(--petrol); }
.mod:nth-child(even) .mod-media { order: 2; }
@media (max-width: 900px) { .mod { grid-template-columns: minmax(0, 1fr); } .mod-media { min-height: 260px; } .mod:nth-child(even) .mod-media { order: 0; } }

/* Galleria schermate */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery figcaption { font-size: 14px; color: var(--ink-2); }
.gallery .frame img { aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* ——— Società: tre colonne e principi ——— */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio > div { padding: 32px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.trio > div.is-accent { background: var(--petrol); color: var(--on-petrol); border-color: var(--petrol); }
.trio > div.is-accent .label { color: color-mix(in oklab, var(--on-petrol) 75%, var(--petrol)); }
.trio > div.is-accent p { color: color-mix(in oklab, var(--on-petrol) 85%, var(--petrol)); }
.trio h3 { font-family: var(--f-display); font-weight: 400; font-size: 32px; line-height: 1.1; }
.trio p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .trio { grid-template-columns: minmax(0, 1fr); } }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--vault-line); }
.steps3 > div { padding: 32px 32px 8px 0; display: grid; gap: 12px; align-content: start; }
.steps3 > div + div { padding-left: 32px; border-left: 1px solid var(--vault-line); }
.steps3 .num { font-family: var(--f-display); font-size: 56px; line-height: 1; color: var(--petrol-light); }
.steps3 p { color: var(--on-vault-2); font-size: 15.5px; }
@media (max-width: 860px) { .steps3 { grid-template-columns: minmax(0, 1fr); } .steps3 > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--vault-line); } }

/* ——— Contatti ——— */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info { display: grid; gap: 24px; }
.contact-info dl { margin: 8px 0 0; display: grid; border-top: 1px solid var(--line); }
.contact-info dl div { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.contact-info dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.contact-info dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy-btn { height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-control); background: var(--surface); color: var(--ink); font: 500 12px/1 var(--f-sans); cursor: pointer; }
.form { padding: clamp(24px, 3vw, 40px); border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; height: 46px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line-control); background: var(--surface); color: var(--ink);
  font: 400 15px/1.4 var(--f-sans); transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: 120px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px color-mix(in oklab, var(--petrol) 22%, transparent); }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--petrol); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-msg { font-size: 14px; color: var(--ink-2); }
.form-msg[data-state="ok"] { color: var(--ok); }
.form-msg[data-state="err"] { color: var(--risk); }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } .contact-info dl div { grid-template-columns: minmax(0,1fr); gap: 4px; } }

/* ——— Piè di pagina ——— */
.site-footer { background: var(--vault); color: var(--on-vault-2); padding-top: clamp(64px, 8vw, 96px); padding-bottom: 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--vault-line); }
.foot-brand { display: grid; gap: 18px; align-content: start; }
.foot-brand img { height: 36px; width: auto; }
.foot-brand p { max-width: 36ch; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col .label { color: #6b8a84; margin-bottom: 6px; }
.foot-col a { text-decoration: none; color: var(--on-vault); opacity: .82; }
.foot-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 13px; color: #7f9a94; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ——— Comparsa allo scorrimento (solo con JS, solo sotto la piega) ——— */
.js .rv.rv-wait { opacity: 0; transform: translateY(24px); }
.rv { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv.rv-wait { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
