/* Portfolio di Leonardo: laboratorio bianco. Pannelli bianchi, inchiostro nero, un solo arancione segnale. */
:root {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --line: #e1e5ec;
  --line-2: #cdd3dd;
  --ink: #0b0d11;
  --ink-2: #4f5765;
  --ink-3: #5a6271;
  --orange: #ff5a1f;
  --orange-ink: #c53b0a;
  --green: #0a8a52;
  --green-ink: #07703f;
  --night: #070a10;
  --r-xl: 28px;
  --r-l: 20px;
  --r-m: 14px;
  --r-s: 10px;
  --display: "SF Pro Display", "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: "SF Pro Text", "Segoe UI Variable Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Cascadia Mono", Consolas, "Roboto Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 1px rgba(11, 13, 17, .04), 0 10px 30px -12px rgba(11, 13, 17, .16);
  --shadow-up: 0 1px 1px rgba(11, 13, 17, .05), 0 28px 60px -24px rgba(11, 13, 17, .3);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); scrollbar-color: #b9c0cc var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font: 400 1.0625rem/1.55 var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 13, 17, .1) 1px, transparent 1.4px) 0 0 / 24px 24px,
    var(--bg);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--orange); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 16px; }
.wrap { width: min(100% - 48px, 1280px); margin-inline: auto; }

/* la griglia più fine si accende intorno al puntatore */
.grid-light { /* un riquadro piccolo che segue il puntatore: si muove senza ridisegnare la pagina */
  position: fixed; left: 0; top: 0; width: 440px; height: 440px; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
  transform: translate(-600px, -600px); will-change: transform;
  background:
    linear-gradient(rgba(255, 90, 31, .22) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 90, 31, .22) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(circle 220px at center, #000, transparent 75%);
  mask-image: radial-gradient(circle 220px at center, #000, transparent 75%);
}
.has-pointer .grid-light { opacity: 1; }
main, .foot { position: relative; z-index: 1; }

/* ---------- bottoni ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .55em; isolation: isolate; overflow: hidden;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 1rem/1 var(--sans); letter-spacing: -.005em; text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s var(--ease), translate .4s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.btn-orange { background: var(--orange); color: var(--ink); box-shadow: 0 10px 22px -12px rgba(11, 13, 17, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-orange::before { /* un riflesso che attraversa il bottone */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn:hover { box-shadow: 0 16px 30px -14px rgba(11, 13, 17, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost:hover, .btn-ink:hover { box-shadow: inset 0 0 0 1px var(--ink), 0 12px 26px -14px rgba(11, 13, 17, .45); }
.btn:active { transform: scale(.97); }
.btn .ok { display: none; }
.btn.done .ok { display: block; }
.btn.done .cp { display: none; }

/* ---------- barra in alto ---------- */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; pointer-events: none; }
.nav {
  position: relative; pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 22px; overflow: hidden;
  width: min(100% - 32px, 980px); border-radius: 999px;
  background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px rgba(205, 211, 221, .8), 0 12px 32px -18px rgba(11, 13, 17, .35);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
}
.brand { display: block; width: 104px; color: var(--ink); margin-right: auto; padding: 6px 0; border-radius: 6px; }
.brand svg { display: block; width: 100%; height: auto; overflow: visible; }
.links { display: flex; list-style: none; gap: 2px; }
.links a { display: block; padding: 10px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 550; color: var(--ink-2); text-decoration: none; transition: color .25s var(--ease), background-color .25s var(--ease); }
.links a:hover { color: var(--ink); background: rgba(11, 13, 17, .05); }
.links a[aria-current] { color: var(--ink); background: rgba(11, 13, 17, .07); }
.nav-cta { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.nav-progress { position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); border-radius: 2px; }

/* ---------- prima schermata ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center;
  width: min(100% - 48px, 1360px); margin-inline: auto; min-height: 100svh; padding: 112px 0 0;
}
.hero-text { grid-column: 1 / span 5; position: relative; z-index: 2; padding-bottom: 6vh; }
.avail { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 0 6px; font-size: .8125rem; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.led { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); } /* arancione: un segnale, non un controllo */
.led::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; }
h1 { font: 700 clamp(3rem, 1.6rem + 4.6vw, 6rem)/.95 var(--display); letter-spacing: -.045em; }
.lead { margin-top: 26px; max-width: 34em; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.lead strong { color: var(--ink); font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.meta { margin-top: 24px; font-size: .875rem; color: var(--ink-3); max-width: 36em; }

.stage { grid-column: 6 / span 7; position: relative; height: clamp(460px, 100svh - 360px, 640px); z-index: 1; } /* la firma sotto resta tutta nella prima schermata */
#sheet { position: absolute; inset: -40px -40px -20px -20px; width: calc(100% + 60px); height: calc(100% + 60px); touch-action: pan-y; }
.hud { position: absolute; z-index: 3; }
.glass {
  background: rgba(255, 255, 255, .62); border-radius: var(--r-l);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(205, 211, 221, .7), 0 18px 40px -22px rgba(11, 13, 17, .4);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
}
.hud-top { top: 6px; left: 4%; padding: 12px 16px; font-size: .8125rem; line-height: 1.35; }
.hud-top b { display: block; font-weight: 650; }
.hud-top span { color: var(--ink-2); }
.hud-side { right: -8px; bottom: 34px; width: min(300px, 44%); padding: 12px 14px 10px; font-size: .8125rem; }
.ledger { list-style: none; }
.ledger li { border-top: 1px solid rgba(11, 13, 17, .08); transition: background-color .25s var(--ease); border-radius: 8px; }
.ledger li:first-child { border-top: 0; }
.ledger li.peek { background: rgba(255, 90, 31, .1); }
.ledger button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 6px 6px; border-radius: 8px; }
.ledger button:focus-visible { outline: 2px solid var(--orange); }
.ledger button[aria-pressed="true"] { background: rgba(11, 13, 17, .06); }
.num { font-family: var(--mono); font-weight: 600; font-size: .9em; letter-spacing: -.02em; }
.num.rm { color: var(--orange-ink); }
.num.ok { color: var(--green-ink); }
.key { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: .05em; }
.key.rm { background: var(--orange); }
.key.ok { background: var(--green); }
.totals { margin-top: 6px; padding: 8px 6px 2px; border-top: 2px solid var(--green); }
.totals p { display: flex; justify-content: space-between; gap: 12px; }
.totals .match { margin-top: 4px; justify-content: flex-start; align-items: center; gap: 8px; font-weight: 650; color: var(--green-ink); }
.totals .match svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.parts-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.parts-toggle { all: unset; cursor: pointer; margin-top: 8px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: .22em; border-radius: 4px; }
.parts { list-style: none; margin-top: 6px; font-size: .8125rem; color: var(--ink-2); font-family: var(--mono); }
.parts li { display: flex; justify-content: space-between; padding: 2px 0; }
.parts li:last-child { border-top: 1px solid rgba(11, 13, 17, .2); color: var(--ink); font-weight: 600; margin-top: 2px; padding-top: 4px; }
.stage-hint { position: absolute; left: 4%; bottom: 6px; z-index: 3; font-size: .8125rem; color: var(--ink-2); }
.h-touch { display: none; }
@media (hover: none) { .h-fine { display: none; } .h-touch { display: inline; } }
.stage-note { position: absolute; right: 0; bottom: 6px; z-index: 3; font-size: .75rem; color: var(--ink-3); }

/* la scheda di una riga */
.rowtip {
  position: fixed; left: 0; top: 0; z-index: 45; width: max-content; max-width: 300px; pointer-events: none;
  padding: 12px 14px; border-radius: var(--r-m); background: rgba(11, 13, 17, .92); color: #eef1f6; font-size: .8125rem; line-height: 1.45;
  box-shadow: 0 18px 40px -16px rgba(11, 13, 17, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translate(-50%, calc(-100% - 18px)) scale(.96); transition: opacity .18s var(--ease), transform .25s var(--ease);
}
.rowtip.on { opacity: 1; transform: translate(-50%, calc(-100% - 18px)); }
.rowtip b { display: block; margin-bottom: 4px; font: 600 .6875rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #ffb08f; }
.rowtip .calc { font-family: var(--mono); font-size: .78rem; }
.rowtip .res { margin-top: 6px; font-weight: 650; }
.rowtip .res.ok { color: #6be3a8; }
.rowtip .res.rm { color: #ffb08f; }

/* la firma in fondo alla prima schermata */
.wordmark { grid-column: 1 / -1; position: relative; margin-top: 2vh; padding-bottom: 28px; }
.wm { display: block; width: 100%; height: auto; max-height: 17svh; overflow: visible; /* sugli schermi bassi la firma si rimpicciolisce e resta nella prima schermata */ fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wm-ink { stroke: var(--ink); stroke-width: var(--sw1, .9); }
.wm-light {
  position: absolute; inset: 0; stroke: var(--orange); stroke-width: var(--sw2, 1.8);
  -webkit-mask-image: radial-gradient(circle 200px at var(--wx, -500px) var(--wy, -500px), #000, transparent 70%);
  mask-image: radial-gradient(circle 200px at var(--wx, -500px) var(--wy, -500px), #000, transparent 70%);
}

/* ---------- sezioni ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0 0; }
#services { padding-top: 40px; }
.head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; margin-bottom: 48px; }
.head h2 { grid-column: 1 / span 7; font: 700 clamp(2.5rem, 1.5rem + 3.4vw, 4.5rem)/1 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.head p { grid-column: 8 / span 5; font-size: 1.0625rem; color: var(--ink-2); max-width: 40ch; }

/* servizi: una cella per servizio, ognuna con la sua piccola dimostrazione */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cell {
  position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-xl); background: var(--panel); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow); transition: box-shadow .5s var(--ease), transform .6s var(--ease);
}
.cell:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-up); transform: translateY(-4px); }
.cell h3 { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font: 650 1.375rem/1.2 var(--display); letter-spacing: -.02em; }
.cell p { margin-top: 8px; color: var(--ink-2); font-size: .9688rem; max-width: 46ch; }
.more { align-self: flex-start; margin-top: 16px; font-size: .9375rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 6px; }
.more svg { width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.more:hover svg { transform: translateX(4px); }
.demo-data .tick { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.c-xls { grid-column: span 7; }
.c-data { grid-column: span 5; }
.c-web { grid-column: span 5; }
.c-tr { grid-column: span 3; }
.c-mc { grid-column: span 4; background: var(--night); color: #eef1f6; box-shadow: inset 0 0 0 1px #1d2533, var(--shadow); }
.c-mc p { color: #aab4c4; }
.c-mc .more { color: #fff; }
.demo { position: relative; height: 200px; overflow: hidden; }

.demo-xls { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto 1fr; gap: 10px; }
.fx { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font: 500 .8125rem/1 var(--mono); white-space: nowrap; overflow: hidden; }
.fx-name { color: var(--ink-3); padding-right: 8px; border-right: 1px solid var(--line); }
.fx-eq { color: var(--orange-ink); font-weight: 700; }
.fx-text::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -.15em; background: var(--ink); animation: blink 1s steps(1) infinite; }
.sheet { border-radius: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font: 500 .75rem/1 var(--mono); overflow: hidden; }
.sheet .r { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; border-top: 1px solid var(--line); }
.sheet .r:first-child { border-top: 0; }
.sheet .r span { padding: 9px 8px; text-align: right; }
.sheet .r span:first-child { text-align: left; color: var(--ink-2); }
.sheet .h span { color: var(--ink-3); font-weight: 600; font-size: .75rem; }
.sheet .sum { background: rgba(255, 90, 31, .1); box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--ink); font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 6px; padding: 10px; border-radius: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 4px 4px 1px 1px; background: var(--ink); transform-origin: bottom; }
.bars i:nth-child(5) { background: var(--orange); }

.demo-data { padding: 14px; font: 500 .75rem/1.35 var(--mono); }
.demo-data .raw p { padding: 5px 8px; color: var(--ink-2); white-space: nowrap; }
.demo-data .raw p:nth-child(2), .demo-data .raw p:nth-child(4) { color: var(--orange-ink); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.demo-data .clean { position: absolute; inset: 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; opacity: 0; }
.demo-data .clean p { display: grid; grid-template-columns: 1.1fr 1.6fr .4fr .7fr; gap: 8px; padding: 9px 10px; border-radius: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.demo-data .clean p span:nth-child(n+3) { text-align: right; }
.demo-data .clean .ok { background: rgba(10, 138, 82, .08); box-shadow: inset 0 0 0 1px rgba(10, 138, 82, .3); color: var(--green-ink); font-weight: 600; }

.demo-web { display: grid; place-items: center; }
.frame { width: 86%; height: 78%; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 24px -16px rgba(11, 13, 17, .5); overflow: hidden; }
.frame .bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.frame .bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.frame .page { display: flex; flex-direction: column; gap: 7px; padding: 12px; }
.frame .page b { width: 60%; height: 12px; border-radius: 4px; background: var(--ink); }
.frame .page span { height: 6px; border-radius: 3px; background: var(--line-2); }
.frame .l1 { width: 90%; } .frame .l2 { width: 70%; }
.frame .cards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.frame .cards i { flex: 1 1 60px; height: 34px; border-radius: 6px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.frame .cards i:first-child { background: var(--orange); box-shadow: none; }

.demo-tr { display: grid; align-content: center; gap: 12px; padding: 18px; }
.demo-tr p { font: 600 1rem/1.3 var(--display); letter-spacing: -.01em; }
.demo-tr .en { color: var(--ink-3); }
.demo-tr .it { color: var(--ink); }
.demo-tr .it::before { content: "IT "; font: 600 .6875rem var(--mono); color: var(--orange-ink); letter-spacing: .06em; }
.demo-tr .en::before { content: "EN "; font: 600 .6875rem var(--mono); color: var(--ink-3); letter-spacing: .06em; }

.demo-mc { perspective: 600px; display: grid; place-items: center; }
.cube { position: relative; width: 64px; height: 64px; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(38deg); margin-top: -18px; }
.cube i { position: absolute; inset: 0; border-radius: 4px; }
.cube .f1 { background: #2fd38a; transform: rotateX(90deg) translateZ(32px); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12); }
.cube .f2 { background: #6b4b8f; transform: translateZ(32px); box-shadow: inset 0 0 18px rgba(0, 0, 0, .3); }
.cube .f3 { background: #563b75; transform: rotateY(90deg) translateZ(32px); box-shadow: inset 0 0 18px rgba(0, 0, 0, .35); }
.cube .f4 { background: #563b75; transform: rotateY(180deg) translateZ(32px); }
.cube .f5 { background: #6b4b8f; transform: rotateY(-90deg) translateZ(32px); }
.cube .f6 { background: #3a2852; transform: rotateX(-90deg) translateZ(32px); }
.cmd { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font: 500 .8125rem var(--mono); color: #d7deea; }
.cmd span::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--orange); animation: blink 1s steps(1) infinite; }

/* ---------- lavori ---------- */
.case { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; align-items: center; margin-bottom: clamp(80px, 10vw, 140px); }
.case .art { grid-column: 1 / span 7; position: relative; }
.case .text { grid-column: 9 / span 4; }
.case.flip .art { grid-column: 6 / span 7; grid-row: 1; }
.case.flip .text { grid-column: 1 / span 4; grid-row: 1; }
.case h3 { font: 650 clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem)/1.1 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.case .text > p { margin-top: 16px; color: var(--ink-2); }
.shot { position: relative; padding: 36px 10px 10px; border-radius: var(--r-l); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-up); }
.rail { position: absolute; left: 14px; right: 14px; top: 12px; display: block; font: 500 .75rem/1 var(--mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot::after { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--line); } /* giuntura del pannello */
.s-web .phone::after { display: none; }
.rail::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: var(--line-2); }
.shot img { border-radius: var(--r-s); background: #fff; }
.shot figcaption { padding: 10px 6px 2px; font-size: .8125rem; color: var(--ink-2); }
.s-pdf .art { display: grid; grid-template-columns: .82fr 1.18fr; column-gap: 56px; align-items: start; }
.s-pdf .two { margin-top: 72px; }
.s-pdf img, .s-xls .dash img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; }
.s-xls .dash img { aspect-ratio: 900 / 655; }
.s-xls .dash { width: 88%; margin-left: auto; }
.s-xls .prod { width: 76%; margin-top: -40px; position: relative; z-index: 2; }
.arrow { position: absolute; left: calc((100% - 56px) * .41 + 4px); top: 42%; /* al centro della fuga tra PDF e tabella */ z-index: 3; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 12px 24px -10px rgba(11, 13, 17, .6); }
.arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.s-web .art { padding-right: 15%; }
.s-web .phone { position: absolute; right: 0; bottom: -48px; width: 25%; padding: 7px; border-radius: 26px; }
.s-web .phone img { border-radius: 20px; }

.prov { list-style: none; margin-top: 24px; font-size: .9375rem; }
.prov li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); }
.prov li::before { /* una spunta che si disegna */
  content: ""; position: absolute; left: 2px; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E");
}
.prov li::after { content: ""; position: absolute; left: 7px; top: 16px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.prov li.label { color: var(--ink-2); }
.prov li.label::before { background: var(--line-2); } /* etichetta "campione": grigia, non un avviso */
.prov li.label::after { display: none; }

/* il cruscotto spiega cosa segue la cella gialla */
.explain { position: absolute; inset: 36px 10px auto 10px; aspect-ratio: 900 / 655; pointer-events: none; }
.explain .box { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 4px; background: rgba(255, 90, 31, .08); box-shadow: 0 0 0 2px var(--orange); opacity: 0; transition: opacity .35s var(--ease); }
.explain .box > span { position: absolute; bottom: calc(100% + 8px); white-space: nowrap; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; }
.explain .b-cell > span { left: calc(100% + 10px); bottom: auto; top: 50%; transform: translateY(-50%); }
.explain .b-kpi > span { left: 0; bottom: auto; top: calc(100% + 8px); }
.explain .b-bar > span { right: calc(100% + 10px); bottom: auto; top: 28%; }
@media (hover: hover) { .dash:hover .explain .box { opacity: 1; transition-delay: calc(var(--i) * .2s); } }

/* la lente */
.lens {
  position: fixed; left: 0; top: 0; z-index: 44; width: 260px; height: 170px; pointer-events: none; border-radius: 18px;
  background: #fff no-repeat; box-shadow: 0 0 0 1px rgba(11, 13, 17, .12), 0 0 0 6px rgba(255, 255, 255, .8), 0 24px 50px -16px rgba(11, 13, 17, .55);
  opacity: 0; scale: .8; transition: opacity .2s var(--ease), scale .35s var(--ease);
}
.lens.on { opacity: 1; scale: 1; }
.lens span { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .6875rem/1 var(--mono); }

/* traduzione */
.bilingual { padding: 24px; border-radius: var(--r-xl); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-up); }
.bilingual table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.bilingual th { text-align: left; font: 600 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 10px; }
.bilingual td { vertical-align: top; padding: 12px 0; border-top: 1px solid var(--line); width: 50%; }
.bilingual td:first-child { color: var(--ink-2); padding-right: 20px; }
.bilingual td:last-child { padding-left: 20px; border-left: 1px solid var(--line); }
.bilingual tbody tr { transition: background-color .25s var(--ease); }
@media (hover: hover) { .bilingual tbody tr:hover { background: rgba(255, 90, 31, .05); } }
.term { border-radius: 4px; background: linear-gradient(rgba(255, 90, 31, .22), rgba(255, 90, 31, .22)) 0 100% / 100% 0 no-repeat; transition: background-size .3s var(--ease); }
.term.lit { background-size: 100% 100%; }
.glossary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; list-style: none; }
.glossary button { all: unset; display: block; padding: 7px 12px; border-radius: 999px; cursor: pointer; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .8125rem; transition: background-color .25s var(--ease), color .25s var(--ease); }
.glossary button b { font-weight: 650; }
.glossary button.lit { background: var(--ink); color: #fff; box-shadow: none; }
.glossary button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.note b { color: var(--orange-ink); }

/* ---------- giochi: la pagina va di notte ---------- */
.games {
  --gr: 40px; --gm: max(12px, (100% - 1416px) / 2);
  position: relative; margin-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); background: var(--night); color: #eef1f6; overflow: hidden;
  clip-path: inset(0 calc(var(--gm) * (1 - var(--g, 0))) round calc(var(--gr) * (1 - var(--g, 0))));
}
.games-sky { position: absolute; inset: 0; pointer-events: none; }
.games-sky canvas { position: absolute; right: -4%; top: 30px; width: 58%; height: 560px; pointer-events: auto; touch-action: pan-y; cursor: crosshair; }

.games .wrap { position: relative; }
.games .head { min-height: 340px; align-content: center; }
.games .head h2 { grid-column: 1 / span 6; }
.games .head p { grid-column: 1 / span 5; grid-row: 2; margin-top: 20px; color: #aab4c4; }
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pane { padding: 28px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.pane h3 { font: 650 1.5rem/1.2 var(--display); letter-spacing: -.02em; }
.pane > p { margin-top: 8px; color: #aab4c4; }
.ticks { list-style: none; margin-top: 16px; }
.ticks li { position: relative; padding: 8px 0 8px 26px; border-top: 1px solid rgba(255, 255, 255, .08); color: #d7deea; font-size: .9688rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.1em; width: 10px; height: 2px; border-radius: 1px; background: #6f7b8f; } /* un trattino, non una spunta: sono servizi, non controlli */
.plugin { margin-top: 72px; }
.plugin-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.plugin-head h3 { font: 650 1.75rem/1.15 var(--display); letter-spacing: -.025em; }
.plugin-head p { color: #aab4c4; }
.plugin-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-top: 24px; }
.code, .console { border-radius: var(--r-l); background: #05070c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); overflow-x: auto; }
.tabs button { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 8px; font: 500 .8125rem/1 var(--mono); color: #8d97a8; white-space: nowrap; transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .08); color: #fff; }
.tabs button:focus-visible { outline: 2px solid var(--orange); }
.code pre { position: relative; flex: none; height: 460px; margin: 0; padding: 16px 18px; overflow: auto; font: 400 .8125rem/1.6 var(--mono); color: #d7deea; tab-size: 4; scrollbar-color: #2a3446 transparent; }
.code pre:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.tk-k { color: #ff8a5c; } .tk-s { color: #8fe3b4; } .tk-c { color: #6f7b8f; font-style: italic; } .tk-n { color: #f6c76b; } .tk-a { color: #b9a4ff; } .tk-t { color: #7cc7ff; }
.console-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .8125rem; font-weight: 600; }
.console-head .sim { font: 500 .75rem var(--mono); letter-spacing: .04em; color: #8d97a8; text-transform: uppercase; }
.chat { list-style: none; flex: 1 1 0; min-height: 260px; padding: 14px 16px; overflow-y: auto; font: 500 .8125rem/1.5 var(--mono); color: #d7deea; display: flex; flex-direction: column; gap: 6px; scrollbar-color: #2a3446 transparent; }
.chat li { animation: rise .35s var(--ease) backwards; overflow-wrap: anywhere; }
.chat .me { color: #8d97a8; }
.chat .c-gray { color: #a5adbb; } .chat .c-gold { color: #f6c76b; } .chat .c-green { color: #6be3a8; } .chat .c-yellow { color: #f3e36b; } .chat .c-aqua { color: #6fe0e8; } .chat .c-red { color: #ff7a6b; } .chat .c-white { color: #fff; }
.say { padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.say input { width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #fff; font: 500 .875rem var(--mono); caret-color: var(--orange); }
.say input::placeholder { color: #8d97a8; }
.say input:focus-visible { outline: 2px solid var(--orange); outline-offset: 0; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.quick button { all: unset; cursor: pointer; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font: 500 .75rem/1 var(--mono); color: #d7deea; transition: background-color .2s; }
.quick button:hover { background: rgba(255, 90, 31, .25); }
.quick button:focus-visible { outline: 2px solid var(--orange); }
.prov.dark li { border-top-color: rgba(255, 255, 255, .08); color: #d7deea; }
.prov.dark li::before { background: #3a4456; }
.prov.dark li::after { display: none; }
.prov.dark li.label::before { background: var(--orange); }
.prov.dark li.label { color: #aab4c4; }
.legal { margin-top: 16px; font-size: .75rem; color: #8d97a8; }

/* ---------- come funziona ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding-top: 34px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line-2); border-radius: 2px; }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--orange); border-radius: 2px; transform-origin: 0 50%; transform: scaleX(var(--run, 1)); }
.steps li { position: relative; padding: 28px; border-radius: var(--r-xl); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.steps .dot { position: absolute; left: 28px; top: -34px; width: 18px; height: 18px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 2px var(--ink); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.steps li.on .dot { background: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); transform: scale(1.25); }
.steps h3 { font: 650 1.375rem/1.2 var(--display); letter-spacing: -.02em; }
.steps p { margin-top: 10px; color: var(--ink-2); }
.terms { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; margin-top: 16px; }
.pane-light { padding: 28px; border-radius: var(--r-xl); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.pane-light h3 { font: 650 1.375rem/1.2 var(--display); letter-spacing: -.02em; }
.pane-light p { margin-top: 10px; color: var(--ink-2); }
.not ul { list-style: none; columns: 2; column-gap: 28px; margin-top: 10px; }
.not li { break-inside: avoid; display: flex; gap: 10px; padding: 6px 0; }
.not li::before { content: ""; flex: none; width: 10px; height: 2px; margin-top: .75em; background: var(--orange); }
.not li span { background: linear-gradient(var(--orange), var(--orange)) 0 58% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.not li:hover span { background-size: 100% 2px; }

/* ---------- richiesta ---------- */
.composer { display: grid; grid-template-columns: 7fr 5fr; border-radius: var(--r-xl); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-up); overflow: hidden; }
.composer form { padding: 32px; }
.composer fieldset { border: 0; margin-top: 28px; }
.composer fieldset:first-child { margin-top: 0; }
.composer legend, .composer label.f { display: block; font-weight: 650; margin-bottom: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; z-index: 1; opacity: 0; inset: 0; cursor: pointer; }
.choices span { display: block; padding: 10px 16px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .9375rem; font-weight: 550; transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.choices label:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.choices input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.choices input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.field { margin-top: 26px; }
.composer textarea { display: block; width: 100%; min-height: 96px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--bg); border: 0; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line-2); resize: vertical; caret-color: var(--orange); transition: box-shadow .25s var(--ease), background-color .25s var(--ease); }
.composer textarea::placeholder, .composer input[type="text"]::placeholder { color: var(--ink-3); }
.composer input[type="text"] { display: block; width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--bg); border: 0; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line-2); caret-color: var(--orange); }
.composer input[type="text"]:focus-visible { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 5px rgba(255, 90, 31, .18); }
.motion .field.game:not([hidden]) { animation: rise .45s var(--ease); }
.composer textarea:focus-visible { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 5px rgba(255, 90, 31, .18); }
.preview { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--night); color: #eef1f6; }
.preview h3 { font: 650 1.125rem/1.2 var(--display); letter-spacing: -.01em; color: #fff; }
.preview output { display: block; flex: 1; white-space: pre-wrap; padding: 18px; border-radius: var(--r-m); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font: 400 .9375rem/1.6 var(--sans); }
.preview output::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.18em; background: var(--orange); }
.preview output span.fresh { animation: fresh 1.2s var(--ease); border-radius: 4px; }
.preview .btn { align-self: flex-start; }
.preview .how { font-size: .9375rem; color: #aab4c4; }
.status { min-height: 1.5em; font-size: .9375rem; font-weight: 600; color: #6be3a8; }

/* ---------- chiusura ---------- */
.foot { position: relative; z-index: 1; margin-top: clamp(80px, 10vw, 140px); padding: 0 0 48px; background: var(--night); color: #d7deea; overflow: hidden; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; color: #8d97a8; }
.foot-in p { max-width: 62ch; }
.foot-in b { color: #fff; }

/* ---------- il cursore ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; display: none; }
.has-pointer .cursor { display: block; }
.cursor i { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); transition: width .35s var(--ease), height .35s var(--ease), left .35s var(--ease), top .35s var(--ease), background-color .3s, box-shadow .3s, opacity .3s; }
.cursor span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font: 600 .6875rem/1 var(--mono); letter-spacing: .04em; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.big i { left: -32px; top: -32px; width: 64px; height: 64px; background: rgba(11, 13, 17, .9); box-shadow: none; }
.cursor.big span { opacity: 1; }
.cursor.hover i { left: -26px; top: -26px; width: 52px; height: 52px; box-shadow: inset 0 0 0 1.5px var(--orange); background: rgba(255, 90, 31, .08); }
.cursor.dark i { box-shadow: inset 0 0 0 1.5px #fff; }
.cursor.hidden i { opacity: 0; }

/* ---------- movimento (solo se non è stato spento) ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes fresh { from { background-color: rgba(255, 90, 31, .4); } }
@keyframes ping { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.motion .led::after { animation: ping 2s var(--ease) infinite; }
.motion .rv { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.motion .rv.in { opacity: 1; transform: none; filter: none; }
.motion .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.motion .split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.motion .split.in .w > span { transform: none; }
.motion .wm-ink path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: calc(.5s + var(--i) * .12s); }
.motion .hero-text > :not(h1) { animation: rise 1s var(--ease) backwards; }
.motion .hero-text .lead { animation-delay: .45s; }
.motion .hero-text .actions { animation-delay: .6s; }
.motion .hero-text .meta { animation-delay: .75s; }
.motion .hud { animation: rise 1s var(--ease) 1.2s backwards; }
.motion .hud-side { animation-delay: 1.6s; }
.motion .nav { animation: rise .9s var(--ease) backwards; }
.totals .match { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.totals.pending .match { opacity: 0; transform: translateY(4px); }
.totals .match path { stroke-dasharray: 30; stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease) .15s; }
.totals.pending .match path { stroke-dashoffset: 30; }
@keyframes matched { 40% { transform: scale(1.06); } }
.totals.done .match { animation: matched .8s var(--ease); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover::before { transform: translateX(120%); transition: transform 1s var(--ease); }
  .btn:hover svg { transform: translateX(3px); }
  .btn.done .ok { animation: rise .4s var(--ease); }
  .bars i { animation: grow 6s var(--ease) infinite; animation-delay: calc(var(--n, 0) * .08s); }
  .demo-data .raw { animation: data-raw 6s var(--ease) infinite; }
  .demo-data .clean { animation: data-clean 6s var(--ease) infinite; }
  .frame { animation: resize 7s cubic-bezier(.65, 0, .35, 1) infinite; }
  .demo-tr .en { animation: tr-en 6s var(--ease) infinite; }
  .demo-tr .it { animation: tr-it 6s var(--ease) infinite; }
  .cube { animation: spin 9s linear infinite; }
  .fx-text::after { animation: blink 1s steps(1) infinite; }
  .preview output::after { animation: blink 1.1s steps(1) infinite; }
  .paused, .paused * { animation-play-state: paused !important; }
}
@keyframes grow { 0%, 8% { transform: scaleY(.1); } 30%, 88% { transform: scaleY(1); } 100% { transform: scaleY(.1); } }
@keyframes data-raw { 0%, 30% { opacity: 1; transform: none; filter: none; } 42%, 88% { opacity: 0; transform: translateY(-8px); filter: blur(4px); } 100% { opacity: 1; } }
@keyframes data-clean { 0%, 34% { opacity: 0; transform: translateY(10px); } 46%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes resize { 0%, 22% { width: 86%; } 40%, 70% { width: 34%; } 88%, 100% { width: 86%; } }
@keyframes tr-en { 0%, 30% { opacity: 1; filter: none; } 45%, 85% { opacity: .35; filter: blur(1px); } 100% { opacity: 1; } }
@keyframes tr-it { 0%, 30% { opacity: .3; transform: translateY(6px); } 45%, 85% { opacity: 1; transform: none; } 100% { opacity: .3; transform: translateY(6px); } }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(38deg); } to { transform: rotateX(-24deg) rotateY(398deg); } }

/* ---------- schermi stretti ---------- */
@media (max-width: 1100px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 100px; min-height: auto; }
  .hero-text { grid-column: 1; padding-bottom: 0; }
  .stage { grid-column: 1; height: 560px; margin-top: 24px; }
  .wordmark { grid-column: 1; }
  .head h2, .head p { grid-column: 1 / -1; }
  .head p { margin-top: 16px; }
  .c-xls, .c-data, .c-web, .c-tr, .c-mc { grid-column: span 6; }
  .case .art, .case .text, .case.flip .art, .case.flip .text { grid-column: 1 / -1; grid-row: auto; }
  .games .head h2, .games .head p { grid-column: 1 / -1; }
  .games-sky canvas { width: 100%; right: 0; top: 0; height: 420px; opacity: .55; }
  .plugin-body, .plugin-head { grid-template-columns: 1fr; }
  .composer { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap, .hero { width: calc(100% - 32px); }
  .nav { padding-left: 16px; }
  h1 { font-size: 3.25rem; }
  .lead { font-size: 1.0625rem; }
  .stage { height: auto; min-height: 0; margin-bottom: 24px; }
  #sheet { position: relative; inset: auto; display: block; width: calc(100% + 32px); height: 440px; margin: 0 -16px; }
  .hud-side { position: static; width: auto; margin-top: -8px; }
  .hud-top { left: 0; top: 0; }
  .stage-hint { display: none; }
  .stage-note { position: static; margin-top: 8px; }
  .bento { grid-template-columns: 1fr; }
  .c-xls, .c-data, .c-web, .c-tr, .c-mc { grid-column: 1; }
  .s-pdf .art { column-gap: 20px; }
  .demo-data .clean p { grid-template-columns: 1.8fr .4fr .8fr; } /* sul telefono la categoria non ci sta: resta descrizione, quantità, importo */
  .demo-data .clean p span:first-child { display: none; }
  .s-pdf .two { margin-top: 40px; }
  .shot { padding: 28px 6px 6px; }
  .rail { left: 8px; right: 8px; top: 8px; font-size: .75rem; }
  .shot::after { top: 22px; }
  .explain { inset: 28px 6px auto 6px; }
  .wordmark { padding-bottom: 8px; }
  #services { padding-top: 48px; }
  .s-web .phone { width: 34%; bottom: -32px; }
  .offer { grid-template-columns: 1fr; }
  .pane { padding: 20px; }
  .code pre { height: 340px; font-size: .75rem; }
  .steps { grid-template-columns: 1fr; padding-top: 0; }
  .steps::before, .steps::after { display: none; }
  .steps .dot { display: none; }
  .terms { grid-template-columns: 1fr; }
  .not ul { columns: 1; }
  .composer form, .preview { padding: 22px; }
  .bilingual { padding: 16px; }
  .bilingual td::before { content: attr(data-l); display: block; font: 600 .6875rem var(--mono); letter-spacing: .08em; color: var(--ink-3); margin-bottom: 2px; }
  .bilingual table, .bilingual thead, .bilingual tbody, .bilingual tr, .bilingual td { display: block; width: 100%; }
  .bilingual thead { display: none; }
  .bilingual td:last-child { padding-left: 0; border-left: 0; border-top: 0; padding-top: 0; }
  .bilingual td:first-child { padding-right: 0; }
  .games { --gr: 28px; --gm: 8px; }
  .games-sky canvas { height: 340px; opacity: 1; }
  .games .head { min-height: 0; padding-top: 300px; }
}
@media print { .grid-light, .cursor, .lens, .nav-wrap, .games-sky { display: none; } .motion .rv { opacity: 1; transform: none; filter: none; } }
.dash.show .explain .box { opacity: 1; transition-delay: calc(var(--i) * .35s); }
/* croci di registro agli angoli dei titoli di sezione, come sui pannelli di un laboratorio */
.head { position: relative; }
.head::before { content: ""; position: absolute; left: -22px; top: -22px; width: 11px; height: 11px; opacity: .55;
  background: linear-gradient(var(--ink-3), var(--ink-3)) center / 1px 100% no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) center / 100% 1px no-repeat; }
.games .head::before { background: linear-gradient(#6f7b8f, #6f7b8f) center / 1px 100% no-repeat, linear-gradient(#6f7b8f, #6f7b8f) center / 100% 1px no-repeat; }
@media (max-width: 700px) { .head::before { display: none; } }
/* domande: righe con un filo, si aprono con un'animazione morbida */
:root { interpolate-size: allow-keywords; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
.faq details { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font: 650 1.125rem/1.3 var(--display); letter-spacing: -.01em; border-radius: 8px; transition: color .25s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.faq summary:hover { color: var(--orange-ink); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 4px 22px; color: var(--ink-2); max-width: 52ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform .45s var(--ease); }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
@media (max-width: 700px) { .faq { grid-template-columns: 1fr; } }
/* PDF -> Excel: scorrendo, un laser legge il PDF e la tabella si scrive alla stessa altezza */
.pic { position: relative; }
.s-pdf .two .pic { background: repeating-linear-gradient(180deg, transparent 0 11px, var(--line) 11px 12px); border-radius: var(--r-s); }
.s-pdf .two .pic img { clip-path: inset(0 0 calc((1 - var(--scan, 1)) * 100%) 0); }
.laser { position: absolute; left: -6px; right: -6px; top: calc(var(--scan, 1) * 100%); height: 2px; border-radius: 2px; background: var(--orange); opacity: var(--laser, 0); transition: opacity .3s var(--ease); pointer-events: none; }
.laser::before { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 26px; background: linear-gradient(to top, rgba(255, 90, 31, .16), rgba(255, 90, 31, 0)); } /* la scia del laser: una sfumatura, non un bagliore */
.rows-read { color: var(--ink); font-weight: 600; }
/* la tabella pulita, viva: si ordina, si filtra, il totale si ricalcola */
.xl { display: flex; flex-direction: column; gap: 8px; }
.xl-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.xl-chips button { all: unset; cursor: pointer; padding: 5px 10px; border-radius: 999px; font: 500 .75rem/1 var(--sans); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s, color .2s; }
.xl-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.xl-chips button:focus-visible, .xl th button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.xl-scroll { height: 360px; overflow: auto; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); scrollbar-color: #c3c9d3 transparent; }
.xl-scroll:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.xl table { width: 100%; border-collapse: collapse; font: 500 .75rem/1.3 var(--mono); }
.xl thead th { position: sticky; top: 0; z-index: 1; background: #1f6f43; color: #fff; text-align: left; }
.xl th button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 7px 8px; cursor: pointer; font-weight: 600; }
.xl th.n, .xl td.n { text-align: right; }
.xl th[aria-sort="ascending"] button::after, .xl th[aria-sort="descending"] button::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: 2px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; }
.xl th[aria-sort="descending"] button::after { transform: rotate(180deg); }
.xl td { padding: 6px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.xl td:nth-child(2) { white-space: normal; }
.xl tbody tr:nth-child(even) { background: #f7f9fb; }
.xl tbody tr { animation: rise .35s var(--ease) backwards; }
.xl-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 2px; border-top: 2px solid var(--green); font-size: .8125rem; }
.xl-total { font: 600 .9375rem var(--mono); }
.xl-sum.all .xl-total { color: var(--green-ink); }
.s-pdf .two .pic .xl { clip-path: inset(0 0 calc((1 - var(--scan, 1)) * 100%) 0); }
.s-pdf .two .pic img { clip-path: none; }
.glossary li.plain { padding: 7px 12px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: .8125rem; color: var(--ink-2); }
.demo-vid { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-s); background: #ece6dc; }

/* le schermate a grandezza piena, con un tocco */
.viewer { border: 0; padding: 0; margin: auto; max-width: min(1100px, 94vw); max-height: 92vh; border-radius: var(--r-l); background: #fff; box-shadow: 0 30px 80px -20px rgba(11, 13, 17, .6); overflow: auto; }
.viewer::backdrop { background: rgba(11, 13, 17, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer img { display: block; width: 100%; height: auto; }
.viewer .close { position: sticky; top: 10px; float: right; margin: 10px 10px -46px 0; z-index: 2; }
.shot[data-cursor] img { cursor: zoom-in; }
@media (prefers-reduced-motion: no-preference) { .viewer[open] { animation: rise .35s var(--ease); } }

/* il menu sopra la sezione scura diventa scuro */
.nav.on-dark { background: rgba(7, 10, 16, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 12px 32px -18px rgba(0, 0, 0, .6); }
.nav.on-dark .brand, .nav.on-dark .links a[aria-current], .nav.on-dark .links a:hover { color: #fff; }
.nav.on-dark .links a { color: #aab4c4; }
.nav.on-dark .links a[aria-current], .nav.on-dark .links a:hover { background: rgba(255, 255, 255, .08); }
.nav.on-dark .avail { color: #aab4c4; }
.nav.on-dark .nav-cta { background: #fff; color: var(--ink); }
.nav { transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
@media (max-width: 700px) {
  .s-pdf .art { grid-template-columns: 1fr; row-gap: 24px; }
  .s-pdf .two { margin-top: 0; }
  .s-pdf .arrow { display: none; }
  .xl-scroll { height: 320px; }
}
.demo-vid:focus, .demo-vid:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; } /* con i controlli (movimento ridotto) il video prende il focus */
/* prova la cella gialla: i mesi veri del tracker */
.try { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.try-cell { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.try-cell label { font-weight: 650; font-size: .9375rem; }
.try-cell select { appearance: none; -webkit-appearance: none; padding: 8px 34px 8px 12px; border: 1px solid #e3c35a; border-radius: 6px; background: #fff3c4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b0d11' stroke-width='1.8'/%3E%3C/svg%3E") right 11px center / 11px no-repeat; font: 600 .9375rem var(--sans); color: var(--ink); cursor: pointer; }
.try-cell select:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.try-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 14px; background: var(--line); border-radius: 10px; overflow: hidden; }
.try-kpi div { padding: 10px 12px; background: var(--panel); }
.try-kpi dt { font-size: .75rem; color: var(--ink-3); }
.try-kpi dd { font: 600 1.25rem/1.2 var(--mono); letter-spacing: -.02em; }
.try-bars { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-top: 14px; }
.try-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px 3px 1px 1px; background: #c9cfd9; transition: background-color .3s var(--ease); }
.try-bars i.on { background: var(--orange); }
.try-note { margin-top: 8px; font-size: .8125rem; color: var(--ink-3); }
/* il codice del plugin: la riga che risponde al comando si accende */
.code .ln { display: block; margin: 0 -18px; padding: 0 18px; transition: background-color .5s var(--ease); }
.code .ln.hit { background: rgba(255, 90, 31, .16); }
/* i passi del lavoro: un disegno a linea per passo, che si traccia quando la linea arancione arriva */
.step-art { display: block; width: 120px; height: 72px; margin-bottom: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.step-art .acc { stroke: var(--orange); }
.motion .step-art path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.65, 0, .35, 1); }
.motion .steps li.on .step-art path { stroke-dashoffset: 0; }
.motion .step-art path:nth-child(2) { transition-delay: .12s; }
.motion .step-art path:nth-child(3) { transition-delay: .24s; }
.motion .step-art path:nth-child(4) { transition-delay: .36s; }
.motion .step-art path:nth-child(5) { transition-delay: .48s; }
.motion .step-art path:nth-child(6) { transition-delay: .6s; }
/* ---------- la pagina viva (giro 11) ---------- */
.aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .75; }
.sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 58; pointer-events: none; }
.rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 57; pointer-events: none; }
/* i pannelli lasciano passare un po' della luce colorata */
.cell:not(.c-mc), .steps li, .pane-light, .shot, .composer { background-color: rgba(255, 255, 255, .84); }

/* il nome di particelle */
.wordmark.particles .wm-ink, .wordmark.particles .wm-light { opacity: 0; }
.wm-canvas { position: absolute; z-index: 2; cursor: crosshair; touch-action: pan-y; }

/* ogni servizio ha il suo colore */
.c-xls { --acc: #1f9d55; } .c-data { --acc: #ff5a1f; } .c-web { --acc: #7b5cff; } .c-tr { --acc: #e8336d; } .c-mc { --acc: #2fd38a; }
.cell::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--acc) 30%, transparent), transparent 70%); pointer-events: none; transition: transform .8s var(--ease); }
.cell:hover::after { transform: scale(1.5) translate(-20px, 20px); }
.cell h3::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 3px; background: var(--acc); vertical-align: 2px; transition: transform .5s var(--ease); }
.cell:hover h3::before { transform: rotate(135deg) scale(1.2); }
.cell:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 55%, transparent), var(--shadow-up); }
/* dietro ogni lavoro, una luce del suo colore */
.case { position: relative; }
.case::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; left: 8%; top: 0; background: radial-gradient(circle, color-mix(in srgb, var(--acc, #ff5a1f) 22%, transparent), transparent 68%); pointer-events: none; }
.case.flip::before { left: auto; right: 8%; }
.s-pdf { --acc: #ff5a1f; } .s-xls { --acc: #1f9d55; } .s-web { --acc: #7b5cff; } .s-tr { --acc: #e8336d; }

/* titoli: le lettere ballano */
.split .l { display: inline-block; }
@keyframes hop { 30% { transform: translateY(-.18em) rotate(-4deg); color: var(--orange); } 60% { transform: translateY(.04em); } }
.split.wave .l { animation: hop .7s var(--ease) both; animation-delay: calc(var(--j) * 28ms); }
.games .split.wave .l { animation-name: hop-night; }
@keyframes hop-night { 30% { transform: translateY(-.18em) rotate(-4deg); color: #2fd38a; } 60% { transform: translateY(.04em); } }

/* easter egg: il contatore, l'elenco, l'avviso */
.eggs { position: fixed; left: 14px; bottom: 14px; z-index: 46; display: inline-flex; align-items: center; gap: 6px; padding: 8px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(11, 13, 17, .88); color: #fff; font: 600 .8125rem/1 var(--sans); box-shadow: 0 12px 30px -14px rgba(11, 13, 17, .7); }
.eggs svg { width: 18px; height: 18px; fill: none; stroke: #ffb020; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eggs:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.eggs-list { position: fixed; left: 16px; bottom: 62px; z-index: 46; width: min(320px, calc(100vw - 32px)); padding: 12px 14px; border-radius: var(--r-m); background: rgba(11, 13, 17, .92); color: #d7deea; font-size: .8125rem; box-shadow: 0 18px 40px -16px rgba(11, 13, 17, .7); }
.eggs-list p { display: grid; gap: 2px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.eggs-list p:first-child { border-top: 0; }
.eggs-list b { color: #8d97a8; font-weight: 600; }
.eggs-list .got b { color: #ffb020; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 47; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 999px; background: rgba(11, 13, 17, .92); color: #fff; font: 600 .9375rem/1.3 var(--sans); text-align: center; box-shadow: 0 18px 40px -16px rgba(11, 13, 17, .7); opacity: 0; transform: translate(-50%, 20px); transition: opacity .3s var(--ease), transform .4s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@keyframes twirl { to { transform: rotate(360deg) scale(1); } }
.brand.spin { animation: twirl .9s var(--ease); } /* nome diverso: "spin" è già la rotazione 3D del cubo */
.flynum { position: fixed; z-index: 57; pointer-events: none; font: 700 .875rem var(--mono); color: var(--green-ink); animation: fly 1.6s var(--ease) forwards; }
@keyframes fly { to { transform: translate(var(--dx), -240px) rotate(var(--rot)); opacity: 0; } }
@media (max-width: 700px) { .toast { border-radius: 18px; bottom: 70px; } }
@media print { .aurora, .sparks, .eggs, .eggs-list, .toast { display: none; } }
/* ---------- giro 12: strati di dettaglio ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes turn { to { --ang: 360deg; } }
@keyframes bob { 50% { transform: translateY(-10px) rotate(var(--r2, 2deg)); } }
@keyframes spin2 { to { transform: rotate(360deg); } }

/* grana leggera su tutta la pagina */
body::after { content: ""; position: fixed; inset: 0; z-index: 59; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* pavimento a griglia sotto il nome */
.floor { position: absolute; left: 50%; bottom: 0; width: calc(100vw - 20px); height: 42%; transform: translateX(-50%); z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 80%, transparent); }
.hero-text, .stage, .wordmark { position: relative; z-index: 2; }
.wordmark { z-index: 3; }

/* il segno di spunta che si disegna dopo il titolo */
.h1-tick { display: block; width: clamp(70px, 7vw, 110px); height: auto; margin: -14px 0 0 auto; fill: none; stroke: var(--orange); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; transform: translate(-30%, -60%) rotate(-6deg); }
.motion .h1-tick path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s cubic-bezier(.65, 0, .35, 1) 1.2s forwards; }
.hero-text { display: flow-root; }
.hero-text .lead { margin-top: 0; }

/* oggetti che fluttuano */
.hero-deco { position: absolute; inset: 0; z-index: 4; pointer-events: none; } /* davanti al nome: il vetro sfoca le particelle dietro */
.fo { position: absolute; will-change: translate; }
.fo > * { animation: bob var(--bt, 6s) ease-in-out infinite; }
.fo-cell { left: 20%; top: 69.5%; --bt: 7s; } /* nella fascia libera tra il testo e il nome */
.fo-cell, .fo-check, .fo-bubble, .fo-code, .fo-tag { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 14px; font: 500 .75rem/1.2 var(--mono); color: var(--ink);
  background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(205, 211, 221, .6), 0 18px 40px -18px rgba(11, 13, 17, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: bob var(--bt, 6s) ease-in-out infinite; }
.fo-cell .fo-k { color: var(--ink-3); padding-right: 8px; border-right: 1px solid var(--line-2); }
.fo-cell b { padding: 2px 6px; border-radius: 4px; background: rgba(255, 90, 31, .14); box-shadow: inset 0 0 0 1px var(--orange); }
.fo-check { right: 1%; top: 15%; --bt: 5.5s; --r2: -3deg; font-weight: 700; color: var(--green-ink); }
.fo-check svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fo-bubble { left: 55%; top: 87%; flex-direction: column; align-items: flex-start; gap: 3px; border-radius: 14px 14px 14px 4px; font-family: var(--sans); font-size: .8125rem; --bt: 6.5s; }
.fo-bubble .en { color: var(--ink-3); } .fo-bubble .it { font-weight: 650; color: #e8336d; }
.fo-code { right: 4%; top: 84%; flex-direction: column; align-items: flex-start; gap: 3px; background: rgba(7, 10, 16, .88); color: #d7deea; box-shadow: 0 18px 40px -18px rgba(11, 13, 17, .6); --bt: 7.5s; }
.fo-code .c1 { color: #ff8a5c; } .fo-code .c2 { color: #6be3a8; }
.fo-tag { left: 1%; top: 70%; font-weight: 600; --bt: 8s; --r2: -2deg; }
.fo-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.fo-cube3 { left: 40%; top: 9%; perspective: 500px; }
.fo-cube3 .cube.s { width: 34px; height: 34px; margin: 0; }
.fo-cube3 .cube.s i { border-radius: 3px; }
.fo-cube3 .cube.s .f1 { transform: rotateX(90deg) translateZ(17px); } .fo-cube3 .cube.s .f2 { transform: translateZ(17px); } .fo-cube3 .cube.s .f3 { transform: rotateY(90deg) translateZ(17px); }
.fo-cube3 .cube.s .f4 { transform: rotateY(180deg) translateZ(17px); } .fo-cube3 .cube.s .f5 { transform: rotateY(-90deg) translateZ(17px); } .fo-cube3 .cube.s .f6 { transform: rotateX(-90deg) translateZ(17px); }
.fo-ring { left: 44%; top: 20%; width: 150px; height: 150px; border-radius: 50%; border: 1px dashed rgba(123, 92, 255, .5); animation: spin2 30s linear infinite; }
.fo-ring::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #7b5cff; }
@media (max-width: 1100px) { .fo-cell, .fo-bubble, .fo-ring, .fo-cube3 { display: none; } .fo-check { top: 46%; } .fo-code { top: 92%; } .fo-tag { top: 93%; } }
@media (max-width: 700px) { .fo-code, .fo-tag, .fo-check { display: none; } }

/* nastri */
.tapes { position: relative; z-index: 2; height: 170px; margin-top: 30px; overflow: hidden; }
.tape { position: absolute; left: -5%; width: 110%; padding: 14px 0; overflow: hidden; white-space: nowrap; box-shadow: 0 14px 30px -18px rgba(11, 13, 17, .5); }
.tape.t1 { top: 26px; background: var(--orange); color: var(--ink); transform: rotate(-3deg); z-index: 2; }
.tape.t2 { top: 74px; background: var(--ink); color: #fff; transform: rotate(2deg); }
.tape-track { display: inline-flex; will-change: transform; }
.tape span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 700 clamp(1rem, .8rem + .7vw, 1.5rem)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.tape span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .55; }
.tape.t2 span { font-family: var(--mono); font-weight: 600; text-transform: none; font-size: clamp(.875rem, .75rem + .4vw, 1.125rem); }
.tape.t2 span::after { background: var(--orange); opacity: 1; border-radius: 2px; transform: rotate(45deg); }

/* bordi colorati che girano sui servizi */
.cell { isolation: isolate; }
.cell::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--acc) 72%, #ff3d8b 82%, #22c3ee 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: turn 6s linear infinite; }
.cell:nth-child(2)::before { animation-delay: -1.2s; } .cell:nth-child(3)::before { animation-delay: -2.4s; } .cell:nth-child(4)::before { animation-delay: -3.6s; } .cell:nth-child(5)::before { animation-delay: -4.8s; }
.cell:hover::before { animation-duration: 2s; }

/* mirini agli angoli */
.cn { position: absolute; inset: -7px; pointer-events: none; z-index: 2; --c: var(--ink-3); --l: 12px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1.5px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1.5px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1.5px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1.5px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1.5px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1.5px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1.5px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1.5px var(--l) no-repeat;
  opacity: .5; transition: inset .5s var(--ease), opacity .4s var(--ease); }
:hover > .cn { inset: -12px; opacity: 1; --c: var(--orange); }
.games .cn, .c-mc .cn { --c: #6f7b8f; }
.games :hover > .cn { --c: #2fd38a; }

/* righello a destra: posizione nella pagina */
.ruler { position: fixed; right: 0; top: 0; bottom: 0; width: 18px; z-index: 39; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(11, 13, 17, .28) 0 1px, transparent 1px 8px) right 0 top var(--sy, 0) / 6px 100% no-repeat,
              repeating-linear-gradient(to bottom, rgba(11, 13, 17, .4) 0 1px, transparent 1px 40px) right 0 top var(--sy, 0) / 12px 100% no-repeat; }
.ruler b { position: absolute; right: 0; top: 50%; width: 18px; height: 2px; background: var(--orange); }
.ruler span { position: absolute; right: 3px; writing-mode: vertical-rl; transform: rotate(180deg); font: 600 .625rem/1 var(--mono); color: var(--ink-3); white-space: nowrap; letter-spacing: .08em; }
.ruler .ry { bottom: calc(50% + 10px); color: var(--orange-ink); }
.ruler .rs { top: calc(50% + 10px); text-transform: uppercase; }
@media (max-width: 1279px) { .ruler { display: none; } }

/* il pulsante principale ha un anello di colori che gira */
.btn-orange { isolation: isolate; }
.btn-orange::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; background: conic-gradient(from var(--ang), #ff3d8b, #7b5cff, #22c3ee, #ffb020, #ff3d8b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: turn 4s linear infinite; opacity: .9; }

@media (prefers-reduced-motion: reduce) { .fo > *, .fo-cell, .fo-check, .fo-bubble, .fo-code, .fo-tag, .fo-ring, .cell::before, .btn-orange::after { animation: none; } }
@media print { body::after, .floor, .hero-deco, .tapes, .ruler, .cn { display: none; } }
/* l'ultima parola di ogni titolo prende il colore della sezione */
.hero h1 .w:last-child > span { color: #e04510; } /* arancione abbastanza scuro per 3:1 sul bianco */
#services { --hc: #1f9d55; } #work { --hc: #7b5cff; } #games { --hc: #2fd38a; } #how { --hc: #0a87a3; } #faq { --hc: #e8336d; } #request { --hc: #ff5a1f; }
.head h2 .w:last-child > span { color: var(--hc, var(--orange)); }
.head h2 { position: relative; }
.head h2::after { content: ""; position: absolute; left: 0; bottom: -14px; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--hc, var(--orange)), #ff3d8b, #7b5cff); }
@media (max-width: 700px) {
  .avail { display: none; }
  .h1-tick { display: none; }
  .eggs:not(.found) { display: none; } /* sul telefono compare solo dopo il primo uovo trovato */
  .wordmark { margin-top: 8px; }
  .wm { max-height: none; }
}
/* ---------- giro 13 ---------- */
/* forme a filo che fluttuano ai lati di ogni sezione */
.section { position: relative; }
.shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; display: block; will-change: translate; }
.shape svg { display: block; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .55; animation: spin2 var(--rs, 30s) linear infinite; animation-direction: var(--dir, normal); }
.section > .wrap { position: relative; z-index: 1; }
@media (max-width: 700px) { .shape:nth-child(n+4) { display: none; } }

/* la chiusura */
.foot-big { position: relative; padding: clamp(40px, 7vw, 90px) 0 10px; text-align: center; white-space: nowrap; font: 800 clamp(3rem, 1rem + 9vw, 10rem)/.9 var(--display); letter-spacing: -.05em; user-select: none; }
.foot-big span { display: block; }
.fb-out { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28); }
.fb-fill { position: absolute; left: 0; right: 0; top: clamp(40px, 7vw, 90px); color: #fff; clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0); }
.fb-fill i { font-style: normal; }
.fb-fill i:nth-child(1) { color: #ff5a1f; } .fb-fill i:nth-child(2) { color: #ff3d8b; } .fb-fill i:nth-child(3) { color: #7b5cff; } .fb-fill i:nth-child(4) { color: #22c3ee; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 32px; align-items: end; margin-top: 40px; }
.foot-say { font: 650 clamp(1.25rem, 1rem + .8vw, 1.75rem)/1.2 var(--display); color: #fff; letter-spacing: -.02em; margin-bottom: 18px; max-width: 22ch; }
.foot-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: var(--r-m); overflow: hidden; }
.foot-facts div { padding: 14px 16px; background: var(--night); }
.foot-facts dt { font: 500 .75rem var(--mono); color: #8d97a8; letter-spacing: .04em; text-transform: uppercase; }
.foot-facts dd { margin-top: 6px; font-weight: 600; color: #fff; }
.clock { font-family: var(--mono); color: #ffb08f; }
.to-top { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; background: #fff; color: var(--ink); transition: transform .4s var(--ease); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { transform: translateY(-4px); }
.to-top:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@keyframes launch { 40% { transform: translateY(-26px) scale(.9); } 100% { transform: none; } }
.to-top.go { animation: launch .7s var(--ease); }
.foot .btn-orange:focus-visible { outline-color: #fff; }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: 1fr; } .foot-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .foot-big { white-space: normal; } .fb-fill { display: none; } .fb-out { -webkit-text-stroke: 0; color: #fff; } }

/* un riflesso passa sulle schermate dei lavori */
.shot { overflow: hidden; }
.shot .pic, .shot > img, .shot > video { position: relative; }
.shot::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 3; pointer-events: none; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .shot:hover::before { animation: shine 1.1s var(--ease); } }
@keyframes shine { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }

/* il punto in testa alla linea arancione: segue lo scorrimento */
.steps-line { position: relative; }
.steps-line .runner { position: absolute; z-index: 2; top: 4px; left: calc(var(--run, 1) * (100% - 10px)); width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--orange); pointer-events: none; }
@media (max-width: 700px) { .steps-line .runner { display: none; } }
/* ---------- i mondi dei servizi ---------- */
.world {
  --gr: 40px; --gm: max(12px, (100% - 1416px) / 2);
  position: relative; z-index: 1; margin-top: clamp(40px, 6vw, 80px); padding: clamp(80px, 10vw, 140px) 0; overflow: hidden;
  clip-path: inset(0 calc(var(--gm) * (1 - var(--g, 0))) round calc(var(--gr) * (1 - var(--g, 0))));
}
.world-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.world > .wrap { position: relative; z-index: 1; }
.world-head { max-width: 900px; margin-bottom: 64px; }
.world-head h2 { font: 800 clamp(2.75rem, 1.4rem + 4.6vw, 6rem)/.95 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.world-head p { margin-top: 22px; max-width: 52ch; font-size: 1.1875rem; }
.world .case { margin-bottom: 0; }
.world .case.flip .art, .world .case .art { grid-row: auto; }
.w-xls { background: radial-gradient(120% 80% at 80% 0%, #0d5236 0%, #062a1c 55%, #04190f 100%); }
.w-pdf { background: radial-gradient(120% 80% at 20% 0%, #1c2a63 0%, #0b1230 55%, #070b1e 100%); }
.w-xls .world-head h2 .w:last-child > span { color: #2fd38a; }
.w-pdf .world-head h2 .w:nth-last-child(-n+2) > span { color: #ff8a5c; }
/* testo chiaro sui mondi scuri */
.world.dark { color: #eef1f6; }
.world.dark .world-head p, .world.dark .case .text > p { color: #b9c3d3; }
.world.dark .case h3 { color: #fff; }
.world.dark .prov li { border-top-color: rgba(255, 255, 255, .1); color: #d7deea; }
.world.dark .prov li.label { color: #b5c0cf; }
.world.dark .prov li.label::before { background: #3a4a5c; }
.world.dark .shot figcaption { color: var(--ink-2); }
.world.dark .cn { --c: rgba(255, 255, 255, .45); }
.world.dark :hover > .cn { --c: #ff8a5c; }
.w-xls :hover > .cn { --c: #2fd38a; }
.world.dark .try { border-top-color: rgba(255, 255, 255, .12); }
.world.dark .try-cell label { color: #fff; }
.world.dark .try-kpi { background: rgba(255, 255, 255, .1); }
.world.dark .try-kpi div { background: rgba(255, 255, 255, .05); }
.world.dark .try-kpi dt { color: #b5c0cf; }
.world.dark .try-kpi dd { color: #fff; }
.world.dark .try-bars i { background: rgba(47, 211, 138, .3); }
.world.dark .try-bars i.on { background: #2fd38a; }
.world.dark .try-note { color: #b5c0cf; }
.world .case::before { display: none; }
.world.dark .arrow { background: #ff5a1f; color: var(--ink); }
.w-xls .shot, .w-pdf .shot { box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 40px 80px -30px rgba(0, 0, 0, .8); }
/* il mondo dei siti: la maniglia per stringere lo schermo */
.resizer { margin-top: 72px; padding: 20px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(123, 92, 255, .25), 0 30px 60px -30px rgba(60, 30, 140, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); position: relative; }
.rs-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rs-dots { display: flex; gap: 6px; } .rs-dots i { width: 10px; height: 10px; border-radius: 50%; background: #c9bdf5; }
.rs-read { font: 600 .8125rem var(--mono); color: #5b3fd6; }
.rs-stage { height: 420px; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; border-radius: 14px; background: repeating-linear-gradient(45deg, rgba(123, 92, 255, .05) 0 10px, transparent 10px 20px); }
.rs-frame { position: relative; height: 100%; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 0 0 2px #7b5cff, 0 20px 40px -20px rgba(60, 30, 140, .5); transition: box-shadow .3s; }
.rs-frame img { width: 100%; height: auto; display: block; }
.rs-frame .rs-phone { display: none; }
.rs-frame.is-phone .rs-desk { display: none; }
.rs-frame.is-phone .rs-phone { display: block; }
.rs-label { display: block; margin-top: 16px; font-weight: 650; color: var(--ink); }
#rs-range { width: 100%; margin-top: 8px; accent-color: #7b5cff; height: 28px; cursor: ew-resize; }
#rs-range:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
@media (max-width: 700px) {
  .world { --gr: 28px; --gm: 8px; }
  .world-head { margin-bottom: 40px; }
  .rs-stage { height: 300px; }
}
/* il testo dei lavori sta su una lastra di vetro: lo sfondo vivo non disturba la lettura */
.world .case .text { padding: 28px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.world.dark .case .text { background: rgba(6, 10, 22, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.w-xls .case .text { background: rgba(4, 25, 15, .66); }
.world-head { padding: 0; }
.world-head p { text-shadow: 0 1px 12px rgba(0, 0, 0, .15); }
/* ---------- da provare: mini foglio e pulitore ---------- */
.minisheet, .cleaner { margin-top: 72px; padding: 28px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 40px 80px -30px rgba(0, 0, 0, .8); position: relative; }
.ms-head, .cl-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: end; margin-bottom: 20px; }
.ms-head h3, .cl-head h3 { font: 700 1.75rem/1.1 var(--display); letter-spacing: -.025em; }
.ms-head p, .cl-head p { color: var(--ink-2); }
.ms-fx { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 8px 8px 0 0; background: #f4f6f8; box-shadow: inset 0 0 0 1px var(--line); font: 500 .875rem var(--mono); }
.ms-name { min-width: 44px; padding-right: 12px; border-right: 1px solid var(--line-2); color: var(--ink-2); }
.ms-eq { color: #0b6b3a; font-style: italic; font-weight: 700; }
.ms-scroll { overflow-x: auto; }
.minisheet table { width: 100%; border-collapse: collapse; font: 500 .9375rem var(--mono); }
.minisheet th { background: #f4f6f8; color: var(--ink-3); font-weight: 600; font-size: .8125rem; padding: 6px 10px; border: 1px solid var(--line); }
.minisheet thead th { text-align: center; }
.minisheet td { border: 1px solid var(--line); padding: 0; height: 40px; position: relative; }
.minisheet td:not(:has(input)) { padding: 0 10px; }
.minisheet .ms-cap td { padding: 0 10px; font-weight: 700; color: var(--ink); background: #e8f5ee; font-family: var(--sans); }
.minisheet input { all: unset; box-sizing: border-box; width: 100%; height: 40px; padding: 0 10px; text-align: right; background: #fffbe6; cursor: text; }
.minisheet input:focus { box-shadow: inset 0 0 0 2px #1f9d55; background: #fff; }
.minisheet td.calc { text-align: right; }
.minisheet td.sel { box-shadow: inset 0 0 0 2px #1f9d55; }
.minisheet tfoot td { font-weight: 700; background: #f7faf8; }
.minisheet td.total { color: #0b6b3a; }
@keyframes flash { from { background: rgba(47, 211, 138, .55); } }
.minisheet td.flash { animation: flash .9s var(--ease); }
.ms-note { margin-top: 12px; font-size: .8125rem; color: var(--ink-3); }

.cl-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.cl-in label { display: block; font-weight: 650; margin-bottom: 8px; }
.cl-in textarea { display: block; width: 100%; height: 300px; padding: 12px; border: 0; border-radius: var(--r-m); background: #0b1230; color: #c9d3ee; font: 500 .8125rem/1.6 var(--mono); box-shadow: inset 0 0 0 1px #24305c; resize: vertical; caret-color: #ff8a5c; }
.cl-in textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.cl-in .btn { margin-top: 14px; }
.cl-table { max-height: 300px; overflow: auto; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); }
.cl-table table { width: 100%; border-collapse: collapse; font: 500 .8125rem var(--mono); }
.cl-table th { position: sticky; top: 0; background: #1f6f43; color: #fff; text-align: left; padding: 8px; font-weight: 600; }
.cl-table td { padding: 7px 8px; border-top: 1px solid var(--line); }
.cl-table .n { text-align: right; }
.cl-table tbody tr:nth-child(even) { background: #f7f9fb; }
.cl-table tr.bad td { background: #fff0ea; color: #c53b0a; }
.cleaner.done .cl-table tbody tr { animation: rise .4s var(--ease) backwards; }
.cl-report { list-style: none; margin-top: 14px; font-size: .875rem; }
.cl-report li { position: relative; padding: 6px 0 6px 24px; border-top: 1px solid var(--line); }
.cl-report li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); }
.cl-report li.ok::before { background: var(--green); }
.cl-report li.rm::before { background: var(--orange); }
.cl-report li.warn { color: #c53b0a; font-weight: 600; }
.cl-report li.warn::before { background: #c53b0a; }
@media (max-width: 900px) { .ms-head, .cl-head, .cl-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .minisheet, .cleaner { padding: 18px; } .cl-in textarea { height: 220px; } }
.minisheet .c0 { width: 44px; } .minisheet .c1 { width: 34%; } .minisheet .c2, .minisheet .c3 { width: 18%; }
/* ---------- la scheda EN / IT ---------- */
.langcard { margin-top: 72px; padding: 28px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 40px 80px -30px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lc-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: end; margin-bottom: 22px; }
.lc-head h3 { font: 700 1.75rem/1.1 var(--display); letter-spacing: -.025em; }
.lc-head p { color: var(--ink-2); }
.lc-body { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.lc-switch { position: relative; display: grid; gap: 4px; padding: 4px; border-radius: 18px; background: #2a1420; }
.lc-switch button { all: unset; position: relative; z-index: 1; width: 64px; height: 56px; display: grid; place-items: center; border-radius: 14px; cursor: pointer; font: 700 1.125rem var(--mono); color: #c9a7b6; transition: color .3s var(--ease); }
.lc-switch button[aria-pressed="true"] { color: #fff; }
.lc-switch button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.lc-knob { position: absolute; left: 4px; top: 4px; width: 64px; height: 56px; border-radius: 14px; background: #e8336d; transition: transform .45s var(--ease); }
.langcard.it .lc-knob { transform: translateY(60px); }
.lc-card { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; padding: 26px; border-radius: 22px; background: #f6efe6; color: #2a1d17; box-shadow: inset 0 0 0 1px #eadccb; }
.lc-bag { position: relative; height: 210px; border-radius: 14px 14px 30px 30px; background: linear-gradient(160deg, #c8461f, #a23516); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; box-shadow: 0 20px 30px -18px rgba(90, 30, 10, .7); transition: transform .6s var(--ease); }
.langcard.it .lc-bag { transform: rotate(-4deg) scale(1.03); }
.lc-bag span { font: 700 .75rem var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.lc-bag b { font: 700 1.5rem Georgia, "Times New Roman", serif; }
.lc-bag i { font: italic .875rem Georgia, serif; }
.lc-text h4 { font: 700 clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.01em; min-height: 2.2em; }
.lc-text > p { margin-top: 10px; color: #5a463b; min-height: 3em; }
.lc-label { margin-top: 16px !important; font: 700 .75rem var(--sans) !important; letter-spacing: .12em; text-transform: uppercase; color: #6e5446 !important; min-height: 0 !important; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lc-chips span { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #e2d2c0; font-weight: 600; font-size: .9375rem; }
.lc-chips span:first-child { background: #2a1d17; color: #fff; box-shadow: none; }
.lc-moka { background: #e8336d !important; color: #fff; box-shadow: none !important; }
.lc-moka em { font-style: normal; font-size: .75rem; font-weight: 600; opacity: .85; margin-left: 4px; }
@keyframes pop2 { from { transform: scale(.3); opacity: 0; } }
.motion .lc-moka:not([hidden]) { animation: pop2 .5s var(--ease) .5s backwards; }
.lc-tag { margin-top: 16px !important; font: italic 600 1rem Georgia, serif; color: #b23c1c !important; min-height: 0 !important; }
@media (max-width: 900px) { .lc-head, .lc-card { grid-template-columns: 1fr; } .lc-bag { height: 140px; } }
@media (max-width: 700px) { .langcard { padding: 18px; } .lc-body { grid-template-columns: 1fr; } .lc-switch { grid-auto-flow: column; justify-self: start; } .langcard.it .lc-knob { transform: translateX(68px); } }
.off *, .off *::before, .off *::after { animation-play-state: paused !important; } /* parti fuori dallo schermo: animazioni in pausa */
/* il pannello di config.yml */
.cfg { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 14px; align-items: end; margin-top: 16px; padding: 18px 20px; border-radius: var(--r-l); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cfg-title { font-size: .875rem; color: #aab4c4; }
.cfg-title code { font-family: var(--mono); color: #8fe3b4; }
.cfg label { display: grid; gap: 6px; font-size: .8125rem; color: #d7deea; }
.cfg label span { font-weight: 600; }
.cfg select { appearance: none; -webkit-appearance: none; padding: 8px 30px 8px 10px; border: 0; border-radius: 8px; background: #05070c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d7deea' stroke-width='1.8'/%3E%3C/svg%3E") right 10px center / 10px no-repeat; color: #fff; font: 600 .875rem var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); cursor: pointer; }
.cfg input[type=range] { width: 100%; accent-color: #2fd38a; cursor: pointer; }
.cfg output { font: 600 .8125rem var(--mono); color: #2fd38a; }
.cfg select:focus-visible, .cfg input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 1100px) { .cfg { grid-template-columns: 1fr 1fr; } .cfg-title { grid-column: 1 / -1; } }
@media (max-width: 700px) { .cfg { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } } /* movimento ridotto: nessuna animazione, il contenuto è già al suo posto */
/* 1. le schermate sono fogli bianchi: dentro, sempre inchiostro scuro, anche nei mondi scuri */
.shot, .shot .xl, .xl-chips button { color: var(--ink); }
.world.dark .bilingual, .world.dark .langcard, .world.dark .resizer { color: var(--ink); } /* i pannelli bianchi nei mondi scuri tengono il testo scuro */
.xl-chips button { background: #eef1f5; }
.xl-sum { color: var(--ink); }
.xl-what { color: var(--ink-2); }
/* 5. il contatore degli easter egg: un'icona nel margine, il numero accanto solo al passaggio */
.eggs span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease), margin .4s var(--ease); }
.eggs:hover span, .eggs:focus-visible span, .eggs[aria-expanded="true"] span { max-width: 160px; margin-right: 6px; }
.eggs b.eggs-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ffb020; color: var(--ink); font-size: .6875rem; display: grid; place-items: center; }
/* 8. nome da fermo: tratto a colori e più spesso */
.wm-ink { stroke: url(#wmg); }
@media (max-width: 1100px) { .shape { display: none; } }
/* il tuo gioco: come si modifica di solito */
.gamepick { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.gp-q { font-weight: 650; color: #fff; }
.gp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gp-chips button { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: .8125rem; font-weight: 600; color: #d7deea; transition: background-color .2s, color .2s; }
.gp-chips button[aria-pressed="true"] { background: #2fd38a; color: #062a1c; box-shadow: none; }
.gp-chips button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.gp-out { display: grid; gap: 10px; margin-top: 14px; }
.gp-out dt { font: 600 .6875rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8d97a8; }
.gp-out dd { margin-top: 3px; color: #eef1f6; }
.gamepick.no .gp-chips button[aria-pressed="true"] { background: #ff7a6b; color: #2a0b06; }
.gamepick.no .gp-route { color: #ffb0a6; font-weight: 650; }
@keyframes gpin { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: no-preference) { .gamepick.flash .gp-out dd { animation: gpin .35s var(--ease); } }
/* il menu sul telefono */
.nav-menu { display: none; }
.nav-sheet { display: none; }
@media (max-width: 1100px) {
  .nav-wrap { flex-direction: column; align-items: center; }
  .nav-menu { all: unset; display: grid; place-content: center; gap: 5px; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; background: rgba(11, 13, 17, .06); margin-left: auto; }
  .nav-menu i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
  .nav-menu[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-menu[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-menu:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
  .nav.on-dark .nav-menu { background: rgba(255, 255, 255, .1); color: #fff; }
  .brand { margin-right: 0; }
  .nav-sheet:not([hidden]) { display: grid; gap: 6px; pointer-events: auto; width: min(100% - 32px, 980px); margin-top: 8px; padding: 10px; border-radius: 24px;
    background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px rgba(205, 211, 221, .8), 0 24px 50px -20px rgba(11, 13, 17, .45); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .nav-sheet a { display: grid; grid-template-columns: 10px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: var(--ink); }
  .nav-sheet a::before { content: ""; grid-row: span 2; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
  .nav-sheet a b { font: 650 1.0625rem var(--display); }
  .nav-sheet a span { font-size: .8125rem; color: var(--ink-2); }
  .nav-sheet a:hover, .nav-sheet a:focus-visible { background: color-mix(in srgb, var(--c) 12%, transparent); outline: none; }
}
@media (prefers-reduced-motion: no-preference) { .nav-sheet:not([hidden]) { animation: rise .35s var(--ease); } }
/* Siti e Traduzioni diventano immersivi come Excel e Dati */
.w-web { background: radial-gradient(120% 80% at 80% 0%, #3a1f8a 0%, #170b3d 55%, #0d0726 100%); }
.w-tr { background: radial-gradient(120% 80% at 20% 0%, #6b1238 0%, #2a0b18 55%, #17060d 100%); }
.w-web .world-head h2 .w:last-child > span { color: #a48bff; }
.w-tr .world-head h2 .w:nth-last-child(-n+2) > span { color: #ff6b9a; }
.w-web .case .text { background: rgba(13, 7, 38, .66); }
.w-tr .case .text { background: rgba(23, 6, 13, .66); }
.w-web :hover > .cn { --c: #a48bff; }
.w-tr :hover > .cn { --c: #ff6b9a; }
.w-web .shot { box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.w-tr .bilingual, .w-tr .langcard, .w-web .resizer { box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.w-web .resizer { background: rgba(255, 255, 255, .96); }
.w-tr .langcard { background: rgba(255, 255, 255, .95); }
/* la barra degli strumenti dell'isola */
.games .wrap, .games .head { pointer-events: none; } /* l'isola sotto il titolo resta cliccabile */
.games .wrap > :not(.head), .games .head > * { pointer-events: auto; }
.hotbar { position: absolute; z-index: 2; left: 46%; right: 0; top: 480px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.hotbar { counter-reset: slot; }
.hotbar button { all: unset; position: relative; counter-increment: slot; box-sizing: border-box; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14); transition: transform .25s var(--ease), box-shadow .25s; }
.hotbar button:hover { transform: translateY(-3px); }
.hotbar button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #2fd38a, 0 0 0 3px rgba(47, 211, 138, .25); background: rgba(47, 211, 138, .12); }
.hotbar button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.hotbar svg { width: 24px; height: 24px; fill: none; stroke: #e6ebf3; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hotbar i { width: 22px; height: 22px; border-radius: 4px; background: linear-gradient(var(--a) 0 40%, var(--b) 40%); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .25); }
.hb-hint { margin-left: 8px; font: 500 .75rem/1.4 var(--mono); color: #aab4c4; }
.hb-mode { color: #2fd38a; font-weight: 700; }
.hb-count { color: #f6c76b; }
#voxel.build { cursor: copy; }
@media (hover: hover) { .hotbar button::after { content: counter(slot); position: absolute; right: 4px; bottom: 2px; font: 700 .625rem var(--mono); color: #8d97a8; } }
@media (max-width: 1100px) { .hotbar { left: 16px; right: 16px; top: 380px; } .hb-hint { flex-basis: 100%; margin: 4px 0 0; text-align: center; } }
@media (max-width: 700px) { .hotbar { top: 318px; } .games .head { padding-top: 330px; } }
