/* ============================================================
   FluxHub homepage — identità 2026 (Brand Identity v1)
   Chiaro di pagina; scuro solo su hero e footer.
   Flux Blue #0068F8 + Flux Cyan #38C8F8. Logo size fisso allo scroll.
   ============================================================ */

html:has(body.flux-2026) { background: #070d18; }
body.flux-2026 {
  /* Brand — FluxHub Brand Identity v1.0 */
  --fh-blue: #0068F8;
  --fh-cyan: #38C8F8;
  --fh-ink: #0B0F14;
  --fh-slate: #5B6773;
  --fh-cloud: #F4F7FA;
  --fh-white: #FFFFFF;
  --fh-navy: #0B1B33;

  --cobalt: var(--fh-blue);
  --cobalt-bright: #1a78ff;
  --cobalt-text: var(--fh-blue);
  --cobalt-glow: rgba(0, 104, 248, 0.16);
  --amber: var(--fh-cyan);
  --amber-dim: rgba(56, 200, 248, 0.14);
  --cyan: var(--fh-cyan);

  /* Page (chiaro) */
  --bg: var(--fh-white);
  --surface: var(--fh-cloud);
  --surface-2: #e8eef4;
  --on-bg: var(--fh-ink);
  --on-bg-dim: var(--fh-slate);
  --on-bg-mute: #44505c;
  --line-dark: #e2e8f0;

  /* Sezioni alternate */
  --paper: var(--fh-cloud);
  --paper-2: var(--fh-white);
  --on-paper: var(--fh-ink);
  --on-paper-dim: var(--fh-slate);
  --on-paper-mute: #44505c;
  --line-light: #e2e8f0;

  /* Type */
  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-ui: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 8px;
  --radius-sm: 6px;

  margin: 0;
  font-family: var(--font-ui);
  color: var(--on-bg);
  background: #070d18;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.flux-2026 * { box-sizing: border-box; }
body.flux-2026 img { max-width: 100%; display: block; }
body.flux-2026 h1, body.flux-2026 h2, body.flux-2026 h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--on-bg);
}
body.flux-2026 a { color: inherit; }
body.flux-2026 ::selection { background: rgba(0,104,248,.18); color: var(--fh-ink); }
body.flux-2026 :focus-visible { outline: 2px solid var(--fh-blue); outline-offset: 3px; }

.fx-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.skip-link { position: absolute; top: -48px; left: 8px; background: var(--cobalt); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 1100; text-decoration: none; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- BUTTONS ---------- */
body.flux-2026 .btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.25s, background 0.2s, color 0.2s;
}
body.flux-2026 .btn-primary {
  background: var(--cobalt);
  color: #fff;
  padding: 12px 22px;
  box-shadow: 0 2px 8px rgba(11, 27, 51, .18);
}
body.flux-2026 .btn-primary:hover {
  background: var(--cobalt-bright);
  box-shadow: 0 2px 8px rgba(11, 27, 51, .18);
}
body.flux-2026 .btn-ghost {
  background: transparent;
  color: var(--on-bg);
  padding: 12px 22px;
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
body.flux-2026 .btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--fh-blue);
  color: var(--fh-blue);
}
body.flux-2026 .btn-lg { padding: 15px 28px; font-size: 16px; }
body.flux-2026 .btn .arr { transition: transform 0.4s var(--ease); }
body.flux-2026 .btn:hover .arr { transform: translateX(5px); }
body.flux-2026 .btn-on-dark { background: #fff; color: var(--on-paper); }
body.flux-2026 .btn-on-dark:hover { background: var(--paper); }
body.flux-2026 .btn-outline-dark {
  background: transparent;
  color: var(--on-bg);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
body.flux-2026 .btn-outline-dark:hover {
  box-shadow: inset 0 0 0 1px var(--fh-cyan);
  color: var(--fh-cyan);
}

/* Header e navigazione: assets/css/header-flux.css (condiviso con tutte le pagine). */

/* ---------- HERO ("Sala Controllo") ---------- */
body.flux-2026 .hero {
  position: relative;
  overflow: visible;
  padding: 48px 0 80px;
  color: #e8eef6;
  background: #070d18;
}
body.flux-2026 .hero-stage {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 32px 56px;
  min-height: 0;
}
body.flux-2026 .hero h1 { color: #e8eef6; }
body.flux-2026 .hero-sub { color: #c5d0dc; }
body.flux-2026 .hero .btn-ghost {
  color: #e8eef6;
  box-shadow: inset 0 0 0 1px #1e334f;
}
body.flux-2026 .hero .btn-ghost:hover {
  color: var(--fh-cyan);
  box-shadow: inset 0 0 0 1px var(--fh-cyan);
}
body.flux-2026 .hero .proof { border-top-color: #1e334f; }
body.flux-2026 .hero .proof .integra { color: #9aa8b8; }
body.flux-2026 .hero .proof .integra b { color: #e8eef6; }
body.flux-2026 .hero .viz-note { color: #7d8b9a; }
body.flux-2026 .hero::before,
body.flux-2026 .hero::after { content: none; }
body.flux-2026 .hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 48px;
}
body.flux-2026 .hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
body.flux-2026 .hero-actions .btn { white-space: nowrap; }
body.flux-2026 .hero-copy, body.flux-2026 .viz { min-width: 0; }
body.flux-2026 .viz {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 8px;
}
body.flux-2026 .hero-orbit {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
body.flux-2026 .floater {
  position: absolute;
  pointer-events: none;
}
body.flux-2026 .floater-inner {
  background: #101a2c;
  border: 1px solid #2a3f5c;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  animation: fx-float 5.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
body.flux-2026 .floater .fk {
  display: block;
  font-size: 11px;
  color: #9aa8b8;
  margin-bottom: 4px;
}
body.flux-2026 .floater .fv {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e8eef6;
  font-weight: 500;
}
body.flux-2026 .f-live { left: -4%; top: 10%; }
body.flux-2026 .f-sys { right: -6%; top: 6%; }
body.flux-2026 .f-queue { left: -2%; bottom: 14%; }
body.flux-2026 .f-thru { right: -4%; bottom: 10%; }
@keyframes fx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

body.flux-2026 .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-bg-dim);
  margin-bottom: 30px;
}
body.flux-2026 .eyebrow b { color: var(--on-bg); font-weight: 500; }
body.flux-2026 .eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22d98a;
  box-shadow: 0 0 0 3px rgba(34,217,138,.18);
  animation: fx-beat 2.4s ease-in-out infinite;
}
@keyframes fx-beat {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,217,138,.2); }
  50% { box-shadow: 0 0 0 7px rgba(34,217,138,0); }
}

body.flux-2026 .hero h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 3.8vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.038em;
  max-width: none;
  color: #e8eef6;
  overflow: visible;
}
body.flux-2026 .hero h1 .hl {
  position: relative;
  display: inline-block;
  color: var(--fh-navy);
  white-space: nowrap;
  padding: 0 .14em;
  isolation: isolate;
}
body.flux-2026 .hero h1 .hl-txt { position: relative; z-index: 1; }
body.flux-2026 .hero h1 .hl-fill {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 0.1em;
  bottom: 0.06em;
  background: var(--fh-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  font-style: normal;
  animation: hl-draw .8s cubic-bezier(.22, 1, .36, 1) .35s forwards;
}
@keyframes hl-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
body.flux-2026 .hero-sub {
  font-size: clamp(1.04rem, 1.4vw, 1.2rem);
  color: #c5d0dc;
  max-width: 38rem;
  margin: 26px auto 36px;
  line-height: 1.66;
  font-weight: 400;
}
body.flux-2026 .hero-actions { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 12px; }

/* hero entrance — copy sale in scena scaglionata, il pannello la segue */
@keyframes fx-rise { from { transform: translateY(12px); } to { transform: none; } }
body.flux-2026 .hero-copy > * { opacity: 1; animation: fx-rise .85s var(--ease) both; }
body.flux-2026 .hero-copy > h1 { animation-delay: .05s; }
body.flux-2026 .hero-copy > .hero-sub { animation-delay: .18s; }
body.flux-2026 .hero-copy > .hero-actions { animation-delay: .3s; }
body.flux-2026 .hero-copy > .proof { animation-delay: .45s; }
body.flux-2026 .viz { opacity: 1; animation: fx-rise .9s var(--ease) .25s both; }

body.flux-2026 .proof {
  margin-top: 28px;
  padding-top: 0;
  border-top: none;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
body.flux-2026 .proof .stat { display: flex; flex-direction: column; gap: 2px; }
body.flux-2026 .proof .num { font-family: var(--font-mono); font-weight: 500; font-size: 21px; color: var(--on-bg); letter-spacing: -0.01em; }
body.flux-2026 .proof .cap { font-size: 12px; color: var(--on-bg-dim); }
body.flux-2026 .proof .sep { width: 1px; height: 36px; background: var(--line-dark); }
body.flux-2026 .proof .integra { font-size: 12.5px; color: var(--on-bg-dim); line-height: 1.4; }
body.flux-2026 .proof .integra b { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--on-bg); font-weight: 500; letter-spacing: .01em; }

/* ---------- INSTRUMENT (HMI control panel) ---------- */
body.flux-2026 .viz { position: relative; }
body.flux-2026 .panel {
  position: relative;
  min-width: 0;
  background: #0b1b33;
  border: 1px solid #1e334f;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  overflow: hidden;
}
body.flux-2026 .panel::after { content: none; }
body.flux-2026 .bracket { display: none; }
body.flux-2026 .bracket { position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--on-bg-mute); opacity: .7; z-index: 3; }
body.flux-2026 .bracket.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
body.flux-2026 .bracket.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
body.flux-2026 .bracket.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
body.flux-2026 .bracket.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

body.flux-2026 .rail {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid #1e334f;
  background: #0b1b33;
  color: #e8eef6;
}
body.flux-2026 .rail-id { font-family: var(--font-mono); font-size: 12px; color: #c5d0dc; display: flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.flux-2026 .rail-id b { color: #e8eef6; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
body.flux-2026 .rail-id .pid { color: var(--fh-cyan); flex-shrink: 0; }
body.flux-2026 .rail-live { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--fh-navy); background: var(--fh-cyan); padding: 4px 11px; border-radius: 2px; border: none; font-weight: 600; }
body.flux-2026 .rail-live .d { width: 5px; height: 5px; border-radius: 50%; background: var(--fh-cyan); animation: fx-blink 1.6s ease-in-out infinite; }
@keyframes fx-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

body.flux-2026 .stage {
  position: relative;
  padding: 26px 22px 22px;
  background: #0b1b33;
}
body.flux-2026 svg.flow { display: block; width: 100%; height: auto; overflow: visible; }
body.flux-2026 .conn { fill: none; stroke: #3d5573; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: fx-draw 1s var(--ease) forwards; }
body.flux-2026 .conn.delay1 { animation-delay: .2s; }
body.flux-2026 .conn.delay2 { animation-delay: .45s; }
body.flux-2026 .conn.delay3 { animation-delay: .7s; }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
body.flux-2026 .node { opacity: 1; transform-box: fill-box; transform-origin: center; animation: fx-pop .5s var(--ease) both; }
body.flux-2026 .node.n1 { animation-delay: .1s; }
body.flux-2026 .node.n2 { animation-delay: .3s; }
body.flux-2026 .node.n3 { animation-delay: .55s; }
body.flux-2026 .node.n4 { animation-delay: .8s; }
body.flux-2026 .node.n5 { animation-delay: .95s; }
body.flux-2026 .node.n6 { animation-delay: 1.15s; }
@keyframes fx-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
body.flux-2026 .nbox { fill: #132844; stroke: #5b7394; stroke-width: 1.6; }
body.flux-2026 .nbox.accent { fill: rgba(0,104,248,.22); stroke: var(--fh-cyan); }
body.flux-2026 .nlabel { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; fill: #e8eef6; }
body.flux-2026 .nsmall { font-family: 'DM Mono', monospace; font-size: 9.5px; font-weight: 400; fill: #9aa8b8; }
body.flux-2026 .diamond { fill: #132844; stroke: var(--cobalt-bright); stroke-width: 1.7; }

/* rotte di transito: non disegnate, servono alla simulazione per posizionare
   le istanze (vedi initHeroFlowSim in main.js) */
body.flux-2026 .route { fill: none; stroke: none; }

/* accensione dei nodi — scatta quando un'istanza ci arriva davvero */
body.flux-2026 .spark { fill: none; stroke: var(--amber); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
body.flux-2026 .spark.fire { animation: fx-ignite .85s var(--ease) 1; }
@keyframes fx-ignite { 0% { opacity: 0; transform: scale(.45); } 14% { opacity: .95; } 100% { opacity: 0; transform: scale(1.65); } }

/* istanze in transito (signature) */
body.flux-2026 .token .core { fill: var(--amber); }
body.flux-2026 .token .halo { fill: var(--amber); opacity: .22; }
/* in attesa davanti alla revisione manuale: presenti ma spente */
body.flux-2026 .token.is-waiting .core { opacity: .5; r: 3.4; }
body.flux-2026 .token.is-waiting .halo { opacity: .07; }
/* in lavorazione: il nodo la sta trattenendo */
body.flux-2026 .token.is-serving .halo { animation: fx-hold 1.5s ease-in-out infinite; }
@keyframes fx-hold { 0%, 100% { opacity: .18; transform: scale(1); } 50% { opacity: .34; transform: scale(1.35); } }
body.flux-2026 .token { transform-box: fill-box; transform-origin: center; }

/* readout — live gauges integrated into the instrument */
body.flux-2026 .readout { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #1e334f; }
body.flux-2026 .gauge { padding: 15px 20px; border-right: 1px solid #1e334f; display: flex; flex-direction: column; gap: 5px; }
body.flux-2026 .gauge:last-child { border-right: none; }
body.flux-2026 .gauge .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #c5d0dc; }
body.flux-2026 .gauge .v { font-family: var(--font-mono); font-size: 19px; font-weight: 500; color: #e8eef6; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 6px; }
body.flux-2026 .gauge .v .u { font-size: 11px; color: #9aa8b8; font-weight: 400; }
body.flux-2026 .gauge.live .v { color: var(--amber); }
body.flux-2026 .gauge .bar { height: 3px; border-radius: 2px; background: #1e334f; overflow: hidden; margin-top: 3px; }
body.flux-2026 .gauge .bar i { display: block; height: 100%; background: var(--cobalt-bright); border-radius: 2px; transform-origin: left; transform: scaleX(0); animation: fx-fill 1.4s var(--ease) forwards; }
body.flux-2026 .gauge.live .bar i { background: var(--amber); }
@keyframes fx-fill { to { transform: scaleX(var(--lvl, .6)); } }
body.flux-2026 .gauge .v.tick { animation: fx-tick .6s var(--ease); }
@keyframes fx-tick { 0% { color: var(--amber); } 100% { color: inherit; } }

body.flux-2026 .viz-note { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: #9aa8b8; text-align: right; }

/* ---------- LOGO BAND (light) ---------- */
body.flux-2026 .logo-band {
  background: var(--paper);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 30px 0;
}
body.flux-2026 .logo-band .label {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--on-paper-dim);
  text-transform: none;
  margin-bottom: 22px;
}
body.flux-2026 .clients-marquee { display: none !important; }
body.flux-2026 .clients-marquee-off {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
body.flux-2026 .clients-marquee + .clients-marquee { margin-top: 16px; }
body.flux-2026 .clients-track {
  display: flex;
  gap: 48px;
  width: max-content;
  align-items: center;
  animation: fx-marquee 60s linear infinite;
}
body.flux-2026 .clients-marquee--reverse .clients-track { animation-direction: reverse; animation-duration: 75s; }
body.flux-2026 .clients-marquee:hover .clients-track { animation-play-state: paused; }
body.flux-2026 .clients-track .client-logo {
  flex: 0 0 auto;
  width: 150px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.flux-2026 .clients-track .client-logo img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  height: auto;
  /* Senza object-fit il flex comprime in larghezza i loghi più larghi della
     cella da 150px e li deforma: bor_pharma (294x41) usciva come 150x40. */
  object-fit: contain;
  opacity: .5;
  filter: grayscale(100%);
  transition: opacity .3s, filter .3s;
}
body.flux-2026 .clients-track .client-logo:hover img {
  opacity: 1;
  filter: none;
}
@keyframes fx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body.flux-2026 .clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 36px;
}
body.flux-2026 .clients-grid .client-logo {
  width: 120px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.flux-2026 .clients-grid .client-logo img {
  max-height: 36px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .7;
  filter: grayscale(100%);
  transition: filter .25s ease, opacity .25s ease;
}
body.flux-2026 .clients-grid .client-logo:hover img {
  filter: none;
  opacity: 1;
}

/* ---------- SECTION SHELL ---------- */
body.flux-2026 .section { padding: 96px 0; }
body.flux-2026 .section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
body.flux-2026 .section-head.left { margin-left: 0; text-align: left; }
body.flux-2026 .kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fh-blue);
  margin-bottom: 14px;
}
body.flux-2026 .section h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--on-bg);
}
body.flux-2026 .section-sub {
  font-size: 1.06rem;
  color: var(--on-bg-dim);
  margin-top: 16px;
  line-height: 1.65;
}

/* ---------- BENEFITS (dark) ---------- */
body.flux-2026 .benefits { background: var(--bg); }
body.flux-2026 .benefits-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
body.flux-2026 .feature-card {
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .3s, border-color .3s;
}
body.flux-2026 .feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--amber));
  opacity: 0;
  transition: opacity .3s;
}
body.flux-2026 .feature-card:hover { transform: none; box-shadow: none; }
body.flux-2026 .feature-card:hover::before { opacity: 1; }
body.flux-2026 .feature-card .glyph {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  min-width: 54px;
  height: 54px;
  padding: 0 12px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-dark);
  color: var(--fh-blue);
  margin-bottom: 22px;
}
body.flux-2026 .feature-card h3 { font-size: 1.42rem; font-weight: 700; margin-bottom: 10px; color: var(--on-bg); }
body.flux-2026 .feature-card p { color: var(--on-bg-dim); font-size: 1rem; max-width: 42ch; line-height: 1.65; }
body.flux-2026 .feature-card .metric { margin-top: 24px; display: inline-flex; align-items: baseline; gap: 10px; }
body.flux-2026 .feature-card .metric .v {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 30px;
  color: var(--amber);
  letter-spacing: -0.02em;
}
body.flux-2026 .feature-card .metric .l { font-size: 13px; color: var(--on-bg-dim); max-width: 22ch; line-height: 1.3; }

body.flux-2026 .benefits-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
body.flux-2026 .benefits-list li {
  display: grid;
  grid-template-columns: 64px 200px 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px 12px;
  border-bottom: 1px solid var(--line-dark);
  transition: background .3s, transform .3s var(--ease);
}
body.flux-2026 .benefits-list li:hover { background: var(--surface); transform: translateX(4px); }
body.flux-2026 .benefits-list .n { font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--on-bg-mute); }
body.flux-2026 .benefits-list .k { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--on-bg); }
body.flux-2026 .benefits-list .d { color: var(--on-bg-dim); font-size: .97rem; }

/* ---------- BPM PROOF (light) ---------- */
body.flux-2026 .bpm-proof {
  background: var(--paper);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
body.flux-2026 .bpm-proof .kicker { color: var(--cobalt); }
body.flux-2026 .bpm-proof .section h2,
body.flux-2026 .bpm-proof h2 { color: var(--on-paper); }
body.flux-2026 .bpm-proof .section-sub { color: var(--on-paper-dim); }
body.flux-2026 .proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
body.flux-2026 .proof-stat {
  background: var(--paper-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .3s;
}
body.flux-2026 .proof-stat::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
  opacity: 0;
  transition: opacity .3s;
}
body.flux-2026 .proof-stat:hover { transform: none; box-shadow: none; }
body.flux-2026 .proof-stat:hover::after { opacity: 1; }
body.flux-2026 .proof-stat .v {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cobalt);
}
body.flux-2026 .proof-stat .k { color: var(--on-paper-dim); margin: 14px auto; font-size: 1rem; max-width: 26ch; line-height: 1.5; }
body.flux-2026 .proof-stat .src { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .02em; color: var(--on-paper-mute); }
body.flux-2026 .proof-note { text-align: center; color: var(--on-paper-mute); font-size: 13px; margin: 28px auto 0; max-width: 62ch; line-height: 1.6; }

/* ---------- PLATFORM ---------- */
body.flux-2026 .platform {
  background: var(--surface);
  color: var(--on-bg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
}
body.flux-2026 .platform::before,
body.flux-2026 .platform::after { content: none; }
body.flux-2026 .platform .kicker { color: var(--cyan); }
body.flux-2026 .platform h2 { color: var(--on-bg); }
body.flux-2026 .platform .section-sub { color: var(--on-bg-dim); }
body.flux-2026 .platform-demo { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; }
body.flux-2026 .demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
body.flux-2026 .tab-button {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--on-bg-dim);
  background: transparent;
  border: 1px solid var(--line-dark);
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}
body.flux-2026 .tab-button:hover { color: var(--on-bg); border-color: var(--on-bg-dim); }
body.flux-2026 .tab-button.active { color: #fff; background: var(--cobalt); border-color: var(--cobalt); }
body.flux-2026 .demo-content { position: relative; min-height: 420px; }
body.flux-2026 .tab-panel {
  opacity: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
body.flux-2026 .tab-panel.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
}
body.flux-2026 .demo-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: 0 16px 40px rgba(11,27,51,.08);
}
body.flux-2026 .demo-image img { width: 100%; height: auto; transition: transform .6s var(--ease); }
body.flux-2026 .tab-panel.active:hover .demo-image img { transform: none; }
body.flux-2026 .demo-description h3 { color: var(--on-bg); font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
body.flux-2026 .demo-description p { color: var(--on-bg-dim); margin-bottom: 20px; line-height: 1.65; }
body.flux-2026 .demo-description ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
body.flux-2026 .demo-description li { position: relative; padding-left: 28px; color: var(--on-bg); font-size: .96rem; }
body.flux-2026 .demo-description li::before {
  content: "";
  position: absolute;
  left: 4px; top: .45em;
  width: 10px; height: 5px;
  border-left: 1.5px solid var(--amber);
  border-bottom: 1.5px solid var(--amber);
  transform: rotate(-45deg);
}
body.flux-2026 .platform-cta {
  text-align: center;
  margin-top: 48px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ---------- SOLUTIONS (light) ---------- */
body.flux-2026 .solutions {
  background: var(--paper);
  border-top: 1px solid var(--line-light);
  /* stacco piu' netto dalla fascia Piattaforma, cosi' lo scroll-spy
     cambia voce di menu in un punto leggibile */
  padding-top: 128px;
}
body.flux-2026 .platform { padding-bottom: 128px; }

body.flux-2026 .solutions .kicker { color: var(--cobalt); }
body.flux-2026 .solutions h2 { color: var(--on-paper); }
body.flux-2026 .solutions .section-sub { color: var(--on-paper-dim); }
body.flux-2026 .solutions-hooks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 980px) {
  body.flux-2026 .solutions-hooks { grid-template-columns: 1fr 1fr; }
}
body.flux-2026 .solution-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line-light);
  border-radius: 0;
  padding: 22px 8px 22px 0;
}
body.flux-2026 .solution-card:hover {
  transform: none;
  box-shadow: none;
}
body.flux-2026 .solution-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--on-paper);
  display: flex;
  align-items: center;
  gap: 10px;
}
body.flux-2026 .solution-card .ic {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: var(--cobalt);
  margin: 0;
  border: none;
  flex: 0 0 auto;
}
body.flux-2026 .solution-card > p { color: var(--on-paper-dim); margin-bottom: 16px; font-size: .96rem; line-height: 1.6; }
body.flux-2026 .solution-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
body.flux-2026 .solution-card li { position: relative; padding-left: 20px; color: var(--on-paper-dim); font-size: .93rem; }
body.flux-2026 .solution-card li::before {
  content: "";
  position: absolute;
  left: 2px; top: .5em;
  width: 8px; height: 4px;
  border-left: 1.5px solid var(--cobalt);
  border-bottom: 1.5px solid var(--cobalt);
  transform: rotate(-45deg);
}
body.flux-2026 .solution-card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--cobalt); text-decoration: none; }
body.flux-2026 .solution-card .more:hover { text-decoration: underline; }

body.flux-2026 .solutions-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
body.flux-2026 .solutions-list li {
  display: grid;
  grid-template-columns: 56px 220px 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--line-light);
  transition: background .25s, transform .3s var(--ease);
}
body.flux-2026 .solutions-list li:hover { background: rgba(36,71,240,.04); transform: translateX(4px); }
body.flux-2026 .solutions-list .n { font-family: var(--font-mono); font-weight: 400; font-size: 12px; color: var(--on-paper-mute); }
body.flux-2026 .solutions-list .k { font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; color: var(--on-paper); }
body.flux-2026 .solutions-list .d { color: var(--on-paper-dim); font-size: .94rem; }

/* ---------- FAQ (light) ---------- */
body.flux-2026 .faq {
  background: var(--paper);
  border-top: 1px solid var(--line-light);
}
body.flux-2026 .faq .kicker { color: var(--cobalt); }
body.flux-2026 .faq h2 { color: var(--on-paper); }
body.flux-2026 .faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line-light); }
body.flux-2026 .faq-item { border-bottom: 1px solid var(--line-light); }
body.flux-2026 .faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--on-paper);
  transition: color .2s;
}
body.flux-2026 .faq-item summary::-webkit-details-marker { display: none; }
body.flux-2026 .faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  color: var(--cobalt);
  transition: transform .3s var(--ease);
}
body.flux-2026 .faq-item[open] summary::after { transform: rotate(45deg); }
body.flux-2026 .faq-item summary:hover { color: var(--cobalt); }
body.flux-2026 .faq-a { padding: 0 4px 26px; color: var(--on-paper-dim); max-width: 72ch; }
body.flux-2026 .faq-item[open] .faq-a { animation: fx-faq-open .4s var(--ease); }
@keyframes fx-faq-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.flux-2026 .faq-a p { margin: 0; line-height: 1.65; }

/* ---------- CTA + FORM (chiaro; lo scuro resta al footer) ---------- */
body.flux-2026 .cta {
  background: var(--fh-cloud);
  color: var(--fh-ink);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-light);
}
body.flux-2026 .cta::before {
  content: "";
  position: absolute;
  top: -30%; left: -8%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,104,248,.28), transparent 64%);
  pointer-events: none;
}
body.flux-2026 .cta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
body.flux-2026 .cta .kicker { color: var(--fh-blue); }
body.flux-2026 .cta h2 { color: var(--fh-ink); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.1; }
body.flux-2026 .cta .cta-sub { color: var(--fh-slate); margin-top: 16px; font-size: 1.06rem; max-width: 42ch; line-height: 1.65; }
body.flux-2026 .cta-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px; }
body.flux-2026 .cta-points li { position: relative; padding-left: 28px; color: var(--fh-slate); font-size: .97rem; }
body.flux-2026 .cta-points li::before {
  content: "";
  position: absolute;
  left: 4px; top: .45em;
  width: 10px; height: 5px;
  border-left: 1.5px solid var(--amber);
  border-bottom: 1.5px solid var(--amber);
  transform: rotate(-45deg);
}
body.flux-2026 .cta-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 8px 24px rgba(11,27,51,.08);
  border: 1px solid var(--line-light);
}
body.flux-2026 .cta-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.flux-2026 .form-group { margin-bottom: 16px; display: flex; flex-direction: column; }
body.flux-2026 .form-group label { font-size: 12.5px; font-weight: 600; color: var(--fh-ink); margin-bottom: 7px; }
body.flux-2026 .form-group input,
body.flux-2026 .form-group textarea {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--fh-ink);
  background: var(--fh-cloud);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
body.flux-2026 .form-group input:focus,
body.flux-2026 .form-group textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(0,104,248,.14);
}
body.flux-2026 .form-group input.error,
body.flux-2026 .form-group textarea.error {
  border-color: #e24b4a;
  box-shadow: 0 0 0 3px rgba(226,75,74,.12);
}
body.flux-2026 .error-message { color: #c0392b; font-size: 12.5px; margin-top: 6px; }
body.flux-2026 .cta-form button { width: 100%; margin-top: 6px; }

/* ---------- FOOTER ---------- */
body.flux-2026 .footer { background: var(--fh-navy); color: #8fa0b5; padding: 64px 0 32px; }
body.flux-2026 .footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
body.flux-2026 .footer-logo { height: 46px; width: auto; display: block; margin-bottom: 16px; }
body.flux-2026 .footer-description { color: #8fa0b5; max-width: 38ch; font-size: .94rem; line-height: 1.65; }
body.flux-2026 .footer-contact { margin-top: 18px; color: #8fa0b5; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
body.flux-2026 .footer-title { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 16px; letter-spacing: .02em; }
body.flux-2026 .footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
body.flux-2026 .footer-links a { color: #8fa0b5; text-decoration: none; font-size: .93rem; transition: color .2s; }
body.flux-2026 .footer-links a:hover { color: #fff; }
body.flux-2026 .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
body.flux-2026 .footer-bottom .copyright { color: #b7c4d4; font-size: .86rem; }
body.flux-2026 .footer-cert { display: flex; gap: 14px; align-items: center; opacity: .45; }
body.flux-2026 .footer-cert img { height: 38px; width: auto; filter: grayscale(100%) brightness(2); }

/* ---------- REVEAL ---------- */
body.flux-2026 .reveal { opacity: 1; transform: none; }
body.flux-2026 .reveal.is-visible { opacity: 1; transform: none; }
body.flux-2026 .reveal-stagger > * { opacity: 1; transform: none; }
body.flux-2026 .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
body.flux-2026 .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 60ms; }
body.flux-2026 .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 150ms; }
body.flux-2026 .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 240ms; }
body.flux-2026 .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 330ms; }
body.flux-2026 .reveal-stagger.is-visible > *:nth-child(n+5) { transition-delay: 420ms; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  body.flux-2026 .hero-orbit { display: none; }
  body.flux-2026 .hero-stage { min-height: 0; padding: 16px 20px 40px; }
  body.flux-2026 .cta-grid { grid-template-columns: 1fr; gap: 44px; }
  body.flux-2026 .benefits-feature { grid-template-columns: 1fr; }
  body.flux-2026 .proof-grid { grid-template-columns: 1fr; }
  body.flux-2026 .solutions-hooks { grid-template-columns: 1fr; }
  body.flux-2026 .tab-panel.active { grid-template-columns: 1fr; gap: 28px; }
  body.flux-2026 .demo-content { min-height: 0; }
  body.flux-2026 .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body.flux-2026 .fx-wrap { padding: 0 20px; }
  body.flux-2026 .section { padding: 64px 0; }
  body.flux-2026 .solutions { padding-top: 88px; }
  body.flux-2026 .platform { padding-bottom: 88px; }
  body.flux-2026 .benefits-list li { grid-template-columns: 44px 1fr; gap: 10px 14px; }
  body.flux-2026 .benefits-list .d { grid-column: 2; }
  body.flux-2026 .solutions-list li { grid-template-columns: 44px 1fr; gap: 10px 14px; }
  body.flux-2026 .solutions-list .d { grid-column: 2; }
  body.flux-2026 .cta-form .form-row { grid-template-columns: 1fr; }
  body.flux-2026 .footer-content { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  body.flux-2026 .readout { grid-template-columns: 1fr; }
  body.flux-2026 .gauge { border-right: none; border-bottom: 1px solid var(--line-dark); }
  body.flux-2026 .gauge:last-child { border-bottom: none; }
  body.flux-2026 .proof .sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.flux-2026 * { animation: none !important; transition-duration: .001ms !important; }
  body.flux-2026 .conn { stroke-dashoffset: 0; }
  body.flux-2026 .node { opacity: 1; transform: none; }
  body.flux-2026 .hero-copy > *, body.flux-2026 .viz { opacity: 1; transform: none; }
  body.flux-2026 .spark { display: none; }
  body.flux-2026 .gauge .bar i { transform: scaleX(var(--lvl, .6)); }
  body.flux-2026 .reveal, body.flux-2026 .reveal-stagger > * { opacity: 1; transform: none; }
  body.flux-2026 .clients-track { animation: none; }
  body.flux-2026 .floater-inner { animation: none; }
  body.flux-2026 .hero h1 .hl-fill { transform: scaleX(1); }
}
