/* Eskatta · direzione Luce (design system v2, 27/10/2026): una sola atmosfera, luce su notte.
   Campo di luce solo in hero e chiusura; vetro sopra la luce; spettro ottanio → rame come firma; Geist ovunque. */
:root {
  color-scheme: dark;
  --notte: #0b0f10; --notte2: #121718; --notte3: #070a0b;
  --perla: #eef0ec; --carta: #f4f3ef;
  --fumo: rgba(238, 240, 236, .66); --fumo2: rgba(238, 240, 236, .44);
  --linea: rgba(255, 255, 255, .12); --linea2: rgba(255, 255, 255, .22);
  --ottanio: #3fa9a2; --acqua: #8fe0d2; --pesca: #ffc6a3; --rame: #ef8a5f;
  --spettro: linear-gradient(90deg, #3fa9a2, #8fe0d2 38%, #ffc6a3 68%, #ef8a5f);
  --vetro: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045));
  --vetro-bordo: rgba(255, 255, 255, .16);
  --vetro-ombra: inset 0 1px 0 rgba(255, 255, 255, .22), 0 20px 60px -20px rgba(0, 0, 0, .6);
  --livella: #5fcf8a; --allarme: #ff7a6b; --focus: #8ab4ff;
  --f: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fm: "Geist Mono", ui-monospace, Menlo, monospace;
  /* compat con i nomi usati nelle pagine */
  --grafite: var(--fumo); --inchiostro: var(--perla); --font-sans: var(--f); --font-mono: var(--fm); --font-display: var(--f);
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; background: var(--notte); overflow-x: clip }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } *, *::before, *::after { animation: none !important; transition: none !important } }
body { margin: 0; background: var(--notte); color: var(--perla); font: 400 15px/1.5 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden }
img { max-width: 100%; display: block }
a { color: inherit }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px }
h1, h2, h3, h4, p { margin: 0 }
h1, h2, h3 { font-family: var(--f); font-weight: 500; text-wrap: balance }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -.035em }
h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.02em }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
.sec { padding-block: clamp(44px, 6vw, 72px) }
.stack { display: flex; flex-direction: column; gap: 20px }
.stack-s { display: flex; flex-direction: column; gap: 12px }
.muted, .note { color: var(--fumo) }
.note { font-size: 13px }
.lead { font-size: 15px; line-height: 1.55; max-width: 50ch; color: var(--fumo) }
.mono { font-family: var(--fm); font-variant-numeric: tabular-nums }
.label, .eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.3 var(--fm); color: var(--fumo); letter-spacing: .01em; text-transform: none; margin: 0 }
.spec { display: inline-flex; flex-direction: column; gap: 2px; width: 22px; flex: none }
.spec i { height: 2px; display: block } .spec i:nth-child(1) { background: #3fa9a2 } .spec i:nth-child(2) { background: #8fe0d2 } .spec i:nth-child(3) { background: #ffc6a3 } .spec i:nth-child(4) { background: #ef8a5f }
.glass { background: var(--vetro); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border: 1px solid var(--vetro-bordo); box-shadow: var(--vetro-ombra) }
.raised { background: var(--notte2); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea) }
.dark { background: var(--notte3) }
.skip { position: absolute; left: -9999px; top: 0; background: var(--perla); color: var(--notte); padding: 10px 14px; z-index: 100; border-radius: 999px }
.skip:focus { left: 12px; top: 12px }

/* bottoni a pillola */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 10px 16px; border-radius: 999px; font: 500 14px/1 var(--f); border: 1px solid transparent; cursor: pointer; white-space: nowrap; min-height: 40px; transition: transform .15s, background .15s }
.btn:hover { transform: translateY(-1px) }
.btn-laser, .btn-w { background: var(--perla); color: var(--notte) }
.btn-line, .btn-ghost, .btn-g { background: var(--vetro); border-color: var(--vetro-bordo); color: var(--perla); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2) }
.link-arrow { font-weight: 500; text-underline-offset: 4px; color: var(--acqua) }
.badge { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--vetro-bordo); font: 500 12px/1.3 var(--fm); color: var(--perla) }
.badge span { color: var(--fumo); font-weight: 400 }
.chip { font: 500 11px var(--fm); padding: 5px 10px; border-radius: 999px; color: #fff; background: rgba(11, 15, 16, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .18); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap }
.chip b { font-weight: 500; color: var(--acqua) }
.ph { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--notte2); border-radius: 12px; max-width: 100% }
.ph img { width: 100%; height: 100%; object-fit: cover }

/* testata: pillola di vetro che resta in alto */
.site-head { position: sticky; top: 0; z-index: 40; padding-top: 12px; margin-bottom: -72px; pointer-events: none }
.site-head > .wrap { pointer-events: auto }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 8px 8px 22px; border-radius: 999px }
.site-head .wordmark { height: 20px; width: auto }
.site-head nav.main { display: flex; gap: 20px; align-items: center; font-size: 13.5px }
.site-head nav.main a { text-decoration: none; color: rgba(238, 240, 236, .82) }
.site-head nav.main a:not(.btn):hover, .site-head nav.main a[aria-current="page"] { color: #fff }
.site-head nav.main a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--acqua) }
.site-head .btn { padding: 8px 14px; min-height: 36px; font-size: 13.5px }
.site-head nav.main a.btn-w, .site-head .btn-w { color: var(--notte) }
.head-actions { display: none; gap: 8px; align-items: center }
.menu-btn { background: transparent; border: 1px solid var(--vetro-bordo); border-radius: 999px; padding: 10px 16px; font: 500 14px/1 var(--f); color: var(--perla); cursor: pointer; min-height: 40px }
.mobile-nav { display: none }
@media (max-width: 900px) {
  .site-head nav.main { display: none }
  .head-actions { display: flex }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 10px 22px 18px; border-radius: 22px; background: rgba(11, 15, 16, .92); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid var(--vetro-bordo) }
  .mobile-nav a { padding: 14px 0; text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--linea); color: var(--perla) }
}
@media (max-width: 420px) { .site-head .bar { padding-left: 16px } .head-actions .btn-s { padding: 9px 12px; font-size: 13px } .site-head .wordmark { height: 19px } }
main { display: block }
main > :first-child:not(.hero) { padding-top: calc(clamp(28px, 4vw, 48px) + 72px) }

/* ------------------------------------------------ HERO: il campo di luce */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(640px, 92svh); display: flex; align-items: flex-end; padding-top: 90px }
.field { position: absolute; inset: -10%; z-index: -2; background: var(--notte); filter: blur(60px) saturate(1.1) }
.field i { position: absolute; border-radius: 50%; display: block }
.f1 { width: 70%; height: 60%; left: 18%; top: -38%; background: #9aa6a1; opacity: .7 }
.f2 { width: 55%; height: 70%; right: -12%; top: -20%; background: #b9683f }
.f3 { width: 75%; height: 95%; left: -25%; top: 20%; background: #0f4644 }
.f4 { width: 45%; height: 50%; right: 10%; top: 15%; background: #7a321a; opacity: .85 }
.f5 { width: 55%; height: 55%; right: -10%; bottom: -30%; background: #07090a }
@media (prefers-reduced-motion: no-preference) {
  .f2 { animation: d1 18s ease-in-out infinite alternate } .f3 { animation: d2 22s ease-in-out infinite alternate } .f4 { animation: d3 16s ease-in-out infinite alternate }
  @keyframes d1 { to { transform: translate(-8%, 10%) scale(1.1) } } @keyframes d2 { to { transform: translate(12%, -8%) scale(1.15) } } @keyframes d3 { to { transform: translate(-14%, 18%) scale(.9) } }
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 15, 16, 0) 55%, var(--notte) 100%) }
.grain { position: absolute; inset: 0; z-index: -1; opacity: .16; mix-blend-mode: overlay; pointer-events: none; width: 100%; height: 100% }
.hgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 36px; align-items: end; padding-block: 36px 48px; width: 100% }
@media (max-width: 900px) { .hgrid { grid-template-columns: minmax(0, 1fr); padding-block: 40px 50px } }
.hero h1 { font-weight: 500; font-size: clamp(32px, 4.2vw, 58px); line-height: 1; letter-spacing: -.04em; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .18); margin-top: 16px }
.hero .lead { font-size: 16px; color: rgba(255, 255, 255, .82); margin-top: 16px; max-width: 46ch }
.hero .ctas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px }
.hero .fine { margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .62) }
.scan { border-radius: 22px; padding: 10px; position: relative }
.scan .stage { position: relative; aspect-ratio: 3/2; border-radius: 14px; overflow: hidden; background: #1a1714 }
.scan .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.scan .stage .dopo { clip-path: inset(0 calc(100% - var(--x, 0%)) 0 0) }
.scan .stage .beam { position: absolute; top: 0; bottom: 0; left: var(--x, 0%); width: 2px; margin-left: -1px; background: linear-gradient(180deg, #3fa9a2, #8fe0d2, #ffc6a3, #ef8a5f); box-shadow: 0 0 18px 2px rgba(143, 224, 210, .55) }
.scan .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.scan .hud { position: absolute; left: 22px; right: 22px; top: 22px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; z-index: 2 }
.scan .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px 4px; flex-wrap: wrap }
.scan .foot span { font-size: 13px; color: rgba(255, 255, 255, .85) }
.meter { flex: 1; min-width: 120px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden }
.meter i { display: block; height: 100%; width: 0; background: var(--spettro) }

/* ------------------------------------------------ sezioni */
.sh, .sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 760px }
.sec-head { margin-bottom: 0 }
.sh h2, .sec-head h2 { max-width: 22ch }
.sh p, .sec-head p { color: var(--fumo); font-size: 15px; max-width: 62ch }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap }
.head-row > * { min-width: 0 }

/* il flusso: una linea entra, si divide in 4, si richiude nella foto */
.flow { position: relative }
.flow svg.lines { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; overflow: visible }
.lines path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round }
.lines .pulse { stroke-dasharray: 2 14; stroke-width: 3 }
@media (prefers-reduced-motion: no-preference) { .lines .pulse { animation: flow 1.6s linear infinite } @keyframes flow { to { stroke-dashoffset: -32 } } }
.nodes { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-top: 44px }
.nodes.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px }
.nodes.three .card { min-height: 0 }
.node { display: flex; flex-direction: column; gap: 14px; align-items: center; min-width: 0 }
.pill.glass { background: rgba(11, 15, 16, .78) }
.pill { font: 500 12px var(--fm); padding: 7px 12px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; position: relative; z-index: 2; color: var(--perla) }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--perla)); box-shadow: 0 0 10px var(--c, var(--perla)) }
.card { width: 100%; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 220px; margin-top: 18px }
.card h4 { font-weight: 500; font-size: 15px; letter-spacing: -.02em }
.card .d { color: var(--fumo); font-size: 12.5px }
.card .vis { margin-top: auto; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 4/3; background: rgba(0, 0, 0, .25) }
.vis img, .vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
.v-rec img { filter: brightness(.55) saturate(.6) sepia(.25); transform: rotate(-3deg) scale(1.14) }
.v-rec .chip { position: absolute; left: 8px; top: 8px } .v-rec .chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d }
.v-light img { filter: brightness(.8) }
.v-light .ls { position: absolute; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 0 24px var(--pesca) }
.v-light .tag { position: absolute; font: 500 10px var(--fm); color: #fff; background: rgba(11, 15, 16, .6); padding: 2px 6px; border-radius: 6px }
.v-level img { transform: rotate(-2.4deg) scale(1.1); transition: transform 1.2s cubic-bezier(.6, 0, .2, 1) } .v-level.ok img { transform: none }
.v-level .lvl { position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: var(--pesca); box-shadow: 0 0 12px var(--pesca); transform: rotate(-2.4deg); transition: all 1.2s cubic-bezier(.6, 0, .2, 1) }
.v-level.ok .lvl { transform: none; background: var(--acqua); box-shadow: 0 0 12px var(--acqua) }
.v-level .deg { position: absolute; right: 8px; bottom: 8px }
.card.final { background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)); border-color: rgba(255, 255, 255, .28) }
.final .vis { aspect-ratio: 3/2 } .final .lbl { font-size: 11px; color: var(--fumo) } .final .lbl a { color: var(--perla); text-underline-offset: 2px }
@media (max-width: 960px) {
  .flow svg.lines { display: none }
  .nodes { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 28px; gap: 26px }
  .nodes::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #3fa9a2 0 25%, #8fe0d2 25% 50%, #ffc6a3 50% 75%, #ef8a5f 75%); border-radius: 4px; opacity: .9 }
  .node { align-items: flex-start } .card { margin-top: 0; min-height: 0 }
}

/* il motore che lavora: replay di una stanza vera */
.engine-sec { position: relative; overflow: hidden }
.glowbg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none }
.glowbg i { position: absolute; width: 60%; height: 70%; left: 20%; top: 20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(42, 125, 120, .5), transparent); filter: blur(30px) }
.glowbg i + i { left: auto; right: -10%; top: 40%; background: radial-gradient(closest-side, rgba(207, 106, 67, .38), transparent) }
.bench { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px }
.bench2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px }
@media (max-width: 980px) { .bench, .bench2 { grid-template-columns: minmax(0, 1fr) } }
.insp, .layers, .log { border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0 }
.lh { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap } .lh b { font-weight: 500 }
.think { color: var(--fumo) }
.think::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acqua); margin-left: 8px; vertical-align: middle; animation: bl 1s steps(2) infinite } @keyframes bl { 50% { opacity: .2 } }
.fwrap { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3/2; background: #1a1714 }
.fwrap img, .fwrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
.fwrap img { transition: filter .3s, transform .3s }
.stamp { position: absolute; right: 14px; top: 14px; font: 600 13px var(--fm); letter-spacing: .08em; padding: 6px 12px; border-radius: 8px; border: 2px solid currentColor; color: var(--acqua); background: rgba(11, 15, 16, .55); backdrop-filter: blur(6px); transform: rotate(-4deg) }
.stamp.no { color: var(--allarme) }
.why { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; border-radius: 8px; background: rgba(11, 15, 16, .62); backdrop-filter: blur(6px); color: #fff; font: 400 12px var(--fm) }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px } @media (max-width: 560px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.metrics div { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--fumo) }
.metrics i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; display: block }
.metrics b { display: block; height: 100%; width: 50%; background: var(--spettro); transition: width .4s }
.strip { display: flex; gap: 6px; overflow: hidden; justify-content: flex-end; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%); mask-image: linear-gradient(90deg, transparent, #000 12%) }
.strip .th { flex: none; width: 66px; position: relative; animation: inl .4s both }
.strip .th img { width: 66px; height: 44px; border-radius: 6px; object-fit: cover; display: block }
.strip .th i { position: absolute; right: 3px; top: 3px; font: 600 10px var(--fm); width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-style: normal }
.strip .th.ok i { background: var(--acqua); color: #05201e } .strip .th.no i { background: var(--allarme); color: #2a0905 } .strip .th.no img { opacity: .45 }
@keyframes inl { from { opacity: 0; transform: translateY(8px) } }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start }
@media (max-width: 340px) { .team { grid-template-columns: minmax(0, 1fr) } } @media (max-width: 560px) { .ag { min-height: 0; padding: 12px } .ag .tx { font-size: 12px } }
.ag { border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-height: 104px; min-width: 0; transition: border-color .3s }
.ag .hd { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px }
.ag .hd i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c) }
.ag .hd small { margin-left: auto; font: 500 10px var(--fm); color: var(--fumo) }
.ag .tx { font-size: 12.5px; color: var(--fumo); line-height: 1.35; min-height: 2.7em } .ag .tx em { font-style: normal; color: var(--perla) }
.ag .pb { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: auto } .ag .pb b { display: block; height: 100%; width: 0; background: var(--c); transition: width .6s }
.ag.busy { border-color: rgba(255, 255, 255, .3) }
.stack3 { position: relative; height: 300px; perspective: 1400px }
.ly { position: absolute; left: 12%; right: 12%; top: 50%; aspect-ratio: 3/2; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 20px 40px -10px rgba(0, 0, 0, .6); transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .8s }
.ly img, .ly canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.ly::after { content: attr(data-n); position: absolute; left: 8px; top: 8px; font: 500 10px var(--fm); color: #fff; background: rgba(11, 15, 16, .6); padding: 2px 6px; border-radius: 6px }
.steps { list-style: none; margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 10px; position: relative; flex: 1; justify-content: flex-end; overflow: hidden; min-height: 300px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%) }
.steps::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 6px; width: 1px; background: rgba(255, 255, 255, .28) }
.steps li { position: relative; font-size: 13px; line-height: 1.4; animation: inl .45s cubic-bezier(.2, .8, .2, 1) both }
.steps li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--notte2); border: 1.5px solid var(--c, var(--perla)) }
.steps li.x { color: var(--fumo2) } .steps li.x::before { border-style: dashed }
.steps li.ok { font-weight: 500 } .steps li.ok::before { background: var(--acqua); border-color: var(--acqua); box-shadow: 0 0 10px var(--acqua) }
.steps li .who { font: 500 10px var(--fm); padding: 2px 7px; border-radius: 999px; margin-right: 8px; background: var(--cb, rgba(255,255,255,.12)); color: var(--c); vertical-align: 1px }
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px }
@media (max-width: 900px) { .stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.stat { border-radius: 18px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; min-height: 110px }
.stat .n { font-weight: 400; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums }
.stat .n small { font-size: .4em; letter-spacing: -.01em; color: var(--fumo); margin-left: 6px }
.stat .l { color: var(--fumo); font-size: 13px }
.src { color: var(--fumo2); font-size: 12px; margin-top: 14px }

/* prima/dopo */
.cmp { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--notte2); user-select: none; touch-action: pan-y; max-width: 100%; border-radius: 18px }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.cmp .before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0) }
.cmp .bar { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: linear-gradient(180deg, #3fa9a2, #8fe0d2, #ffc6a3, #ef8a5f); box-shadow: 0 0 16px rgba(143, 224, 210, .5); pointer-events: none }
.cmp .knob { position: absolute; top: 50%; left: var(--pos, 50%); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 8px 30px rgba(0, 0, 0, .35) }
.cmp .knob::before, .cmp .knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; margin-top: -6px }
.cmp .knob::before { left: 7px; border-right-color: #fff } .cmp .knob::after { right: 7px; border-left-color: #fff }
.cmp .tag { position: absolute; top: 14px; pointer-events: none; font: 500 11px var(--fm); padding: 6px 10px; border-radius: 999px; color: #fff; background: rgba(11, 15, 16, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .18) }
.cmp .tag.l { left: 14px } .cmp .tag.r { right: 14px }
.cmp input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize }
.cmp:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px }
.cmp-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 6px }
.pick { display: flex; gap: 8px; flex-wrap: wrap }
.pick button { font: 500 13px/1 var(--f); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--vetro-bordo); background: rgba(255, 255, 255, .05); color: var(--perla); cursor: pointer; min-height: 40px }
.pick button[aria-pressed="true"] { background: var(--perla); color: var(--notte); border-color: var(--perla) }
@media (max-width: 560px) { .cmp .tag { font-size: 10px; padding: 5px 8px } .cmp .tag.r { top: auto; bottom: 12px } .scan .hud { left: 18px; right: 18px; top: 18px; flex-direction: column; align-items: flex-start; gap: 6px } .scan .hud .chip:last-child { align-self: flex-end } }

/* card e griglie generiche */
.steps3, .cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px }
.steps3 > div, .cards3 > div { border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, .045); border: 1px solid var(--linea) }
.steps3 .n { font: 500 12px/1 var(--fm); color: var(--acqua) }
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start }
@media (max-width: 800px) { .problem { grid-template-columns: minmax(0, 1fr) } }
.problem h2 { font-size: clamp(24px, 2.8vw, 34px) }
.problem p { font-size: 15px; line-height: 1.55; color: var(--fumo); max-width: 52ch }
.trasp { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch }
.trasp > div { min-width: 0 }
.annuncio { flex: 1 1 360px; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 16px; background: var(--vetro); border: 1px solid var(--vetro-bordo); box-shadow: var(--vetro-ombra) }
.page-head { padding-block: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px); display: flex; flex-direction: column; gap: 18px; position: relative }
.page-head::before { content: ""; position: absolute; left: 0; right: 0; top: -160px; height: 420px; z-index: -1; background: radial-gradient(50% 60% at 30% 40%, rgba(15, 70, 68, .55), transparent), radial-gradient(40% 50% at 80% 30%, rgba(185, 104, 63, .35), transparent); filter: blur(30px); pointer-events: none }
.page-head > * { max-width: 860px }
.page-head h1 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -.04em }
.page-head p { font-size: 15px; line-height: 1.5; color: var(--fumo); max-width: 56ch }
.banner { border: 1px solid var(--vetro-bordo); background: var(--vetro); padding: 12px 18px; font-size: 14px; border-radius: 18px }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px }
.thumbs button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 8px }
.thumbs button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 12px }
.thumbs span { font: 400 12px/1.3 var(--fm); color: var(--fumo) }
dialog.lb { border: 1px solid var(--vetro-bordo); padding: 0; background: var(--notte2); color: var(--perla); max-width: min(1200px, 96vw); width: 100%; border-radius: 22px; overflow: hidden }
dialog.lb::backdrop { background: rgba(5, 7, 8, .82); backdrop-filter: blur(6px) }
dialog.lb .bar2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap }
dialog.lb .bar2 button { background: rgba(255, 255, 255, .07); color: var(--perla); border: 1px solid var(--vetro-bordo); border-radius: 999px; padding: 10px 14px; font: 500 13px/1 var(--f); cursor: pointer; min-height: 40px }
dialog.lb img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #050708 }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr } }
.pair figure { margin: 0 }
.pair figcaption, .hero-pics figcaption { font: 400 12px/1.3 var(--fm); color: var(--fumo); padding-top: 8px }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 0 }
.facts > div { padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid var(--linea) }
.facts dt { font: 500 12px/1.3 var(--fm); color: var(--fumo) }
.facts dd { margin: 6px 0 0 }

/* prezzi */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; align-items: stretch }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr) } }
.plan { border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: rgba(255, 255, 255, .045); border: 1px solid var(--linea) }
.plan.main { background: var(--vetro); border-color: rgba(255, 255, 255, .3); box-shadow: var(--vetro-ombra); position: relative }
.plan.main::before { content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 2px; background: var(--spettro); border-radius: 2px }
.plan .price { font: 400 30px/1 var(--fm); letter-spacing: -.04em; border: 0; background: none; padding: 0; border-radius: 0 }
.plan .price small { display: block; margin-top: 10px; font: 400 14px/1.3 var(--f); letter-spacing: 0; color: var(--fumo); white-space: normal }
.plan ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; color: var(--fumo) }
.plan .btn { margin-top: auto; align-self: stretch }
.plan.ent { position: relative; overflow: hidden; isolation: isolate; border-color: rgba(255, 255, 255, .22) }
.plan.ent::after { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(40% 40% at 80% 10%, rgba(185, 104, 63, .55), transparent), radial-gradient(50% 50% at 10% 90%, rgba(15, 70, 68, .7), transparent); filter: blur(20px) }
.plan.ent .price { font-size: 26px; white-space: nowrap }
.plan.ent li { color: rgba(238, 240, 236, .85) }
.packs { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--linea); padding-top: 12px; font-size: 15px }
.packs div { display: flex; justify-content: space-between; gap: 12px }
.packs b { font-family: var(--fm); font-weight: 500 }
.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px }
.explain p { border-radius: 18px; padding: 16px 18px; background: rgba(255, 255, 255, .045); border: 1px solid var(--linea); position: relative; overflow: hidden }
.explain p::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #3fa9a2, #8fe0d2, #ffc6a3, #ef8a5f) }

/* faq */
.faq { display: flex; flex-wrap: wrap; gap: 48px }
.faq h2 { flex: 1 1 320px }
.faq .list { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--linea2) }
details { border-bottom: 1px solid var(--linea) }
summary { list-style: none; cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; font: 500 15.5px/1.35 var(--f); letter-spacing: -.015em }
summary::-webkit-details-marker { display: none }
summary .plus { font: 300 24px/1 var(--f); transition: transform .2s; color: var(--acqua) }
details[open] .plus { transform: rotate(45deg) }
details p { margin: 0 0 14px; color: var(--fumo); line-height: 1.6; max-width: 62ch; font-size: 14.5px }

/* chiusura: il campo di luce torna, con il modulo in vetro */
#prova { position: relative; overflow: hidden; isolation: isolate; background: var(--notte) }
#prova .field { inset: -20%; opacity: .9 }
.cta { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; padding-block: clamp(48px, 7vw, 88px) }
.cta > * { min-width: 0 }
.cta h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1; letter-spacing: -.04em; color: #fff }
.cta form, .cta #waitlist-box { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: var(--vetro); border: 1px solid var(--vetro-bordo); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: var(--vetro-ombra) }
.cta .row, .inv-row { display: flex; gap: 8px; flex-wrap: wrap }
.cta input, .inv-row input { flex: 1 1 220px; min-width: 0; padding: 10px 16px; font-size: 15px; border: 1px solid var(--vetro-bordo); border-radius: 999px; background: rgba(11, 15, 16, .45); color: #fff; font: 400 16px var(--f) }
.inv-row input { font: 500 16px var(--fm); letter-spacing: .12em; text-transform: uppercase }
.cta input::placeholder { color: rgba(255, 255, 255, .45) }
.cta .msg { font-size: 14px; min-height: 1.5em; color: rgba(255, 255, 255, .8) }
.cta .msg.ok { color: var(--livella) } .cta .msg.err { color: var(--allarme) }
.cta .hint { font-size: 13px; color: rgba(255, 255, 255, .7) }
.cta .links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px }
/* app sugli store (9/11/2026): pulsanti di testo, stesso vetro dei bottoni del form */
.store-row { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--vetro-bordo); display: flex; flex-direction: column; gap: 10px }
.store-row p { font-size: 14px; color: rgba(255, 255, 255, .78) }
.store-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center }
.store-badge { display: inline-flex; line-height: 0; border-radius: 7px; transition: transform .15s } .store-badge:hover { transform: translateY(-1px) }
.store-badge img { display: block; height: 40px; width: auto } .store-badge img[src$=".png"] { height: 52px }
.foot-badges { margin-top: 6px } .foot-badges .store-badge img { height: 36px } .foot-badges .store-badge img[src$=".png"] { height: 47px }   /* il PNG di Google ha il margine trasparente: badge visibile alto 40px come quello Apple */
.cta input[aria-invalid="true"] { border-color: var(--allarme) }

/* testi legali */
.legal-doc { max-width: 1240px; padding-bottom: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; gap: 12px; line-height: 1.65; font-size: 14.5px }
.legal-doc h2 { font-size: 20px; letter-spacing: -.02em; margin-top: 24px }
.legal-doc p, .legal-doc li { color: rgba(238, 240, 236, .86); max-width: 70ch }
.legal-doc a { color: var(--acqua) }
.legal-doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 14px }
.legal-doc td, .legal-doc th { padding: 10px 12px 10px 0; vertical-align: top; text-align: left; border-top: 1px solid var(--linea) }
.legal-doc th { font: 500 12px var(--fm); color: var(--fumo) }
.legal-meta { font: 400 13px/1.4 var(--fm); color: var(--fumo) }
.tblwrap { overflow-x: auto }

/* piede */
footer { background: var(--notte3); color: var(--fumo); border-top: 1px solid var(--linea); position: relative }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--spettro); opacity: .7 }
footer .wrap { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 40px }
footer .cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 14px }
footer .cols div { display: flex; flex-direction: column; gap: 10px }
footer .cols a { color: var(--fumo); text-decoration: none }
footer .cols a:hover { color: var(--perla) }
footer .cols .label { color: var(--perla) }
footer .legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--linea); padding-top: 20px; font: 400 12px/1.4 var(--fm) }
footer .about { font-size: 14px; max-width: 34ch; line-height: 1.5 }
footer .company { font: 400 12px/1.5 var(--fm) }

/* prima/dopo: compatto, in vetro, stanze come miniature */
.cmpwrap { max-width: 920px; margin: 0 auto; border-radius: 22px; padding: 10px; width: 100% }
.cmpwrap .cmp { border-radius: 14px }
.cmpwrap .cmp-meta { padding: 12px 6px 4px; gap: 12px }
.thumbs-pick { gap: 8px; align-items: flex-start }
.thumbs-pick button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 5px; width: 92px; height: auto; border-radius: 10px; padding: 3px; border: 1px solid transparent; opacity: .72; transition: opacity .2s, transform .2s }
.thumbs-pick button:hover { opacity: 1; transform: translateY(-1px) }
.thumbs-pick button img { width: 84px; height: 56px; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; display: block; flex: none }
.thumbs-pick button span { font: 500 11px/1.2 var(--fm); color: var(--fumo); padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.thumbs-pick button[aria-pressed="true"] { opacity: 1; border-color: transparent; background: linear-gradient(var(--notte2), var(--notte2)) padding-box, var(--spettro) border-box; border: 1px solid transparent }
.thumbs-pick button[aria-pressed="true"] span { color: var(--perla) }
.thumbs-pick button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px }
@media (max-width: 560px) { .thumbs-pick button { width: 72px } .thumbs-pick button img { width: 64px; height: 43px } .cmpwrap .cmp-meta .link-arrow { font-size: 13px } }
#livello .head-row { max-width: 920px; margin: 0 auto; width: 100% }
#livello .stack > div:last-child { text-align: center }

/* prova visiva: una schermata, stanze a sinistra, slider a destra */
.prova { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 32px; align-items: center }
.prova-side { display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.prova-side h2 { font-size: clamp(24px, 2.4vw, 32px) }
.prova-side .lead { font-size: 14px }
.rooms { display: flex; flex-direction: column; gap: 6px; margin-top: 4px }
.rooms button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 12px; border: 1px solid transparent; color: var(--perla); transition: background .15s }
.rooms button:hover { background: rgba(255, 255, 255, .05) }
.rooms button img { width: 76px; height: 50px; object-fit: cover; border-radius: 8px; flex: none; opacity: .8 }
.rooms button span { display: flex; flex-direction: column; gap: 1px; min-width: 0 }
.rooms button b { font-weight: 500; font-size: 14px }
.rooms button small { font: 400 11px var(--fm); color: var(--fumo) }
.rooms button[aria-pressed="true"] { background: rgba(255, 255, 255, .07); border-color: var(--vetro-bordo) }
.rooms button[aria-pressed="true"] img { opacity: 1; outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--notte2), 0 0 0 3px var(--acqua) }
.rooms button:focus-visible { outline: 2px solid var(--focus) }
.prova-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 14px }
.prova .cmp { border-radius: 16px; border: 1px solid var(--vetro-bordo); box-shadow: var(--vetro-ombra) }
@media (max-width: 900px) { .prova { grid-template-columns: minmax(0, 1fr) } .prova .cmp { order: -1 } .rooms { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px } .rooms button { flex: none; flex-direction: column; align-items: flex-start; gap: 6px; width: 110px } .rooms button img { width: 96px; height: 64px } }

/* la console: un solo sistema */
.console { max-width: 1100px; margin: 0 auto; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035)) }
.c-top { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--linea); font-size: 13px }
.c-dots { display: inline-flex; gap: 5px } .c-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18) }
.c-dots i:first-child { background: var(--rame) } .c-dots i:nth-child(2) { background: var(--pesca) } .c-dots i:last-child { background: var(--acqua) }
.c-title { color: var(--fumo) } .c-title b { color: var(--perla); font-weight: 500 }
.c-state { margin-left: auto; font-size: 12px }
.c-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); gap: 0 }
.c-frame { padding: 12px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--linea); min-width: 0 }
.c-fhead { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; flex-wrap: wrap } .c-fhead b { font-weight: 500 }
.c-frame .fwrap { aspect-ratio: 3/2; border-radius: 12px; max-height: 300px }
.c-phases { display: flex; flex-direction: column; min-width: 0 }
.c-phases .ag { border: 0; border-bottom: 1px solid var(--linea); border-radius: 0; padding: 7px 14px; min-height: 0; gap: 3px; background: transparent; box-shadow: none; backdrop-filter: none }
.c-phases .ag:last-child { border-bottom: 0 }
.c-phases .ag .hd { font-size: 13px } .c-phases .ag .hd small { font-size: 10px }
.c-phases .ag .tx { font-size: 12px; min-height: 1.35em }
.c-phases .ag .pb { margin-top: 4px; height: 2px }
.c-phases .ag.busy { background: rgba(255,255,255,.05) }
.c-log { border-top: 1px solid var(--linea); padding: 10px 14px 6px; display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: start }
.c-lhead { display: flex; flex-direction: column; gap: 4px; font-size: 13px; padding-top: 2px } .c-lhead b { font-weight: 500 }
.c-log .steps { min-height: 0; height: 112px; gap: 6px; padding-left: 18px; justify-content: flex-end; -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%) }
.c-log .steps li { font-size: 12.5px; line-height: 1.35 } .c-log .steps li::before { top: 4px; width: 7px; height: 7px; left: -18px }
.c-foot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--linea); background: rgba(0,0,0,.18) }
.c-foot > div { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--linea) } .c-foot > div:last-child { border-right: 0 }
.c-foot .l { font-size: 11px; color: var(--fumo) } .c-foot .n { font-size: 22px; font-weight: 400; letter-spacing: -.04em; line-height: 1.1 }
@media (max-width: 900px) { .c-body { grid-template-columns: minmax(0, 1fr) } .c-frame { border-right: 0; border-bottom: 1px solid var(--linea) } .c-log { grid-template-columns: 1fr } .c-foot { grid-template-columns: repeat(2, minmax(0, 1fr)) } .c-foot > div:nth-child(2) { border-right: 0 } .c-foot > div:nth-child(-n+2) { border-bottom: 1px solid var(--linea) } }

.c-frame .strip .th { width: 54px } .c-frame .strip .th img { width: 54px; height: 36px }
.c-frame .metrics { gap: 8px } .c-frame .metrics div { font-size: 11px }
/* motore: una schermata — testo e numeri a sinistra, console a destra */
.engine-sec { padding-block: clamp(36px, 4.5vw, 56px) }
.eng { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: center }
.eng-side { display: flex; flex-direction: column; gap: 12px }
.eng-side h2 { max-width: 14ch }
.eng-side > p { color: var(--fumo); font-size: 14.5px }
.eng-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.18); margin-top: 4px }
.eng-stats > div { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea) }
.eng-stats > div:nth-child(2n) { border-right: 0 } .eng-stats > div:nth-child(n+3) { border-bottom: 0 }
.eng-stats .l { font-size: 11px; color: var(--fumo) } .eng-stats .n { font-size: 20px; font-weight: 400; letter-spacing: -.04em; line-height: 1.1 }
.eng-side .src { font-size: 11.5px; color: var(--fumo); line-height: 1.5; margin: 0; max-width: none }
.eng .console { max-width: none; margin: 0 }
.eng .c-body { grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr) }
.eng .c-frame .fwrap { max-height: 250px }
.eng .c-phases .ag { padding: 6px 12px }
.eng .c-log { grid-template-columns: 110px 1fr; padding: 8px 14px 4px }
.eng .c-log .steps { height: 78px }
@media (max-width: 1000px) { .eng { grid-template-columns: minmax(0, 1fr) } .eng-side h2 { max-width: 22ch } }
/* prezzi: piani mensili in primo piano, pacchetti secondari */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch }
.tier { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--linea); border-radius: 18px; background: rgba(255,255,255,.035) }
.tier.hi { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)); border-color: rgba(255,255,255,.22) }
.tier.hi::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px; background: var(--spettro) }
.t-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px } .t-h .label { margin: 0 }
.t-who { flex-basis: 100%; color: var(--fumo); font-size: 14px; margin: 0 }
.t-tag { font: 500 11px/1 var(--fm); padding: 5px 8px; border-radius: 999px; background: rgba(143,224,210,.14); color: var(--acqua) }
.t-price { display: flex; align-items: baseline; gap: 8px; margin: 0 } .t-price b { font-weight: 500; font-size: 36px; letter-spacing: -.04em; line-height: 1 } .t-price span { color: var(--fumo); font-size: 13px }
.t-cr { margin: 0; font-size: 13.5px; color: var(--fumo); padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.2) } .t-cr b { color: var(--perla); font-weight: 500 }
.tier .btn { width: 100%; justify-content: center }
.t-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px }
.t-list li { position: relative; padding-left: 20px } .t-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 8px; height: 5px; border-left: 1.5px solid var(--acqua); border-bottom: 1.5px solid var(--acqua); transform: rotate(-45deg) }
.t-unit { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--linea); font-size: 12px; color: var(--fumo) }
.packs2 { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 20px; align-items: center; padding: 18px 22px; border: 1px solid var(--linea); border-radius: 18px }
.p2-h { display: flex; flex-direction: column; gap: 4px } .p2-h .label { margin: 0 } .p2-h h2 { font-size: 20px } .p2-h p { font-size: 13.5px; margin: 0 }
.p2-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.p2-list > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--linea) }
.p2-list span { font-size: 13.5px } .p2-list b { font-weight: 500; font-size: 17px; text-align: right } .p2-list small { grid-column: 1 / -1; font-size: 11px; color: var(--fumo) }
@media (max-width: 900px) { .tiers { grid-template-columns: minmax(0, 1fr) } .packs2 { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 520px) { .p2-list { grid-template-columns: minmax(0, 1fr) } }
.t-tag { margin-block: -4px }

/* articoli per agenti: tabella di confronto (2/11/2026) */
.guide-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5 }
.guide-table th, .guide-table td { padding: 12px 16px 12px 0; vertical-align: top; text-align: left; border-top: 1px solid var(--linea) }
.guide-table thead th { font: 500 12px var(--fm); color: var(--fumo); text-transform: uppercase; letter-spacing: .04em; border-top: 0 }
.guide-table tbody th { font-weight: 600; white-space: nowrap; color: var(--perla) }
.guide-table td { color: rgba(238, 240, 236, .86) }

/* home: i tre passaggi già nel primo schermo (2/11/2026) */
.hero .how { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px }
.hero .how li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 999px; font: 500 13px/1.2 var(--f); color: rgba(255,255,255,.9); background: rgba(11,15,16,.45); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px) }
.hero .how b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--fm); color: #05201e; background: var(--spettro) }
.problem p strong { color: var(--perla); font-weight: 600 }
.hero h1 .kick { display: block; font-size: clamp(16px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; color: var(--pesca); margin-bottom: 14px; text-shadow: none }

/* hero: il nastro del video e l'album che si riempie (2/11/2026) */
.reel { border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 10px; position: relative }
.reel-top { display: flex; justify-content: space-between; gap: 8px }
.chip.rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 8px #ff4d4d; animation: rec 1.1s ease-in-out infinite }
.chip.rec b { font-weight: 500; color: #fff; margin-left: 2px }
.strip { position: relative; height: 104px; border-radius: 12px; overflow: hidden; background: #0a0d0e; border-top: 6px solid #14181a; border-bottom: 6px solid #14181a; background-image: radial-gradient(circle, rgba(255,255,255,.22) 1.6px, transparent 2px), radial-gradient(circle, rgba(255,255,255,.22) 1.6px, transparent 2px); background-size: 14px 6px; background-position: 0 -6px, 0 calc(100% + 6px); background-repeat: repeat-x }
.track { position: absolute; left: 0; top: 0; height: 100%; display: flex; gap: 5px; padding: 6px 0; will-change: transform }
.fr { flex: none; height: 100%; aspect-ratio: 3/2; border-radius: 5px; overflow: hidden; position: relative; filter: brightness(.85) saturate(.85); transition: filter .25s, box-shadow .25s }
.fr img { width: 100%; height: 100%; object-fit: cover; display: block }
.fr.hot { filter: none; box-shadow: 0 0 0 2px var(--pesca), 0 0 22px rgba(255,198,163,.6) }
.head { position: absolute; top: -6px; bottom: -6px; left: 38%; width: 2px; margin-left: -1px; background: linear-gradient(180deg, #3fa9a2, #8fe0d2, #ffc6a3, #ef8a5f); box-shadow: 0 0 14px 2px rgba(143,224,210,.55); pointer-events: none }
.head::before, .head::after { content: ""; position: absolute; left: 50%; margin-left: -5px; border: 5px solid transparent }
.head::before { top: 0; border-top: 6px solid var(--pesca) } .head::after { bottom: 0; border-bottom: 6px solid var(--pesca) }
.tray { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.slot { position: relative; aspect-ratio: 3/2; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.18) }
.slot img, .slot span { opacity: 0; transition: opacity .5s } .slot img { width: 100%; height: 100%; object-fit: cover; display: block }
.slot span { position: absolute; left: 7px; bottom: 7px; font: 500 10px var(--fm); color: #fff; background: rgba(11,15,16,.6); padding: 3px 7px; border-radius: 999px }
.slot.on { border-style: solid; border-color: rgba(255,255,255,.3) } .slot.on img, .slot.on span { opacity: 1 }
.slot.on::after { content: ""; position: absolute; right: 7px; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--acqua); box-shadow: 0 0 10px var(--acqua); animation: pop .5s cubic-bezier(.2,.8,.2,1) both }
@keyframes pop { from { transform: scale(0) } }
.fly { position: fixed; z-index: 50; border-radius: 8px; overflow: hidden; pointer-events: none; box-shadow: 0 20px 50px -10px rgba(0,0,0,.7) }
.fly img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover } .fly .b { opacity: 0 }
.reel .foot { display: flex; justify-content: space-between; gap: 12px; padding: 2px 4px 0; font-size: 13px; color: rgba(255,255,255,.85); flex-wrap: wrap }
@media (max-width: 560px) { .strip { height: 84px } .tray { gap: 6px } .slot span { font-size: 9px } }
/* Laboratorio e app (9/11/2026) */
.lab-cmp .cmp-cap { margin: 10px 4px 0; font-size: 12px; color: var(--fumo) }
.lab-pick { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px }
.lab-pick button { width: auto } .lab-pick button img { width: 100%; height: auto; aspect-ratio: 16/9 }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; max-width: 980px }
.shots figure { margin: 0 } .shots img { width: 100%; height: auto; display: block; border-radius: 22px; box-shadow: var(--vetro-ombra) }
.shots figcaption { margin-top: 10px; font-size: 13px; color: var(--fumo) }
@media (max-width: 860px) { .lab-pick { grid-template-columns: repeat(3, minmax(0, 1fr)) } .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px } .shots figure { scroll-snap-align: start } }
/* lingua (9/11/2026) */
.lang-sw { font: 500 12px var(--fm); letter-spacing: .06em; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--vetro-bordo); text-decoration: none; color: inherit }
.mobile-nav .lang-sw { align-self: flex-start }
.lang-tip { position: fixed; left: 16px; right: 16px; top: 84px; z-index: 60; max-width: 520px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 44px 12px 16px; border-radius: 14px; background: var(--notte2); color: var(--perla); border: 1px solid var(--vetro-bordo); box-shadow: var(--vetro-ombra); font-size: 14px }
.lang-tip a { color: var(--acqua); font-weight: 600 } .lang-tip button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 18px; cursor: pointer }

/* integrazioni (18/11): request form; only theme tokens, so it reads in the dark and the light theme */
.int-ask { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start }
.int-form { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: var(--vetro); border: 1px solid var(--linea) }
.int-form fieldset { border: 0; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px }
.int-form fieldset legend { margin-bottom: 6px }
.int-form fieldset label { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer }
.int-form .label { color: var(--fumo); margin-top: 6px }
.int-form input:not([type=radio]), .int-form textarea { width: 100%; box-sizing: border-box; padding: 10px 14px; border: 1px solid var(--linea); border-radius: 12px; background: transparent; color: inherit; font: 400 16px var(--f) }
.int-form input:focus-visible, .int-form textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px }
.int-form textarea { resize: vertical }
.int-form .btn { align-self: flex-start; margin-top: 10px }
.int-form .msg { font-size: 14px; min-height: 1.5em; color: var(--fumo); margin: 0 } .int-form .msg.ok { color: var(--livella) } .int-form .msg.err { color: var(--allarme) }
.int-form .fine { font-size: 13px; color: var(--fumo); margin: 0 } .int-form .fine a { color: inherit }

/* ------------------------------------------------ tema chiaro (2/11/2026)
   Si attiva con <html data-theme="light">: lo imposta lo script in <head> (preferenza salvata, altrimenti quella del sistema).
   Le fasce "fotografiche" (hero della home, chiusura #prova, console, lightbox) restano scure. */
:root[data-theme="light"] {
  color-scheme: light;
  --notte: #f6f5f1; --notte2: #ecebe6; --notte3: #e6e4de;
  --perla: #0f1415;
  --fumo: rgba(15, 20, 21, .68); --fumo2: rgba(15, 20, 21, .5);
  --linea: rgba(15, 20, 21, .1); --linea2: rgba(15, 20, 21, .2);
  --ottanio: #1f8a83; --acqua: #17756f; --pesca: #b8642f; --rame: #b54a20;
  --spettro: linear-gradient(90deg, #17756f, #1f8a83 38%, #c77a45 68%, #b54a20);
  --vetro: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .64));
  --vetro-bordo: rgba(15, 20, 21, .1);
  --vetro-ombra: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 50px -24px rgba(15, 20, 21, .22);
  --livella: #1e8a4c; --allarme: #c8402f; --focus: #2b62d9;
}
/* fasce che restano scure */
:root[data-theme="light"] :is(.hero, #prova, dialog.lb, .console) {
  color-scheme: dark;
  --notte: #0b0f10; --notte2: #121718; --notte3: #070a0b;
  --perla: #eef0ec;
  --fumo: rgba(238, 240, 236, .66); --fumo2: rgba(238, 240, 236, .44);
  --linea: rgba(255, 255, 255, .12); --linea2: rgba(255, 255, 255, .22);
  --ottanio: #3fa9a2; --acqua: #8fe0d2; --pesca: #ffc6a3; --rame: #ef8a5f;
  --spettro: linear-gradient(90deg, #3fa9a2, #8fe0d2 38%, #ffc6a3 68%, #ef8a5f);
  --vetro: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045));
  --vetro-bordo: rgba(255, 255, 255, .16);
  --vetro-ombra: inset 0 1px 0 rgba(255, 255, 255, .22), 0 20px 60px -20px rgba(0, 0, 0, .6);
  --livella: #5fcf8a; --allarme: #ff7a6b; --focus: #8ab4ff;
  color: var(--perla);
}
:root[data-theme="light"] .console { background: #121718 }

/* logo e testata */
:root[data-theme="light"] img.wordmark, :root[data-theme="light"] footer img[src$="wordmark-dark.svg"] { content: url(/img/wordmark.svg) }
:root[data-theme="light"] .site-head nav.main a { color: rgba(15, 20, 21, .78) }
:root[data-theme="light"] .site-head nav.main a:not(.btn):hover, :root[data-theme="light"] .site-head nav.main a[aria-current="page"] { color: #000 }
:root[data-theme="light"] .site-head nav.main a.btn-w { color: var(--notte) }
:root[data-theme="light"] .mobile-nav:not([hidden]) { background: rgba(246, 245, 241, .96) }

/* superfici che nel tema scuro sono bianco trasparente */
:root[data-theme="light"] .badge { background: rgba(15, 20, 21, .05) }
:root[data-theme="light"] .pill.glass { background: rgba(255, 255, 255, .92) }
:root[data-theme="light"] .card.final { background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .78)); border-color: var(--linea2) }
:root[data-theme="light"] .pick button { background: rgba(15, 20, 21, .04) }
:root[data-theme="light"] :is(.steps3 > div, .cards3 > div, .facts > div, .plan, .explain p, .tier, .p2-list > div) { background: rgba(255, 255, 255, .62) }
:root[data-theme="light"] :is(.plan.main, .plan.ent, .tier.hi) { border-color: var(--linea2) }
:root[data-theme="light"] .tier.hi { background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .7)) }
:root[data-theme="light"] .plan.ent::after { opacity: .3 }
:root[data-theme="light"] .plan.ent li { color: var(--perla) }
:root[data-theme="light"] :is(.t-cr, .eng-stats) { background: rgba(15, 20, 21, .04) }
:root[data-theme="light"] .rooms button:hover { background: rgba(15, 20, 21, .04) }
:root[data-theme="light"] .rooms button[aria-pressed="true"] { background: rgba(255, 255, 255, .8) }
:root[data-theme="light"] .page-head::before { opacity: .4 }
:root[data-theme="light"] .glowbg { opacity: .45 }
:root[data-theme="light"] :is(.legal-doc p, .legal-doc li, .guide-table td) { color: rgba(15, 20, 21, .86) }
:root[data-theme="light"] .g-flow { background: rgba(255, 255, 255, .6) }

/* illustrazioni SVG: i colori pensati per lo sfondo scuro diventano leggibili sul chiaro */
:root[data-theme="light"] :is(.lines, svg.flow, .ill, .phones, .tip-i, .alt) [stroke^="rgba(238"] { stroke: rgba(15, 20, 21, .45) }
:root[data-theme="light"] :is(.lines, svg.flow, .ill, .phones, .tip-i, .alt) [fill^="rgba(238"] { fill: rgba(15, 20, 21, .6) }
:root[data-theme="light"] :is(.lines, svg.flow, .ill, .phones, .tip-i, .alt) :is([stroke="#fff"], [stroke="#eef0ec"]) { stroke: #0f1415 }
:root[data-theme="light"] :is(.lines, svg.flow, .ill, .phones, .tip-i, .alt) [fill="#eef0ec"] { fill: #0f1415 }
:root[data-theme="light"] :is(.lines, svg.flow, .ill, .phones, .tip-i, .alt) [stroke="#8fe0d2"] { stroke: #1f8a83 }
:root[data-theme="light"] :is(.lines, svg.flow, .ill, .phones, .tip-i, .alt) [fill="#8fe0d2"] { fill: #17756f }
:root[data-theme="light"] :is(.lines, svg.flow, .ill, .phones, .tip-i, .alt) [stroke="#ffc6a3"] { stroke: #d08350 }
:root[data-theme="light"] :is(.lines, svg.flow, .ill, .phones, .tip-i, .alt) [fill="#ffc6a3"] { fill: #b8642f }
:root[data-theme="light"] :is(.lines, svg.flow, .ill, .phones, .tip-i, .alt) [stroke="#ef8a5f"] { stroke: #c4562a }
:root[data-theme="light"] :is(.lines, svg.flow, .ill, .phones, .tip-i, .alt) [fill="#ef8a5f"] { fill: #b54a20 }
:root[data-theme="light"] :is(.lines, svg.flow, .ill, .phones, .tip-i, .alt) [stroke^="rgba(143"] { stroke: rgba(23, 117, 111, .75) }
:root[data-theme="light"] :is(svg.flow, .ill) [stop-color="#8fe0d2"] { stop-color: #1f8a83 }
:root[data-theme="light"] :is(svg.flow, .ill) [stop-color="#ffc6a3"] { stop-color: #d08350 }

/* pulsante del tema */
.theme-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--vetro-bordo); background: transparent; color: var(--perla); cursor: pointer }
.theme-btn:hover { background: var(--linea) }
[data-theme-toggle] svg { width: 17px; height: 17px; flex: none }
.theme-row svg { width: 20px; height: 20px }
[data-theme-toggle] .i-moon, :root[data-theme="light"] [data-theme-toggle] .i-sun { display: none }
:root[data-theme="light"] [data-theme-toggle] .i-moon { display: block }
.theme-row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 0; font-size: 18px; color: var(--perla) }
.theme-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px }
