:root {
  --blue: #204660;
  --blue-dark: #16334a;
  --blue-deep: #0f2536;
  --blue-soft: #e8eef3;
  --text: #333;
  --muted: #5f6254;
  --bg: #f7f7f7;
  --coral: #f36a55;
  --gold: #c99f22;
  --olive: #737665;
  --line: #dde3e8;
  --radius: 10px;
  --serif: 'Crimson Text', Georgia, serif;
  --sans: 'Work Sans', system-ui, -apple-system, sans-serif;
  --shadow: 0 30px 80px rgba(15, 37, 54, .22), 0 8px 24px rgba(15, 37, 54, .12);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--blue); line-height: 1.1; margin: 0; font-weight: 700; }
h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.01em; }
h2 em, h1 em { font-style: italic; font-weight: 600; color: var(--coral); }
h3 { font-size: 26px; }
section { position: relative; }
main { overflow-x: clip; }
[data-lucide] { width: 1em; height: 1em; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--coral); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); z-index: 60; }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: var(--radius); background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--blue); transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(32, 70, 96, .28); }
.btn svg { width: 18px; height: 18px; }
.btn-small { padding: 10px 18px; font-size: 12px; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue); border-color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Navigazione ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px max(20px, calc((100vw - var(--wrap)) / 2)); transition: background .3s, box-shadow .3s, padding .3s; }
.nav.scrolled { background: rgba(247, 247, 247, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--blue); }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 761px) { .nav-links .nav-wide { display: none; } }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--blue); position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; color: var(--blue); font-size: 26px; padding: 6px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 56px; padding: 130px max(20px, calc((100vw - var(--wrap)) / 2)) 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #cfe0ec; top: -120px; right: -80px; }
.b2 { width: 380px; height: 380px; background: #ffd9d2; bottom: -60px; left: 30%; animation-delay: -6s; }
.b3 { width: 300px; height: 300px; background: #f3e4b4; top: 30%; left: -100px; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.12); } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin: 0 0 22px; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(243, 106, 85, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(243, 106, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(243, 106, 85, 0); } }
.hero h1 { font-size: clamp(46px, 6.2vw, 84px); letter-spacing: -.02em; }
.scribble { position: relative; white-space: nowrap; color: var(--coral); font-style: italic; }
.scribble svg { position: absolute; left: 0; bottom: -8px; width: 100%; height: 22px; overflow: visible; }
.scribble path { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s .7s cubic-bezier(.6, .1, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { font-size: 19px; color: #444; max-width: 33em; margin: 26px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points svg { color: #2e9d5b; }

.hero-visual { position: relative; perspective: 1600px; }
.panel { position: relative; background: linear-gradient(145deg, #2b2f33, #121417); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); transform: rotateY(calc(-14deg * (1 - var(--p, 0)))) rotateX(calc(6deg * (1 - var(--p, 0)))); transform-style: preserve-3d; transition: transform .1s linear; }
.panel-screen { position: relative; border-radius: 10px; overflow: hidden; background: #fff; aspect-ratio: 16 / 9; }
.panel-screen img { width: 100%; height: 100%; object-fit: cover; }
.panel-cam { position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3a3f45; }
.panel-stand { width: 22%; height: 34px; margin: 0 auto; background: linear-gradient(#2a2e32, #16181b); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); opacity: .9; transform: translateY(-1px); }
.live-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.live-ink path { fill: none; stroke: var(--coral); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: ink 4.5s 1.6s ease-in-out infinite; }
@keyframes ink { 0% { stroke-dashoffset: 520; opacity: 1; } 45%, 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.float { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px 16px 10px 10px; border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 37, 54, .18); font-size: 14px; font-weight: 600; color: var(--blue); white-space: nowrap; transform: translateY(var(--fy, 0)); animation: bob 6s ease-in-out infinite; }
.wi { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--c); font-size: 18px; }
.f1 { top: -6%; left: 8%; }
.f2 { bottom: 4%; left: -8%; animation-delay: -2s; }
.f3 { top: 36%; right: -5%; animation-delay: -4s; }
.f3 b { font-family: var(--serif); font-size: 18px; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: #fff; overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 500; white-space: nowrap; }
.marquee svg { color: var(--coral); width: 20px; height: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { max-width: 980px; margin: 0 auto; padding: 140px 20px 100px; }
.statement p { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; color: var(--blue); margin: 0 0 30px; }
.statement p.accent { color: var(--coral); font-style: italic; }
.reveal-words .w { opacity: .14; transition: opacity .4s; }
.reveal-words .w.on { opacity: 1; }

/* ---------- Intestazioni ---------- */
.section-head { max-width: 820px; margin: 0 auto 64px; text-align: center; padding: 0 20px; }
.section-head p:not(.kicker) { font-size: 18px; color: var(--muted); margin: 18px 0 0; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin: 0 0 16px; }
.kicker::before { content: ''; display: block; width: 100px; height: 4px; background: var(--coral); margin: 0 auto 18px; }
.section-head.light h2, .section-head.light .kicker { color: #fff; }
.section-head.light h2 em { color: #ffb4a8; }
.section-head.light p:not(.kicker) { color: rgba(255, 255, 255, .78); }


/* ---------- Prepara ovunque ---------- */
.anywhere { padding: 40px 20px 120px; }
.flow { position: relative; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 30px; }
.flow-track { position: absolute; top: 10px; left: 16%; right: 16%; height: 40px; pointer-events: none; z-index: 3; }
.flow-line { position: absolute; top: 50%; left: 0; right: 0; border-top: 3px dashed #c8d2da; }
.flow-line::after { content: ''; position: absolute; left: 0; top: -3px; height: 3px; width: 100%; background: var(--coral); transform-origin: left; transform: scaleX(clamp(0, calc((var(--p, 0) - .3) * 2.6), 1)); }
.flow-chip { position: absolute; top: 50%; left: clamp(0%, calc((var(--p, 0) - .3) * 260%), 100%); transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; background: #fff; color: var(--blue); font-weight: 600; font-size: 14px; white-space: nowrap; padding: 9px 16px; border-radius: 99px; box-shadow: 0 12px 30px rgba(15, 37, 54, .2); border: 2px solid var(--coral); z-index: 2; }
.flow-chip svg { color: var(--coral); width: 18px; height: 18px; }
.flow-stage { position: relative; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 0 26px 30px; }
.flow-icons { height: 92px; margin: -46px auto 18px; width: max-content; display: flex; align-items: center; gap: 10px; padding: 0 22px; border-radius: 22px; background: var(--blue); color: #fff; font-size: 34px; box-shadow: 0 16px 34px rgba(32, 70, 96, .3); }
.flow-icons.cloud { background: linear-gradient(135deg, #3b82c4, var(--blue)); font-size: 44px; }
.flow-icons.boards { background: var(--coral); box-shadow: 0 16px 34px rgba(243, 106, 85, .35); }
.flow-icons.boards svg:nth-child(2) { width: 1.25em; height: 1.25em; }
.flow-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 14px; }
.flow-stage h3 { font-size: 30px; margin: 10px 0 8px; }
.flow-stage p { margin: 0; color: #555; font-size: 16px; }

.chromeos { max-width: var(--wrap); margin: 70px auto 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: radial-gradient(ellipse at 0% 0%, #2a5878, var(--blue) 45%, var(--blue-deep)); color: #fff; border-radius: 26px; padding: 50px; position: relative; overflow: hidden; }
.chromeos::after { content: ''; position: absolute; width: 420px; height: 420px; right: -140px; top: -160px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); }
.chromeos-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); color: #f3d27a; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 99px; }
.chromeos h3 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); margin: 18px 0 14px; }
.chromeos h3 em { color: #ffb4a8; font-style: italic; }
.chromeos p { color: rgba(255, 255, 255, .82); font-size: 17px; margin: 0 0 20px; }
.chromeos p b { color: #fff; }
.ticks.light li { color: #fff; }
.platforms { display: grid; gap: 10px; position: relative; z-index: 1; }
.pf { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px 16px; transition: transform .3s, background .3s; }
.pf:hover { transform: translateX(6px); background: rgba(255, 255, 255, .14); }
.pf svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
.pf b { font-size: 17px; }
.pf span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.pf.main { background: #fff; color: var(--blue); border-color: #fff; transform: scale(1.03); box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.pf.main:hover { transform: scale(1.03) translateX(6px); }
.pf.main svg { background: var(--coral); color: #fff; }
.pf.main span { color: var(--olive); }
.chromeos .reveal, .platforms .pf { transition-delay: var(--d, 0s); }

/* ---------- Storia ---------- */
.story { padding: 60px 0 40px; }
.story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.step.on { opacity: 1; }
.step-n { font-family: var(--serif); font-size: 64px; color: var(--gold); line-height: 1; font-weight: 700; }
.step h3 { font-size: 40px; margin: 10px 0 16px; }
.step p { font-size: 18px; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; font-weight: 500; color: var(--blue); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 3px solid var(--coral); border-bottom: 3px solid var(--coral); transform: rotate(-45deg); }
.story-visual { position: sticky; top: 14vh; height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.story-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 10px solid #1d2023; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.shot.is-on { opacity: 1; transform: none; }
.story-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.story-dots span { width: 8px; height: 8px; border-radius: 99px; background: #c8d2da; transition: width .4s, background .4s; }
.story-dots span.on { width: 30px; background: var(--coral); }


/* ---------- Matematica e musica ---------- */
.subjects { padding: 120px 20px 40px; }
.subject { max-width: var(--wrap); margin: 0 auto 90px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; }
.subject.flip { grid-template-columns: .75fr 1.25fr; }
.subject.flip .subject-shot { order: 2; }
.subject-shot { border-radius: 16px; overflow: hidden; border: 10px solid #1d2023; box-shadow: var(--shadow); background: #fff; }
.subject-shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.subject:hover .subject-shot img { transform: scale(1.04); }
.subject-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 14px; border-radius: 99px; }
.subject-text h3 { font-size: clamp(30px, 3vw, 40px); margin: 16px 0 12px; }
.subject-text p { font-size: 17px; margin: 0 0 16px; }
.subjects h2 em { white-space: nowrap; }


/* ---------- Per ogni lezione ---------- */
.extras { padding: 60px 20px 40px; }
.extras-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.xcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.xcard:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15, 37, 54, .12); }
.xcard.big { grid-column: 1 / -1; flex-direction: row; }
.xcard.big .xshot { flex: 1.4; }
.xcard.big .xtext { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.xcard.big .subject-tag { align-self: flex-start; }
.xshot { overflow: hidden; background: #f0f3f5; }
.xshot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.xcard:hover .xshot img { transform: scale(1.05); }
.xtext { padding: 24px 26px 28px; }
.xtext h3 { font-size: 28px; margin: 14px 0 8px; }
.xtext p { margin: 0; color: #555; }

/* ---------- Griglia funzioni ---------- */
.features { padding: 110px 20px; }
.feature-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fcard { background: #fff; border-radius: 16px; padding: 28px 24px; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.fcard:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15, 37, 54, .1); border-color: transparent; }
.fcard > svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); margin-bottom: 16px; }
.fcard:nth-child(3n+2) > svg { background: #fde6e2; color: var(--coral); }
.fcard:nth-child(3n) > svg { background: #f6eed4; color: #9d7a12; }
.fcard h3 { font-size: 22px; margin-bottom: 6px; }
.fcard p { margin: 0; font-size: 15px; color: #555; }

/* ---------- Widget orizzontali ---------- */
.hscroll { background: var(--blue-deep); color: #fff; }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll-head { padding: 0 max(20px, calc((100vw - var(--wrap)) / 2)); margin-bottom: 44px; }
.hscroll-head h2, .hscroll-head .kicker { color: #fff; }
.hscroll-head h2 em { color: #ffb4a8; }
.hscroll-head .kicker::before { margin: 0 0 18px; }
.hscroll-track { display: flex; gap: 22px; padding: 0 max(20px, calc((100vw - var(--wrap)) / 2)); width: max-content; will-change: transform; }
.wcard { width: 280px; flex: none; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 28px; transition: background .3s, transform .3s; }
.wcard:hover { background: rgba(255, 255, 255, .12); transform: translateY(-6px); }
.wcard .wi { width: 58px; height: 58px; border-radius: 16px; font-size: 28px; margin-bottom: 22px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.wcard h3 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.wcard p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15px; }
.wcard.shot-card { width: 640px; padding: 0; overflow: hidden; }
.wcard.shot-card img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Touch ---------- */
.touch { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 140px 20px; }
.touch-visual { position: relative; }
.panel.small { transform: none; }
.tap { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--coral); opacity: 0; animation: tap 3s infinite; }
.tap1 { top: 9%; right: 8%; }
.tap2 { top: 52%; left: 40%; animation-delay: 1.5s; }
@keyframes tap { 0% { transform: scale(.4); opacity: .9; } 70% { transform: scale(1.3); opacity: 0; } 100% { opacity: 0; } }
.touch-text p { font-size: 18px; }
.touch-text h2 { margin-bottom: 20px; }
.touch-text .kicker::before { margin: 0 0 18px; }
.big-ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.big-ticks li { display: flex; gap: 16px; align-items: flex-start; }
.big-ticks li > svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--blue); color: #fff; }
.big-ticks b { display: block; color: var(--blue); font-size: 17px; }
.big-ticks span { color: #555; font-size: 15px; }

/* ---------- Google ---------- */
.google { background: radial-gradient(ellipse at 50% 0%, #2a5878, var(--blue) 50%, var(--blue-deep)); padding: 130px 20px; overflow: hidden; }
.orbit { position: relative; max-width: 900px; height: 480px; margin: 0 auto; }
.orbit-lines { position: absolute; inset: 30px 50px; width: calc(100% - 100px); height: calc(100% - 60px); }
.orbit-lines path { stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-dasharray: 6 8; fill: none; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.orbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%; background: #fff; display: grid; place-items: center; align-content: center; gap: 4px; box-shadow: 0 0 0 14px rgba(255, 255, 255, .08), 0 0 0 30px rgba(255, 255, 255, .04), 0 30px 60px rgba(0, 0, 0, .3); }
.orbit-core img { width: 64px; }
.orbit-core span { font-family: var(--serif); font-weight: 700; color: var(--blue); font-size: 20px; }
.onode { position: absolute; width: 250px; background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); display: grid; gap: 2px; transition: transform .3s; }
.onode:hover { transform: scale(1.04); }
.onode svg { width: 30px; height: 30px; color: var(--coral); margin-bottom: 6px; }
.onode b { color: var(--blue); font-size: 17px; }
.onode span { font-size: 14px; color: #555; line-height: 1.45; }
.n1 { left: 0; top: 0; } .n2 { right: 0; top: 0; } .n3 { left: 0; bottom: 0; } .n4 { right: 0; bottom: 0; }
.orbit.in .onode { animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.orbit.in .n2 { animation-delay: .12s; } .orbit.in .n3 { animation-delay: .24s; } .orbit.in .n4 { animation-delay: .36s; }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }

/* ---------- Personalizza ---------- */
.custom { padding: 130px 20px 110px; }
.custom-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 360px 1fr; gap: 50px; align-items: center; }
.custom-form { background: #fff; border-radius: 18px; padding: 28px; border: 1px solid var(--line); display: grid; gap: 20px; }
.custom-form label, .custom-form legend { display: grid; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); }
.custom-form fieldset { border: 0; padding: 0; margin: 0; }
.custom-form input { font: 500 17px var(--sans); color: var(--blue); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); width: 100%; text-transform: none; letter-spacing: 0; }
.custom-form input:focus { outline: none; border-color: var(--blue); }
.at { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); padding-left: 14px; }
.at span { color: var(--olive); font-size: 17px; text-transform: none; }
.at input { border: 0; padding-left: 4px; }
.swatches { display: flex; gap: 10px; margin-top: 8px; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--s); cursor: pointer; box-shadow: 0 0 0 0 #fff, 0 0 0 0 var(--s); transition: box-shadow .2s, transform .2s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--s); }
.mock { --m: #204660; --a: #f36a55; position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; }
.mock * { transition: background .4s, color .4s, border-color .4s; }
.mock-login { background: #fff; border-radius: 16px; padding: 28px 24px; text-align: center; box-shadow: var(--shadow); position: relative; z-index: 2; }
.mock-logo { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--m); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 24px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--m); }
.mock-bar { width: 60px; height: 4px; background: var(--a); margin: 18px auto 10px; }
.mock-title { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--m); }
.mock-sub { font-size: 13px; color: #666; margin-bottom: 16px; min-height: 2.6em; }
.mock-google { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px; font-weight: 600; font-size: 14px; color: #333; }
.mock-note { font-size: 12px; color: #777; margin: 10px 0 14px; }
.mock-note b { color: var(--m); }
.mock-guest { border: 2px solid var(--m); color: var(--m); border-radius: 8px; padding: 9px; font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.mock-app { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; background: #fff linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px) 0 0 / 22px 22px; box-shadow: var(--shadow); border: 10px solid #1d2023; overflow: hidden; }
.mock-top { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 7px 16px 7px 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); font-family: var(--serif); font-weight: 700; color: var(--m); font-size: 17px; }
.mock-mini { width: 28px; height: 28px; border-radius: 50%; background: var(--m); color: #fff; display: grid; place-items: center; font-size: 12px; }
.mock-tools { position: absolute; left: 10px; top: 64px; display: grid; gap: 8px; background: #fff; padding: 8px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
.mock-tools i { width: 24px; height: 24px; border-radius: 7px; background: #eef1f4; }
.mock-tools i.on { background: var(--m); }
.mock-dock { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; background: #fff; padding: 8px 12px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
.mock-dock i { width: 28px; height: 28px; border-radius: 8px; background: var(--m); }
.mock-dock i:nth-child(2n) { background: var(--a); }
.mock-ink { position: absolute; left: 22%; top: 30%; width: 60%; }
.mock-ink path { fill: none; stroke: var(--a); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: ink2 5s ease-in-out infinite; }
@keyframes ink2 { 0% { stroke-dashoffset: 400; } 50%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -400; } }
.included { list-style: none; padding: 0; margin: 60px auto 0; max-width: var(--wrap); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.included li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; font-weight: 500; color: var(--blue); }
.included svg { color: var(--coral); }

/* ---------- Numeri ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--wrap); margin: 0 auto; padding: 40px 20px 110px; gap: 20px; text-align: center; }
.num b { display: block; font-family: var(--serif); font-size: clamp(56px, 7vw, 92px); color: var(--blue); line-height: 1; }
.num span { color: var(--muted); font-weight: 500; }
.num:nth-child(2n) b { color: var(--coral); }

/* ---------- Privacy ---------- */
.privacy { padding: 0 20px 120px; }
.privacy-card { max-width: var(--wrap); margin: 0 auto; display: flex; gap: 36px; align-items: flex-start; background: #fff; border-radius: 22px; padding: 50px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.privacy-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(var(--coral), var(--gold)); }
.privacy-card > svg { flex: none; width: 76px; height: 76px; padding: 18px; border-radius: 20px; background: var(--blue); color: #fff; }
.privacy-card h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.privacy-card p { font-size: 17px; margin: 0 0 20px; max-width: 46em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--blue-soft); color: var(--blue); border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 600; }

/* ---------- Come funziona ---------- */
.how { padding: 40px 20px 130px; }
.timeline { position: relative; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.tl-line { position: absolute; top: 27px; left: 12%; right: 12%; height: 3px; background: var(--line); }
.tl-line span { display: block; height: 100%; background: var(--coral); transform-origin: left; transform: scaleX(var(--p, 0)); }
.tl-step { text-align: center; position: relative; }
.tl-dot { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--serif); font-size: 26px; font-weight: 700; box-shadow: 0 0 0 8px var(--bg); }
.tl-step h3 { font-size: 24px; margin-bottom: 8px; }
.tl-step p { margin: 0; font-size: 15px; color: #555; }

/* ---------- Offerta ---------- */
.pricing { padding: 110px 20px; background: #fff; border-block: 1px solid var(--line); }
.plans { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; border: 1.5px solid var(--line); border-radius: 20px; padding: 36px 30px; display: flex; flex-direction: column; background: var(--bg); transition: transform .3s, box-shadow .3s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15, 37, 54, .12); }
.plan h3 { font-size: 34px; }
.plan-sub { color: var(--olive); margin: 4px 0 22px; font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 28px; position: relative; font-size: 15px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid #2e9d5b; border-bottom: 2.5px solid #2e9d5b; transform: rotate(-45deg); }
.plan .btn { justify-content: center; }
.plan.featured { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.03); box-shadow: 0 30px 60px rgba(32, 70, 96, .3); }
.plan.featured:hover { transform: scale(1.03) translateY(-6px); }
.plan.featured h3 { color: #fff; }
.plan.featured .plan-sub { color: #f3d27a; }
.plan.featured li::before { border-color: #f3d27a; }
.plan.featured .btn { background: var(--coral); border-color: var(--coral); }
.ribbon { position: absolute; top: -14px; right: 24px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; }
.pricing-note { text-align: center; color: var(--muted); margin: 40px 0 0; }

/* ---------- FAQ ---------- */
.faq { padding: 120px 20px; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--blue); padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 26px; color: var(--coral); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: #555; }

/* ---------- Finale ---------- */
.final { background: var(--blue); color: #fff; padding: 140px 20px 170px; text-align: center; overflow: hidden; }
.final-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.final h2 { color: #fff; margin-bottom: 18px; }
.final h2 em { color: #ffb4a8; }
.final p { font-size: 19px; color: rgba(255, 255, 255, .8); margin: 0 0 36px; }
.final-ink { position: absolute; left: 0; bottom: 20px; width: 100%; height: 160px; }
.final-ink path { fill: none; stroke: var(--coral); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1800; stroke-dashoffset: calc(1800 * (1 - var(--p, 0))); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; padding: 30px max(20px, calc((100vw - var(--wrap)) / 2)); background: var(--blue-deep); color: rgba(255, 255, 255, .7); font-size: 14px; }
.foot p { margin: 0; flex: 1; }
.foot a { color: #fff; }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); color: #fff; font-size: 22px; font-weight: 700; }

/* ---------- Animazioni di comparsa ---------- */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.in.reveal, .in.reveal-left, .in.reveal-right { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
  .reveal-words .w { opacity: 1; }
  .scribble path, .live-ink path, .final-ink path { stroke-dashoffset: 0; }
  .flow-chip { left: 100%; }
  .flow-line::after { transform: none; }
  .panel { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .story-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 64px; padding-top: 50px; }
  .subject, .subject.flip { grid-template-columns: 1fr; gap: 26px; }
  .extras-grid { grid-template-columns: 1fr; }
  .xcard.big { flex-direction: column; }
  .subject.flip .subject-shot { order: 0; }
  .subjects h2 em { white-space: normal; }
  .flow-track { display: none; }
  .chromeos { grid-template-columns: 1fr; padding: 36px 26px; }
  .story-visual { order: -1; top: 60px; height: auto; z-index: 2; background: var(--bg); padding: 10px 0; }
  .step { opacity: .35; }
  .step { min-height: 60vh; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .touch { grid-template-columns: 1fr; padding: 100px 20px; }
  .custom-grid { grid-template-columns: 1fr; }
  .mock { grid-template-columns: 1fr; }
  .mock-login { max-width: 320px; margin: 0 auto; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .tl-line { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan.featured { transform: none; }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .orbit { height: auto; display: grid; gap: 14px; }
  .orbit-lines { display: none; }
  .orbit-core { position: static; transform: none; margin: 0 auto 10px; }
  .onode { position: static; width: auto; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; box-shadow: 0 20px 30px rgba(0, 0, 0, .1); padding: 8px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .f1, .f3 { display: none; }
  .f2 { left: 0; bottom: -30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .privacy-card { flex-direction: column; padding: 34px 26px; }
  .wcard { width: 240px; }
  .wcard.shot-card { width: 420px; }
  .statement { padding: 100px 20px 60px; }
  .lead { font-size: 17px; }
}
