/* LiveTools — sito del prodotto. Token da "Stage Obsidian Amber" (web/src/app/globals.css). */
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0b0f17;
  --bg-deep: #05070c;
  --bg-elev: #111827;
  --surface: #161d2b;
  --surface-2: #1e293b;
  --surface-3: #283548;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .12);
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --blue: #2f8bff;
  --violet: #a78bfa;
  --violet-strong: #8b5cf6;
  --magenta: #e04fd0;
  --orange: #ff8a1f;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-ink: #0b0f17;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --yes: #22c55e;
  --danger: #f43f5e;
  --grad-brand: linear-gradient(110deg, #2f8bff 0%, #8b5cf6 38%, #e04fd0 62%, #ff8a1f 100%);
  --grad-cta: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 4px; }
kbd { font: 600 .8em var(--mono); padding: .1em .45em; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px; color: var(--text); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { left: 8px; }

.amber { color: var(--accent-light); }
.cyan { color: var(--cyan); }
.violet { color: var(--violet); }
.grad { color: var(--accent-light); }

h2 { font: 800 clamp(2rem, 3.9vw, 3.5rem)/1.08 var(--display); font-stretch: 104%; letter-spacing: -.022em; text-wrap: balance; }
h2 em { display: inline-block; }
h3 { font: 700 1.14rem/1.25 var(--body); letter-spacing: -.01em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--text-2); max-width: 54ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 24px; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .16s var(--ease-out), box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-light); }
.btn-ghost { background: rgba(255, 255, 255, .05); border-color: var(--border-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 7px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 1.1rem; }

/* ---------- Nav ---------- */
.nav { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 18px var(--gutter); }
.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav-brand img { height: 34px; width: auto; }
.nav-brand .wordmark { height: 24px; }
.nav-links { display: flex; gap: 24px; font-size: .93rem; font-weight: 500; }
.nav-links a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--accent-light); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(96px, 13vh, 150px) var(--gutter) clamp(48px, 7vw, 96px); overflow: hidden; background: linear-gradient(180deg, #101624 0%, var(--bg) 70%); border-bottom: 1px solid var(--border); }
.beams { display: none;  position: absolute; inset: 0 0 auto 0; height: min(1080px, 120vh); z-index: -1; pointer-events: none; overflow: hidden; --pulse: 0; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.beam { position: absolute; top: -8%; left: var(--x); width: clamp(240px, 34vw, 620px); height: 118%; margin-left: calc(clamp(240px, 34vw, 620px) / -2); transform-origin: 50% 0; opacity: calc(.42 + var(--pulse) * .4); mix-blend-mode: screen; filter: blur(16px); animation: sway var(--d) ease-in-out infinite alternate; will-change: transform; }
.beams.paused .beam { animation-play-state: paused; }
.beam::before { content: ''; position: absolute; inset: 0; clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, var(--c), transparent 88%); }
@keyframes sway { from { transform: rotate(calc(var(--a) - 11deg)); } to { transform: rotate(calc(var(--a) + 11deg)); } }

.hero-copy { position: relative; max-width: 1320px; margin: 0 auto; text-align: center; }
.hero-title { font: 800 clamp(2.7rem, min(6.2vw, 12vh), 6.2rem)/1.04 var(--display); font-stretch: 108%; letter-spacing: -.03em; display: flex; flex-direction: column; align-items: center; gap: .1em; }
.hl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .08em .24em; }
.hero-title .line { display: inline-block; }
.hero-title em { color: var(--accent-light); padding-right: .04em; white-space: nowrap; }
.keycap { --press: 0; appearance: none; cursor: pointer; font: inherit; letter-spacing: -.03em; text-transform: inherit; line-height: 1; color: var(--accent-ink); padding: .1em .32em .14em; border-radius: .16em; border: 0; background: linear-gradient(180deg, #fde08a, #fbbf24 38%, #f59e0b); box-shadow: 0 .09em 0 #a96a06, 0 .14em 0 #6b4304, 0 .3em .9em rgba(245, 158, 11, .42), inset 0 .018em 0 rgba(255, 255, 255, .7); transition: transform .09s ease-out, box-shadow .09s ease-out; }
.keycap:hover { filter: brightness(1.06); }
.keycap.is-down { transform: translateY(.07em); box-shadow: 0 .02em 0 #a96a06, 0 .05em 0 #6b4304, 0 .12em .5em rgba(245, 158, 11, .5), inset 0 .018em 0 rgba(255, 255, 255, .5); }
.keycap.is-on { animation: none; background: linear-gradient(180deg, #bbf7d0, #4ade80 40%, #22c55e); box-shadow: 0 .09em 0 #15803d, 0 .14em 0 #0d5227, 0 .3em .9em rgba(34, 197, 94, .42), inset 0 .018em 0 rgba(255, 255, 255, .7); }
@keyframes keyglow { 50% { filter: brightness(1.13); } }
.k-touch { display: none; }
@media (hover: none), (pointer: coarse) { .k-desk { display: none; } .k-touch { display: inline; } }

.hero-sub { max-width: 44ch; margin: clamp(26px, 3.4vw, 44px) auto 0; font-size: clamp(1.1rem, 1.8vw, 1.42rem); line-height: 1.45; color: var(--text-2); text-wrap: balance; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-meta { flex-basis: 100%; font: 500 .8rem var(--mono); color: var(--muted); margin-top: 2px; }

/* ---------- Mock app ---------- */
.app-wrap { max-width: 1320px; margin: clamp(40px, 6vw, 76px) auto 0; perspective: 1800px; }
.app { position: relative; display: flex; flex-direction: column; border-radius: 14px; background: var(--bg-deep); border: 1px solid var(--border-strong); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 90px -20px rgba(139, 92, 246, .38); overflow: hidden; transform: rotateX(var(--tilt, 0deg)); transform-origin: 50% 0; font-size: 12px; line-height: 1.3; }

.tp { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-elev); border-bottom: 1px solid var(--border); }
.tp-brand { display: flex; align-items: center; gap: 6px; padding-right: 6px; }
.tp-brand img { height: 18px; width: auto; }
.tp-brand strong { font-size: 13px; font-weight: 800; }
.tp-brand span { color: var(--accent-light); }
.tp-group { display: flex; gap: 3px; }
.t-btn { display: grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.t-btn:hover { background: var(--surface-3); color: var(--text); }
.t-btn.play.is-on { background: var(--yes); border-color: var(--yes); color: #03170a; }
.lcd { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: 7px; background: #030509; border: 1px solid var(--border); font-family: var(--mono); }
.lcd-bars { min-width: 3.6em; font-size: 17px; font-weight: 700; color: var(--accent-light); font-variant-numeric: tabular-nums; }
.lcd-bars.is-count { color: var(--danger); }
.lcd-time { font-size: 10px; line-height: 1.2; color: var(--text-2); font-variant-numeric: tabular-nums; }
.faint { color: var(--faint); }
.leds { display: inline-flex; gap: 3px; }
.leds i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.leds i.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.leds i.first.on { background: var(--accent-light); box-shadow: 0 0 8px var(--accent-light); }
.lcd-info { gap: 14px; }
.f { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.f b { font-size: 13px; color: var(--text); }
.f span { font-size: 8.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-family: var(--body); }
.tp-tags { display: flex; gap: 5px; }
.tag { padding: 5px 8px; border-radius: 6px; border: 1px solid var(--border-strong); font-weight: 600; font-size: 11px; color: var(--text-2); white-space: nowrap; }
.tag.on { font-family: var(--mono); color: var(--accent-light); border-color: rgba(245, 158, 11, .45); }
.tag.cyan { color: var(--cyan); border-color: rgba(6, 182, 212, .35); }
.tag.amber { background: rgba(245, 158, 11, .14); color: var(--accent-light); border-color: rgba(245, 158, 11, .45); }
.views { display: flex; margin-left: auto; padding: 2px; border-radius: 7px; background: #030509; font-weight: 600; font-size: 11px; color: var(--muted); }
.views span { padding: 6px 9px; border-radius: 5px; }
.views .on { background: var(--surface-3); color: var(--accent-light); }

.ws { display: grid; grid-template-columns: 180px minmax(0, 1fr) 176px; min-height: 340px; }
.browser { padding: 12px 10px; background: var(--bg-elev); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.browser h3 { font-size: 12px; margin: 0 4px 8px; }
.b-list li { position: relative; display: grid; grid-template-columns: 18px 1fr; column-gap: 4px; padding: 6px 6px; border-radius: 6px; font-weight: 600; color: var(--text-2); }
.b-list li span { font: 500 10px/1.6 var(--mono); color: var(--faint); grid-row: span 2; }
.b-list small { color: var(--faint); font: 500 10px var(--mono); }
.b-list li.on { background: rgba(245, 158, 11, .12); color: var(--accent-light); box-shadow: inset 2px 0 0 var(--accent); }
.b-list li.on small, .b-list li.on span { color: rgba(251, 191, 36, .8); }
.b-list li.sep { display: block; padding: 3px 6px; font: 500 10px var(--mono); color: var(--violet); }
.b-off { margin-top: auto; display: flex; gap: 6px; align-items: center; padding: 8px 4px 0; font-size: 11px; color: var(--muted); }
.b-off i { width: 7px; height: 7px; border-radius: 50%; background: var(--yes); }

.tl { min-width: 0; background: #070a11; }
.tl-scroll { position: relative; height: 100%; cursor: pointer; outline-offset: -2px; }
.ruler { position: relative; height: 20px; background: var(--bg-elev); border-bottom: 1px solid var(--border); font: 500 9px/20px var(--mono); color: var(--muted); }
.ruler span { position: absolute; top: 0; padding-left: 3px; border-left: 1px solid var(--border-strong); height: 100%; }
.locators { position: relative; height: 18px; background: #0d121c; border-bottom: 1px solid var(--border); }
.locators span { position: absolute; top: 2px; bottom: 2px; padding: 0 5px; overflow: hidden; font: 600 10px/14px var(--body); color: var(--text-2); background: rgba(139, 92, 246, .2); border-left: 2px solid var(--violet-strong); white-space: nowrap; }
.locators .chorus { background: rgba(245, 158, 11, .2); border-left-color: var(--accent); color: var(--accent-light); }
.lane { position: relative; height: 40px; border-bottom: 1px solid var(--border); transition: opacity .2s; }
.lane canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lane.off { opacity: .22; }
.lane-video { display: flex; gap: 2px; padding: 3px 0; }
.lane-video i { flex: 1; border-radius: 2px; background: linear-gradient(135deg, rgba(224, 79, 208, .5), rgba(47, 139, 255, .3)); }
.lane-video i:nth-child(3n) { background: linear-gradient(135deg, rgba(255, 138, 31, .5), rgba(224, 79, 208, .3)); }
.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--accent-light); box-shadow: 0 0 12px var(--accent); pointer-events: none; will-change: transform; }
.playhead::before { content: ''; position: absolute; top: 0; left: -4px; border: 5px solid transparent; border-top-color: var(--accent-light); }

.heads { background: var(--bg-elev); border-left: 1px solid var(--border); padding-top: 38px; }
.head { display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 7px; border-bottom: 1px solid var(--border); box-shadow: inset 3px 0 0 var(--tc, var(--accent)); }
.head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; padding-left: 3px; }
.ms { width: 22px; height: 22px; padding: 0; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--surface-2); font: 700 10px var(--mono); color: var(--muted); cursor: pointer; }
.ms:hover { color: var(--text); }
.ms.m[aria-pressed='true'] { background: var(--danger); border-color: var(--danger); color: #fff; }
.ms.s[aria-pressed='true'] { background: var(--accent-light); border-color: var(--accent-light); color: var(--accent-ink); }
.meter { width: 6px; height: 28px; border-radius: 2px; background: #030509; overflow: hidden; display: flex; align-items: flex-end; }
.meter i { display: block; width: 100%; height: 100%; background: linear-gradient(0deg, var(--yes) 0 62%, var(--accent-light) 62% 86%, var(--danger) 86%); transform: scaleY(0); transform-origin: bottom; will-change: transform; }

.statusbar { display: flex; align-items: center; gap: 14px; padding: 6px 12px; background: var(--bg-elev); border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.pages { display: flex; gap: 9px; }
.pages b { color: var(--accent-light); }
.note { margin-left: auto; text-align: right; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-deep); padding: clamp(14px, 2vw, 24px) 0; }
.marquee-track { display: flex; width: max-content; gap: .9em; font: 900 clamp(2rem, 6vw, 5rem)/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; animation: marq 36s linear infinite; }
.marquee-track span { color: transparent; -webkit-text-stroke: 1.5px var(--surface-3); }
.marquee-track span:nth-child(7n+1) { -webkit-text-stroke-color: var(--blue); }
.marquee-track span:nth-child(7n+3) { -webkit-text-stroke-color: var(--magenta); }
.marquee-track span:nth-child(7n+5) { -webkit-text-stroke-color: var(--orange); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { max-width: 1320px; margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--gutter); }
.row-head { display: grid; grid-template-columns: 44px auto 1fr; align-items: baseline; gap: 10px; padding: 14px 0 0; margin-bottom: clamp(26px, 3.4vw, 44px); border-top: 1px solid var(--border-strong); }
.row-head .n { font: 700 1rem var(--mono); color: var(--accent-light); }
.row-head .t { font-weight: 600; color: var(--text); font-size: .95rem; }
.row-head .m { font: 500 .78rem var(--mono); color: var(--muted); text-align: right; }

.split { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split h2 { margin-bottom: 26px; }
.ticks { display: grid; gap: 11px; margin-top: 26px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; font: 600 .76rem var(--mono); color: var(--muted); }
.formats span { padding: 4px 9px; border: 1px solid var(--border-strong); border-radius: 6px; }

.matrix { padding: clamp(16px, 2.4vw, 28px); border-radius: 18px; background: linear-gradient(180deg, var(--surface), var(--bg-elev)); border: 1px solid var(--border-strong); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.matrix-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 18px; }
.matrix-head span { font-size: .84rem; color: var(--muted); }
.matrix-grid { display: grid; grid-template-columns: minmax(84px, 1.3fr) repeat(4, minmax(42px, 1fr)); gap: 6px; align-items: center; }
.mx-col { text-align: center; font: 600 .72rem var(--mono); color: var(--muted); padding-bottom: 4px; }
.mx-role { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .93rem; }
.mx-role::before { content: ''; width: 4px; height: 26px; border-radius: 2px; background: var(--rc); }
.mx-cell { height: 50px; border-radius: 9px; border: 1px solid var(--border); background: #070a11; cursor: pointer; display: grid; place-items: center; transition: background .16s, border-color .16s; padding: 0; }
.mx-cell:hover { border-color: var(--rc); }
.mx-cell i { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-2); transition: transform .24s var(--ease-out), background .16s; }
.mx-cell[aria-checked='true'] { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 17%, #070a11); }
.mx-cell[aria-checked='true'] i { background: var(--rc); transform: scale(1.5); box-shadow: 0 0 16px var(--rc); }
.matrix-note { margin-top: 16px; min-height: 3em; font-size: .9rem; color: var(--text-2); }

/* Griglia */
.grid-title { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.gridbox { border-radius: 18px; overflow: hidden; background: #070a11; border: 1px solid var(--border-strong); }
.gridbox-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--bg-elev); border-bottom: 1px solid var(--border); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #030509; }
.seg button { padding: 8px 13px; min-height: 40px; border: 0; border-radius: 7px; background: none; font-weight: 600; font-size: .88rem; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--surface-3); color: var(--cyan); }
.grid-read { display: flex; gap: clamp(14px, 3vw, 34px); font-family: var(--mono); }
.grid-read dt { font: 500 .66rem var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.grid-read dd { font-weight: 700; font-size: .98rem; color: var(--text); font-variant-numeric: tabular-nums; }
#gridSvg { width: 100%; height: auto; }
.g-line { stroke: rgba(148, 163, 184, .45); stroke-width: 1; transition: transform 1.1s var(--ease-out), stroke .5s; }
.g-line.bar { stroke: var(--accent-light); stroke-width: 2; }
.locked .g-line { stroke: rgba(34, 211, 238, .75); }
.locked .g-line.bar { stroke: var(--accent-light); }
.g-num { fill: var(--accent-light); font: 700 11px var(--mono); transition: transform 1.1s var(--ease-out); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(32px, 4vw, 52px); }
.three h3 { margin-bottom: 8px; }
.three p { color: var(--muted); font-size: .98rem; }

/* Gobbo */
.sec-gobbo { max-width: none; padding-inline: 0; background: #000; }
.sec-gobbo .row-head { max-width: 1208px; margin-inline: auto; width: calc(100% - 2 * var(--gutter)); }
.prompter { min-height: clamp(320px, 54vh, 560px); display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); text-align: center; }
.p-label { display: inline-flex; align-self: center; align-items: center; gap: 8px; font: 600 .82rem var(--mono); color: var(--violet); margin-bottom: 24px; }
.p-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.p-text { font: 800 clamp(2.2rem, 7.4vw, 7rem)/1.06 var(--display); letter-spacing: -.025em; text-wrap: balance; min-height: 2.12em; transition: opacity .16s, transform .32s var(--ease-out); }
.p-text.chg { opacity: 0; transform: translateY(14px); }
.p-next { margin-top: 28px; font-size: clamp(1rem, 1.6vw, 1.32rem); color: var(--muted); }
.p-next span:first-child { font: 600 .74rem var(--mono); text-transform: uppercase; margin-right: 8px; color: var(--faint); }
.gobbo-foot { max-width: 1320px; margin: clamp(32px, 5vw, 64px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.steps { display: grid; gap: 18px; counter-reset: s; }
.steps li { position: relative; padding-left: 46px; color: var(--muted); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(139, 92, 246, .55); font: 700 .86rem var(--mono); color: var(--violet); }
.steps b { display: block; color: var(--text); margin-bottom: 2px; }

/* Rehearsal */
.reh-head { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.reh-head .btn { margin-top: 22px; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tile { --tc: var(--accent); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1; min-height: 136px; padding: 14px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .2s, transform .16s var(--ease-out), background .2s; }
.tile:hover { transform: translateY(-3px); border-color: var(--tc); }
.tile .fill { position: absolute; inset: 0; background: linear-gradient(0deg, var(--tc), transparent); opacity: .85; transform: scaleY(0); transform-origin: bottom; will-change: transform; pointer-events: none; }
.tile b { position: relative; font: 800 clamp(1.02rem, 1.5vw, 1.3rem)/1.1 var(--display); }
.tile small { position: relative; font: 600 .72rem var(--mono); color: var(--text-2); }
.tile[aria-pressed='false'] { background: #070a11; border-style: dashed; }
.tile[aria-pressed='false'] b { color: var(--faint); text-decoration: line-through; }
.tile[aria-pressed='false'] small { color: var(--danger); }

/* Sync */
.sec-sync { position: relative; }
.sync-title { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 5vw, 72px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.sync { display: grid; grid-template-columns: minmax(250px, 1fr) 64px minmax(0, 1.9fr); align-items: center; }
.sync-master { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(245, 158, 11, .45); }
.sync-tag { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; font-weight: 700; color: var(--accent-light); font-size: .88rem; }
.sync-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
#syncSongs { display: grid; gap: 4px; margin-bottom: 14px; }
#syncSongs button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 9px; border: 1px solid transparent; background: var(--surface-2); text-align: left; font-weight: 600; cursor: pointer; transition: background .15s; }
#syncSongs button:hover { background: var(--surface-3); }
#syncSongs button small { font: 500 .74rem var(--mono); color: var(--muted); white-space: nowrap; }
#syncSongs button[aria-pressed='true'] { background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .45); color: var(--accent-light); }
.sync-note { margin-top: 10px; font-size: .76rem; color: var(--muted); }
.sync-wire { position: relative; height: 2px; background: var(--surface-3); }
.sync-wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 14px var(--accent); opacity: 0; }
.sync-wire.go i { animation: wire .5s var(--ease-out); }
@keyframes wire { 0% { left: 0; opacity: 1; } 100% { left: 100%; opacity: 0; } }
.sync-devs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dev { position: relative; padding: 14px 16px; border-radius: 16px; background: #030509; border: 1px solid var(--border-strong); min-height: 136px; display: flex; flex-direction: column; transition: border-color .3s, box-shadow .3s; }
.dev.hit { border-color: var(--cyan); box-shadow: 0 0 34px -8px var(--cyan); }
.dev-top { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted); }
.dev-top b { color: var(--text-2); font-weight: 600; }
.dev-ping { font: 600 .74rem var(--mono); color: var(--cyan); }
.dev-title { margin-top: auto; padding-top: 12px; font: 800 clamp(1.05rem, 2.1vw, 1.7rem)/1.1 var(--display); }
.dev-data { margin-top: 3px; font: 600 .8rem var(--mono); color: var(--accent-light); }

/* Bento */
#palco h2 { margin-bottom: clamp(30px, 5vw, 56px); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.b { position: relative; overflow: hidden; padding: clamp(18px, 2.2vw, 28px); border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.b h3 { margin-bottom: 7px; }
.b p { color: var(--muted); font-size: .96rem; }
.b-score { grid-column: span 7; grid-row: span 2; flex-direction: row; gap: clamp(16px, 2.6vw, 30px); align-items: stretch; background: linear-gradient(135deg, var(--surface), var(--bg-elev)); }
.b-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.soon { align-self: flex-start; margin-bottom: 12px; padding: 3px 9px; border-radius: 99px; font: 600 .7rem var(--mono); color: var(--cyan); background: rgba(6, 182, 212, .15); }
.pedal { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.pedal button { width: 62px; height: 46px; border-radius: 10px; border: 1px solid var(--border-strong); border-bottom-width: 3px; background: var(--surface-3); cursor: pointer; transition: transform .08s; }
.pedal button:active { transform: translateY(2px); }
.pedal span { font: 500 .78rem var(--mono); color: var(--muted); }
.sheet { flex: 0 0 44%; position: relative; aspect-ratio: 3 / 4; align-self: center; border-radius: 6px; background: #f6f1e4; color: #1b1b1b; padding: 7%; overflow: hidden; box-shadow: 0 24px 60px -14px #000; transition: transform .34s var(--ease-out), opacity .2s; }
.sheet.turn { transform: translateX(-16px) rotateY(16deg); opacity: 0; }
.sheet h4 { margin: 0 0 8%; font: 800 clamp(.75rem, 1.3vw, 1.05rem) var(--display); }
.sheet .stf { display: block; height: 11%; margin-bottom: 5%; background: repeating-linear-gradient(180deg, #1b1b1b 0 1px, transparent 1px 20%); }
.sheet .pg { position: absolute; bottom: 4%; right: 7%; font: 600 .68rem var(--mono); color: #57534e; }
.b-video { grid-column: span 5; }
.film { display: flex; gap: 3px; height: 74px; margin-bottom: 16px; }
.film i { flex: 1; border-radius: 4px; background: linear-gradient(135deg, var(--magenta), var(--violet-strong)); opacity: .55; }
.film i:nth-child(2n) { background: linear-gradient(135deg, var(--orange), var(--magenta)); }
.film i:nth-child(3n) { background: linear-gradient(135deg, var(--blue), var(--violet-strong)); }
.b-cue { grid-column: span 5; }
.big { font: 900 clamp(3.6rem, 7vw, 6rem)/1 var(--display); font-stretch: 125%; margin-bottom: 8px; align-self: flex-start; }
.b-stage { grid-column: span 5; background: #000; border-color: var(--border-strong); }
.stage-screen { padding: 8px 0 16px; }
.stage-screen small { display: block; font: 600 .78rem var(--mono); color: var(--accent-light); }
.stage-screen b { font: 900 clamp(1.9rem, 3.6vw, 3rem)/1.05 var(--display); }
.b-midi { grid-column: span 3; }
.b-midi code { display: block; margin-bottom: 16px; font: 700 .94rem/1.5 var(--mono); color: var(--cyan); }
.b-lib, .b-hist { grid-column: span 2; }
.b-lib { grid-column: span 2; }

/* Due app */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side { padding: clamp(24px, 4vw, 52px); border-radius: 22px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: flex-start; }
.side h2 { font-size: clamp(1.9rem, 4vw, 3.5rem); }
.side .ticks { margin: 24px 0 30px; flex: 1; }
.side-desk { background: var(--surface); border-color: rgba(245, 158, 11, .36); }
.side .btn + .btn { margin-top: 10px; }
.eyebrow { margin-bottom: 12px; font: 600 .8rem var(--mono); color: var(--muted); }

/* Piani */
.plans-head { display: grid; gap: 18px; justify-items: start; margin-bottom: clamp(30px, 4vw, 48px); }
.plans-head .soon { margin: 4px 0 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 32px); border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); }
.plan h3 { font: 700 1.35rem/1.2 var(--display); }
.plan-for { margin-top: 6px; color: var(--muted); font-size: .95rem; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.price b { font: 800 clamp(2.2rem, 3.4vw, 2.8rem)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: .95rem; }
.price-alt { margin: 8px 0 22px; font-size: .88rem; color: var(--text-2); min-height: 1.4em; }
.plan .btn { width: 100%; }
.plan .ticks { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.plan .ticks li { font-size: .95rem; }
.plan-main { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.plan-badge { position: absolute; top: clamp(22px, 2.6vw, 32px); right: clamp(22px, 2.6vw, 32px); font: 600 .7rem var(--mono); color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 99px; }
.plans-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); margin-top: clamp(28px, 3.6vw, 44px); }
.plans-notes dt { font: 600 .76rem var(--mono); color: var(--accent-light); margin-bottom: 6px; }
.plans-notes dd { font-size: .93rem; color: var(--muted); }
.facts dd a { color: var(--accent-light); }
@media (max-width: 980px) { .plans, .plans-notes { grid-template-columns: 1fr; } .plan-for, .price-alt { min-height: 0; } }

/* Final */
.final { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(72px, 9vw, 130px) var(--gutter) clamp(64px, 8vw, 110px); background: var(--bg-deep); }
.beams-final { height: 100%; opacity: .85; }
.final-logo { width: clamp(80px, 9vw, 112px); height: auto; margin: 0 auto 28px; }
.final h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.05; }
.final h2 em { display: inline; }
.center { margin-top: clamp(30px, 4vw, 46px); }
.facts { max-width: 1120px; margin: clamp(52px, 7vw, 90px) auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(18px, 3vw, 44px); text-align: left; }
.facts dt { font: 600 .76rem var(--mono); color: var(--accent-light); margin-bottom: 6px; }
.facts dd { font-size: .95rem; color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; padding: 26px var(--gutter) 96px; background: var(--bg-deep); border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.foot img { height: 22px; width: auto; }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent-light); }

/* Dock */
.dock { position: fixed; z-index: 40; left: 50%; bottom: 14px; width: min(760px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 14px; background: rgba(17, 24, 39, .88); border: 1px solid var(--border-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, .7); backdrop-filter: blur(14px); transform: translate(-50%, 140%); transition: transform .4s var(--ease-out); }
.dock.show { transform: translate(-50%, 0); }
.dock .t-btn { width: 40px; height: 40px; flex: none; }
.dock-pos { min-width: 3.3em; font: 700 1rem var(--mono); color: var(--accent-light); font-variant-numeric: tabular-nums; }
.dock-pos.is-count { color: var(--danger); }
.dock-sec { font-weight: 600; font-size: .86rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dock-ind { flex: 1; min-width: 30px; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.dock-ind i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .tp-brand, .tp-tags { display: none; }
  .bento > .b { grid-column: span 6; }
  .b-score { grid-column: span 12; }
  .b-lib, .b-hist, .b-midi { grid-column: span 4; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { aspect-ratio: auto; min-height: 136px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .ws { grid-template-columns: minmax(0, 1fr) 120px; }
  .browser { display: none; }
  .lcd-info, .views { display: none; }
  .tp { justify-content: space-between; }
  .heads { padding-top: 38px; }
  .note { display: none; }
  .split, .grid-title, .reh-head, .sync-title, .gobbo-foot, .two { grid-template-columns: 1fr; }
  .three, .facts { grid-template-columns: 1fr; }
  .sync { grid-template-columns: 1fr; }
  .sync-wire { width: 2px; height: 34px; justify-self: center; }
  .sync-wire.go i { animation: none; }
  .b-score { flex-direction: column; }
  .sheet { flex: none; width: min(70%, 260px); }
  .bento > .b { grid-column: span 12; }
  .row-head { grid-template-columns: 34px 1fr; }
  .row-head .m { grid-column: 2; text-align: left; }
  .foot nav { margin-left: 0; }
  .dock-ind { display: none; }
  .dock-sec { flex: 1; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .nav .btn { display: none; }
  .hero-cta .btn { width: 100%; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .sync-devs { grid-template-columns: 1fr 1fr; }
  .ws { grid-template-columns: minmax(0, 1fr) 100px; }
  .head b { font-size: 10.5px; }
  .meter, .ms.s { display: none; }
  .lcd-time { display: none; }
  .seg button { padding: 8px 10px; font-size: .8rem; }
  .matrix-grid { grid-template-columns: 66px repeat(4, minmax(0, 1fr)); gap: 4px; }
  .mx-role { font-size: .8rem; gap: 5px; }
  .mx-col { font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam, .marquee-track, .keycap { animation: none; }
  .beam { transform: rotate(var(--a)); }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .g-line, .g-num, .p-text, .sheet { transition: none; }
}

/* ---------- Pages of text (privacy, app mobile) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 80px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; margin: 8px 0 18px; }
.doc h2 { font-size: 1.35rem; line-height: 1.25; margin: 40px 0 12px; }
.doc p, .doc ul { margin: 0 0 14px; color: var(--text-2, #cbd5e1); }
.doc ul { padding-left: 1.2em; display: grid; gap: 8px; }
.doc a { color: var(--accent-light); }
.doc .doc-date { font: 500 .8rem var(--mono); color: var(--muted); }
.doc .soon { display: inline-block; margin: 0; }
.two.apps3 { grid-template-columns: repeat(3, 1fr); }
.side-mob { background: var(--surface); border-color: rgba(6, 182, 212, .32); }
@media (max-width: 1120px) { .two.apps3 { grid-template-columns: 1fr 1fr; } .two.apps3 .side-mob { grid-column: span 2; } }
@media (max-width: 860px) { .two.apps3 { grid-template-columns: 1fr; } .two.apps3 .side-mob { grid-column: auto; } }

/* ===== Tablet: la vista Palco dell'app mobile (1em = 1% della larghezza dello schermo) ===== */
.tablet { position: relative; margin: 0; perspective: 2200px; }
.tablet::before { content: ''; position: absolute; inset: 8% 4% -6%; z-index: -1; background: radial-gradient(60% 60% at 30% 40%, rgba(47, 139, 255, .32), transparent 70%), radial-gradient(55% 60% at 75% 60%, rgba(245, 158, 11, .3), transparent 70%); filter: blur(40px); }
.tb-frame { position: relative; padding: 2.4%; border-radius: 4.2% / 6.6%; background: linear-gradient(145deg, #2a3242, #0d1119 45%, #1a202c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 5px #05070c, 0 50px 90px -30px rgba(0, 0, 0, .9), 0 20px 40px -20px rgba(0, 0, 0, .8); transform: rotateX(8deg) rotateY(-11deg) rotateZ(1.2deg); transition: transform .8s var(--ease-out); }
.tablet:hover .tb-frame { transform: rotateX(3deg) rotateY(-4deg) rotateZ(.4deg); }
.tb-frame::after { content: ''; position: absolute; inset: 2.4%; border-radius: 1.6% / 2.5%; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .03) 28%, transparent 42%); }
.tb-cam { position: absolute; top: 50%; left: 1.05%; width: .55%; aspect-ratio: 1; border-radius: 50%; background: #1c2433; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transform: translateY(-50%); }
.tb-screen { container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1.6% / 2.5%; background: var(--bg); }
.tb-ui { font: 500 1cqw/1.2 var(--body); height: 100%; display: grid; grid-template-rows: 9.4em 7.4em 4.6em 17em minmax(0, 1fr); color: var(--text); user-select: none; }
.tb-ui svg { fill: currentColor; }
.tb-top { display: flex; align-items: center; gap: 1.1em; padding: 0 1.4em; background: var(--bg-elev); border-bottom: 1px solid var(--border-strong); }
.tb-menu { flex: none; display: grid; gap: .45em; width: 4.4em; height: 4.4em; place-content: center; border-radius: .8em; border: 1px solid var(--border-strong); background: var(--surface-2); }
.tb-menu i { display: block; width: 1.9em; height: .28em; border-radius: 1em; background: var(--text-2); }
.tb-lcd { flex: none; display: flex; height: 6.4em; border-radius: .8em; background: #070a10; border: 1px solid var(--border-strong); font-family: var(--mono); }
.tb-tempo { flex-direction: column; justify-content: center; align-items: center; padding: 0 1.3em; }
.tb-tempo b { font-size: 2.3em; color: var(--accent-light); line-height: 1; }
.tb-tempo small { font-size: 1.05em; color: var(--muted); margin-top: .35em; }
.tb-round { flex: none; display: grid; place-items: center; width: 5.2em; height: 5.2em; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); }
.tb-round svg { width: 2.2em; height: 2.2em; }
.tb-txt { font-size: 1em; font-weight: 800; letter-spacing: .04em; color: var(--text-2); }
.tb-txt.tb-on { color: var(--accent-ink); background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 1.6em rgba(34, 211, 238, .45); }
.tb-play { flex: none; display: grid; place-items: center; width: 7em; height: 7em; border-radius: 50%; background: var(--yes); color: #052e13; box-shadow: 0 0 2.4em rgba(34, 197, 94, .5); }
.tb-play svg { width: 3em; height: 3em; }
.tb-clock .tb-cell { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .55em; padding: 0 1.5em; }
.tb-clock .tb-cell + .tb-cell { border-left: 1px solid var(--border-strong); }
.tb-clock b { font-size: 2.5em; line-height: 1; color: var(--accent-light); }
.tb-leds { display: flex; gap: .45em; }
.tb-leds i { width: .95em; height: .95em; border-radius: 50%; background: #1f2937; animation: tb-led 2.143s steps(1) infinite; }
.tb-leds i:nth-child(1) { --on: var(--danger); }
.tb-leds i:nth-child(2) { animation-delay: .536s; }
.tb-leds i:nth-child(3) { animation-delay: 1.071s; }
.tb-leds i:nth-child(4) { animation-delay: 1.607s; }
@keyframes tb-led { 0% { background: var(--on, var(--yes)); box-shadow: 0 0 .7em var(--on, var(--yes)); } 25%, 100% { background: #1f2937; box-shadow: none; } }
.tb-time span { font-size: 1.6em; }
.tb-time small { font-size: 1.15em; color: var(--muted); }
.tb-song { flex: 1; min-width: 0; display: grid; gap: .45em; }
.tb-song strong { font: 800 2.5em/1 var(--display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-song > span { font-size: 1.15em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-song b { padding: .1em .55em; margin-right: .4em; border-radius: .4em; color: var(--accent-light); background: rgba(245, 158, 11, .14); }
.tb-tools { flex: none; display: flex; gap: .6em; }
.tb-tools span { padding: .8em 1.1em; border-radius: .7em; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 1.1em; font-weight: 700; color: var(--text-2); }
.tb-tiles { display: flex; align-items: center; gap: .9em; padding: 0 1.4em; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--border); }
.tb-tile { flex: none; width: 13em; display: grid; gap: .25em; padding: .7em .9em; border-radius: .8em; border: 1px solid var(--border-strong); background: var(--surface); font-size: 1em; }
.tb-tile i { font-style: normal; font-size: .9em; font-weight: 700; color: var(--muted); }
.tb-tile strong { font-size: 1.15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-tile small { font-size: .9em; color: var(--muted); }
.tb-tile.tb-on { border-color: var(--accent-border); background: var(--accent-soft); }
.tb-tile.tb-on i { color: var(--accent-light); }
.tb-link { flex: none; width: 1.6em; height: 1.6em; margin: 0 -.5em; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2); }
.tb-link.tb-on { background: var(--accent); border-color: var(--accent); }
.tb-bar { display: flex; align-items: center; gap: 1.2em; padding: 0 1.4em; border-bottom: 1px solid var(--border); }
.tb-bar strong { font-size: 1.15em; color: var(--muted); }
.tb-now { font-size: 1.2em; font-weight: 700; color: var(--accent-light); }
.tb-grow { flex: 1; }
.tb-seg { display: flex; padding: .25em; border-radius: .7em; background: var(--surface); border: 1px solid var(--border-strong); }
.tb-seg span { padding: .5em 1em; border-radius: .5em; font-size: 1.05em; font-weight: 600; color: var(--muted); }
.tb-seg .on { background: var(--surface-3); color: var(--text); }
.tb-wave { --bh: 3.6em; position: relative; margin: 1em 1.4em; border-radius: .8em; background: #070a10; border: 1px solid var(--border-strong); overflow: hidden; }
.tb-band { position: absolute; top: var(--bh); bottom: 0; background: color-mix(in srgb, var(--sec) 14%, transparent); border-left: 1px solid color-mix(in srgb, var(--sec) 60%, transparent); }
.tb-wav { position: absolute; left: 0; top: calc(var(--bh) + .8em); width: 100%; height: calc(100% - var(--bh) - 1.6em); opacity: .82; }
.tb-played { position: absolute; left: 0; top: var(--bh); bottom: 0; width: 50%; background: rgba(7, 10, 16, .58); animation: tb-played 17.14s linear infinite; }
.tb-loop { position: absolute; left: 50%; width: 25%; top: var(--bh); bottom: 0; border: 1px dashed rgba(245, 158, 11, .7); border-top: 0; border-bottom: 0; background: repeating-linear-gradient(135deg, rgba(245, 158, 11, .07) 0 .6em, transparent .6em 1.2em); }
.tb-sec { position: absolute; top: 0; height: var(--bh); padding: 0 .9em 0 .7em; display: flex; align-items: center; gap: .5em; font-size: 1.15em; font-weight: 700; white-space: nowrap; color: color-mix(in srgb, var(--sec) 35%, #fff); }
.tb-sec::before { content: ''; position: absolute; z-index: -1; inset: .4em .25em; border-radius: 99em; border: 1px solid color-mix(in srgb, var(--sec) 55%, transparent); background: color-mix(in srgb, var(--sec) 22%, var(--surface)); }
.tb-sec > * { position: relative; }
.tb-sec { isolation: isolate; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.tb-sec i { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; font-style: normal; font-size: .85em; color: var(--bg); background: var(--sec); text-shadow: none; }
.tb-sec em { font-style: normal; font-weight: 600; opacity: .6; margin-left: auto; }
.tb-sec b { color: var(--accent-light); }
.tb-sec.tb-cur { color: #fff; }
.tb-sec.tb-cur::before { background: color-mix(in srgb, var(--sec) 45%, var(--surface)); border-color: var(--sec); box-shadow: 0 0 1.2em color-mix(in srgb, var(--sec) 50%, transparent); }
.tb-head { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .7); animation: tb-head 17.14s linear infinite; }
@keyframes tb-head { from { left: 50%; } to { left: 75%; } }
@keyframes tb-played { from { width: 50%; } to { width: 75%; } }
.tb-mix { display: flex; gap: .6em; min-height: 0; padding: .9em 1.4em 1.4em; background: var(--bg-elev); border-top: 1px solid var(--border-strong); }
.tb-console { flex: none; width: 9.6em; display: flex; flex-direction: column; gap: .6em; margin-right: .5em; }
.tb-console span { flex: 1; display: grid; place-items: center; border-radius: .8em; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 1.2em; font-weight: 700; color: var(--text-2); }
.tb-console .on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 1.6em rgba(245, 158, 11, .4); }
.tb-strip { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .6em; padding: .7em .5em .5em; border-radius: .8em; background: var(--surface); border-top: .3em solid var(--sec); }
.tb-strip small { font: 600 1em var(--mono); color: var(--muted); }
.tb-fader { position: relative; flex: 1; width: 100%; background: linear-gradient(#05070c, #05070c) center / .4em 100% no-repeat, repeating-linear-gradient(transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, .12) calc(12.5% - 1px) 12.5%) center / 2.6em 100% no-repeat; }
.tb-fader::after { content: ''; position: absolute; left: 50%; bottom: calc(var(--v) * (100% - 3.8em)); width: 3em; height: 3.8em; margin-left: -1.5em; border-radius: .4em; background: linear-gradient(transparent 45%, var(--sec) 45% 55%, transparent 55%), repeating-linear-gradient(#3b475c 0 .25em, #2a3446 .25em .5em); box-shadow: 0 .3em .6em rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.tb-meter { position: absolute; right: 8%; bottom: 0; width: .45em; height: 72%; border-radius: .2em; background: linear-gradient(to top, var(--yes) 0 70%, var(--accent-light) 70% 88%, var(--danger) 88%); animation: tb-meter .27s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes tb-meter { from { transform: scaleY(.82); } to { transform: scaleY(1); } }
.tb-name { width: 100%; padding: .7em .2em; border-radius: .4em; text-align: center; font-size: 1.05em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); border: 1px solid color-mix(in srgb, var(--sec) 45%, transparent); background: color-mix(in srgb, var(--sec) 18%, var(--surface)); }
.tb-out { opacity: .45; }
.tb-out .tb-name { text-decoration: line-through; }
@media (prefers-reduced-motion: reduce) { .tb-leds i, .tb-head, .tb-played, .tb-meter { animation: none; } .tb-head { left: 58%; } .tb-played { width: 58%; } .tb-frame { transition: none; } }

/* Sezione tablet nella home e intestazione della pagina /mobile */
.tab-split { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.tab-split h2 { margin-bottom: 22px; }
.mob-hero { max-width: 1320px; margin: 0 auto; padding: 130px var(--gutter) 40px; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.mob-hero h1 { font: 900 clamp(2.4rem, 5.4vw, 4.4rem)/1.02 var(--display); letter-spacing: -.02em; margin: 6px 0 20px; }
.mob-hero p { color: var(--text-2); }
.mob-hero .soon { display: inline-block; }
.mob-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mob-feats span { padding: 6px 12px; border-radius: 99px; font: 600 .78rem var(--mono); color: var(--text-2); background: var(--surface); border: 1px solid var(--border-strong); }
.mob-hero + .doc { padding-top: 40px; }
@media (max-width: 980px) {
  .tab-split, .mob-hero { grid-template-columns: 1fr; }
  .tb-frame { transform: rotateX(4deg) rotateY(-5deg); }
}
.tab-split > *, .mob-hero > * { min-width: 0; }
.tablet { max-width: 100%; }

/* ===== Tre dispositivi: portatile (desktop), browser (web), tablet. Testine sincronizzate con quella del tablet ===== */
.devices { margin: 0 auto clamp(40px, 5vw, 72px); max-width: 1240px; }
.dv-stage { position: relative; aspect-ratio: 100 / 54; }
.dv-stage::before { content: ''; position: absolute; inset: 10% 6% 0; z-index: -1; background: radial-gradient(40% 55% at 22% 45%, rgba(34, 211, 238, .2), transparent 70%), radial-gradient(45% 60% at 50% 40%, rgba(139, 92, 246, .22), transparent 70%), radial-gradient(40% 55% at 80% 70%, rgba(245, 158, 11, .22), transparent 70%); filter: blur(30px); }
.dv-stage svg { fill: currentColor; }

/* Browser */
.dv-browser { position: absolute; left: 0; top: 9%; width: 43%; border-radius: 1.4cqw; overflow: hidden; background: #0d121c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .9); transform: perspective(1800px) rotateY(9deg); transform-origin: right center; }
.dv-stage { container-type: inline-size; }
.br-bar { display: flex; align-items: center; gap: .55cqw; height: 3cqw; padding: 0 1cqw; background: #1b2232; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.br-bar > i { width: .75cqw; height: .75cqw; border-radius: 50%; background: #f43f5e; }
.br-bar > i:nth-child(2) { background: #fbbf24; }
.br-bar > i:nth-child(3) { background: #22c55e; }
.br-url { flex: 1; display: flex; align-items: center; gap: .4cqw; margin-left: 1cqw; height: 1.9cqw; padding: 0 .9cqw; border-radius: 99px; background: #0b0f17; font: 500 .95cqw var(--body); color: var(--text-2); }
.br-url svg { width: .9cqw; height: .9cqw; color: var(--yes); }
.br-screen { container-type: inline-size; aspect-ratio: 16 / 10.4; background: var(--bg); }
.br-ui { font: 500 1cqw/1.25 var(--body); height: 100%; display: flex; flex-direction: column; gap: 2em; padding: 2.6em 3.4em; box-sizing: border-box; color: var(--text); }
.br-head { display: flex; align-items: center; gap: 1.4em; }
.br-head img { height: 3.6em; width: auto; }
.br-head b { font: 800 2.4em var(--display); }
.br-tabs { margin-left: auto; display: flex; gap: .4em; padding: .35em; border-radius: 1em; background: var(--surface); }
.br-tabs span { padding: .7em 1.4em; border-radius: .7em; font-size: 1.5em; font-weight: 600; color: var(--muted); }
.br-tabs .on { background: var(--accent); color: var(--accent-ink); }
.br-song { display: flex; align-items: center; gap: 1.2em; padding: 1.6em 2em; border-radius: 1.4em; background: var(--surface); border: 1px solid var(--border-strong); }
.br-num { font: 700 1.8em var(--mono); color: var(--faint); }
.br-song strong { font: 800 2.9em/1 var(--display); }
.br-key, .br-bpm { padding: .3em .7em; border-radius: .5em; font: 700 1.5em var(--mono); color: var(--accent-light); background: rgba(245, 158, 11, .14); }
.br-bpm { color: var(--text-2); background: var(--surface-2); }
.br-follow { margin-left: auto; display: flex; align-items: center; gap: .5em; padding: .5em 1em; border-radius: 99em; font-size: 1.5em; font-weight: 700; color: var(--cyan); background: rgba(6, 182, 212, .15); }
.br-follow i { width: .6em; height: .6em; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 .8em var(--cyan); }
.br-label { font: 500 1.5em var(--mono); color: var(--muted); margin-bottom: -.6em; }
.br-tiles { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; }
.br-tiles span { display: flex; flex-direction: column; justify-content: flex-end; gap: .3em; padding: 1.4em 1.6em; border-radius: 1.3em; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 34%, var(--surface)), var(--surface) 75%); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.br-tiles b { font-size: 2.1em; }
.br-tiles small { font-size: 1.4em; color: var(--muted); }
.br-tiles .off { background: var(--surface); border-style: dashed; border-color: var(--border-strong); opacity: .55; }
.br-tiles .off b { text-decoration: line-through; }
.br-play { display: flex; align-items: center; gap: 1.6em; }
.br-pbtn { display: grid; place-items: center; width: 5em; height: 5em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.br-pbtn svg { width: 2.2em; height: 2.2em; }
.br-prog { flex: 1; height: .8em; border-radius: 99em; background: var(--surface-2); overflow: hidden; }
.br-prog i { display: block; height: 100%; width: 53%; background: var(--accent); animation: tb-played 17.14s linear infinite; }
.br-t { font: 600 1.5em var(--mono); color: var(--text-2); }

/* Portatile */
.dv-laptop { position: absolute; left: 21%; top: 0; width: 58%; z-index: 1; }
.lp-lid { position: relative; margin: 0 5.5%; padding: 2% 2% 2.6%; border-radius: 2.2% 2.2% 0 0 / 3.4% 3.4% 0 0; background: linear-gradient(160deg, #262d3b, #0b0e15 55%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.lp-cam { position: absolute; top: .8%; left: 50%; width: .5%; aspect-ratio: 1; border-radius: 50%; background: #1f2937; }
.lp-screen { container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.lp-lid::after { content: ''; position: absolute; inset: 2% 2% 2.6%; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 35%); }
.lp-base { position: relative; height: 0; padding-bottom: 2.6%; border-radius: 0 0 40% 40% / 0 0 100% 100%; background: linear-gradient(#c8d0dc, #6b7587 40%, #2a3140); box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .9); }
.lp-base i { position: absolute; left: 50%; top: 0; width: 14%; height: 45%; margin-left: -7%; border-radius: 0 0 1em 1em; background: rgba(0, 0, 0, .35); }
.lp-ui { font: 500 1cqw/1.2 var(--body); height: 100%; display: grid; grid-template-rows: 6.2em 1fr; color: var(--text); }
.lp-top { display: flex; align-items: center; gap: 1.4em; padding: 0 1.6em; background: var(--bg-elev); border-bottom: 1px solid var(--border-strong); }
.lp-brand { display: flex; align-items: center; gap: .5em; font: 800 1.6em var(--display); }
.lp-brand img { height: 1.5em; width: auto; }
.lp-brand b { color: var(--accent-light); }
.lp-btns { display: flex; gap: .4em; }
.lp-btns i { width: 3em; height: 3em; border-radius: .6em; background: var(--surface-2); border: 1px solid var(--border-strong); }
.lp-btns .play { background: var(--yes); border-color: var(--yes); }
.lp-lcd { display: flex; align-items: center; gap: .8em; height: 3.8em; padding: 0 1.1em; border-radius: .6em; background: #070a10; border: 1px solid var(--border-strong); font-family: var(--mono); }
.lp-lcd b { font-size: 1.9em; color: var(--accent-light); }
.lp-leds { display: flex; gap: .35em; }
.lp-leds i { width: .75em; height: .75em; border-radius: 50%; background: #1f2937; animation: tb-led 2.143s steps(1) infinite; }
.lp-leds i:nth-child(1) { --on: var(--danger); }
.lp-leds i:nth-child(2) { animation-delay: .536s; }
.lp-leds i:nth-child(3) { animation-delay: 1.071s; }
.lp-leds i:nth-child(4) { animation-delay: 1.607s; }
.lp-info b { font-size: 1.4em; color: var(--text); }
.lp-info small { margin-left: -.5em; font-size: 1em; color: var(--muted); }
.lp-views { margin-left: auto; display: flex; gap: .3em; padding: .3em; border-radius: .7em; background: var(--surface); }
.lp-views span { padding: .55em .9em; border-radius: .5em; font-size: 1.15em; font-weight: 600; color: var(--muted); }
.lp-views .on { background: var(--surface-3); color: var(--text); }
.lp-body { display: grid; grid-template-columns: 19em 1fr; min-height: 0; }
.lp-list { margin: 0; padding: 1.2em .8em; list-style: none; display: flex; flex-direction: column; gap: .3em; background: var(--bg-elev); border-right: 1px solid var(--border); }
.lp-list li { display: flex; gap: .8em; padding: .8em .9em; border-radius: .6em; font-size: 1.3em; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.lp-list li span { font-family: var(--mono); color: var(--faint); }
.lp-list .on { background: var(--accent-soft, rgba(245, 158, 11, .12)); color: var(--accent-light); box-shadow: inset .25em 0 0 var(--accent); }
.lp-list .sep { justify-content: center; padding: .3em; font-size: 1em; color: var(--faint); border-top: 1px dashed var(--border-strong); border-radius: 0; }
.lp-tl { position: relative; display: flex; flex-direction: column; gap: .5em; padding: 0 1em 1em; min-width: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, .05) calc(12.5% - 1px) 12.5%); background-origin: content-box; background-clip: content-box; }
.lp-ruler { height: 2.2em; flex: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 3.125%) bottom / 100% 40% no-repeat, repeating-linear-gradient(90deg, rgba(255, 255, 255, .6) 0 1px, transparent 1px 12.5%) bottom / 100% 80% no-repeat; }
.lp-locs { position: relative; height: 2.4em; flex: none; }
.lp-locs span { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-left: .7em; box-sizing: border-box; border-left: .25em solid var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); font-size: 1.15em; font-weight: 700; color: color-mix(in srgb, var(--c) 40%, #fff); }
.lp-lane { position: relative; flex: 1; border-radius: .4em; background: rgba(255, 255, 255, .02); }
.lp-lane em { position: absolute; z-index: 1; left: .6em; top: .4em; font-style: normal; font-size: 1em; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.lp-lane i { position: absolute; top: 0; bottom: 0; border-radius: .4em; background: url(../assets/tablet-wave.svg) center / 100% 70% no-repeat, color-mix(in srgb, var(--c) 40%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); background-blend-mode: soft-light; }
.lp-cue b { position: absolute; top: 18%; bottom: 18%; width: 2.4%; border-radius: .3em; background: var(--c); box-shadow: 0 0 .6em color-mix(in srgb, var(--c) 60%, transparent); }
.lp-head { position: absolute; top: 0; bottom: 0; left: calc(1em + (100% - 2em) * .5); width: 2px; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .7); animation: lp-head 17.14s linear infinite; }
@keyframes lp-head { from { left: calc(1em + (100% - 2em) * .5); } to { left: calc(1em + (100% - 2em) * .75); } }

/* Tablet in primo piano, a destra */
.dv-stage .tablet { position: absolute; right: 0; bottom: 2%; width: 37%; z-index: 2; }
.dv-stage .tablet::before { display: none; }
.dv-stage .tb-frame, .dv-stage .tablet:hover .tb-frame { transform: perspective(1800px) rotateY(-9deg); transform-origin: left center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 4px #05070c, -20px 40px 80px -20px rgba(0, 0, 0, .95); }

.dv-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: clamp(18px, 3vw, 34px) 0 0; padding: 0; list-style: none; text-align: center; }
.dv-tags li { font: 500 .85rem var(--mono); color: var(--muted); }
.dv-tags b { display: block; margin-bottom: 4px; font: 800 1.15rem var(--display); color: var(--text); }
.dv-tags li:nth-child(1) b { color: var(--violet); }
.dv-tags li:nth-child(2) b { color: var(--accent-light); }
.dv-tags li:nth-child(3) b { color: var(--cyan); }
@media (max-width: 600px) { .dv-tags { grid-template-columns: 1fr; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .lp-leds i, .lp-head, .br-prog i { animation: none; } .lp-head { left: calc(1em + (100% - 2em) * .58); } .br-prog i { width: 58%; } }
/* Tablet top bar: the four views as tabs and ⋯ for the rest */
.tb-tools .tb-views { display: flex; gap: .2em; padding: .25em; border-radius: .7em; border: 1px solid var(--border-strong); background: var(--bg); }
.tb-tools .tb-views span { padding: .55em .9em; border: none; border-radius: .5em; background: transparent; color: var(--muted); }
.tb-tools .tb-views span.tb-on { background: var(--surface-2); color: var(--accent-light); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tb-tools .tb-more { padding: .8em .9em; letter-spacing: .05em; }

/* ===== Pagine Desktop e Tablet: screenshot veri delle app ===== */
.pp-nav { position: absolute; }
.pp-nav .nav-links a[aria-current] { color: var(--accent-light); }
.pp-hero { position: relative; max-width: 1320px; margin: 0 auto; padding: 132px var(--gutter) 24px; text-align: center; }
.pp-hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 620px; z-index: -1; background: linear-gradient(180deg, #101624, transparent); }
.pp-hero .soon { display: inline-block; }
.pp-hero h1 { font: 800 clamp(2.4rem, 5.2vw, 4.4rem)/1.05 var(--display); font-stretch: 106%; letter-spacing: -.025em; margin: 6px auto 20px; text-wrap: balance; }
.pp-hero .lead { max-width: 720px; margin: 0 auto; color: var(--text-2); font-size: clamp(1.02rem, 1.6vw, 1.2rem); text-wrap: pretty; }
.pp-cta { display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; align-items: center; margin-top: 30px; }
.pp-cta .hero-meta { flex-basis: 100%; font: 500 .8rem var(--mono); color: var(--muted); }
.pp-hero .mob-feats { justify-content: center; }

/* Cornici: finestra di Windows e tablet */
.pp-device { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 1240px; }
.pp-win { border-radius: 12px; overflow: hidden; background: #0b0f17; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 120px -40px rgba(0, 0, 0, .95), 0 0 120px -30px rgba(139, 92, 246, .35); }
.pp-win-bar { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px; background: #f3f3f3; color: #222; font: 500 .78rem var(--body); text-align: left; }
.pp-win-bar img { width: 16px; height: auto; }
.pp-win-bar span { margin-left: auto; letter-spacing: 18px; color: #555; }
.pp-tab { padding: clamp(10px, 1.4vw, 18px); border-radius: clamp(18px, 2.4vw, 34px); background: linear-gradient(145deg, #2a3140, #10141d 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 2px rgba(0, 0, 0, .6), 0 50px 120px -40px rgba(0, 0, 0, .95), 0 0 120px -30px rgba(34, 211, 238, .3); }
.pp-tab img { border-radius: clamp(6px, .9vw, 12px); }
.pp-device .pp-shot img { width: 100%; height: auto; }

/* Righe funzione: testo + screenshot */
.pp-sec { max-width: 1320px; margin: 0 auto; padding: clamp(56px, 7vw, 104px) var(--gutter) 0; }
.pp-row { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.pp-row + .pp-row { margin-top: clamp(64px, 8vw, 120px); }
.pp-row.flip { grid-template-columns: 1.18fr .82fr; }
.pp-row.flip > :first-child { order: 2; }
.pp-row > * { min-width: 0; }
.pp-row h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); margin-bottom: 16px; }
.pp-row .lead { color: var(--text-2); }
.pp-row .ticks { margin-top: 20px; }
.pp-fig { margin: 0; }
.pp-shot { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--border-strong), 0 40px 90px -40px rgba(0, 0, 0, .9); transition: transform .3s var(--ease-out), box-shadow .3s; cursor: zoom-in; }
.pp-shot:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(245, 158, 11, .5), 0 50px 100px -40px rgba(0, 0, 0, .95); }
.pp-shot img { width: 100%; height: auto; }
.pp-fig figcaption { margin-top: 12px; font: 500 .78rem/1.5 var(--mono); color: var(--muted); }

/* Griglia di funzioni senza screenshot */
.pp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(26px, 3vw, 40px); }
.pp-cards article { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.pp-cards h3 { font: 800 1.15rem/1.25 var(--display); font-stretch: 112%; margin-bottom: 8px; }
.pp-cards p { color: var(--text-2); font-size: .95rem; }
.pp-cards i { display: block; width: 28px; height: 4px; margin-bottom: 16px; border-radius: 2px; background: var(--c, var(--accent)); }

/* Chiusura */
.pp-final { max-width: 1320px; margin: clamp(72px, 9vw, 130px) auto 0; padding: clamp(40px, 6vw, 72px) var(--gutter); text-align: center; border-top: 1px solid var(--border); }
.pp-final h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.pp-final .facts { margin-top: 40px; text-align: left; }
.pp-other { display: inline-flex; gap: 8px; margin-top: 26px; color: var(--muted); font-size: .95rem; }
.pp-other a { color: var(--accent-light); }

/* Screenshot a tutto schermo */
.pp-zoom { max-width: min(96vw, 1800px); max-height: 96vh; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.pp-zoom::backdrop { background: rgba(3, 5, 9, .88); backdrop-filter: blur(6px); }
.pp-zoom img { max-width: 100%; max-height: calc(96vh - 48px); width: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--border-strong); }
.pp-zoom p { margin-top: 10px; text-align: center; font: 500 .8rem var(--mono); color: var(--text-2); }
.pp-zoom-x { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 1.4rem; line-height: 1; cursor: pointer; }

@media (max-width: 980px) {
  .pp-row, .pp-row.flip { grid-template-columns: 1fr; }
  .pp-row.flip > :first-child { order: 0; }
  .pp-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) { .pp-nav { gap: 14px; } .pp-nav .nav-links { display: flex; gap: 14px; font-size: .88rem; } .pp-nav .btn { display: none; } }
@media (max-width: 600px) {
  .pp-cards { grid-template-columns: 1fr; }
  .pp-win-bar span { display: none; }
  .pp-zoom-x { top: 6px; right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .pp-shot, .pp-shot:hover { transition: none; transform: none; } }
