:root {
  --bg: #0B0B0D;
  --bg-2: #121215;
  --card: #16161A;
  --line: #2A2A30;
  --line-2: #33333A;
  --ink: #F4F1EA;
  --soft: #CFC9BE;
  --muted: #A9A397;
  --accent: #FF6B1A;
  --ai1: #9B8CFF;
  --ai2: #6FC3FF;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --text: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body { color: var(--ink); font-family: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: #FF8A47; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.push { margin-left: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Barra di avanzamento e luce che segue il cursore */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 26, .13), transparent 65%); pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s ease; }
.cursor-glow.on { opacity: 1; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: background .2s ease, border-color .2s ease, box-shadow .3s ease; will-change: transform; }
.btn-primary { background: var(--accent); color: var(--bg); box-shadow: 0 10px 40px rgba(255, 107, 26, .35); }
.btn-primary:hover { color: var(--bg); background: #FF7F38; box-shadow: 0 14px 50px rgba(255, 107, 26, .55); }
.btn-ghost { border-color: #4A4A4F; color: var(--ink); background: rgba(11, 11, 13, .4); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-dark { background: var(--bg); color: var(--ink); border-radius: 16px; min-height: 56px; }
.btn-dark:hover { color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Menu */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); background: rgba(11, 11, 13, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.5px; }
.logo:hover { color: var(--ink); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* Apertura 3D */
#chrono-track { position: relative; height: 320vh; }
#chrono-hero { position: sticky; top: 0; width: 100%; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); touch-action: pan-y; }
#chrono-hero canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; z-index: 0; }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; text-align: center; padding: 0 20px; pointer-events: none; will-change: opacity, transform; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero-top { top: clamp(86px, 12vh, 130px); }
.hero-top h1 { font-size: clamp(42px, 7vw, 100px); line-height: .96; letter-spacing: -0.045em; text-shadow: 0 6px 40px rgba(0, 0, 0, .65); }
.kicker { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--accent); margin-bottom: 14px; letter-spacing: .02em; }
.hero-bottom { bottom: clamp(44px, 9vh, 96px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--soft); max-width: 560px; text-shadow: 0 4px 24px rgba(0, 0, 0, .85); }
.lead.left { margin-top: 16px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-phase2 { top: 50%; left: clamp(20px, 6vw, 96px); right: auto; max-width: 500px; text-align: left; transform: translateY(-50%); opacity: 0; }
.hero-phase2 h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.scroll-hint { position: absolute; z-index: 2; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-hint span { width: 2px; height: 26px; background: linear-gradient(var(--accent), transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(8px); opacity: 1; } }

/* Titolo lettera per lettera */
.letters .ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotateX(-70deg); transform-origin: bottom; animation: chIn .8s var(--ease) forwards; }
@keyframes chIn { to { opacity: 1; transform: none; } }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(20px, 4vw, 32px); padding-right: clamp(20px, 4vw, 32px); position: relative; z-index: 2; }
.narrow { max-width: 880px; }
.section { padding-top: clamp(80px, 11vw, 128px); padding-bottom: clamp(32px, 5vw, 56px); }
.band { background: var(--bg-2); border-top: 1px solid #24242A; border-bottom: 1px solid #24242A; padding: clamp(80px, 11vw, 128px) 0; position: relative; z-index: 2; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.head.center { text-align: center; margin-left: auto; margin-right: auto; align-items: center; }
h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.sub { font-size: 18px; line-height: 1.55; color: var(--soft); }
.wrap.split, .split.wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.col { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.phone-col { flex: 1 1 340px; align-items: center; perspective: 1400px; }

/* Manifesto */
.manifesto { padding-top: clamp(110px, 16vw, 200px); padding-bottom: clamp(60px, 8vw, 100px); }
.words { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.12; letter-spacing: -0.03em; max-width: 1050px; }
.words .w { opacity: .14; transition: opacity .25s linear, color .25s linear; }
.words .w.lit { opacity: 1; }
.words .w.hot { color: var(--accent); }

/* Numeri */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-bottom: clamp(60px, 8vw, 100px); }
.stat { border: 1.5px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(160deg, #18181C, #101013); }
.stat-n { font-family: var(--display); font-size: clamp(64px, 8vw, 104px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--accent); }
.stat-l { font-size: 18px; color: var(--soft); }

/* Scansione interattiva */
.scan-stage { position: relative; max-width: 1000px; margin: 0 auto; border-radius: 32px; overflow: hidden; border: 1.5px solid var(--line-2); box-shadow: 0 50px 120px rgba(0, 0, 0, .6), 0 0 120px rgba(255, 107, 26, .08); }
.scene { display: block; width: 100%; height: auto; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 140px; background: linear-gradient(rgba(255, 107, 26, 0), rgba(255, 107, 26, .35)); border-bottom: 3px solid var(--accent); transform: translateY(-150px); opacity: 0; pointer-events: none; }
.scanning .scanline { animation: scan 1.3s ease-in-out forwards; }
@keyframes scan { 0% { opacity: 1; transform: translateY(-150px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--h, 560px)); } }
.frame i { position: absolute; width: 44px; height: 44px; border-color: rgba(244, 241, 234, .75); border-style: solid; border-width: 0; }
.frame i:nth-child(1) { top: 20px; left: 20px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 12px; }
.frame i:nth-child(2) { top: 20px; right: 20px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 12px; }
.frame i:nth-child(3) { bottom: 20px; left: 20px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 12px; }
.frame i:nth-child(4) { bottom: 20px; right: 20px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 12px; }
.tag { position: absolute; transform: translate(-50%, -50%) scale(.6); opacity: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 16px 10px 14px; border-radius: 18px; background: rgba(11, 11, 13, .86); border: 1.5px solid var(--accent); color: var(--ink); font-family: inherit; cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); transition: transform .5s var(--ease), opacity .4s ease, background .2s ease; }
.tag.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tag:hover { background: rgba(255, 107, 26, .18); }
.tag b { font-size: clamp(11px, 1.3vw, 14px); font-weight: 600; }
.tag strong { font-family: var(--display); font-size: clamp(16px, 2.2vw, 26px); color: var(--accent); line-height: 1; }
.tag::before { content: ''; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 26px; background: var(--accent); }
.tag::after { content: ''; position: absolute; left: calc(50% - 6px); top: calc(100% + 24px); width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(255, 107, 26, .25); }
.shutter { position: absolute; right: 28px; bottom: 24px; width: 74px; height: 74px; border-radius: 50%; border: 4px solid var(--ink); background: rgba(11, 11, 13, .5); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.shutter span { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); transition: transform .2s ease; animation: pulse 2.2s ease-in-out infinite; }
.shutter:active span { transform: scale(.8); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 26, .5); } 50% { box-shadow: 0 0 0 14px rgba(255, 107, 26, 0); } }
.shutter-label { position: absolute; right: 116px; bottom: 50px; text-align: right; font-weight: 600; font-size: 15px; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); pointer-events: none; }

/* Card */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: linear-gradient(160deg, #18181C, #111114); border: 1.5px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 230px; }
.card h3 { font-size: 30px; letter-spacing: -0.02em; }
.card p { font-size: 17px; line-height: 1.55; color: var(--soft); }
.card-n { font-family: var(--display); font-size: 15px; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.accent-card { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.accent-card p, .accent-card .card-n { color: var(--bg); }
.tilt { transform-style: preserve-3d; transition: transform .25s ease-out, border-color .3s ease, box-shadow .3s ease; will-change: transform; }
.tilt:hover { border-color: var(--accent); box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 50px rgba(255, 107, 26, .12); }

/* Demo con iPhone */
.scenarios { display: flex; flex-direction: column; gap: 10px; }
.scenario { text-align: left; padding: 16px 20px; border-radius: 18px; font-size: 16px; font-weight: 500; font-family: inherit; cursor: pointer; border: 1.5px solid var(--line-2); background: transparent; color: var(--ink); min-height: 52px; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.scenario:hover { border-color: var(--accent); transform: translateX(4px); }
.scenario[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.iphone { width: min(350px, 100%); border-radius: 58px; padding: 11px; background: linear-gradient(145deg, #6b6e75, #2c2d31 30%, #1b1b1e 60%, #55585e); box-shadow: 0 0 0 1.5px #77797f inset, 40px 60px 110px rgba(0, 0, 0, .7), 0 0 80px rgba(255, 107, 26, .1); }
.iphone-screen { position: relative; background: #0A0A0C; border-radius: 48px; padding: 58px 18px 26px; display: flex; flex-direction: column; gap: 12px; min-height: 640px; overflow: hidden; }
.island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 108px; height: 32px; border-radius: 20px; background: #000; }
.status { position: absolute; top: 16px; left: 30px; right: 26px; display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.batt { width: 26px; height: 12px; border: 1.5px solid var(--ink); border-radius: 4px; position: relative; }
.batt::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--ink); border-radius: 1.5px; }
.home-bar { width: 130px; height: 5px; border-radius: 3px; background: rgba(244, 241, 234, .75); align-self: center; margin-top: 6px; }
.phone-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #26262B; font-weight: 600; font-size: 15px; }
.app-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
#chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { align-self: flex-end; max-width: 86%; background: var(--accent); color: var(--bg); padding: 10px 14px; border-radius: 18px 18px 4px 18px; font-size: 14px; line-height: 1.4; font-weight: 500; }
.step { display: flex; gap: 12px; align-items: flex-start; background: #18181C; border-radius: 16px; padding: 12px 14px; }
.step b { font-family: var(--display); font-size: 16px; color: var(--accent); min-width: 52px; }
.step span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 600; }
.step small { font-size: 13px; line-height: 1.4; color: var(--muted); font-weight: 400; }
.done { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.pop { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.fake-input { margin-top: auto; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 12px 16px; font-size: 14px; color: #8F897F; }

/* Schede cliccabili */
.tile { text-align: left; cursor: pointer; background: linear-gradient(160deg, #18181C, #111114); border: 1.5px solid var(--line); border-radius: 24px; padding: 24px; color: var(--ink); display: flex; flex-direction: column; gap: 10px; min-height: 170px; font-family: inherit; }
.tile-top { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 18px; font-weight: 600; }
.tile-kind { font-size: 12px; color: var(--muted); font-weight: 600; }
.tile-big { font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--accent); letter-spacing: -1.5px; line-height: 1; }
.tile-line { font-size: 15px; line-height: 1.5; color: var(--soft); }
.tile-open { margin-top: auto; font-size: 13px; color: var(--muted); }
.tall .tile { min-height: 240px; padding: 28px; }
.tall .tile-title { font-size: 21px; font-weight: 600; }

/* Fascia che scorre */
.marquee { overflow: hidden; padding: 40px 0 8px; position: relative; z-index: 2; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: marquee 45s linear infinite; }
.marquee-track span { border: 1.5px solid var(--line-2); border-radius: 999px; padding: 14px 24px; font-family: var(--display); font-size: 24px; font-weight: 500; white-space: nowrap; }
.marquee-track em { color: var(--accent); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Domande */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1.5px solid var(--line); border-radius: 20px; padding: 0 24px; background: #111114; transition: border-color .3s ease; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); color: var(--accent); font-size: 26px; line-height: 1; transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; font-size: 17px; line-height: 1.55; color: var(--soft); }

/* Lista d'attesa */
.cta { background: radial-gradient(circle at 85% 15%, #FF9A5C, var(--accent) 45%, #E5560A); color: var(--bg); border-radius: 44px; padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; box-shadow: 0 40px 120px rgba(255, 107, 26, .25); }
.cta-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.cta h2 { font-size: clamp(46px, 6.4vw, 82px); }
.cta p { font-size: 19px; font-weight: 500; line-height: 1.5; }
#waitlist { flex: 1 1 380px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { height: 56px; border: 2px solid var(--bg); border-radius: 16px; padding: 0 16px; font-size: 16px; background: #FFF8F2; color: var(--bg); font-family: inherit; }
.form-msg { flex-basis: 100%; font-weight: 600; min-height: 1.2em; }
.hidden-field { position: absolute; left: -9999px; }

/* Footer */
.footer { border-top: 1px solid #24242A; margin-top: 72px; position: relative; z-index: 2; }
.footer-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.logo-text { font-family: var(--display); font-weight: 700; font-size: 20px; }

/* Scheda 3D */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(5, 5, 7, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: 20px; perspective: 1400px; animation: fade .25s ease both; }
.overlay[hidden] { display: none; }
.panel { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: #141417; border: 1.5px solid var(--line-2); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 80px rgba(255, 107, 26, .14); animation: open .55s var(--ease) both; outline: none; }
.panel-top { display: flex; justify-content: space-between; align-items: center; }
.panel-top .kicker { font-family: var(--text); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; margin: 0; }
.panel h3 { font-size: 36px; letter-spacing: -1px; line-height: 1.05; }
.close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.close:hover { border-color: var(--ink); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes open { from { opacity: 0; transform: rotateX(-20deg) translateZ(-200px) scale(.9); } to { opacity: 1; transform: none; } }
.big-time { background: #0F0F12; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.big-time .val { font-family: var(--display); font-size: clamp(48px, 9vw, 72px); font-weight: 700; color: var(--accent); letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; }
.badge { align-self: flex-start; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 600; }
.points { display: flex; flex-direction: column; gap: 10px; }
.point { display: flex; gap: 12px; align-items: center; font-size: 16px; line-height: 1.45; color: var(--soft); }
.point::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-head { display: flex; justify-content: space-between; font-size: 15px; }
.bar-head b { font-weight: 600; }
.bar { height: 12px; background: #26262B; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; transform-origin: left; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.note { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 16px; font-size: 15px; font-weight: 600; }
.goal-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ring-fill { stroke-dasharray: 465; animation: ring 1.6s ease-out both; }
@keyframes ring { from { stroke-dashoffset: 465; } to { stroke-dashoffset: 186; } }
.board-row { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 50%; color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.board-row .score { margin-left: auto; font-family: var(--display); color: var(--accent); }

/* Comparsa allo scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in.tilt { transition: transform .25s ease-out, border-color .3s ease, box-shadow .3s ease, opacity .9s ease; }

/* Se il 3D non si carica */
.no-3d #chrono-track { height: 100vh; }
.no-3d #chrono-hero { background: radial-gradient(circle at 50% 50%, rgba(255, 107, 26, .35), transparent 55%), var(--bg); }

/* Telefono */
@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .hero-phase2 { top: auto; bottom: 6vh; left: 20px; right: 20px; max-width: none; text-align: center; transform: none; }
  .hero-phase2 h2 { font-size: 32px; }
  .hero-phase2 .lead { display: none; }
  .scenarios { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .scenario { flex: 0 0 auto; max-width: 240px; scroll-snap-align: start; }
  .iphone-screen { min-height: 580px; }
  .panel { padding: 24px; border-radius: 26px; }
  .panel h3 { font-size: 30px; }
  .tag { padding: 6px 10px; border-radius: 12px; }
  .tag::before { height: 14px; }
  .tag::after { top: calc(100% + 12px); width: 9px; height: 9px; left: calc(50% - 4.5px); }
  .shutter { width: 52px; height: 52px; bottom: 12px; right: 14px; }
  .shutter span { width: 36px; height: 36px; }
  .shutter-label { right: 76px; bottom: 28px; font-size: 12px; }
  .frame i { width: 26px; height: 26px; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .letters .ch { opacity: 1; transform: none; }
}

/* Apertura: il titolo non sta più sopra il 3D */
#chrono-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
@media (min-width: 861px) and (min-aspect-ratio: 21/20) {
  /* Desktop: testo a sinistra, telefono 3D a destra */
  #chrono-hero::before { background: linear-gradient(90deg, rgba(11, 11, 13, .92) 0%, rgba(11, 11, 13, .7) 30%, rgba(11, 11, 13, 0) 55%); }
  .hero-top, .hero-bottom { left: clamp(24px, 6vw, 96px); right: auto; padding: 0; text-align: left; }
  .hero-top { top: auto; bottom: calc(50% + 4px); max-width: min(46vw, 660px); }
  .hero-top h1 { font-size: clamp(46px, 5.2vw, 84px); line-height: 1; }
  .hero-bottom { bottom: auto; top: calc(50% + 32px); max-width: min(40vw, 540px); align-items: flex-start; }
  .hero-bottom .actions { justify-content: flex-start; }
}
@media (max-width: 860px), (max-aspect-ratio: 21/20) {
  /* Telefono e tablet: titolo in alto, pulsanti in basso, 3D nel mezzo con sfumature per leggere bene */
  #chrono-hero::before { background: linear-gradient(180deg, rgba(11, 11, 13, .95) 0%, rgba(11, 11, 13, .75) 22%, rgba(11, 11, 13, 0) 38%, rgba(11, 11, 13, 0) 62%, rgba(11, 11, 13, .8) 76%, rgba(11, 11, 13, .95) 100%); }
  .hero-top { top: clamp(92px, 12vh, 120px); }
  .hero-top h1 { font-size: clamp(34px, 9.5vw, 60px); line-height: 1; }
  .hero-top .kicker { margin-bottom: 8px; }
  .hero-bottom { gap: 16px; }
}

/* ---- Logo e nuove sezioni ---- */
.logo img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.ai-tag { font-family: var(--display, inherit); font-size: .62em; font-weight: 800; letter-spacing: .06em; margin-left: -5px; align-self: flex-start; transform: translateY(1px); background: linear-gradient(120deg, #FF8A3D 0%, #9B8CFF 55%, #6FC3FF 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 8px rgba(155,140,255,.45)); animation: aitagmove 6s ease-in-out infinite; }
@keyframes aitagmove { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.app-icon-img { border-radius: 7px; }
.logo-text { display: inline-flex; align-items: center; gap: 8px; }
.logo-text img { border-radius: 7px; }
.lab { font-size: 13px; font-weight: 600; color: var(--soft); letter-spacing: .06em; text-transform: uppercase; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line-2); border-radius: 999px; padding: 10px 16px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .15s ease; }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed=true] { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }
.fit-split > .col { flex: 1 1 380px; }
.fit-card { background: linear-gradient(160deg, #18181C, #111114); border: 1.5px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.fit-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fit-k { font-family: var(--display); font-weight: 700; font-size: 22px; }
.fit-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: #26262B; }
.fit-bar i { display: block; height: 100%; transition: width .6s var(--ease); }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl li { display: flex; gap: 16px; position: relative; padding-bottom: 18px; animation: pop .45s var(--ease) both; }
.tl li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line-2); }
.tl .n { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; flex: none; background: #0F0F12; }
.tl li:first-child .n { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.tl li.m .n { border-style: dashed; color: var(--muted); background: transparent; }
.tl b { display: block; font-size: 17px; }
.tl small { color: var(--muted); font-size: 14px; }
.fit-out { background: var(--ink); color: var(--bg); border-radius: 16px; padding: 13px 16px; font-weight: 600; }
.fit-out.warn { background: transparent; color: var(--soft); border: 1.5px dashed var(--line-2); }
#reality .split > .col { flex: 1 1 380px; }
.room { position: relative; border-radius: 28px; overflow: hidden; border: 1.5px solid var(--line); }
.room svg { display: block; width: 100%; height: auto; }
.rscan { position: absolute; left: 0; right: 0; top: 0; height: 120px; background: linear-gradient(rgba(255, 107, 26, 0), rgba(255, 107, 26, .35)); border-bottom: 3px solid var(--accent); opacity: 0; pointer-events: none; }
.room.scanning .rscan { animation: rscan 1.1s ease-in-out forwards; }
@keyframes rscan { 0% { opacity: 1; transform: translateY(-120px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(380px); } }
.rlist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ritem { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #141418; border: 1.5px solid var(--line-2); border-radius: 16px; padding: 12px 16px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); cursor: pointer; }
.ritem.on { opacity: 1; transform: none; }
.ritem span { display: flex; align-items: center; gap: 10px; }
.ritem .ck { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--muted); flex: none; }
.ritem.done .ck { background: var(--accent); border-color: var(--accent); }
.ritem.done span { text-decoration: line-through; color: var(--muted); }
.ritem em { font-style: normal; font-family: var(--display); color: var(--accent); font-weight: 700; white-space: nowrap; }
.ritem.rtotal { background: var(--accent); color: var(--bg); border-color: var(--accent); cursor: default; }
.ritem.rtotal em { color: var(--bg); }
.grid.five { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grp { border-radius: 16px; padding: 13px 16px; border: 1.5px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.grp b { font-family: var(--display); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.grp small { color: var(--muted); }
.grp.keep { border-color: var(--accent); } .grp.keep b { color: var(--accent); }
.grp.move { border-color: #6FC3FF; } .grp.move b { color: #6FC3FF; }
.grp.drop { border-style: dashed; } .grp.drop b { color: var(--muted); }
.streak { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 14px; }
.streak span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.streak i { width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed var(--line-2); }
.streak i.on { background: var(--accent); border: 0; box-shadow: 0 0 16px rgba(255, 107, 26, .45); }
.fit-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }

/* Spostamenti */
.go-points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.go-points li { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: 2px solid var(--accent); }
.go-points b { font-size: 16px; }
.go-points span { color: var(--muted); font-size: 15px; }
.go-hero { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 20px; background: linear-gradient(135deg, rgba(255,107,26,.22), rgba(255,107,26,.04)); border: 1.5px solid rgba(255,107,26,.45); }
.go-hero b { font-family: var(--display); font-size: clamp(48px, 6vw, 64px); line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.go-meta { color: var(--soft); font-size: 15px; margin-top: 6px; }
.go-tl .n svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.go-tl li:last-child .n { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.go-alt { display: flex; flex-direction: column; gap: 8px; }
.go-alt .alt { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); font-size: 15px; }
.go-alt .alt b { flex: 1; }
.go-alt .alt span { color: var(--muted); font-size: 14px; }
.go-alt .alt.best { border-color: var(--accent); }
.go-alt .alt.best::after { content: 'consigliato'; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }

/* Telefono: parte sotto piu compatta, cosi il 3D ha spazio tra titolo e testo */
@media (max-width: 760px) {
  .hero-top { top: clamp(78px, 10.5vh, 104px); }
  .hero-top .kicker { font-size: 15px; }
  .hero-bottom { bottom: clamp(26px, 4.5vh, 52px); gap: 14px; padding: 0 16px; }
  .hero-bottom .lead { font-size: 15px; line-height: 1.45; }
  .hero-bottom .actions { flex-wrap: nowrap; gap: 10px; }
  .hero-bottom .btn { min-height: 46px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
}
@media (max-width: 760px) { .scroll-hint { display: none; } }

/* ===== Stile AI (come nell'app) ===== */
.aigrad { background: linear-gradient(120deg, #FF8A3D, var(--ai1) 50%, var(--ai2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker.aik { background: linear-gradient(90deg, #FF8A3D, var(--ai1), var(--ai2)); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.aipill { display: inline-flex; align-items: center; font-family: var(--text); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: #0B0B12; background: linear-gradient(120deg, var(--ai1), var(--ai2)); vertical-align: middle; }
.aiorb { position: absolute; top: 22px; right: 22px; width: 92px; height: 92px; animation: aibreath 3.2s ease-in-out infinite; }
.aiorb .core { position: absolute; inset: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(255,255,255,0) 28%), conic-gradient(from 0deg, var(--ai1), var(--ai2), #FF6B1A, var(--ai1)); box-shadow: 0 0 30px rgba(155,140,255,.55), 0 0 60px rgba(111,195,255,.25); animation: aispin 9s linear infinite; }
.aiorb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(155,140,255,.35); animation: aispin 6s linear infinite; }
.aiorb i::after { content: ''; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--ai2); box-shadow: 0 0 10px var(--ai2); }
.aiorb i:nth-of-type(2) { inset: 7px; animation-duration: 4.5s; animation-direction: reverse; border-color: rgba(111,195,255,.3); }
.aiorb i:nth-of-type(2)::after { background: #FF6B1A; box-shadow: 0 0 10px #FF6B1A; }
.aiorb i:nth-of-type(3) { inset: -6px; animation-duration: 12s; border-style: dashed; border-color: rgba(255,255,255,.12); }
.aiorb.mini { position: relative; top: auto; right: auto; width: 52px; height: 52px; flex: none; }
.aiorb.mini .core { inset: 9px; }
@keyframes aibreath { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.04); } }
@keyframes aispin { to { transform: rotate(360deg); } }
@keyframes aiborder { 0% { background-position: 0 0, 0% 50%; } 100% { background-position: 0 0, 300% 50%; } }
.aiborder, .selfcard, .aiask { background: linear-gradient(#141418, #141418) padding-box, linear-gradient(120deg, var(--ai1), var(--ai2), #FF6B1A, var(--ai1)) border-box; border: 1.5px solid transparent; background-size: auto, 300% 300%; animation: aiborder 8s linear infinite; }

.aiband { overflow: hidden; }
.aiband .wrap { position: relative; z-index: 1; }
.aiband .split > .col { flex: 1 1 400px; }
.aura { position: absolute; inset: 0; pointer-events: none; }
.aura i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .22; animation: drift 16s ease-in-out infinite alternate; }
.aura i:nth-child(1) { width: 460px; height: 460px; top: -120px; right: -100px; background: var(--ai1); }
.aura i:nth-child(2) { width: 380px; height: 380px; bottom: -140px; left: -120px; background: #FF6B1A; opacity: .14; animation-duration: 20s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 24px) scale(1.08); } 100% { transform: translate(20px, -16px) scale(.96); } }
.ai-points { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ai-points li { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: 2px solid; border-image: linear-gradient(180deg, var(--ai1), var(--ai2)) 1; }
.ai-points b { font-size: 16px; }
.ai-points span { color: var(--muted); font-size: 15px; }

.selfcard { position: relative; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 60px rgba(155,140,255,.10); overflow: hidden; }
.selfcard::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 8%, rgba(155,140,255,.25), transparent 42%); }
.selfcard > * { position: relative; }
.selfcard > .aiorb { position: absolute; }
.selfcard h3 { font-size: 28px; line-height: 1.15; padding-right: 110px; letter-spacing: -.01em; }
.aitag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(120deg, rgba(155,140,255,.35), rgba(111,195,255,.25)); border: 1px solid rgba(155,140,255,.5); }
.stat3row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat3 { border: 1px solid rgba(155,140,255,.28); background: rgba(255,255,255,.03); border-radius: 18px; padding: 14px 8px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stat3 b { font-family: var(--display); font-size: 30px; background: linear-gradient(120deg, #fff, var(--ai2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat3 small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.insights { display: flex; flex-direction: column; gap: 8px; }
.insight { text-align: left; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(155,140,255,.22); background: linear-gradient(120deg, rgba(155,140,255,.07), rgba(111,195,255,.03)); transition: border-color .2s, transform .15s; }
.insight:hover { border-color: rgba(155,140,255,.5); }
.insight .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(155,140,255,.28), rgba(111,195,255,.18)); color: #DCD6FF; flex: none; font-size: 16px; }
.insight .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.insight .tx b { font-size: 15px; }
.insight .tx small { color: var(--muted); font-size: 13px; }
.insight .chev { color: var(--muted); transition: transform .3s; font-size: 20px; }
.insight .more { flex-basis: 100%; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s var(--ease), opacity .3s, margin .3s; color: var(--soft); font-size: 14px; line-height: 1.45; padding-left: 46px; }
.insight.open { border-color: rgba(155,140,255,.6); }
.insight.open .more { max-height: 160px; opacity: 1; margin-top: 4px; }
.insight.open .chev { transform: rotate(90deg); color: var(--ai2); }
.aibtn { position: relative; overflow: hidden; min-height: 52px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; color: #fff; cursor: pointer; background: linear-gradient(120deg, #7B6CFF, #4FA8E8 55%, #FF6B1A); background-size: 200% 100%; animation: aibtnmove 6s ease-in-out infinite; box-shadow: 0 8px 30px rgba(123,108,255,.35); }
.aibtn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%); background-size: 250% 100%; animation: aishine 3s ease-in-out infinite; }
.aibtn[disabled] { opacity: .6; pointer-events: none; }
@keyframes aibtnmove { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes aishine { 0% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
.aithink { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1.5px dashed rgba(155,140,255,.4); color: var(--soft); font-size: 15px; }
.aithink .dots { display: inline-flex; gap: 5px; }
.aithink .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ai2); animation: aidot 1.2s ease-in-out infinite; }
.aithink .dots i:nth-child(2) { animation-delay: .15s; background: var(--ai1); }
.aithink .dots i:nth-child(3) { animation-delay: .3s; background: #FF6B1A; }
@keyframes aidot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-5px); opacity: 1; } }
.typing::after { content: '▍'; color: var(--ai2); animation: blinkc 1s steps(1) infinite; }
@keyframes blinkc { 50% { opacity: 0; } }
#ai-out p { font-size: 16px; line-height: 1.5; color: var(--ink); }

.aiask { margin-top: 40px; position: relative; border-radius: 28px; padding: 28px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.aiask .askhead { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.aiask h3 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.aiask .askhead p { color: var(--soft); font-size: 15px; line-height: 1.45; margin-top: 4px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick .chip { border-color: rgba(155,140,255,.35); }
.quick .chip:hover { border-color: var(--ai1); }
.quick .chip[aria-pressed=true] { background: linear-gradient(120deg, var(--ai1), var(--ai2)); color: #0B0B12; border-color: transparent; }
.aiask-r { display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.aq { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: rgba(255,255,255,.08); font-size: 15px; animation: pop .4s var(--ease) both; }
.aa { padding: 16px; border-radius: 18px 18px 18px 4px; background: linear-gradient(120deg, rgba(155,140,255,.12), rgba(111,195,255,.06)); border: 1px solid rgba(155,140,255,.3); display: flex; flex-direction: column; gap: 10px; animation: pop .4s var(--ease) both; }
.aa p { line-height: 1.5; font-size: 15px; }
.apasso { display: flex; gap: 10px; align-items: flex-start; opacity: 0; animation: pop .4s var(--ease) forwards; font-size: 15px; line-height: 1.4; }
.apasso em { font-style: normal; flex: none; min-width: 70px; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 8px; text-align: center; color: #0B0B12; background: linear-gradient(120deg, var(--ai1), var(--ai2)); }
.aconsiglio { display: block; font-size: 14px; color: var(--soft); border-top: 1px dashed rgba(155,140,255,.3); padding-top: 10px; }
.aconsiglio b { color: var(--ai2); }
.coachc .aipill { align-self: flex-start; }
@media (max-width: 860px) {
  .aiask { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .aiask-r { min-height: 0; }
  .selfcard { padding: 22px; }
  .selfcard h3 { font-size: 22px; padding-right: 90px; }
  .aiorb:not(.mini) { width: 76px; height: 76px; top: 18px; right: 18px; }
  .stat3 b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .aiorb, .aiorb *, .aura i, .aibtn, .aibtn::after, .selfcard, .aiask, .ai-tag { animation: none !important; }
}

/* Seconda schermata dell'apertura: tocco AI viola */
.ai-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--p2, 0); background: radial-gradient(circle at 22% 50%, rgba(155,140,255,.24), transparent 52%), radial-gradient(circle at 78% 28%, rgba(111,195,255,.12), transparent 48%); }
.p2tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #DCD6FF; background: rgba(155,140,255,.14); border: 1px solid rgba(155,140,255,.4); margin-bottom: 18px; backdrop-filter: blur(6px); }
.livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--ai2); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(111,195,255,.6); } 100% { box-shadow: 0 0 0 8px rgba(111,195,255,0); } }
.aigrad.shim { background-size: 220% 100%; animation: shimtxt 7s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(155,140,255,.35)); }
@keyframes shimtxt { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.p2chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.p2chips span { padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--ink); background: linear-gradient(120deg, rgba(155,140,255,.16), rgba(111,195,255,.08)); border: 1px solid rgba(155,140,255,.32); backdrop-filter: blur(6px); }
@media (max-width: 760px) {
  .p2tag { margin-bottom: 12px; font-size: 12px; }
  .p2chips { justify-content: center; margin-top: 14px; }
  .p2chips span { font-size: 12px; padding: 6px 10px; }
  .ai-veil { background: radial-gradient(circle at 50% 78%, rgba(155,140,255,.26), transparent 55%); }
}
@media (prefers-reduced-motion: reduce) { .aigrad.shim, .livedot { animation: none; } }

/* Prima schermata: un tocco AI, leggero */
.ai-glow0 { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--p0, 1); background: radial-gradient(circle at 92% 88%, rgba(155,140,255,.16), transparent 38%), radial-gradient(circle at 4% 96%, rgba(111,195,255,.07), transparent 30%); }
.aiw { font-weight: 600; }
.scroll-hint span { background: linear-gradient(180deg, #FF6B1A, var(--ai1)) !important; }

/* Pulsanti principali con i colori AI */
.btn-ai { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #FF6B1A 0%, #FF8A3D 30%, #9B8CFF 70%, #6FC3FF 100%); background-size: 220% 100%; animation: btnai 7s ease-in-out infinite; box-shadow: 0 10px 36px rgba(155,140,255,.28), 0 6px 24px rgba(255,107,26,.25); }
.btn-ai:hover { color: #fff; background: linear-gradient(120deg, #FF6B1A 0%, #FF8A3D 30%, #9B8CFF 70%, #6FC3FF 100%); background-size: 220% 100%; box-shadow: 0 14px 46px rgba(155,140,255,.42), 0 8px 30px rgba(255,107,26,.32); }
.btn-ai::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); background-size: 250% 100%; animation: aishine 3.5s ease-in-out infinite; }
@keyframes btnai { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .btn-ai, .btn-ai::after { animation: none; } }

.kick-ai { background: linear-gradient(90deg, #FF6B1A 0%, #FF8A3D 30%, #9B8CFF 65%, #6FC3FF 85%, #FF6B1A 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: kickai 8s ease-in-out infinite; }
@keyframes kickai { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .kick-ai { animation: none; } }

/* Sezioni collegate all'AI: Tre secondi, Reality, La vera differenza */
.aisec .kicker { background: linear-gradient(90deg, #FF6B1A, #FF8A3D 30%, #9B8CFF 70%, #6FC3FF); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.aisec h2 .accent { background: linear-gradient(120deg, #FF6B1A 0%, #FF8A3D 25%, #9B8CFF 65%, #6FC3FF 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: aitagmove 9s ease-in-out infinite; }
.aisec .card-n { background: linear-gradient(90deg, #FF8A3D, #9B8CFF); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; align-self: flex-start; }
.aisec .card { position: relative; transition: border-color .3s, box-shadow .3s; }
.aisec .card:hover { border-color: rgba(155,140,255,.45); box-shadow: 0 0 40px rgba(155,140,255,.10); }
.aisec .card::before { content: ''; position: absolute; left: 28px; right: 28px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(155,140,255,.6), transparent); pointer-events: none; }
.aisec .aicard { background: linear-gradient(160deg, #1A1824, #121218) padding-box, linear-gradient(120deg, var(--ai1), var(--ai2), #FF6B1A, var(--ai1)) border-box; border: 1.5px solid transparent; background-size: auto, 300% 300%; animation: aiborder 8s linear infinite; }
.aisec .aicard::before { display: none; }
.aisec .aicard h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cardorb { position: absolute !important; top: 22px; right: 22px; width: 44px !important; height: 44px !important; }
.cardorb .core { inset: 8px !important; }
.aisec .accent-card { background: linear-gradient(135deg, #FF6B1A 0%, #FF8A3D 30%, #9B8CFF 75%, #6FC3FF 100%); background-size: 200% 200%; border-color: transparent; animation: orbai2 10s ease-in-out infinite; box-shadow: 0 20px 60px rgba(155,140,255,.22); }
.aisec .accent-card .card-n { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--bg); }
.aisec .accent-card::before { display: none; }
@keyframes orbai2 { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
.aisec .room { border-color: rgba(155,140,255,.35); box-shadow: 0 0 60px rgba(155,140,255,.10); }
.roomtag { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #DCD6FF; background: rgba(20,18,30,.75); border: 1px solid rgba(155,140,255,.4); backdrop-filter: blur(6px); }
.aisec .rscan { background: linear-gradient(rgba(155,140,255,0), rgba(155,140,255,.35)); border-bottom-color: var(--ai2); }
.aisec .ritem em { background: linear-gradient(90deg, #FF8A3D, #9B8CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aisec .ritem.done .ck { background: linear-gradient(120deg, var(--ai1), var(--ai2)); border-color: transparent; }
.aisec .ritem.rtotal { background: linear-gradient(120deg, #FF6B1A, #9B8CFF 70%, #6FC3FF); border-color: transparent; }
.aisec .ritem.rtotal em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .aisec h2 .accent, .aisec .aicard, .aisec .accent-card { animation: none; } }
/* Menu in alto: niente righe spezzate */
.nav-links a { white-space: nowrap; }
@media (max-width: 1240px) { .nav-links { gap: 18px; } .nav-links a { font-size: 14px; } }
@media (max-width: 1080px) { .nav-links { display: none; } }
.aisec .kicker, .kicker.aik { width: fit-content; }
.cardorb { top: 24px !important; right: 24px !important; left: auto !important; }

/* Dillo a voce */
.vdemo { align-items: center; text-align: center; min-height: 470px; }
.vd-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.vd-orb { position: relative; width: 140px; height: 140px; margin: 14px 0 4px; }
.vd-orb .core { position: absolute; inset: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(255,255,255,0) 28%), conic-gradient(from 0deg, var(--ai1), var(--ai2), #FF6B1A, var(--ai1)); box-shadow: 0 0 50px rgba(155,140,255,.55), 0 0 90px rgba(111,195,255,.25); animation: aispin 9s linear infinite; }
.vd-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(155,140,255,.35); }
.vd-orb i:nth-of-type(2) { inset: 12px; border-color: rgba(111,195,255,.3); }
.vd-orb i:nth-of-type(3) { inset: -14px; border-style: dashed; border-color: rgba(255,255,255,.12); animation: aispin 14s linear infinite; }
.vdemo.listening .vd-orb i:nth-of-type(1), .vdemo.listening .vd-orb i:nth-of-type(2) { animation: vring 1.6s ease-out infinite; }
.vdemo.listening .vd-orb i:nth-of-type(2) { animation-delay: .5s; }
.vdemo.thinking .vd-orb .core { animation-duration: 1.4s; }
.vdemo.speaking .vd-orb { animation: vspeak .5s ease-in-out infinite alternate; }
@keyframes vring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes vspeak { from { transform: scale(.97); } to { transform: scale(1.05); } }
.vd-state { color: var(--soft); font-size: 15px; }
.vd-said { font-size: 22px; font-weight: 600; line-height: 1.3; min-height: 58px; max-width: 440px; }
.vd-res { width: 100%; min-height: 96px; display: flex; flex-direction: column; gap: 8px; }
.vd-card { text-align: left; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: linear-gradient(120deg, rgba(155,140,255,.14), rgba(111,195,255,.06)); border: 1px solid rgba(155,140,255,.32); animation: pop .4s var(--ease) both; }
.vd-card .ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 19px; background: linear-gradient(135deg, #FF6B1A, #9B8CFF 75%); }
.vd-card b { display: block; font-size: 15px; }
.vd-card small { color: var(--soft); font-size: 14px; }
.vd-speak { font-size: 14px; color: var(--soft); font-style: italic; animation: pop .4s var(--ease) both; }
.vd-chips { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .vd-orb *, .vd-orb { animation: none !important; } }
#voce .split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
#voce .split > .col { flex: 1 1 400px; min-width: 0; }
@media (max-width: 860px) { #voce .split { gap: 32px; } }

/* ---- iPhone: prima schermata più leggera ---- */
.lead-short { display: none; }
br.br-sm { display: none; }
@media (max-width: 760px) {
  .lead-long { display: none; }
  .lead-short { display: inline; }
  br.br-sm { display: inline; }
  .hero-top h1 { font-size: clamp(30px, 8.4vw, 40px); line-height: 1.04; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-top .kicker { font-size: 13px; margin-bottom: 6px; }
  .hero-bottom { gap: 16px; }
  .hero-bottom .lead { font-size: 15px; max-width: 300px; }
  .hero-bottom .btn.hide-sm { display: none; }
  .hero-bottom .btn { min-width: 220px; justify-content: center; }
}

/* ---------- Itinerario (demo) ---------- */
.itdemo { gap: 14px; min-height: 560px; }
.itdemo .quick .chip { font-size: 14px; padding: 8px 14px; }
.it-said { font-size: 15.5px; line-height: 1.5; color: var(--soft); min-height: 48px; }
.it-sum { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; background: rgba(155,140,255,.08); border: 1px solid rgba(155,140,255,.25); }
.it-sum:empty { display: none; }
.it-sum span { font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.it-sum i { font-style: normal; color: var(--ai1); padding: 0 2px; }
.it-sum small { color: var(--muted); font-size: 13px; }
.it-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.itx { display: flex; align-items: center; gap: 12px; position: relative; animation: itin .45s var(--ease) both; }
@keyframes itin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.itx.leg { padding: 6px 0 6px 0; }
.itline { width: 14px; align-self: stretch; flex: none; position: relative; }
.itline::before { content: ''; position: absolute; left: 5px; top: -6px; bottom: -6px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--ai1), var(--ai2)); opacity: .5; }
.itleg { flex: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.itleg em { grid-row: 1; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.itleg b { grid-row: 2; font-family: var(--display); font-size: 24px; color: var(--accent); line-height: 1; }
.itleg span { grid-column: 2; grid-row: 1 / span 2; font-size: 13.5px; color: var(--soft); line-height: 1.4; }
.itx.stop, .itx.here { padding: 8px 0; }
.itdot { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 3px solid var(--ai1); background: var(--card); }
.itx.here .itdot { border-color: #FF8A3D; }
.itstop { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.itstop b { font-size: 16px; }
.itstop small { color: var(--muted); font-size: 13px; }
.itw { font-weight: 700; font-size: 14px; color: #C9C0FF; white-space: nowrap; }
.itx.moved .itleg b, .itx.moved .itw { color: #FF8A3D; }
.itx.gone { opacity: .45; }
.itx.gone .itstop b, .itx.gone .itleg span { text-decoration: line-through; }
.it-late { align-self: flex-start; border: 1.5px solid rgba(255,107,26,.5); background: rgba(255,107,26,.08); color: #FFB27A; border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.it-late:hover { background: rgba(255,107,26,.16); }
.it-msg { font-size: 15px; line-height: 1.5; color: var(--ink); }
.it-msg:empty { display: none; }
.it-notif { position: absolute; left: 16px; right: 16px; top: 14px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: rgba(40,40,48,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 14px 40px rgba(0,0,0,.45); transform: translateY(-140%); opacity: 0; transition: transform .5s var(--ease), opacity .4s; pointer-events: none; }
.it-notif.on { transform: none; opacity: 1; }
.it-notif img { border-radius: 8px; flex: none; }
.it-notif span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.it-notif b { font-size: 14px; }
.it-notif small { color: var(--soft); font-size: 13px; }
.it-notif em { font-style: normal; color: var(--muted); font-size: 12px; align-self: flex-start; }
@media (max-width: 760px) { .itdemo { min-height: 0; padding: 22px; } .itleg b { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .itx { animation: none; } .it-notif { transition: none; } }
.itx.gone .itleg b, .itx.gone .itw { color: var(--muted); }
