:root {
  --void: #07090e;
  --ink: #f3f7fb;
  --muted: #c5d0dc;
  --accent: #4adb9a;
  --accent-2: #7ed0ff;
  --glass: rgba(6, 10, 18, 0.72);
  --stroke: rgba(243, 247, 251, 0.16);
  --scrim: rgba(4, 8, 14, 0.78);
  --scrim-soft: rgba(4, 8, 14, 0.55);
  --serif: "Instrument Serif", Georgia, serif;
  --display: "Syne", sans-serif;
  --ui: "Space Grotesk", sans-serif;
  --mx: 0;
  --my: 0;
  --scroll-y: 0;
  --scroll-p: 0;
  --gpy: 0;
  --pin-p: 0;
  /* Threshold AI-style walk-through (0 → 1 while hero is pinned) */
  --threshold-p: 0;
  --flood-op: 0;
  --fog-x: 0.5;
  --fog-y: 0.55;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
  background: rgba(255,255,255,.06);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #3ad48c, #7ed0ff);
  will-change: transform;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Scrubbed Threshold pin fights CSS smooth-scroll — keep auto while demo chrome is active. */
html.nf-demo-immersiva-active { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--void);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-2); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: .6rem 1rem;
  z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}
body.webgl-ready #webgl { opacity: 1; }
body.fallback-mode #webgl { display: none !important; }

.fallback-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.fb-layer {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  opacity: .35;
  transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -8px + var(--scroll-y) * -0.02px), 0);
}
.fb-a { background-image: url("/images/logo/parallax_bg.jpg"); opacity: .45; }
.fb-b { background-image: url("/images/logo/header_bg.jpg"); opacity: .28; mix-blend-mode: screen; }
.fb-c { background-image: url("/images/2024/02/17/immagineheaderimpero.png"); opacity: .18; }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
  padding: .45rem 1.1rem;
  background: linear-gradient(180deg, rgba(7,9,14,.72), rgba(7,9,14,0));
  backdrop-filter: blur(8px);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
  color: var(--ink);
  line-height: 0;
  min-height: 64px;
  /* Fallback if Helix lazyload blanks the <img> src */
  background-image: url("/images/logo/logo/logoimperobianco.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 64px;
  min-width: 280px;
}
.brand img,
.brand img.nf-demo-brand-logo,
.brand img.lazyload,
.brand img.lazyloaded {
  width: auto !important;
  height: 64px !important;
  max-width: 320px !important;
  object-fit: contain;
  display: block;
}
.topnav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: .1rem;
  justify-self: center;
  grid-column: 2;
  justify-items: center;
}
.topnav button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: .4rem .7rem;
  border-radius: .45rem;
  cursor: pointer;
  font-size: .8rem;
  letter-spacing: .01em;
  min-height: 44px;
}
.topnav button[aria-current="true"],
.topnav button:hover,
.topnav button:focus-visible { color: var(--ink); background: rgba(255,255,255,.07); }
.nav-toggle {
  display: none;
  justify-self: end;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(243,247,251,.18);
  border-radius: .55rem;
  background: rgba(7,9,14,.55);
  color: var(--ink);
  cursor: pointer;
  z-index: 45;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.topbar.is-nav-open .nav-toggle-bars { background: transparent; }
.topbar.is-nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.topbar.is-nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.nav-scrim {
  display: none;
}

.story { position: relative; z-index: 2; }

.scene {
  position: relative;
  min-height: 100vh;
  padding: 6.5rem 1.25rem 4rem;
  display: flex;
  align-items: center;
  background: transparent;
}
.scene.sparse::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(4,8,14,.42), rgba(4,8,14,.78)),
    radial-gradient(ellipse at 20% 30%, rgba(62,207,142,.08), transparent 55%);
  border: 1px solid rgba(243,247,251,.06);
  pointer-events: none;
  z-index: 0;
}
/* Solid studio scrims — warm copy primary, quiet backgrounds.
   After v1.0.15 copy density, sparse ::before inset:8% left body text
   spilling past the visual panel (AI lists, Servizi CTA, Esplora thesis…).
   All copy sections get full-bleed scrim + solid scene-inner containment. */
#chi-siamo.sparse::before,
#mission.sparse::before,
#vision.sparse::before,
#servizi.sparse::before,
#esplora.sparse::before,
#ai.sparse::before,
#press.sparse::before,
#contatti.sparse::before {
  inset: 0;
  border-radius: 0;
  border: 0;
  background:
    linear-gradient(180deg, rgba(5,8,14,.9) 0%, rgba(5,8,14,.94) 45%, rgba(5,8,14,.97) 100%);
  box-shadow: none;
}
#chi-siamo .bg-still,
#mission .bg-still,
#vision .bg-still,
#servizi .bg-still,
#esplora .bg-still {
  opacity: .1;
  filter: saturate(.7) brightness(.32) blur(3px);
}
/* Tall copy sections: top-align so panel grows with content (no centered clip) */
#chi-siamo.scene,
#servizi.scene,
#esplora.scene,
#ai.scene,
#contatti.scene {
  align-items: flex-start;
}
#chi-siamo .scene-inner,
#mission .scene-inner,
#vision .scene-inner,
#servizi .scene-inner,
#esplora .scene-inner,
#ai .scene-inner,
#press .scene-inner,
#contatti .scene-inner {
  width: min(960px, 100%);
  max-width: 100%;
  min-width: 0;
  padding: 1.5rem 1.65rem 1.85rem;
  border-radius: 1rem;
  background: rgba(6,10,18,.96);
  border: 1px solid rgba(243,247,251,.1);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
  overflow: visible;
  box-sizing: border-box;
  scroll-margin-top: 7.5rem; /* clear fixed topbar — never land mid-card */
}
/* Reading-width panels stay narrower */
#mission .scene-inner,
#vision .scene-inner,
#press .scene-inner,
#contatti .scene-inner {
  width: min(760px, 100%);
}

/* AI: stacked glass panels (intro / offers / choose) — scroll between whole boxes */
#ai.scene.ai-stack {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}
#ai .ai-stack-inner {
  width: min(960px, 100%);
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: visible;
}
#ai .ai-stack-inner > .scene-inner,
#ai .copy-panel {
  width: 100%;
  margin: 0;
  overflow: visible;
  transform: none; /* after GSAP reveal clears — keep cards inside border */
}
#ai-offers-panel {
  padding: 1.85rem 1.65rem 2rem;
}
#ai-offers-panel .scene-kicker {
  margin-bottom: .85rem;
}
#ai-offers-panel .offer-grid {
  margin-top: .15rem;
}
#ai-choose-panel {
  padding: 1.75rem 1.65rem 2rem;
}
/* AI stacked panels: no mid-scroll GSAP y transform (was bisecting offer titles) */
#ai .copy-panel.reveal,
#ai .copy-panel.reveal.in {
  overflow: visible !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Keep every body text node inside its box — no edge cut-off after dense copy */
.nf-demo-root .scene-inner,
.nf-demo-root .story-card,
.nf-demo-root .manifesto-block,
.nf-demo-root .thesis,
.nf-demo-root .offer-card,
.nf-demo-root .ai-step,
.nf-demo-root .service-detail,
.nf-demo-root .product-card,
.nf-demo-root .contact,
.nf-demo-root .glass,
.nf-demo-root .story-rail,
.nf-demo-root .thesis-grid,
.nf-demo-root .offer-grid,
.nf-demo-root .ai-board,
.nf-demo-root .service-layout,
.nf-demo-root .ai-steps,
.nf-demo-root .copy-bullets {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.nf-demo-root h1,
.nf-demo-root h2,
.nf-demo-root h3,
.nf-demo-root p,
.nf-demo-root li,
.nf-demo-root .scene-lede,
.nf-demo-root .warm-body,
.nf-demo-root .manifesto-body,
.nf-demo-root .mv-intro,
.nf-demo-root .lede,
.nf-demo-root .story-card p,
.nf-demo-root .thesis p,
.nf-demo-root .thesis .thesis-full,
.nf-demo-root .offer-card p,
.nf-demo-root .ai-step p,
.nf-demo-root .service-detail ul,
.nf-demo-root .copy-bullets {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.bg-still {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
  filter: saturate(.95) brightness(.4);
  transform: scale(1.06) translate3d(calc(var(--mx) * 12px), calc(var(--my) * 8px), 0);
  z-index: 0;
  pointer-events: none;
}
.scene-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
}
.scene-kicker {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a8ebc8;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
.hero-copy .scene-kicker,
.hero-copy .hero-kicker {
  margin: 0 0 .85rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.25;
  text-transform: uppercase;
  color: #f5fff9 !important;
  text-shadow:
    0 1px 0 rgba(0,0,0,.75),
    0 2px 14px rgba(0,0,0,.9),
    0 0 28px rgba(58,212,140,.45);
}
.scene h2, .chapter-copy h2, .nf-demo-root h2 {
  margin: 0 0 .7rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
  letter-spacing: -.02em;
  line-height: 1.18;
  font-weight: 700;
  color: #f7fbff !important;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.scene-lede {
  margin: 0 0 1.35rem;
  max-width: 100%;
  color: #dce5ef;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.85vw, 1.28rem);
  line-height: 1.5;
  text-shadow: none;
}
.warm-body {
  margin: -.35rem 0 1.4rem;
  max-width: 100%;
  color: #cfd9e5;
  font-size: clamp(.98rem, 1.4vw, 1.1rem);
  line-height: 1.68;
  text-shadow: none;
}
.mv-intro {
  margin: 0 0 1rem;
  max-width: 36rem;
  color: #b7e8cf;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.08rem, 1.9vw, 1.35rem);
  line-height: 1.48;
  text-shadow: none;
}
.manifesto-scene .scene-inner {
  width: min(760px, 100%);
}
.manifesto-block {
  margin-top: .2rem;
  max-width: 100%;
  width: 100%;
  padding: 1.25rem 1.35rem 1.4rem;
  background: rgba(4,8,14,.55);
  border: 1px solid rgba(243,247,251,.08);
  border-radius: .75rem;
  box-shadow: none;
  backdrop-filter: none;
  height: auto;
  overflow: visible;
  box-sizing: border-box;
}
.manifesto-body {
  margin: 0;
  color: #e8eef5;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.75vw, 1.22rem);
  line-height: 1.68;
  text-shadow: none;
  max-width: 100%;
}

/* ===== Full-bleed film chapters ===== */
.media-chapter {
  min-height: 100svh;
  padding: 0;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}
.media-chapter::before { display: none !important; }

.film-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #0a1018 center / cover no-repeat;
}
/* Full-bleed hero layers — never leave a dead strip from stale canvas px widths */
#hero .film-plane,
#hero .film-veil,
#hero .threshold-door,
#hero .threshold-flood,
#hero .threshold-fog {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100% !important;
  max-width: none;
}
.film-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04) brightness(0.78);
  opacity: 0;
  transition: opacity .55s ease;
}
.film-video.is-ready,
.film-video.is-playing { opacity: 1; }
.film-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,6,12,.82) 0%, rgba(3,6,12,.48) 42%, rgba(3,6,12,.18) 72%, rgba(3,6,12,.35) 100%),
    linear-gradient(180deg, rgba(3,6,12,.45) 0%, rgba(3,6,12,.22) 38%, rgba(3,6,12,.72) 72%, rgba(3,6,12,.92) 100%),
    radial-gradient(ellipse at 28% 42%, rgba(62,207,142,.1), transparent 52%);
  pointer-events: none;
}
.hero-veil {
  background:
    linear-gradient(90deg, rgba(1,3,8,.96) 0%, rgba(1,3,8,.78) 32%, rgba(1,3,8,.35) 58%, rgba(1,3,8,.55) 100%),
    linear-gradient(180deg, rgba(1,3,8,.62) 0%, rgba(1,3,8,.4) 28%, rgba(1,3,8,.84) 58%, rgba(1,3,8,.98) 100%),
    radial-gradient(ellipse at 22% 72%, rgba(1,3,8,.62), transparent 58%),
    radial-gradient(ellipse at 26% 40%, rgba(62,207,142,.08), transparent 52%);
  opacity: calc(1 - (var(--threshold-p, 0) * 0.88));
  transition: opacity .05s linear;
}

/* ===== Threshold AI motion language (hero only) =====
   Sticky walk-into-doorway: video dolly + glowing aperture + fog that parts
   around the pointer + flood-to-light near pin end. Keeps his info video. */
#hero.threshold-pin .film-video {
  transform-origin: 50% 46%;
  transform: scale(calc(1 + (var(--threshold-p, 0) * 0.72)));
  filter:
    saturate(calc(1.02 + (var(--threshold-p, 0) * 0.14)))
    contrast(calc(1.02 + (var(--threshold-p, 0) * 0.1)))
    brightness(calc(0.68 + (var(--threshold-p, 0) * 0.7)));
  transition: none;
  will-change: transform, filter;
}
.threshold-door {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Vertical doorway aperture — Threshold “door of light” */
    linear-gradient(
      90deg,
      transparent 0%,
      transparent calc(50% - 4.5% - (var(--threshold-p, 0) * 3%)),
      rgba(255, 255, 255, calc(0.04 + (var(--threshold-p, 0) * 0.28))) calc(50% - 1.2%),
      rgba(255, 255, 255, calc(0.12 + (var(--threshold-p, 0) * 0.55))) 50%,
      rgba(255, 255, 255, calc(0.04 + (var(--threshold-p, 0) * 0.28))) calc(50% + 1.2%),
      transparent calc(50% + 4.5% + (var(--threshold-p, 0) * 3%)),
      transparent 100%
    ),
    radial-gradient(
      ellipse 16% 62% at 50% 46%,
      rgba(255, 255, 255, calc(0.1 + (var(--threshold-p, 0) * 0.72))),
      transparent 68%
    ),
    radial-gradient(
      ellipse 40% 78% at 50% 48%,
      rgba(126, 208, 255, calc(0.07 + (var(--threshold-p, 0) * 0.28))),
      transparent 72%
    ),
    radial-gradient(
      ellipse 70% 90% at 50% 55%,
      rgba(62, 207, 142, calc(0.04 + (var(--threshold-p, 0) * 0.12))),
      transparent 75%
    );
  mix-blend-mode: screen;
  opacity: calc(0.55 + (var(--threshold-p, 0) * 0.45));
}
.threshold-fog {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  pointer-events: none;
  opacity: calc(1 - (var(--threshold-p, 0) * 0.62));
}
.threshold-flood {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 42% 58% at 50% 46%,
      rgba(247, 251, 255, 1) 0%,
      rgba(232, 244, 255, 0.92) 34%,
      rgba(247, 251, 255, 0.55) 58%,
      rgba(247, 251, 255, 0) 78%
    ),
    linear-gradient(180deg, rgba(247, 251, 255, 0.15), rgba(247, 251, 255, 0.55));
  opacity: var(--flood-op, 0);
  mix-blend-mode: screen;
}
#hero.threshold-pin .hero-copy {
  transition: none;
  will-change: opacity, transform;
}
#hero.threshold-pin .scroll-cue {
  opacity: calc(1 - (var(--threshold-p, 0) * 2.2));
}
.split-line {
  display: block;
  overflow: hidden;
  max-width: 100%;
}
.split-line > .split-inner {
  display: block;
  transform: translate3d(0, 115%, 0);
  will-change: transform;
}
.split-line.is-in > .split-inner {
  transform: none;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  #hero.threshold-pin .film-video {
    transform: none;
    filter: saturate(1.06) contrast(1.04) brightness(0.78);
  }
  .threshold-fog,
  .threshold-door,
  .threshold-flood { display: none !important; }
  .hero-veil { opacity: 1; }
  .split-line > .split-inner { transform: none; }
}
/* Mobile: lighter Threshold — less scale/GPU work, keep doorway cue. */
@media (max-width: 720px) {
  #hero.threshold-pin .film-video {
    transform: scale(calc(1 + (var(--threshold-p, 0) * 0.28)));
    will-change: auto;
  }
  .threshold-fog { opacity: calc(0.72 - (var(--threshold-p, 0) * 0.45)); }
  #hero.threshold-pin .hero-copy { will-change: auto; }
}

.film-plane.is-interactive { cursor: pointer; }
.play-fab {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  left: auto;
  top: auto;
  transform: none;
  z-index: 5;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(7,9,14,.78);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: .7rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .04em;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, opacity .25s ease;
  opacity: .92;
}
.play-fab:hover,
.play-fab.is-hot {
  filter: none;
  transform: translateY(-3px) scale(1.04);
  background: rgba(10,16,24,.9);
  border-color: rgba(62,207,142,.55);
  opacity: 1;
}
.play-fab.is-playing {
  border-color: rgba(126,208,255,.45);
}
.media-chapter.film-pin .film-video {
  transform-origin: 50% 45%;
  transform: scale(calc(1 + (var(--pin-p, 0) * 0.22)));
  filter:
    saturate(calc(1.04 + (var(--pin-p, 0) * 0.1)))
    contrast(calc(1.02 + (var(--pin-p, 0) * 0.06)))
    brightness(calc(0.76 + (var(--pin-p, 0) * 0.22)));
  transition: none;
  will-change: transform, filter;
}
.media-chapter.film-pin .film-veil {
  opacity: calc(1 - (var(--pin-p, 0) * 0.35));
}

/* Debug/filename labels never on-screen */
.film-credit { display: none !important; }

.hero-copy, .chapter-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: 1.25rem 1.45rem 5.2rem;
  text-shadow: none;
}
/* Keep CTAs clear of bottom-left accessibility + cookie widgets (~72–90px) */
#hero.media-chapter {
  padding: 0 0 7.5rem;
  box-sizing: border-box;
}
.hero-copy {
  padding: 1.55rem 1.65rem 1.45rem 1.65rem;
  margin: 0 0 0 1.35rem;
  align-self: flex-end;
  max-width: min(640px, calc(100% - 2rem));
}
.hero-copy::before,
.chapter-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: .15rem;
  right: auto;
  top: -.2rem;
  bottom: 4rem;
  width: min(100%, 34rem);
  border-radius: .95rem;
  background: rgba(4,8,14,.94);
  border: 1px solid rgba(243,247,251,.1);
  box-shadow: 0 18px 48px rgba(0,0,0,.4);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}
.hero-copy::before {
  left: 0;
  right: 0;
  top: -.4rem;
  bottom: -.25rem;
  width: 100%;
  border-radius: 1.05rem;
  background:
    linear-gradient(180deg, rgba(2,4,10,.99) 0%, rgba(2,4,10,.98) 70%, rgba(2,4,10,.96) 100%);
  border: 1px solid rgba(243,247,251,.2);
  box-shadow:
    0 24px 60px rgba(0,0,0,.62),
    0 0 0 1px rgba(0,0,0,.35) inset;
}
.chapter-copy { max-width: 32rem; }
/* Legacy class — never show giant ImperoWeb wordmark again */
.brand-hero { display: none !important; }
.lede {
  margin: .15rem 0 1.15rem;
  max-width: 34rem;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  line-height: 1.48;
  color: #f7fbff;
  text-shadow:
    0 1px 0 rgba(0,0,0,.55),
    0 2px 18px rgba(0,0,0,.7);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  position: relative;
  z-index: 3;
  margin-left: .15rem;
  padding-bottom: .15rem;
}
.hero-copy .cta-row {
  margin-left: 5.5rem; /* clear fixed a11y/cookie widgets in bottom-left */
  margin-top: .45rem;
}

.btn {
  border: 1px solid rgba(243,247,251,.28);
  background: rgba(255,255,255,.1);
  color: #f7fbff;
  padding: .8rem 1.2rem;
  border-radius: .55rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.btn.primary {
  background: linear-gradient(135deg, #3ad48c, #1f9f88);
  border-color: transparent;
  color: #03140c;
  font-weight: 700;
}
.btn.ghost {
  background: rgba(4,8,14,.55);
  border-color: rgba(243,247,251,.38);
  color: #f7fbff;
  backdrop-filter: blur(8px);
}
.btn.ghost.soft {
  background: transparent;
  border-color: rgba(243,247,251,.22);
  color: rgba(232,238,245,.78);
  font-weight: 500;
  box-shadow: none;
  padding: .7rem 1rem;
}
.btn.ghost.soft:hover {
  color: #f7fbff;
  border-color: rgba(243,247,251,.4);
  filter: none;
}
.btn.ghost:hover, .btn.primary:hover,
.btn.motion-hover.is-hot {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.btn { transition: transform .22s ease, filter .22s ease, border-color .22s ease, background .22s ease; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 3;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(243,247,251,.78);
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
}
.scroll-cue span {
  display: inline-block;
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50% { transform: translateY(6px); opacity: 1; }
}

.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
}
/* Beat .glass shorthand so dense Mission/Vision/Servizi/Contatti copy keeps room */
.manifesto-block.glass {
  padding: 1.25rem 1.35rem 1.4rem;
}
.service-detail.glass,
.product-card.glass {
  padding: 1.1rem 1.2rem 1.25rem;
  overflow: visible;
  height: auto;
  max-width: 100%;
}
.contact.glass {
  padding: 1.2rem 1.25rem 1.35rem;
}
.ai-terminal.glass {
  padding: 1.1rem 1.15rem 1.25rem;
  max-width: 100%;
  overflow: visible;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

.story-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: .9rem;
  width: 100%;
}
.story-card {
  border: 1px solid var(--stroke);
  background: rgba(8,12,18,.5);
  border-radius: .9rem;
  padding: 1.1rem 1.15rem 1.25rem;
  height: auto;
  overflow: visible;
  cursor: pointer;
  transition: border-color .25s ease, transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.story-card:hover, .story-card.active, .story-card.is-hot {
  border-color: rgba(62,207,142,.45);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
}
.story-card h3 { margin: 0 0 .5rem; font-size: 1.02rem; font-family: var(--display); color: #f3f7fb; line-height: 1.3; }
.story-card p { margin: 0; color: #d5dee8; font-size: .92rem; line-height: 1.58; }
.story-card .more { margin-top: .7rem; font-size: .75rem; color: var(--accent); letter-spacing: .04em; }
.story-card.open { cursor: default; }

.copy-bullets {
  margin: .35rem 0 1.1rem;
  padding: .15rem 1.15rem .15rem 1.35rem;
  max-width: 100%;
  width: 100%;
  color: #dce5ef;
  font-size: .95rem;
  line-height: 1.58;
  box-sizing: border-box;
}
.copy-bullets li { margin: .35rem 0; padding-right: .15rem; }
.copy-close {
  margin-top: 1.25rem !important;
  max-width: 100% !important;
  width: 100%;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: .85rem;
  margin: .4rem 0 1rem;
  width: 100%;
}
.offer-card {
  padding: 1.05rem 1.1rem 1.2rem;
  border-radius: .85rem;
  height: auto;
  overflow: visible;
}
.offer-card h3 {
  margin: 0 0 .45rem;
  font-size: .98rem;
  font-family: var(--display);
  color: #f3f7fb;
  line-height: 1.3;
}
.offer-card p {
  margin: 0;
  color: #d5dee8;
  font-size: .9rem;
  line-height: 1.58;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
}
.service-list { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.service-list button {
  text-align: left;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  border-radius: .65rem;
  padding: .7rem .85rem;
  cursor: pointer;
  color: var(--muted);
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, color .22s ease;
}
.service-detail {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  height: auto;
}
.service-list button:hover,
.service-list button.is-hot {
  transform: translateX(4px);
  color: var(--ink);
  border-color: rgba(243,247,251,.28);
}
.service-list button[aria-selected="true"] {
  color: var(--ink);
  border-color: rgba(62,207,142,.4);
  background: rgba(62,207,142,.1);
}
.service-detail h3 { margin: 0 0 .6rem; font-family: var(--display); }
.service-detail ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }

.orbit-stage {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  margin: 1rem 0;
}
.orbit-ring {
  position: absolute;
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  border-radius: 50%;
  border: 1px dashed rgba(232,238,245,.15);
  transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 8px), 0) rotateX(58deg);
  box-shadow: inset 0 0 40px rgba(62,207,142,.08);
}
.orbit {
  position: relative;
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 10px), 0);
}
.orbit button {
  position: absolute;
  left: 50%; top: 50%;
  width: 118px;
  margin: -34px 0 0 -59px;
  border: 1px solid var(--stroke);
  background: rgba(8,12,18,.72);
  color: var(--ink);
  border-radius: .8rem;
  padding: .55rem .5rem;
  cursor: pointer;
  font-size: .78rem;
  text-align: center;
  transform: rotate(calc(var(--a, 0) * 1deg)) translateY(-150px) rotate(calc(var(--a, 0) * -1deg));
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.orbit button:hover,
.orbit button.is-hot {
  border-color: rgba(62,207,142,.5);
  background: rgba(12,20,28,.88);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.orbit button span {
  display: block;
  margin-top: .2rem;
  color: var(--accent);
  font-size: .65rem;
  letter-spacing: .04em;
}
.orbit button[aria-pressed="true"] {
  border-color: rgba(110,200,255,.5);
  box-shadow: 0 0 0 1px rgba(110,200,255,.2);
}
.product-card { margin-top: .4rem; }
.product-card h3 { margin: 0 0 .35rem; font-family: var(--display); }
.product-card p { margin: 0; color: var(--muted); }

.ai-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 1rem;
  width: 100%;
}
.ai-media {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  position: relative;
}
.ai-media video,
.ai-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ai-steps { display: grid; gap: .55rem; min-width: 0; }
.ai-step {
  border: 1px solid var(--stroke);
  border-radius: .8rem;
  padding: .9rem 1rem 1.05rem;
  background: rgba(8,12,18,.45);
  cursor: pointer;
  height: auto;
  overflow: visible;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.ai-step:hover, .ai-step.is-hot { transform: translateY(-3px); border-color: rgba(243,247,251,.28); }
.ai-step.active { border-color: rgba(110,200,255,.45); background: rgba(110,200,255,.08); }
.ai-step h3 { margin: 0 0 .35rem; font-size: .95rem; line-height: 1.3; }
.ai-step p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.ai-terminal header {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .5rem;
  letter-spacing: .06em;
}
.ai-terminal pre {
  margin: 0 0 .8rem;
  min-height: 7.5rem;
  white-space: pre-wrap;
  font-size: .82rem;
  color: #b7f5d4;
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: .9rem;
  margin-bottom: 1rem;
  width: 100%;
}
.thesis {
  border: 1px solid var(--stroke);
  border-radius: .9rem;
  padding: 1.1rem 1.15rem 1.25rem;
  background: rgba(8,12,18,.5);
  cursor: pointer;
  height: auto;
  overflow: visible;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.thesis:hover, .thesis.is-hot, .thesis.open {
  transform: translateY(-4px);
  border-color: rgba(126,208,255,.4);
  box-shadow: 0 14px 32px rgba(0,0,0,.3);
}
.thesis h3 { margin: 0 0 .45rem; font-family: var(--display); font-size: 1rem; color: #f3f7fb; line-height: 1.3; }
.thesis p, .thesis .thesis-full { margin: 0; color: #d5dee8; font-size: .9rem; line-height: 1.58; }
.thesis .expand { display: none; margin-top: .7rem; color: var(--ink); font-size: .88rem; }
.thesis.open .expand { display: block; }
.thesis.open { cursor: default; }

.calc label {
  display: grid;
  gap: .35rem;
  margin-bottom: .75rem;
  color: var(--muted);
  font-size: .9rem;
}
.calc input[type="range"] { width: 100%; }
.calc-out { margin: .4rem 0 0; color: var(--ink); }

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.press-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: .9rem;
  align-items: start;
}
.press-card img {
  width: 88px;
  height: 120px;
  object-fit: cover;
  border-radius: .4rem;
  background: #111;
}
.press-card h3 { margin: 0 0 .4rem; font-family: var(--display); font-size: 1rem; }
.press-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.contact {
  display: grid;
  gap: .75rem;
  max-width: 560px;
  width: 100%;
  overflow: visible;
  height: auto;
  padding: 1.2rem 1.25rem 1.35rem;
}
.contact .btn.primary {
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  height: auto;
}
.contact label { display: grid; gap: .3rem; font-size: .88rem; color: var(--muted); }
.contact input, .contact select, .contact textarea {
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.28);
  border-radius: .55rem;
  padding: .65rem .75rem;
  color: var(--ink, #f7fbff);
}
.form-note { margin: 0; font-size: .8rem; color: var(--muted); }
.captcha-wrap {
  display: grid;
  gap: .35rem;
  min-height: 3rem;
}
.captcha-wrap altcha-widget,
.nf-demo-captcha {
  --altcha-color-text: #e8eef7;
  --altcha-color-border: rgba(255,255,255,.18);
  --altcha-color-bg: rgba(0,0,0,.28);
  max-width: 100%;
}
.form-status {
  margin: 0;
  font-size: .9rem;
  line-height: 1.35;
  max-width: 100%;
}
/* Idle status stays in-flow inside the form (no [hidden] off-box geometry) */
.form-status.is-idle {
  margin: 0;
  padding: 0;
  height: 0;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  border: 0;
  pointer-events: none;
}
.form-status.pending,
.form-status.ok,
.form-status.err {
  height: auto;
  min-height: 1.2em;
  opacity: 1;
  margin: .15rem 0;
  pointer-events: auto;
}
.form-status.pending { color: var(--muted); }
.form-status.ok { color: #9ef0c8; }
.form-status.err { color: #ffb4b4; }
/* Honeypot stays inside .contact bounds (never left:-9999 outsideKids false positive) */
.contact { position: relative; }
.hp-field {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* Gallery corridor — media dominates */
.gallery-beat {
  min-height: 160vh;
  align-items: flex-end;
  perspective: 1400px;
  overflow: hidden;
}
.gallery-beat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,6,12,.35) 0%, rgba(3,6,12,.15) 40%, rgba(3,6,12,.72) 100%),
    linear-gradient(90deg, rgba(3,6,12,.55) 0%, transparent 55%);
  display: block !important;
}
/* Gallery “04 · Esplora” glass: beat .nf-demo-root .scene-inner { max-width:100% }
   which let copy grow to 1080px while ::before stayed 34rem (text past glass). */
#gallery .scene-inner.gallery-copy,
.gallery-copy {
  position: relative;
  z-index: 2;
  width: min(36rem, 100%);
  max-width: min(36rem, 100%);
  min-width: 0;
  margin: 0 0 12vh 1.25rem;
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: 1rem;
  background: rgba(6, 10, 18, 0.96);
  border: 1px solid rgba(243, 247, 251, 0.1);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  overflow: visible;
  text-shadow: none;
}
#gallery .gallery-copy h2,
#gallery .gallery-copy .scene-lede,
#gallery .gallery-copy .scene-kicker {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
/* Solid panel owns the glass — kill the short 34rem ::before plate */
#gallery .gallery-copy::before,
.gallery-copy::before {
  display: none !important;
  content: none !important;
}
.css3d-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 0;
}
.css3d-plane {
  position: absolute;
  margin: 0;
  width: min(44vw, 560px);
  border-radius: .55rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transform-style: preserve-3d;
  opacity: .95;
}
.css3d-plane.is-video {
  width: min(56vw, 720px);
  border-color: rgba(62,207,142,.35);
}
.css3d-plane img,
.css3d-plane video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  display: block;
}
.css3d-plane.p1 { left: 3%; top: 10%; transform: translate3d(calc(var(--mx) * 18px), calc(var(--my) * 10px + var(--gpy) * -50px), -80px) rotateY(18deg) rotateX(4deg); }
.css3d-plane.p2 { right: 4%; top: 8%; transform: translate3d(calc(var(--mx) * -16px), calc(var(--my) * 12px + var(--gpy) * -80px), -40px) rotateY(-22deg); }
.css3d-plane.p3 { left: 16%; top: 28%; transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 8px + var(--gpy) * -130px), 40px) rotateY(6deg); }
.css3d-plane.p4 { right: 6%; top: 36%; transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * 6px + var(--gpy) * -170px), -100px) rotateY(-16deg); }
.css3d-plane.p5 { left: 8%; top: 54%; transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * -8px + var(--gpy) * -210px), 10px) rotateY(12deg); }
.css3d-plane.p6 { right: 10%; top: 58%; transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -6px + var(--gpy) * -250px), -50px) rotateY(-10deg); }
.css3d-plane.p7 { left: 22%; bottom: 6%; transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 4px + var(--gpy) * -280px), -30px) rotateY(8deg); }
.css3d-plane.p8 { right: 18%; bottom: 4%; transform: translate3d(calc(var(--mx) * -8px), calc(var(--my) * 2px + var(--gpy) * -310px), -70px) rotateY(-12deg); }

@media (max-width: 720px) {
  .css3d-plane { width: min(72vw, 340px); }
  .css3d-plane.p4, .css3d-plane.p6, .css3d-plane.p7, .css3d-plane.p8 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .css3d-plane { transform: none !important; opacity: .85; }
  .bg-still { transform: none; }
}

.foot {
  position: relative;
  z-index: 2;
  padding: 2.25rem 1.25rem 3.25rem;
  color: var(--muted);
  font-size: .82rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  border-top: 1px solid rgba(243, 247, 251, 0.08);
}
.foot-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem 2rem;
  align-items: end;
}
.foot-copy {
  margin: 0;
  line-height: 1.55;
  text-wrap: pretty;
  color: rgba(243, 247, 251, 0.78);
}
.foot-legal { min-width: 0; }
.foot-legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .95rem;
  justify-content: flex-end;
}
.foot-legal-list a {
  color: rgba(162, 162, 162, 0.95);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.foot-legal-list a:hover,
.foot-legal-list a:focus-visible {
  color: var(--ink);
  border-bottom-color: rgba(243, 247, 251, 0.45);
  outline: none;
}
@media (max-width: 720px) {
  .foot {
    padding: 1.75rem 1rem 2.75rem;
  }
  .foot-inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    text-align: center;
  }
  .foot-legal-list {
    justify-content: center;
  }
  .foot-copy {
    font-size: .78rem;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: .55rem .85rem;
    column-gap: .65rem;
  }
  .nav-toggle { display: inline-flex; }
  .topnav {
    display: none;
    position: fixed;
    top: 4.35rem;
    right: .75rem;
    left: auto;
    width: min(18.5rem, calc(100vw - 1.5rem));
    max-height: min(70vh, 28rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: .55rem;
    border-radius: .85rem;
    border: 1px solid rgba(243,247,251,.14);
    background: rgba(6, 10, 18, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0,0,0,.45);
    z-index: 46;
    grid-column: auto;
    justify-self: auto;
  }
  .topbar.is-nav-open .topnav { display: flex; }
  .topnav button {
    width: 100%;
    text-align: left;
    font-size: .95rem;
    padding: .85rem 1rem;
    min-height: 48px;
  }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45; /* below .topbar (50) so hamburger stays clickable */
    background: rgba(0,0,0,.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .nf-demo-root:has(.topbar.is-nav-open) .nav-scrim,
  html.nf-nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-scrim[hidden] { display: none !important; }
  html.nf-nav-open .nav-scrim[hidden] { display: block !important; }
  .brand {
    min-height: 48px;
    min-width: 0;
    max-width: calc(100vw - 5.5rem);
    background-size: auto 48px;
  }
  .brand img,
  .brand img.nf-demo-brand-logo,
  .brand img.lazyload,
  .brand img.lazyloaded {
    height: 48px !important;
    max-width: min(220px, 62vw) !important;
  }
  .service-layout, .ai-board { grid-template-columns: 1fr; }
  .ai-media { aspect-ratio: 16 / 9; }
  .orbit button {
    width: 104px;
    margin-left: -52px;
    font-size: .72rem;
    transform: rotate(calc(var(--a, 0) * 1deg)) translateY(-120px) rotate(calc(var(--a, 0) * -1deg));
  }
}

@media (max-width: 720px) {
  .hero-copy, .chapter-copy { padding: .95rem 1rem 4.5rem; }
  #hero.media-chapter { padding: 0 0 8.5rem; }
  .hero-copy {
    margin: 0 .55rem;
    padding: 1.1rem 1rem 1.25rem;
    max-width: calc(100% - 1.1rem);
  }
  .hero-copy::before,
  .chapter-copy::before {
    left: 0;
    bottom: 3.4rem;
    width: 100%;
  }
  .hero-copy::before { bottom: -.15rem; }
  #gallery .scene-inner.gallery-copy,
  .gallery-copy {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 1.1rem 1rem 1.25rem;
  }
  /* Keep Contattaci clear of left a11y/cookie widgets on phones. */
  .hero-copy .cta-row {
    margin-left: 4.25rem;
    margin-right: 0;
    flex-wrap: wrap;
    gap: .65rem;
    max-width: calc(100% - 4.25rem);
  }
  .hero-copy .btn {
    min-height: 48px;
    padding: .85rem 1.15rem;
    font-size: .95rem;
  }
  .hero-copy .scene-kicker,
  .hero-copy .hero-kicker {
    font-size: clamp(1rem, 4.1vw, 1.18rem);
    letter-spacing: .1em;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hero-copy .lede {
    font-size: clamp(.95rem, 3.8vw, 1.05rem);
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .brand-hero { display: none !important; }
  .scene.sparse { padding-top: 5.5rem; padding-left: .85rem; padding-right: .85rem; }
  #chi-siamo .scene-inner,
  #mission .scene-inner,
  #vision .scene-inner,
  #servizi .scene-inner,
  #esplora .scene-inner,
  #ai .scene-inner,
  #press .scene-inner,
  #contatti .scene-inner {
    padding: 1.15rem 1rem 1.3rem;
    width: 100%;
    max-width: 100%;
  }
  #ai .ai-stack-inner {
    width: 100%;
    gap: 1rem;
  }
  .story-card,
  .thesis,
  .offer-card,
  .ai-step,
  .manifesto-block {
    padding: 1rem 1rem 1.1rem;
    max-width: 100%;
  }
  .contact .btn.primary {
    font-size: .9rem;
    padding: .9rem 1rem;
    min-height: 48px;
    width: 100%;
    white-space: normal;
    line-height: 1.35;
  }
  #contatti .scene-inner {
    padding-bottom: 2.4rem;
  }
  #contatti .contact {
    margin-bottom: 1.25rem;
  }
  .play-fab {
    right: .75rem;
    bottom: .75rem;
    min-height: 44px;
    padding: .65rem .9rem;
  }
  .scroll-cue { bottom: 1.1rem; }
}

/* === NovaFrame module: hide Helix chrome on demo menu only ===
   Use html. selector so chrome is hidden before body DOMContentLoaded (no FOUC crest). */
html.nf-demo-immersiva-active,
body.nf-demo-immersiva-active {
  background: var(--void) !important;
  color: var(--ink) !important;
}
html.nf-demo-immersiva-active #sp-top-bar,
html.nf-demo-immersiva-active #sp-header,
html.nf-demo-immersiva-active #sp-titlebar,
html.nf-demo-immersiva-active #sp-breadcrumb,
html.nf-demo-immersiva-active #sp-footer,
html.nf-demo-immersiva-active #sp-bottom,
html.nf-demo-immersiva-active .sp-megamenu-wrapper,
html.nf-demo-immersiva-active .helix-ultimate-footer,
html.nf-demo-immersiva-active #sp-left,
html.nf-demo-immersiva-active #sp-right,
html.nf-demo-immersiva-active .cookie-notice,
html.nf-demo-immersiva-active .cc-window,
body.nf-demo-immersiva-active #sp-top-bar,
body.nf-demo-immersiva-active #sp-header,
body.nf-demo-immersiva-active #sp-titlebar,
body.nf-demo-immersiva-active #sp-breadcrumb,
body.nf-demo-immersiva-active #sp-footer,
body.nf-demo-immersiva-active #sp-bottom,
body.nf-demo-immersiva-active .sp-megamenu-wrapper,
body.nf-demo-immersiva-active .helix-ultimate-footer,
body.nf-demo-immersiva-active #sp-left,
body.nf-demo-immersiva-active #sp-right,
body.nf-demo-immersiva-active .cookie-notice,
body.nf-demo-immersiva-active .cc-window,
html.nf-demo-immersiva-active #sp-totop,
html.nf-demo-immersiva-active .sp-scroll-up,
html.nf-demo-immersiva-active a.sp-scroll-up,
body.nf-demo-immersiva-active #sp-totop,
body.nf-demo-immersiva-active .sp-scroll-up,
body.nf-demo-immersiva-active a.sp-scroll-up {
  display: none !important;
}
body.nf-demo-immersiva-active #sp-main-body,
body.nf-demo-immersiva-active #sp-component,
body.nf-demo-immersiva-active .article-details,
body.nf-demo-immersiva-active .item-page,
body.nf-demo-immersiva-active .container,
body.nf-demo-immersiva-active .container-fluid {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
}
/* Helix sticky-header spacer survives display:none header — collapse it on demo */
body.nf-demo-immersiva-active #sp-main-body,
body.nf-demo-immersiva-active.sticky-header #sp-main-body,
body.nf-demo-immersiva-active #sp-main {
  padding-top: 0 !important;
}
body.nf-demo-immersiva-active .nf-demo-root {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  color: var(--ink);
}
/* Beat Helix/SP heading colors (dark-on-dark) — demo only */
body.nf-demo-immersiva-active .nf-demo-root h1,
body.nf-demo-immersiva-active .nf-demo-root h2,
body.nf-demo-immersiva-active .nf-demo-root h3,
body.nf-demo-immersiva-active .nf-demo-root .brand-hero,
body.nf-demo-immersiva-active .nf-demo-root .scene h2,
body.nf-demo-immersiva-active .nf-demo-root .chapter-copy h2 {
  color: #f7fbff !important;
}
body.nf-demo-immersiva-active .nf-demo-root .scene-lede,
body.nf-demo-immersiva-active .nf-demo-root .lede,
body.nf-demo-immersiva-active .nf-demo-root .warm-body,
body.nf-demo-immersiva-active .nf-demo-root .manifesto-body {
  color: #e0e8f0 !important;
}
body.nf-demo-immersiva-active .nf-demo-root .mv-intro {
  color: #b7e8cf !important;
}
body.nf-demo-immersiva-active .nf-demo-root .scene-kicker {
  color: #a8ebc8 !important;
}
body.nf-demo-immersiva-active .nf-demo-root .hero-copy .scene-kicker,
body.nf-demo-immersiva-active .nf-demo-root .hero-copy .hero-kicker {
  color: #f5fff9 !important;
}
body.nf-demo-immersiva-active .nf-demo-root .lede {
  color: #f7fbff !important;
}
body.nf-demo-immersiva-active .nf-demo-root .brand-hero {
  display: none !important;
}
body.nf-demo-immersiva-active .nf-demo-root .btn.ghost.soft {
  color: rgba(232,238,245,.78) !important;
}
body.nf-demo-immersiva-active .nf-demo-root .btn.primary {
  color: #03140c !important;
}
body.nf-demo-immersiva-active .nf-demo-root .btn.ghost,
body.nf-demo-immersiva-active .nf-demo-root .btn:not(.primary) {
  color: #f7fbff !important;
}
body.nf-demo-immersiva-active .page-header,
body.nf-demo-immersiva-active .article-info,
body.nf-demo-immersiva-active .article-can-edit,
body.nf-demo-immersiva-active h1[itemprop="headline"],
body.nf-demo-immersiva-active .page-header h2 {
  display: none !important;
}
