/* ==========================================================================
   Paperbox Health · sito 2026 · stile "chiaro e autorevole"
   Bianco luminoso, viola Paperbox come accento, foto vere, movimento morbido.
   ========================================================================== */

:root {
  --white: #ffffff;
  --bg-soft: #f7f6fb;
  --bg-tint: #f3f0ff;
  --ink: #120d26;
  --text: #3a3550;
  --muted: #6b6684;
  --line: #e6e3ee;
  --line-strong: #d6d1e4;
  --violet: #4520b7;
  --violet-hover: #391a9b;
  --violet-mid: #6f4ef0;
  --violet-light: #ece7fd;
  --green: #23935a;
  --green-light: #e4f5ea;
  --amber: #d97f0b;
  --amber-light: #fdf1de;
  --sky-light: #e8f3ff;
  --dino: #8cc63f;

  --f-body: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 4.2vw, 56px);
  --maxw: 1200px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --sh-sm: 0 1px 2px rgba(18, 13, 38, .06), 0 1px 1px rgba(18, 13, 38, .04);
  --sh-md: 0 1px 2px rgba(18, 13, 38, .05), 0 12px 32px -14px rgba(18, 13, 38, .16);
  --sh-lg: 0 2px 4px rgba(18, 13, 38, .04), 0 40px 80px -36px rgba(40, 20, 110, .32);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--white); }
body {
  margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; font-feature-settings: 'ss01', 'cv11';
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong, b { font-weight: 600; color: var(--ink); }
::selection { background: var(--violet-light); color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet-mid); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(860px + var(--gutter) * 2); }
.s { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.s--tight { padding-block: clamp(56px, 6vw, 88px); }
.s--top0 { padding-top: 0; }
.bg-soft { background: var(--bg-soft); }
.bg-tint { background: var(--bg-tint); }
.bt { border-top: 1px solid var(--line); }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .g-3, .g-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g-4 { grid-template-columns: 1fr; } }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.rel { position: relative; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.head { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.head.center { margin-inline: auto; }
.head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 48px; }
.head--row > :first-child { max-width: 640px; }
.head--row .lead { max-width: 440px; }

/* ---------- tipografia ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.eyebrow--muted { color: var(--muted); }
h1, .h1 { font-weight: 600; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
h2, .h2 { font-weight: 600; font-size: clamp(32px, 3.7vw, 52px); line-height: 1.06; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
h3, .h3 { font-weight: 600; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.h4 { font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.eyebrow + h1, .eyebrow + h2, .eyebrow + .h1, .eyebrow + .h2 { margin-top: 16px; }
.accent { color: var(--violet); }
.lead { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
h1 + .lead, h2 + .lead, .h2 + .lead { margin-top: 20px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.tiny { font-size: 13px; line-height: 1.45; }
.footnote { font-size: 13px; color: var(--muted); }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease); }
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 1px 2px rgba(69, 32, 183, .3), 0 8px 20px -8px rgba(69, 32, 183, .55); }
.btn--primary:hover { background: var(--violet-hover); }
.btn--secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong), var(--sh-sm); }
.btn--secondary:hover { box-shadow: inset 0 0 0 1px var(--ink), var(--sh-sm); }
.btn--white { background: #fff; color: var(--violet); }
.btn--white:hover { background: var(--violet-light); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn:active { transform: scale(.98); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--violet); }
.link svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

/* ---------- header ---------- */
.hdr { position: fixed; z-index: 60; inset: 0 0 auto 0; transition: background .3s, box-shadow .3s, transform .5s var(--ease); }
.hdr.is-scrolled { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 20px; letter-spacing: -.035em; color: var(--ink); }
.brand svg { width: 28px; height: 28px; color: var(--violet); flex: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current='page'] { color: var(--violet); background: var(--violet-light); }
.hdr__cta { display: flex; align-items: center; gap: 8px; }
/* selettore della lingua */
.lang { display: inline-flex; align-items: center; gap: 2px; margin-right: 4px; }
.lang a { padding: 6px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); transition: color .2s, background .2s; }
.lang a:hover { color: var(--ink); background: var(--bg-soft); }
.lang a[aria-current] { color: var(--violet); background: var(--violet-light); }
.mnav__foot .lang { justify-content: center; margin: 0 0 4px; gap: 6px; }
.mnav__foot .lang a { font-size: 14px; padding: 8px 12px; }
@media (max-width: 960px) { .hdr__cta .lang { display: none; } }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px var(--line-strong); background: #fff; }
.burger i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:nth-child(1) { top: 17px; }
.burger i:nth-child(2) { top: 25px; }
.menu-open .burger i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mnav { position: fixed; inset: 72px 0 0 0; z-index: 55; background: #fff; padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; }
.menu-open .mnav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease), visibility 0s; }
.menu-open .hdr { background: #fff; box-shadow: 0 1px 0 var(--line); }
.mnav a.mnav__l { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.mnav a.mnav__l svg { width: 18px; height: 18px; color: var(--violet); }
.mnav__foot { margin-top: auto; display: grid; gap: 12px; }
.mnav__foot .btn { width: 100%; }
.mnav__foot p { font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 960px) { .nav, .hdr__cta .btn--secondary { display: none; } .burger { display: block; } }
@media (max-width: 440px) { .hdr__cta .btn--primary { display: none; } }

/* transizione di pagina: dissolvenza morbida */
.pagefade { position: fixed; inset: 0; z-index: 100; background: #fff; pointer-events: none; opacity: 0; visibility: hidden; }
html.is-entering .pagefade { opacity: 1; visibility: visible; }

/* ---------- loghi ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.logos img { height: 30px; width: auto; filter: brightness(0); opacity: .42; transition: opacity .3s; }
.logos img:hover { opacity: .7; }
.logos-label { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 22px; }
.logos-band { padding-block: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .logos { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-bottom: 4px; }
  .logos::-webkit-scrollbar { display: none; }
  .logos img { height: 26px; flex: none; }
}
.badge { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 6px 14px 6px 8px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); font-size: 12px; font-weight: 600; color: var(--muted); }
.badge img { height: 30px; width: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- hero home ---------- */
.hero { position: relative; padding-top: calc(72px + clamp(48px, 7vw, 96px)); overflow: clip; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1; background: radial-gradient(42% 60% at 85% 10%, rgba(111, 78, 240, .14), transparent 70%), radial-gradient(36% 50% at 8% 0%, rgba(89, 195, 255, .12), transparent 70%); }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 32px 64px; align-items: end; }
.hero__top h1 { font-size: clamp(42px, 6vw, 84px); }
.hero__side .lead { margin-bottom: 26px; }
.hero__media { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.hero__photo { position: relative; border-radius: clamp(20px, 2.6vw, 32px); overflow: hidden; aspect-ratio: 1150 / 520; box-shadow: var(--sh-lg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.06); }
.chip-ui { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--sh-md), inset 0 0 0 1px rgba(255, 255, 255, .6); font-size: 13px; line-height: 1.3; color: var(--muted); z-index: 2; }
.chip-ui b { display: block; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.chip-ui .ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--violet-light); color: var(--violet); }
.chip-ui .ic svg { width: 20px; height: 20px; }
.chip-ui .ic--green { background: var(--green-light); color: var(--green); }
.chip-ui .ic--amber { background: var(--amber-light); color: var(--amber); }
.hero__dino { position: absolute; right: 2.5%; top: -62px; width: clamp(64px, 6.5vw, 96px); z-index: 1; filter: drop-shadow(0 16px 20px rgba(40, 20, 110, .2)); }
@media (max-width: 900px) {
  .hero__top { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .hero__photo img { object-position: 40% 30%; }
  .chip-ui { font-size: 12px; padding: 9px 12px 9px 9px; }
  .chip-ui .ic { width: 32px; height: 32px; }
  .hero__dino { top: -56px; }
}

/* ---------- dichiarazione ---------- */
.statement { font-weight: 550; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.16; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.statement .soft { color: #b5b0c6; }

/* ---------- card ---------- */
.card { position: relative; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); transition: box-shadow .35s, transform .45s var(--ease); }
.card:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--sh-md); }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); }
.ic-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--violet-light); color: var(--violet); }
.ic-box svg { width: 24px; height: 24px; }
.ic-box--green { background: var(--green-light); color: var(--green); }
.ic-box--amber { background: var(--amber-light); color: var(--amber); }
.ic-box--sky { background: var(--sky-light); color: #1f6fd1; }
.card__viz { height: 170px; margin: -8px -8px 22px; border-radius: 16px; background: var(--bg-soft); overflow: hidden; position: relative; }
.card--flat { box-shadow: none; background: var(--bg-soft); }
.card--flat:hover { box-shadow: none; }
.num { font-size: 14px; font-weight: 600; color: var(--violet); }

/* viz: età */
.viz-age { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 100%; padding: 28px 20px 18px; }
.viz-age .bar { flex: 1; max-width: 58px; border-radius: 10px 10px 6px 6px; background: #e3def4; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--violet); position: relative; transform-origin: 50% 100%; }
.viz-age .bar.is-on { background: var(--violet); color: #fff; }
.viz-age .bar small { font-weight: 500; font-size: 10px; opacity: .8; }
.viz-age .bar:nth-child(1) { height: 42%; } .viz-age .bar:nth-child(2) { height: 58%; } .viz-age .bar:nth-child(3) { height: 74%; } .viz-age .bar:nth-child(4) { height: 90%; }
.viz-age .bar .flag { position: absolute; top: -22px; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.viz-timer { display: grid; place-items: center; height: 100%; }
.viz-timer svg { width: 132px; height: 132px; }
.viz-timer .t { font-weight: 650; font-size: 34px; letter-spacing: -.04em; fill: var(--ink); }
.viz-timer .u { font-size: 10px; font-weight: 600; letter-spacing: .12em; fill: var(--muted); }
.viz-line { height: 100%; padding: 22px 18px 14px; }
.viz-line svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- tablet con le schermate del gioco ---------- */
.tablet { position: relative; aspect-ratio: 4 / 3; border-radius: clamp(18px, 2.4vw, 30px); padding: clamp(9px, 1.2vw, 14px); background: #1c1a24; box-shadow: var(--sh-lg), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.tablet__screen { position: relative; width: 100%; height: 100%; border-radius: clamp(10px, 1.5vw, 18px); overflow: hidden; background: #6fd0ff; }
.screen { position: absolute; inset: 0; }
.screen--title { background: #3fb0f5 url('../img/game/cielo.webp') center / cover; }
.screen--title .cl { position: absolute; width: 40%; opacity: .95; }
.screen--title .isle-l2 { position: absolute; left: 3%; top: 44%; width: 22%; }
.screen--title .isle-l { position: absolute; left: 5%; top: 16%; width: 18%; z-index: 1; }
.screen--title .isle { position: absolute; left: 50%; top: 50%; width: 40%; transform: translate(-50%, -52%); }
.screen--title .board { position: absolute; right: 4%; top: 22%; width: 19%; }
.screen--title .board img { width: 100%; }
.screen--title .board .play-txt { position: absolute; left: 6%; top: 9%; width: 84%; }
.screen--login { background: #0e0a2a url('../img/game/stelle.webp') center / cover; display: grid; place-items: center; }
.screen--login .card-l { width: 46%; padding: 6% 5%; border-radius: 14px; background: #f3efff; display: grid; gap: 8%; justify-items: center; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.screen--login .card-l svg { width: 26%; color: var(--violet); }
.screen--login .card-l i { display: block; width: 100%; height: clamp(10px, 1.6vw, 20px); border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #d9d0ff; }
.screen--login .card-l b { display: block; width: 60%; height: clamp(12px, 1.9vw, 24px); border-radius: 999px; background: var(--violet); }
.screen--login .astro { position: absolute; left: 6%; bottom: 0; width: 22%; }
.screen--list { background: #f6f3ff; padding: 5%; display: grid; grid-template-rows: auto 1fr; gap: 4%; }
.screen--list .bar { display: flex; align-items: center; justify-content: space-between; font-size: clamp(9px, 1.1vw, 14px); font-weight: 600; color: var(--ink); }
.screen--list .bar span { padding: .4em .8em; border-radius: 999px; background: var(--violet); color: #fff; font-size: .8em; }
.screen--list ul { display: grid; gap: 3.5%; align-content: start; }
.screen--list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4%; padding: 2.4% 3%; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(40, 20, 100, .06); font-size: clamp(8px, 1vw, 13px); color: var(--ink); }
.screen--list li i { width: clamp(16px, 2.2vw, 28px); height: clamp(16px, 2.2vw, 28px); border-radius: 50%; background: var(--violet-light); }
.screen--list li b { font-weight: 600; }
.screen--list li em { font-style: normal; font-size: .9em; padding: .25em .7em; border-radius: 999px; color: #fff; }
.screen--list .g { background: var(--green); } .screen--list .y { background: var(--amber); }
[data-screen]:not(:first-child) { visibility: hidden; }

/* video: YouTube si carica solo al clic */
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; cursor: pointer; }
.video > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.video:hover > img { transform: scale(1.03); }
.video .screen { pointer-events: none; }
.video__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: #fff; color: var(--violet); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); z-index: 2; }
.video:hover .video__play { transform: scale(1.08); }
.video__play svg { width: 24px; height: 24px; margin-left: 3px; }
.video__label { position: absolute; left: 14px; bottom: 12px; right: 14px; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); z-index: 2; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* ---------- numeri ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 8px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__n { font-weight: 600; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__n span.u { font-size: .5em; color: var(--violet); letter-spacing: -.02em; margin-left: 2px; }
.stat__l { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 24ch; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } .stat { border-left: 0; padding: 0; } }

/* ---------- il razzo (momento speciale, in una cornice scura) ---------- */
.rocket-sec { position: relative; padding: clamp(8px, 1.2vw, 16px); background: #fff; }
.rocket-frame { position: relative; height: calc(100svh - clamp(16px, 2.4vw, 32px)); min-height: 600px; border-radius: clamp(20px, 2.6vw, 32px); overflow: hidden; background: radial-gradient(90% 70% at 70% 0%, #3a1f9e 0%, #1a0d4f 55%, #120a38 100%); color: #fff; }
.rocket-frame .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.rocket-pin { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 80px); padding: 40px clamp(24px, 5vw, 80px); max-width: 1320px; margin-inline: auto; }
.pad { position: relative; height: min(68svh, 600px); }
.pad__ground { position: absolute; left: -70%; right: -70%; bottom: -30%; height: 46%; border-radius: 50%; background: radial-gradient(closest-side, rgba(140, 110, 255, .5), rgba(70, 40, 170, .22) 55%, transparent 100%); }
.pad__tower { position: absolute; bottom: 14%; right: 2%; height: 74%; width: auto; }
.rocket { position: absolute; bottom: 14%; left: 34%; height: 78%; aspect-ratio: 326 / 707; transform: translateX(-50%); }
.rocket__part { position: absolute; }
.rocket__part img { width: 100%; height: auto; }
.rocket__part--1 { bottom: 0; left: 0; width: 100%; }
.rocket__part--2 { bottom: 24.89%; left: 17.48%; width: 65.03%; }
.rocket__part--3 { bottom: 37.77%; left: 17.02%; width: 65.95%; }
.rocket__part--4 { bottom: 53.04%; left: 14.72%; width: 70.55%; }
.rocket__ghost { position: absolute; inset: 0; border: 2px dashed rgba(255, 255, 255, .28); border-radius: 40% 40% 12px 12px / 30% 30% 12px 12px; }
.rocket__flame { position: absolute; left: 50%; top: 96%; width: 40%; height: 34%; transform: translateX(-50%) scaleY(0); transform-origin: top center; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: radial-gradient(ellipse at 50% 20%, #fff7c2 0%, #ffc24b 30%, #ff6b3d 62%, transparent 72%); filter: blur(2px); }
.smoke { position: absolute; bottom: 12%; left: 34%; width: 0; height: 0; }
.smoke i { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(220, 210, 255, .2) 60%, transparent 70%); opacity: 0; }
.levels .eyebrow { color: #c9bcff; }
.levels__title { font-weight: 600; font-size: clamp(28px, 3vw, 44px); line-height: 1.06; letter-spacing: -.04em; margin: 14px 0 12px; color: #fff; }
.levels__lead { color: rgba(255, 255, 255, .7); max-width: 44ch; font-size: 16px; margin-bottom: 28px; }
.levels__count { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.levels__dots { display: flex; gap: 6px; }
.levels__dots i { width: 26px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .18); transition: background .4s, width .5s var(--ease); }
.levels__dots i.is-on { background: #fff; width: 42px; }
.level-stack { position: relative; min-height: 300px; }
.level { position: absolute; inset: 0; display: grid; grid-template-columns: clamp(96px, 9vw, 140px) minmax(0, 1fr); gap: 0 22px; align-items: start; }
.level__isle { width: 100%; grid-row: span 3; }
.level__tag { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #c9bcff; }
.level h3 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.18; letter-spacing: -.03em; margin: 8px 0 0; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .1); color: #fff; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dino); }
.launch-msg { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; z-index: 4; pointer-events: none; opacity: 0; padding: 0 var(--gutter); }
.launch-msg h3 { font-size: clamp(44px, 6vw, 88px); letter-spacing: -.05em; color: #fff; margin-top: 12px; }
.launch-msg p { margin: 16px auto 0; color: rgba(255, 255, 255, .78); max-width: 46ch; font-size: 18px; }
@media (max-width: 900px) {
  .rocket-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; align-items: start; gap: 6px; padding: 32px 22px 16px; }
  .pad { height: 32svh; order: 2; }
  .levels { order: 1; }
  .levels__title { font-size: 24px; margin: 8px 0 6px; }
  .levels__lead { display: none; }
  .levels__count { margin-bottom: 12px; }
  .level-stack { min-height: 200px; }
  .level { grid-template-columns: 64px minmax(0, 1fr); gap: 0 14px; }
  .level h3 { font-size: 19px; }
  .chip { font-size: 12px; padding: 6px 10px; }
}
html:not(.motion) .rocket-frame { height: auto; }
html:not(.motion) .level-stack { min-height: 0; }
html:not(.motion) .level { position: relative; inset: auto; margin-bottom: 36px; }
html:not(.motion) .launch-msg { position: relative; opacity: 1; padding: 0 var(--gutter) 64px; }
html:not(.motion) .rocket__ghost { display: none; }

/* ---------- versioni Scuola / Studio ---------- */
.version { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); transition: box-shadow .35s, transform .45s var(--ease); }
.version:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--sh-lg); transform: translateY(-4px); }
.version__img { aspect-ratio: 16 / 9; overflow: hidden; }
.version__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.version:hover .version__img img { transform: scale(1.04); }
.version__body { padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; flex: 1; }
.version__body h3 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.035em; margin: 12px 0 10px; }
.version__body p { color: var(--muted); margin-bottom: 24px; }
.version__body .link { margin-top: auto; }
.tag { display: inline-flex; align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--violet-light); color: var(--violet); font-size: 12px; font-weight: 600; }
.note-bar { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; padding: 18px; border-radius: var(--r-md); background: var(--bg-soft); font-size: 15px; }

/* ---------- testimonianze ---------- */
.quote-feat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; padding: clamp(28px, 3.4vw, 48px); border-radius: var(--r-lg); background: var(--violet); color: #fff; }
.quote-feat img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.quote-feat blockquote { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45; letter-spacing: -.02em; font-weight: 450; }
.quote-feat .who { margin-top: 20px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.quote-feat .who b { color: #fff; }
@media (max-width: 640px) { .quote-feat { grid-template-columns: 1fr; } }
.quotes { columns: 3 300px; column-gap: clamp(16px, 2vw, 24px); margin-top: clamp(16px, 2vw, 24px); }
.qcard { break-inside: avoid; margin-bottom: clamp(16px, 2vw, 24px); padding: 26px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); }
.qcard__stars { color: #f2a516; letter-spacing: 2px; font-size: 14px; margin-bottom: 12px; }
.qcard__stars i { font-style: normal; opacity: .35; }
.qcard blockquote { font-size: 16px; line-height: 1.6; color: var(--text); }
.qcard__who { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.qcard__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.qcard__who b { display: block; font-size: 15px; letter-spacing: -.01em; }
.qcard__who span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; }
.qcard cite { display: block; margin-top: 10px; font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- moduli ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; } }
.form { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-lg); overflow: hidden; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form__grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 500; color: var(--ink); }
.field > span em { color: var(--violet); font-style: normal; }
.input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-size: 16px; transition: box-shadow .2s; -webkit-appearance: none; appearance: none; }
.input::placeholder { color: #a7a2b8; }
.input:hover { box-shadow: inset 0 0 0 1px #b9b3cc; }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 4px var(--violet-light); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6684' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field.is-invalid .input, .field.is-invalid .seg span { box-shadow: inset 0 0 0 2px #d93a4a; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; font-weight: 500; color: var(--text); transition: background .2s, color .2s, box-shadow .2s; }
.seg input:checked + span { background: var(--violet); color: #fff; box-shadow: none; }
.seg input:focus-visible + span { outline: 3px solid var(--violet-mid); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: none; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; margin-top: 1px; background: #fff; transition: background .2s, box-shadow .2s; }
.check .box svg { width: 13px; height: 13px; opacity: 0; color: #fff; transition: opacity .2s; }
.check input:checked + .box { background: var(--violet); box-shadow: none; }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { outline: 3px solid var(--violet-mid); outline-offset: 2px; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid .box { box-shadow: inset 0 0 0 2px #d93a4a; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form__err { width: 100%; font-size: 14px; color: #c62838; }
.form__ok { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; background: #fff; opacity: 0; visibility: hidden; }
.form.is-sent .form__ok { opacity: 1; visibility: visible; transition: opacity .4s; }
.form__ok .ok-ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--green-light); color: var(--green); }
.form__ok .ok-ic svg { width: 30px; height: 30px; }
.form__ok h3 { margin-bottom: 8px; }
.form__ok p { color: var(--muted); }
.form__preview { margin-top: 16px; display: inline-block; font-size: 12px; padding: 6px 10px; border-radius: 8px; background: var(--amber-light); color: #8a4f00; }
.hp { position: absolute !important; left: -9999px !important; }
.contact-list { margin-top: 32px; border-top: 1px solid var(--line); }
.contact-list > * { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-list span:first-child { color: var(--muted); }
.contact-list span:last-child { font-weight: 600; color: var(--ink); }
.contact-list a:hover span:last-child { color: var(--violet); }

/* ---------- footer ---------- */
.ftr { background: var(--bg-soft); border-top: 1px solid var(--line); }
.ftr__cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: clamp(36px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); border-radius: var(--r-lg); background: var(--violet); color: #fff; position: relative; overflow: hidden; }
.ftr__cta h2 { color: #fff; font-size: clamp(28px, 3vw, 42px); }
.ftr__cta p { color: rgba(255, 255, 255, .78); margin-top: 10px; max-width: 52ch; }
.ftr__cta .ctas { position: relative; z-index: 1; }
.ftr__cta .btn--ghost-w { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); color: #fff; }
.ftr__cta .btn--ghost-w:hover { box-shadow: inset 0 0 0 1px #fff; }
.ftr__cta-dino { position: absolute; right: 24px; bottom: -20px; width: 110px; opacity: .14; filter: brightness(10); pointer-events: none; }
@media (max-width: 860px) { .ftr__cta { grid-template-columns: 1fr; } }
.ftr__cols { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 40px; padding-block: clamp(48px, 5vw, 72px) 40px; }
.ftr__cols h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.ftr__cols li + li { margin-top: 10px; }
.ftr__cols a { font-size: 15px; color: var(--muted); transition: color .2s; }
.ftr__cols a:hover { color: var(--violet); }
.ftr__social { display: flex; gap: 8px; margin-top: 20px; }
.ftr__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); transition: color .2s, box-shadow .2s; }
.ftr__social a:hover { color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.ftr__social svg { width: 17px; height: 17px; }
.ftr__news { display: flex; gap: 6px; margin-top: 14px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.ftr__news input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 0 12px; font-size: 15px; color: var(--ink); }
.ftr__news input:focus { outline: none; }
.ftr__news .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .ftr__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__cols { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- aperture delle pagine interne ---------- */
.phero { position: relative; padding: calc(72px + clamp(48px, 6vw, 88px)) 0 clamp(56px, 7vw, 96px); overflow: clip; }
.phero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 60% at 90% 0%, rgba(111, 78, 240, .12), transparent 70%), radial-gradient(30% 40% at 0% 10%, rgba(89, 195, 255, .1), transparent 70%); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.phero h1 { font-size: clamp(34px, 3.9vw, 54px); }
.phero .lead { margin-top: 20px; }
.phero .ctas { margin-top: 32px; }
.proof { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.avatars { display: flex; }
.avatars img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff; }
.avatars img + img { margin-left: -10px; }
.proof p { font-size: 14px; color: var(--muted); line-height: 1.4; }
.media-frame { position: relative; border-radius: clamp(20px, 2.4vw, 28px); overflow: hidden; box-shadow: var(--sh-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } }

/* passaggi con schermo fisso */
.sticky-steps { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.sticky-steps__media { position: sticky; top: calc(72px + 8vh); height: 70vh; display: grid; place-items: center; }
.sticky-steps__media .tablet { width: 100%; max-width: 620px; }
.step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; opacity: .35; transition: opacity .5s; }
.step.is-active { opacity: 1; }
html:not(.motion) .step { opacity: 1; }
.step h3 { font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.035em; margin: 10px 0 12px; }
.step p { color: var(--muted); max-width: 40ch; }
@media (max-width: 900px) {
  .sticky-steps { grid-template-columns: 1fr; }
  .sticky-steps__media { order: -1; position: sticky; top: 72px; height: auto; z-index: 2; padding-block: 12px; background: var(--bg-soft); }
  .sticky-steps__media .tablet { max-width: 400px; }
  .step { min-height: 50vh; }
}

/* report di esempio */
.report { position: relative; border-radius: 22px; background: #fff; color: var(--ink); padding: clamp(18px, 2.4vw, 28px); box-shadow: inset 0 0 0 1px var(--line), var(--sh-lg); font-size: 13px; }
.report__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.report__brand { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; letter-spacing: -.02em; }
.report__brand svg { width: 20px; height: 20px; color: var(--violet); }
.report__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.report__chips span { padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); font-size: 11px; font-weight: 600; color: var(--muted); }
.report__hero { margin-top: 16px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--amber-light); }
.report__hero .ic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.report__hero small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.report__hero b { font-size: 16px; letter-spacing: -.02em; }
.report__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: center; }
.report__radar svg { width: 100%; height: auto; overflow: visible; }
.report__games { display: grid; gap: 8px; }
.rg { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); }
.rg b { font-size: 12px; font-weight: 600; line-height: 1.25; }
.rg em { font-style: normal; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: #fff; }
.rg .bar { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: #e8e4f3; overflow: hidden; }
.rg .bar i { display: block; height: 100%; border-radius: inherit; transform-origin: left; }
.rg.g em, .rg.g .bar i { background: var(--green); } .rg.y em, .rg.y .bar i { background: var(--amber); }
.report__tip { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--violet-light); font-size: 12px; display: flex; gap: 10px; align-items: center; color: var(--violet); font-weight: 600; }
.report__tip svg { width: 18px; height: 18px; flex: none; }
.report__stamp { position: absolute; top: -14px; right: 18px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 12px; }
@media (max-width: 520px) { .report__body { grid-template-columns: 1fr; } }

/* elenco con numeri */
.points { border-top: 1px solid var(--line); }
.point { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.point h3 { font-size: 18px; margin-bottom: 6px; }
.point p { color: var(--muted); }

/* flusso fruizione > restituzione */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(36px, 4vw, 56px); }
.pipeline__line { position: absolute; left: 12.5%; right: 12.5%; top: 31px; width: 75%; height: 2px; overflow: visible; }
.pipeline__line line { stroke: var(--line-strong); stroke-width: 2; }
.pipeline__line .prog { stroke: var(--violet); stroke-dasharray: 1; stroke-dashoffset: 0; }
html.motion .pipeline__line .prog { stroke-dashoffset: 1; }
.pipeline__node { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.pipeline__node span { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--violet); box-shadow: inset 0 0 0 1px var(--line), var(--sh-md); }
.pipeline__node span svg { width: 26px; height: 26px; }
.pipeline__node b { font-size: 15px; }
@media (max-width: 640px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } .pipeline__line { display: none; } }

/* tabella di confronto */
.compare { border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-md); }
.compare__row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 130px; align-items: stretch; border-bottom: 1px solid var(--line); }
.compare__row:last-child { border-bottom: 0; }
.compare__row > * { padding: 18px 24px; display: flex; align-items: center; }
.compare__row > :not(:first-child) { justify-content: center; text-align: center; padding-inline: 8px; }
.compare__row > div:first-child { font-weight: 500; color: var(--ink); }
.compare__head { background: var(--bg-soft); font-size: 14px; font-weight: 600; color: var(--muted); }
.compare__row .dino-col { background: rgba(69, 32, 183, .04); }
.compare__row.compare__head .dino-col { background: var(--violet); color: #fff; }
.tick, .cross { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.tick { background: var(--violet); color: #fff; }
.tick--soft { background: var(--violet-light); color: var(--violet); }
.cross { background: #fde8ea; color: #d93a4a; }
.tick svg, .cross svg { width: 14px; height: 14px; }
@media (max-width: 560px) { .compare__row { grid-template-columns: minmax(0, 1fr) 64px 76px; } .compare__row > * { padding: 14px 12px; font-size: 14px; } .compare__head { font-size: 12px; } }

/* FAQ */
.faq-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 20px; }
.faq-tabs button { padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.faq-tabs button[aria-selected='true'] { background: #fff; color: var(--ink); box-shadow: var(--sh-sm), inset 0 0 0 1px var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq__pm { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); position: relative; transition: background .2s, transform .4s var(--ease); }
.faq__pm::before, .faq__pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease); }
.faq__pm::after { transform: rotate(90deg); }
.faq[open] .faq__pm { background: var(--violet-light); transform: rotate(180deg); }
.faq[open] .faq__pm::after { transform: rotate(0); }
.faq__a { overflow: hidden; }
.faq__a > div { padding: 0 52px 24px 0; color: var(--muted); }
.faq__a a { color: var(--violet); font-weight: 600; }

/* galleria foto vere */
.gallery { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 16px; }
.gallery figure { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; }
.gallery figure:nth-child(3) { aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 13px; font-weight: 600; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }

/* livelli del gioco (scuole e specialisti) */
.lvl { position: relative; padding: 28px; border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 42%; gap: 16px; align-items: center; min-height: 250px; transition: transform .45s var(--ease), box-shadow .35s; }
.lvl:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.lvl img { width: 100%; transition: transform .8s var(--ease); }
.lvl:hover img { transform: translateY(-6px) rotate(-2deg); }
.lvl .n { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lvl h3 { margin: 8px 0 10px; font-size: clamp(20px, 1.8vw, 24px); }
.lvl p { color: var(--text); font-size: 15px; }
.lvl .skills { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.lvl .skills span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 600; color: var(--ink); }
.lvl--1 { background: #e6f2ff; } .lvl--2 { background: #ffece4; } .lvl--3 { background: #fdf3dc; } .lvl--4 { background: #efeafe; }
.lvl--5 { background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 560px) { .lvl { grid-template-columns: 1fr 34%; padding: 22px; } }

/* specialisti */
.metrics { display: grid; gap: 10px; }
.metric { display: grid; grid-template-columns: 130px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; }
.metric b { font-weight: 600; }
.metric .track { height: 7px; border-radius: 7px; background: #e6e2f2; overflow: hidden; }
.metric .track i { display: block; height: 100%; border-radius: inherit; background: var(--violet); transform-origin: left; }
.metric em { font-style: normal; font-weight: 600; font-size: 13px; color: var(--violet); min-width: 48px; text-align: right; }
.float-card { position: absolute; left: -8%; bottom: 8%; width: min(340px, 80%); padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--sh-lg), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.float-card .metric { grid-template-columns: 84px 1fr auto; padding: 9px 10px; font-size: 13px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.float-card p.tiny { font-weight: 600; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 900px) { .float-card { left: 4%; } }
.bento { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
.bento__big { grid-row: span 2; display: flex; flex-direction: column; }
.bento__stat { display: flex; align-items: flex-end; gap: 8px; margin: 16px 0 14px; font-weight: 650; font-size: clamp(72px, 8vw, 120px); line-height: .85; letter-spacing: -.06em; color: var(--violet); }
.bento__stat small { font-weight: 500; font-size: 16px; letter-spacing: 0; color: var(--muted); margin-bottom: .5em; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento__big { grid-row: auto; } }
.sheets { position: relative; height: 120px; margin: 4px 0 14px; }
.sheets i { position: absolute; left: 50%; top: 6px; width: 96px; height: 110px; margin-left: -48px; border-radius: 10px; background: #fff; box-shadow: 0 8px 20px -10px rgba(40, 20, 100, .35), inset 0 0 0 1px var(--line); transition: transform .6s var(--ease); }
.sheets i:nth-child(1) { transform: rotate(-12deg) translateX(-30px); background: var(--violet-light); }
.sheets i:nth-child(2) { transform: rotate(8deg) translateX(28px); background: var(--amber-light); }
.sheets i:nth-child(3) { padding: 13px 11px; display: flex; flex-direction: column; gap: 7px; }
.sheets i:nth-child(3) b { display: block; height: 6px; border-radius: 4px; background: #e8e4f3; }
.sheets i:nth-child(3) b:first-child { width: 60%; background: var(--violet); }
.sheets i:nth-child(3) span { margin-top: auto; font-size: 9px; font-weight: 700; color: var(--violet); line-height: 1.2; }
.card:hover .sheets i:nth-child(1) { transform: rotate(-17deg) translateX(-46px); }
.card:hover .sheets i:nth-child(2) { transform: rotate(13deg) translateX(44px); }
.price { margin-top: 16px; }
.price small { display: block; font-size: 13px; color: var(--muted); }
.price b { display: block; font-weight: 650; font-size: 34px; line-height: 1.05; letter-spacing: -.05em; color: var(--violet); }
.promo { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 18px; border-radius: 16px; background: var(--violet-light); }
.promo__n { flex: none; font-weight: 700; font-size: 28px; letter-spacing: -.04em; color: var(--violet); }
.promo p { color: var(--ink); font-size: 15px; }
.areas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.area { padding: 20px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.area img { width: 86px; margin: 0 auto 12px; }
.area b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }
.area span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }
.area--soon { background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); }
.area--soon .soon { width: 86px; height: 86px; margin: 0 auto 12px; border-radius: 50%; border: 2px dashed var(--line-strong); display: grid; place-items: center; font-weight: 650; font-size: 26px; color: var(--muted); }
@media (max-width: 1000px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* mission */
.mhero { padding: calc(72px + clamp(56px, 8vw, 120px)) 0 0; position: relative; overflow: clip; }
.mhero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 50% at 50% 0%, rgba(111, 78, 240, .12), transparent 70%); }
.mhero h1 { font-size: clamp(44px, 7vw, 104px); letter-spacing: -.055em; line-height: .98; }
.mhero .lead { max-width: 640px; margin: 24px auto 0; }
.tdys { position: relative; cursor: default; }
.tdys .dw { border-radius: 0; }
.tdys .dl.chg { animation: tdys-in .38s var(--ease) both; }
@keyframes tdys-in { from { opacity: .1; filter: blur(4px); } to { opacity: 1; filter: none; } }
.collage { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; margin-top: clamp(48px, 6vw, 80px); align-items: end; }
.collage figure { border-radius: var(--r-lg); overflow: hidden; }
.collage figure > img { width: 100%; height: 100%; object-fit: cover; }
.collage figure:nth-child(1) { aspect-ratio: 3 / 4; }
.collage figure:nth-child(2) { aspect-ratio: 4 / 3.6; }
.collage figure:nth-child(3) { aspect-ratio: 3 / 4; }
@media (max-width: 760px) { .collage { grid-template-columns: 1fr 1fr; } .collage figure:nth-child(2) { grid-column: 1 / -1; order: -1; } }
.fact { padding: 28px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); }
.fact__n { font-weight: 650; font-size: clamp(44px, 4.6vw, 64px); line-height: 1; letter-spacing: -.055em; color: var(--violet); }
.fact p { margin-top: 12px; color: var(--muted); }
.source { margin-top: 18px; font-size: 13px; color: var(--muted); }
.source a { text-decoration: underline; text-underline-offset: 3px; }
.honest { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--bg-tint); }
.honest img { width: clamp(80px, 8vw, 110px); }
.honest p { color: var(--text); max-width: 64ch; margin-top: 8px; }
@media (max-width: 640px) { .honest { grid-template-columns: 1fr; } }
.timeline { position: relative; max-width: 820px; margin-inline: auto; }
.timeline__line { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__line i { position: absolute; inset: 0; background: var(--violet); transform-origin: top; transform: scaleY(0); }
html:not(.motion) .timeline__line i { transform: none; }
.tl-item { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 8px 32px; padding: 0 0 40px 48px; }
.tl-item::before { content: ''; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--violet); }
.tl-item--now::before { background: var(--violet); box-shadow: 0 0 0 6px var(--violet-light); }
.tl-item__date { font-size: 14px; font-weight: 600; color: var(--violet); padding-top: 2px; }
.tl-item h3 { font-size: 20px; margin-bottom: 6px; }
.tl-item p { color: var(--muted); }
.tl-item--now > div { padding: 20px 22px; border-radius: var(--r-md); background: var(--bg-tint); margin-top: -12px; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; } }
.pcard { padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 18px; min-height: 190px; }
.pcard .logo { height: 40px; display: flex; align-items: center; }
.pcard .logo img { max-height: 36px; width: auto; max-width: 70%; filter: brightness(0); opacity: .6; }
.pcard .logo img.keep { filter: none; opacity: 1; max-height: 40px; }
.pcard p { color: var(--muted); font-size: 15px; margin-top: auto; }
.person__ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); }
.person__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform 1s var(--ease); }
.person__ph img.col { opacity: 0; }
.person:hover .person__ph img.col, .person:focus-within .person__ph img.col { opacity: 1; }
.person:hover .person__ph img { transform: scale(1.03); }
.person__name { font-weight: 600; font-size: 18px; letter-spacing: -.02em; color: var(--ink); margin-top: 14px; }
.person__role { font-size: 14px; color: var(--violet); margin-top: 2px; font-weight: 500; }
.person__bio { font-size: 15px; color: var(--muted); margin-top: 10px; }
.team-rest { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 24px; }
.team-rest .person__name { font-size: 15px; }
.team-rest .person__role { font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) { .team-rest { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .team-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* blog */
.bhero { padding: calc(72px + clamp(48px, 6vw, 88px)) 0 clamp(32px, 4vw, 48px); }
.feat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.feat__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feat:hover .feat__img img { transform: scale(1.03); }
.feat h2 { font-size: clamp(26px, 2.6vw, 38px); margin: 14px 0 12px; }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; } }
.blog-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: clamp(48px, 6vw, 80px) 0 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 500; font-size: 15px; transition: background .2s, color .2s, box-shadow .2s; }
.filters button[aria-pressed='true'] { background: var(--ink); color: #fff; box-shadow: none; }
.search { position: relative; margin-left: auto; min-width: min(300px, 100%); }
.search input { width: 100%; min-height: 42px; padding: 0 14px 0 40px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); background: #fff; font-size: 15px; }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--violet); }
.search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--muted); }
.posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 1000px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; gap: 12px; }
.post__img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.post__cat { padding: 3px 9px; border-radius: 999px; background: var(--violet-light); color: var(--violet); font-weight: 600; font-size: 12px; }
.post h3 { font-size: 19px; line-height: 1.3; transition: color .2s; }
.post:hover h3 { color: var(--violet); }
.post p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post[hidden] { display: none; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* piccole illustrazioni di DINO, usate con parsimonia */
.sticker { position: absolute; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(40, 20, 110, .18)); }
.bob { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* comparse (solo con JS attivo) */
html.motion [data-reveal] { opacity: 0; transform: translateY(24px); }
html.motion [data-stagger] > * { opacity: 0; transform: translateY(24px); }
html.motion [data-hero-in] { opacity: 0; transform: translateY(20px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.chip-ui img { width: auto; flex: none; }

/* ==========================================================================
   v2.1 · home = mission, componenti interattivi
   ========================================================================== */

/* parole spezzate per le comparse dei titoli */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.sw > i { display: inline-block; font-style: inherit; will-change: transform; }
.fw { transition: none; }
html.motion [data-fill] .fw { color: #cdc8da; }

/* apertura: collage che entra a fuoco e si apre */
.mhero .collage { perspective: 1200px; }
.collage figure { position: relative; will-change: transform, filter; }
.collage figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 600; }

/* principi */
.principle h3 { margin: 16px 0 6px; font-size: 18px; }
.principle p { color: var(--muted); font-size: 15px; }

/* interruttore a pillole */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; }
.toggle button { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s, background .3s; }
.toggle button[aria-pressed='true'], .toggle button[aria-selected='true'] { background: var(--violet); color: #fff; }
.toggle--lg button { padding: 11px 20px; font-size: 15px; }
.checks { display: grid; gap: 10px; margin: 22px 0 0; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.checks svg { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--violet-light); color: var(--violet); flex: none; }

/* come vede un bambino con dislessia */
.dys { max-width: 980px; margin-inline: auto; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-lg); overflow: hidden; }
.dys__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.dys__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.dys__hint::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 0 rgba(69, 32, 183, .5); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(69, 32, 183, .45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(69, 32, 183, 0); } }
.dys__stage { position: relative; padding: clamp(28px, 4.5vw, 64px); cursor: default; touch-action: pan-y; }
.dys__text { position: relative; z-index: 1; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.6; letter-spacing: -.01em; color: var(--ink); font-weight: 450; transition: letter-spacing .6s var(--ease), word-spacing .6s var(--ease); }
.dys.is-calm .dys__text { letter-spacing: .015em; word-spacing: .12em; }
.dw { display: inline-block; white-space: nowrap; border-radius: 6px; transition: color .35s, background .35s; }
.dw.is-fixed { color: var(--violet); }
.dl { display: inline-block; transition: transform .45s var(--ease); }
.dl.flip { transform: scaleX(-1); }
.dl.up { transform: translateY(-.12em) rotate(-6deg); }
.dl.down { transform: translateY(.1em) rotate(5deg); }
.dys__lens { position: absolute; z-index: 0; left: 0; top: 0; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; background: radial-gradient(circle, rgba(69, 32, 183, .1) 0%, rgba(69, 32, 183, .05) 45%, transparent 70%); pointer-events: none; opacity: 0; transition: opacity .3s; }
.dys__stage.has-lens .dys__lens { opacity: 1; }
.dys__foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.dys__msg { font-weight: 500; color: var(--ink); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; }
.dys.is-calm .dys__msg { max-height: 120px; opacity: 1; }

/* mini-gioco */
.game { position: relative; min-height: 470px; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, #dff0ff 0%, #f3f9ff 60%, #ffffff 100%); box-shadow: inset 0 0 0 1px var(--line), var(--sh-lg); display: grid; }
.game__cloud { position: absolute; width: 46%; opacity: .9; pointer-events: none; }
.game__cloud--a { left: -10%; bottom: -6%; }
.game__cloud--b { right: -12%; top: -4%; width: 40%; }
.game__screen { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; gap: 8px; }
.game__screen[hidden] { display: none; }
.game__dino { width: 110px; margin-bottom: 6px; animation: bob 5s ease-in-out infinite; }
.game__kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.game__title { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; margin-bottom: 4px; }
.game__screen .btn { margin-top: 14px; }
.game__screen .btn svg { width: 14px; height: 14px; }
.game__hud { position: absolute; z-index: 3; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); }
.game__clock { font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.game__target { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 18px; border-radius: 999px; background: #fff; box-shadow: var(--sh-md); font-weight: 600; color: var(--muted); }
.game__target b { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-size: 30px; font-weight: 600; line-height: 1; }
.game__field { position: relative; display: grid; grid-template-columns: repeat(3, 84px); gap: 18px 26px; margin-top: 28px; }
.bubble { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; font-weight: 600; line-height: 1; color: var(--ink); background: radial-gradient(circle at 32% 28%, #ffffff 0%, #ffffff 35%, #e9f2ff 70%, #d4e6ff 100%); box-shadow: 0 10px 24px -10px rgba(31, 111, 209, .45), inset 0 0 0 1.5px rgba(31, 111, 209, .18); animation: float 4s ease-in-out infinite; transition: transform .2s; }
.bubble:hover { transform: scale(1.06); }
.bubble:nth-child(2) { animation-delay: -1s; } .bubble:nth-child(3) { animation-delay: -2.2s; } .bubble:nth-child(4) { animation-delay: -.6s; } .bubble:nth-child(5) { animation-delay: -3.1s; } .bubble:nth-child(6) { animation-delay: -1.7s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.bubble.is-wrong { background: #fde8ea; color: #d93a4a; }
.bubble.is-right { background: var(--green); color: #fff; }
.game__report { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(100%, 460px); margin-top: 10px; }
.game__report div { padding: 14px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.game__report span { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.game__report b { display: block; margin-top: 6px; font-size: 22px; letter-spacing: -.03em; color: var(--violet); }
.game__bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-top: 14px; }
.game__bars i { width: 26px; border-radius: 6px 6px 3px 3px; background: var(--violet-light); position: relative; transform-origin: bottom; }
.game__bars i.best { background: var(--violet); }
.game__bars i span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 600; color: var(--muted); font-style: normal; white-space: nowrap; }
@media (max-width: 520px) { .game__field { grid-template-columns: repeat(3, 70px); gap: 14px 16px; } .bubble { width: 70px; height: 70px; font-size: 34px; } .game__report b { font-size: 18px; } }

/* per chi è DINO: schede */
.aud { position: relative; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-md); overflow: hidden; }
.aud__panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); min-height: 440px; }
.aud__panel[hidden] { display: none; }
.aud__img { position: relative; overflow: hidden; }
.aud__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aud__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.aud__body h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.035em; margin: 14px 0 12px; }
.aud__body > p { color: var(--muted); }
.aud__body .ctas { margin-top: 28px; }
@media (max-width: 860px) { .aud__panel { grid-template-columns: 1fr; } .aud__img { aspect-ratio: 16 / 10; } }

/* finestra "Prenota una demo" */
.modal { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--text); box-shadow: 0 40px 100px -20px rgba(18, 13, 38, .45); }
.modal::backdrop { background: rgba(18, 13, 38, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__box { position: relative; padding: clamp(24px, 4vw, 36px); }
.modal__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); }
.modal__x svg { width: 14px; height: 14px; }
.modal__title { font-size: clamp(26px, 3vw, 34px); margin: 12px 0 8px; }
.modal__opts { display: grid; gap: 12px; margin-top: 22px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .25s, background .25s, transform .3s var(--ease); }
.opt:hover, .opt:focus-visible { box-shadow: inset 0 0 0 2px var(--violet); background: var(--bg-tint); transform: translateY(-2px); }
.opt b { display: block; font-size: 17px; color: var(--ink); }
.opt span span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.opt__go { width: 18px; height: 18px; color: var(--violet); }
.modal__foot { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) { .bubble, .game__dino { animation: none; } }

/* apertura: il mondo di DINO, animato e interattivo (al centro del collage) */
.world { position: relative; overflow: hidden; isolation: isolate; background: #cfe9ff; }
.world__sky { position: absolute; inset: 0; background: radial-gradient(60% 50% at 78% 12%, rgba(255, 246, 214, .9), transparent 60%), linear-gradient(180deg, #6fc0ff 0%, #a9dbff 45%, #e3f3ff 100%); }
.world__layer { position: absolute; inset: 0; will-change: transform; }
.world__layer > * { position: absolute; }
.world img { display: block; width: 100%; height: auto; }
.world button, .world a { padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.world__far--a { left: 41%; top: 4%; width: 11% !important; opacity: .55; filter: blur(1px) saturate(.8); }
.world__cloud { width: 46% !important; opacity: .95; pointer-events: none; }
.world__cloud--back { left: -14%; top: 22%; width: 38% !important; opacity: .7; }
.world__isle { transition: filter .3s; }
.world__isle:hover img, .world__isle:focus-visible img { filter: drop-shadow(0 0 14px rgba(255, 255, 255, .9)); }
.world__isle--mare { left: 6%; top: 6%; width: 15%; }
.world__isle--vulcano { right: 7%; top: 3%; width: 15%; }
.world__isle--mondo { left: 50%; top: 20%; width: 44%; margin-left: -22%; }
.world__dino { left: 5%; bottom: 3%; width: 22%; transform-origin: 50% 100%; }
.world__sign { right: 6%; bottom: 6%; width: 17%; transform-origin: 50% 100%; }
.world__play { position: absolute; left: 6%; top: 9%; width: 84% !important; }
.world__sign:hover { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
.world__front { pointer-events: none; }
.world__cloud--l { left: -16%; bottom: -12%; }
.world__cloud--r { right: -18%; bottom: -14%; width: 52% !important; }
.world__para { position: absolute; left: 64%; top: -30%; width: 9%; pointer-events: none; }
.world__rocket { position: absolute; left: -10%; top: 60%; width: 4% !important; opacity: 0; pointer-events: none; }
.world__bubble { position: absolute; z-index: 5; left: 14%; bottom: 52%; max-width: 46%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3; box-shadow: var(--sh-md); opacity: 0; transform: translateY(8px) scale(.9); transform-origin: 0 100%; pointer-events: none; }
.world__label { position: absolute; z-index: 5; left: 0; top: 0; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, -120%); }
.world__hint { position: absolute; z-index: 5; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: var(--sh-sm); pointer-events: none; transition: opacity .4s; }
.world__hint::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: ping 1.8s infinite; }
.world.is-touched .world__hint { opacity: 0; }
@media (max-width: 760px) { .world__hint { font-size: 11px; } .world__bubble { font-size: 12px; } }
.collage figure.world { aspect-ratio: 15 / 16; }
@media (max-width: 760px) { .collage figure.world { aspect-ratio: 1 / 1; } }
.world__layer { pointer-events: none; }
.world__layer > button, .world__layer > a { pointer-events: auto; }
.collage figure.world > img { height: auto !important; object-fit: contain; }
.world__label { transform: translate(-50%, 0); }


/* ==========================================================================
   v3 (18/11/2026) · «Una mattina con DINO»: il viaggio 3D nella pagina Scuole
   Con JS, movimento e WebGL: scena fissa guidata dallo scorrimento.
   Altrimenti: le sei tappe illustrate, statiche (.viaggio__statico).
   ========================================================================== */
.viaggio { position: relative; }
.viaggio__head { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(28px, 4vw, 48px); }
.viaggio__track { display: none; position: relative; height: 640vh; }
html.motion .viaggio:not(.viaggio-off) .viaggio__track { display: block; }
.viaggio__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #f7f6fb url('../img/viaggio/ingresso.webp') center / cover no-repeat; }
.viaggio__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; transition: opacity .7s; }
.viaggio-on .viaggio__stage canvas { opacity: 1; }
.viaggio__scrim { position: absolute; inset: auto 0 0 0; height: 64%; pointer-events: none; background: linear-gradient(180deg, rgba(247, 246, 251, 0) 0%, rgba(247, 246, 251, .9) 56%, rgba(247, 246, 251, .98) 100%); }
.viaggio__top { position: absolute; z-index: 2; top: 92px; left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.viaggio__ora { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.viaggio__ora svg { width: 18px; height: 18px; color: var(--violet); }
.viaggio__ora em { font-style: normal; font-weight: 600; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--green); color: #fff; }
.viaggio__ora em[hidden] { display: none; }
.viaggio__num { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); font-size: 13px; color: var(--muted); opacity: 0; white-space: nowrap; transition: box-shadow .3s; }
.viaggio__num b { font-size: 15px; font-variant-numeric: tabular-nums; }
.viaggio__num i { font-style: normal; }
.viaggio__num.is-fatto { box-shadow: inset 0 0 0 1.5px var(--green), var(--sh-sm); }
.viaggio__num.is-fatto b { color: var(--green); }
.viaggio__tag { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); }
.viaggio__col { position: absolute; z-index: 2; left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); bottom: clamp(56px, 9vh, 96px); width: min(620px, calc(100% - 2 * var(--gutter))); display: grid; gap: 22px; }
.viaggio__cap .vk { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.viaggio__cap .vt { margin-top: 10px; font-size: clamp(30px, 4.1vw, 58px); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.viaggio__cap .vt em { font-style: normal; color: var(--violet); }
.viaggio__cap .vs { margin-top: 14px; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.5; color: var(--text); max-width: 520px; }
.viaggio__cap .btn { margin-top: 22px; }
.viaggio__cap .btn[hidden] { display: none; }
.viaggio__oss { width: min(340px, 100%); padding: 16px 20px 8px; border-radius: var(--r-md); background: rgba(255, 255, 255, .96); box-shadow: inset 0 0 0 1px var(--line), var(--sh-md); }
.viaggio__oss .vo-t { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 6px; }
.viaggio__oss .vo-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.viaggio__oss .vo-r b { font-size: 22px; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.viaggio__oss .barre { display: flex; align-items: flex-end; gap: 5px; height: 30px; }
.viaggio__oss .barre i { display: block; width: 14px; height: 0; border-radius: 4px 4px 2px 2px; background: var(--violet); }
.viaggio__rail { position: absolute; z-index: 2; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 6px; justify-items: end; }
.viaggio__rail button { display: flex; align-items: center; flex-direction: row-reverse; gap: 10px; padding: 5px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.viaggio__rail i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); transition: transform .3s var(--ease), background .3s; }
.viaggio__rail span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s var(--ease); padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.viaggio__rail button:hover span, .viaggio__rail button:focus-visible span, .viaggio__rail button.is-on span { opacity: 1; transform: none; }
.viaggio__rail button.is-on { color: var(--violet); }
.viaggio__rail button.is-on i { background: var(--violet); transform: scale(1.5); }
.viaggio__hint { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--violet); pointer-events: none; }
.viaggio__hint svg { width: 16px; height: 16px; animation: giu 1.6s var(--ease) infinite; }
@keyframes giu { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 4px; } }
/* primo piano (tablet e portatile): su schermo largo la colonna dei testi sta a sinistra, lo schermo a destra */
@media (min-aspect-ratio: 116/100) {
  .viaggio.is-primo-piano .viaggio__scrim { inset: 0; height: auto; background: linear-gradient(90deg, rgba(247, 246, 251, .97) 0%, rgba(247, 246, 251, .94) 30%, rgba(247, 246, 251, 0) 43%); }
  .viaggio.is-invito .viaggio__scrim { inset: 0; height: auto; background: linear-gradient(90deg, rgba(247, 246, 251, .97) 0%, rgba(247, 246, 251, .92) 36%, rgba(247, 246, 251, 0) 62%); }
  .viaggio.is-primo-piano .viaggio__col { width: min(380px, calc(39vw - max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))))); }
  .viaggio.is-primo-piano .viaggio__cap .vt { font-size: clamp(26px, 2.9vw, 44px); }
}
@media (max-aspect-ratio: 115/100) {
  .viaggio__col { bottom: 54px; gap: 12px; }
  .viaggio__top { top: 72px; gap: 6px; }
  .viaggio__num { padding: 6px 10px; font-size: 11.5px; gap: 6px; } .viaggio__num b { font-size: 13px; }
  .viaggio__ora { padding: 6px 10px 6px 8px; font-size: 13px; }
  .viaggio__tag { margin-left: 0; }
  .viaggio__num i, .viaggio__ora em { display: none; }
  .viaggio__num span::before { content: attr(data-corto); }
  .viaggio.is-primo-piano .viaggio__tag { display: none; }
  .viaggio__cap .vt { font-size: clamp(26px, 6.8vw, 40px); }
  .viaggio.is-primo-piano .viaggio__scrim { height: 58%; background: linear-gradient(180deg, rgba(247, 246, 251, 0) 0%, rgba(247, 246, 251, .96) 22%, rgba(247, 246, 251, 1) 100%); }
  .viaggio__oss { width: 100%; padding: 10px 14px 4px; display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 12px; }
  .viaggio__oss .vo-t { grid-column: 1 / -1; margin-bottom: 2px; }
  .viaggio__oss .vo-r { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 11.5px; line-height: 1.25; padding: 8px 0; }
  .viaggio__oss .vo-r b { font-size: 19px; }
  .viaggio__oss .barre { height: 22px; }
  .viaggio__rail { top: auto; bottom: 22px; right: 50%; transform: translateX(50%); grid-auto-flow: column; gap: 12px; }
  .viaggio__rail span { display: none; }
  .viaggio__hint { bottom: 40px; }
  .viaggio__tag { font-size: 9.5px; }
}
/* versione statica: senza JS, senza WebGL o con "riduci movimento" */
.viaggio__statico { padding-bottom: clamp(72px, 9vw, 128px); }
html.motion .viaggio:not(.viaggio-off) .viaggio__statico { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.viaggio__passi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); counter-reset: none; }
.vpasso { border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); }
.vpasso img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.vpasso > div { padding: 20px 22px 24px; }
.vpasso .num { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.vpasso h3 { margin-top: 8px; font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -.03em; color: var(--ink); line-height: 1.2; }
.vpasso p { margin-top: 8px; font-size: 15px; color: var(--text); }
.viaggio__nota { margin-top: 20px; }
@media (max-width: 900px) { .viaggio__passi { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .viaggio__passi { grid-template-columns: 1fr; } }
html:not(.motion) .viaggio__head .link, .viaggio-off .viaggio__head .link { display: none; }

/* ==========================================================================
   Aggiunte del 25/11/2026: chat, acquisto self-service, pagine di grazie,
   pagina "Come nasce DINO?", partner e scuole, pagina 404
   ========================================================================== */

/* ---------- chat (pulsante nostro, Chatwoot si carica al clic) ---------- */
.chatfab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 90; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--violet); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 2px 4px rgba(69, 32, 183, .3), 0 14px 32px -10px rgba(69, 32, 183, .6); transition: transform .3s var(--ease), background .25s; }
.chatfab:hover { background: var(--violet-hover); transform: translateY(-2px); }
.chatfab svg { width: 22px; height: 22px; }
.chatfab.is-loading svg { animation: chatpulse .9s ease-in-out infinite; }
@keyframes chatpulse { 50% { transform: scale(.82); opacity: .6; } }
@media (max-width: 640px) { .chatfab { width: 54px; padding: 0; justify-content: center; } .chatfab span { display: none; } }
.chatpanel { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 66px); z-index: 91; width: min(340px, calc(100vw - 36px)); padding: 22px 20px 18px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-lg); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: 100% 100%; transition: opacity .25s, transform .35s var(--ease), visibility .25s; }
.chatpanel.is-open { opacity: 1; visibility: visible; transform: none; }
.chatpanel__x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.chatpanel__x:hover { background: var(--bg-soft); color: var(--ink); }
.chatpanel__x svg { width: 14px; height: 14px; }
.chatpanel__t { padding-right: 36px; margin-bottom: 14px; }
.chatpanel__t b { display: block; font-size: 18px; letter-spacing: -.02em; }
.chatpanel__t span { font-size: 14px; color: var(--muted); }
.chatpanel__o { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; font-size: 14px; color: var(--muted); line-height: 1.35; transition: background .2s; }
.chatpanel__o + .chatpanel__o { margin-top: 4px; }
.chatpanel__o:hover { background: var(--bg-tint); }
.chatpanel__o b { display: block; color: var(--ink); font-size: 15px; }
.chatpanel__o svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--violet-light); color: var(--violet); }
.chatpanel__note { display: block; margin-top: 12px; font-size: 12px; padding: 6px 10px; border-radius: 8px; background: var(--amber-light); color: #8a4f00; }
.ftr__chat { display: inline-flex; align-items: center; gap: 8px; }
.ftr__chat svg { width: 16px; height: 16px; }

/* ---------- acquisto self-service (Specialisti) ---------- */
.btn--block { width: 100%; }
.btn svg:first-child:not(:last-child) { transform: none; }
.buy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.plan { position: relative; padding: clamp(26px, 3vw, 38px); border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 2px var(--violet), var(--sh-lg); }
.plan__name { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.plan__name .ic-box { width: 42px; height: 42px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.plan__price b { font-size: clamp(48px, 5vw, 64px); line-height: 1; letter-spacing: -.05em; color: var(--ink); }
.plan__price span { color: var(--muted); font-weight: 500; }
.plan__note { margin-top: 10px; color: var(--muted); font-size: 15px; }
.plan__list { margin: 24px 0; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.plan__list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--green-light); color: var(--green); }
.plan__promo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px 14px; border-radius: 14px; background: var(--amber-light); }
.plan__promo .promo__n { font-size: 24px; font-weight: 700; color: var(--amber); letter-spacing: -.03em; }
.plan__promo p { font-size: 14px; color: #6d4100; line-height: 1.4; }
.plan .btn--block { min-height: 56px; font-size: 17px; }
.plan__safe { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.plan__safe svg { width: 15px; height: 15px; }
.buy__steps { display: grid; gap: 14px; counter-reset: none; }
.buy__steps li { display: flex; gap: 18px; padding: 20px 22px; border-radius: 20px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); }
.buy__steps h3 { font-size: 18px; margin-bottom: 4px; }
.buy__steps p { color: var(--muted); font-size: 15px; }
.buy__n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--violet); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line-strong); }
.buy__alt { background: #fff !important; border: 1px dashed var(--line-strong); box-shadow: none !important; }
@media (max-width: 900px) { .buy__grid { grid-template-columns: 1fr; } }
.modal code { font-size: 13px; padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); }

/* ---------- pagine di ringraziamento ---------- */
.thx { position: relative; padding: calc(72px + clamp(40px, 6vw, 80px)) 0 clamp(48px, 6vw, 80px); overflow: clip; }
.thx::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 60% at 85% 0%, rgba(111, 78, 240, .14), transparent 70%), radial-gradient(30% 40% at 5% 10%, rgba(35, 147, 90, .1), transparent 70%); }
.thx__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.thx h1 { font-size: clamp(36px, 4.4vw, 60px); }
.thx .lead { margin-top: 18px; max-width: 54ch; }
.thx .ctas { margin-top: 28px; }
.thx__ok { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--green-light); color: var(--green); font-weight: 600; font-size: 14px; }
.thx__ok svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--green); color: #fff; }
.thx__doc { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 210 / 297; border-radius: 18px; background: linear-gradient(160deg, #fff, var(--bg-tint)); box-shadow: inset 0 0 0 1px var(--line), var(--sh-lg); padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; transform: rotate(2.5deg); }
.thx__doc::after { content: ''; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: 18px; background: var(--violet-light); transform: rotate(-5deg); }
.thx__doc svg.logo { width: 46px; height: 46px; color: var(--violet); }
.thx__doc b { font-size: 22px; letter-spacing: -.03em; color: var(--ink); line-height: 1.15; }
.thx__doc i { display: block; height: 9px; border-radius: 5px; background: var(--line); }
.thx__doc i:nth-of-type(2n) { width: 78%; }
.thx__doc img { margin-top: auto; align-self: flex-end; width: 42%; }
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.next .card { display: flex; flex-direction: column; }
.next .card .ctas, .next .card > .link { margin-top: auto; padding-top: 18px; }
.next .card .small { margin-top: 10px; }
@media (max-width: 900px) { .thx__grid, .next { grid-template-columns: 1fr; } .thx__doc { width: min(72%, 300px); } }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.social-row a { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); font-weight: 600; color: var(--ink); transition: box-shadow .2s, color .2s, transform .3s var(--ease); }
.social-row a:hover { color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet), var(--sh-md); transform: translateY(-2px); }
.social-row svg { width: 22px; height: 22px; }
.card--link { display: flex; flex-direction: column; }
.card--link .link { margin-top: auto; padding-top: 18px; }
.card--link:hover { transform: translateY(-3px); }

/* ---------- Come nasce DINO? · la strada con i loghi (25/11/2026) ---------- */
.rhero { position: relative; padding: calc(72px + clamp(48px, 6vw, 96px)) 0 clamp(24px, 3vw, 40px); text-align: center; overflow: clip; }
.rhero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 60% at 50% 0%, rgba(111, 78, 240, .14), transparent 70%), radial-gradient(26% 40% at 10% 30%, rgba(140, 198, 63, .12), transparent 70%), radial-gradient(26% 40% at 90% 45%, rgba(217, 127, 11, .08), transparent 70%); }
.rhero h1 { font-size: clamp(46px, 6.4vw, 92px); letter-spacing: -.05em; }
.rhero .lead { margin: 22px auto 0; max-width: 60ch; }
.rhero .ctas { margin-top: 30px; justify-content: center; }

.road { padding-bottom: clamp(40px, 5vw, 80px); }
.road .wrap { max-width: calc(1320px + var(--gutter) * 2); }
.road__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .road__grid { grid-template-columns: 216px minmax(0, 1fr); gap: 32px; align-items: start; } }

/* cruscotto: in alto su telefono e tablet, colonna fissa a sinistra su schermo grande */
.rhud { position: sticky; top: 72px; z-index: 8; display: flex; align-items: center; gap: 10px 18px; margin: 0 calc(-1 * var(--gutter)) 14px; padding: 10px var(--gutter); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top .5s var(--ease); }
.rhud.is-up { top: 0; }
.rhud__stop { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rhud__stop b { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.rhud__stop span { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rhud__big { display: flex; align-items: center; gap: 8px; }
.rhud__big b { font-size: 28px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--violet); font-variant-numeric: tabular-nums; }
.rhud__big span { max-width: 10ch; font-size: 12.5px; line-height: 1.15; color: var(--muted); }
.rhud__bars, .rhud__mini { display: none; }
.rhud__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12.5px; color: var(--muted); }
.rhud__row b { font-weight: 600; color: var(--ink); }
.rhud__row i { font-style: normal; font-variant-numeric: tabular-nums; }
.rhud__bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--violet-light); overflow: hidden; }
.rhud__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--violet); transition: width .6s var(--ease); }
.rhud__bar i[data-bar="school"] { background: var(--green); }
.rhud__bar i[data-bar="person"] { background: var(--amber); }
.rhud__bar i[data-bar="press"] { background: var(--ink); }
@media (min-width: 620px) and (max-width: 1099px) { .rhud__bars { display: flex; gap: 18px; } .rhud__row { width: 128px; } .rhud__row--x { display: none; } }
@media (min-width: 1100px) {
  .rhud { top: 100px; display: block; margin: 0; padding: 22px 20px 20px; border: 0; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-md); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rhud.is-up { top: 28px; }
  .rhud__stop span { white-space: normal; font-size: 15px; }
  .rhud__big { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 18px; }
  .rhud__big b { font-size: 64px; }
  .rhud__big span { max-width: none; font-size: 14px; }
  .rhud__bars { display: grid; gap: 12px; margin-top: 18px; }
  .rhud__mini { display: block; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
}
.rhud__minit { margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rhud__minimap { position: relative; height: min(28vh, 250px); margin: 34px 14px 6px; }
.rhud__minimap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mini__road, .mini__done { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 6; }
.mini__road { stroke: var(--line); }
.mini__done { stroke: var(--violet); }
.mini__dots i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line-strong); transition: background .3s, box-shadow .3s; }
.mini__dots i.on { background: var(--violet); box-shadow: 0 0 0 2px #fff; }
.mini__me { position: absolute; z-index: 2; left: 50%; top: 0; width: 26px; margin: -31px 0 0 -13px; }
.mini__me img { width: 100%; filter: drop-shadow(0 3px 4px rgba(40, 20, 110, .25)); }

/* la mappa */
.rmap { position: relative; padding: 0 clamp(18px, 2.4vw, 34px); border-radius: 32px; background-color: #fbfaff; background-image: radial-gradient(rgba(69, 32, 183, .085) 1px, transparent 1.5px), linear-gradient(180deg, #f6f8ff 0%, #faf7ff 45%, #f6fbf2 100%); background-size: 22px 22px, 100% 100%; box-shadow: inset 0 0 0 1px var(--line); overflow: clip; }
.rmap__svg { position: absolute; left: 0; top: 0; z-index: 1; overflow: visible; pointer-events: none; }
.rmap__svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rmap__edge { stroke: #ddd7ef; stroke-width: 46; }
.rmap__asph { stroke: #fff; stroke-width: 38; }
.rmap__dash { stroke: #d3cce8; stroke-width: 3; stroke-dasharray: 10 14; }
.rmap__done { stroke: var(--violet); stroke-width: 8; }
.rmap__sea { position: absolute; left: 0; right: 0; z-index: 0; display: none; background: #e4f0fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='16'%3E%3Cpath d='M0 8 Q11 1 22 8 T44 8' fill='none' stroke='%23bcd8f3' stroke-width='1.6'/%3E%3C/svg%3E"); box-shadow: inset 0 1px 0 #d2e5f7, inset 0 -1px 0 #d2e5f7; }
.rmap__sea span { position: absolute; left: clamp(18px, 2.4vw, 34px); top: 50%; translate: 0 -50%; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #4f86bd; }
.rmap__pins { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pin { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; margin: -41px 0 0 -17px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: #fff; box-shadow: inset 0 0 0 3px var(--line-strong), var(--sh-md); transition: background .4s, box-shadow .4s; }
.pin b { rotate: 45deg; font-size: 13px; font-weight: 700; color: var(--muted); }
.pin.on { background: var(--violet); box-shadow: 0 10px 18px -6px rgba(69, 32, 183, .6); }
.pin.on b { color: #fff; }

.rmap__start { position: relative; z-index: 2; height: clamp(170px, 16vw, 200px); }
.rstart { position: absolute; left: calc(50% + 62px); top: 46px; display: flex; align-items: center; gap: 12px; text-align: left; }
.rstart__badge { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--violet); box-shadow: inset 0 0 0 1px var(--line), var(--sh-md); }
.rstart__badge svg { width: 30px; height: 30px; }
.rstart p { font-size: 14px; line-height: 1.3; color: var(--muted); }
.rstart b { display: block; font-size: 16px; color: var(--ink); }

.rmap__stops { position: relative; z-index: 2; }
.stop { display: flex; }
.stop:first-child { margin-top: clamp(90px, 9vw, 130px); }
.stop + .stop { margin-top: clamp(150px, 13vw, 200px); }
.stop.stop--sea { margin-top: clamp(240px, 21vw, 300px); }
.stop__card { position: relative; width: 54%; padding: clamp(22px, 2.4vw, 32px); border-radius: 26px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-md); transition: box-shadow .5s var(--ease); }
.stop--r .stop__card { margin-left: auto; }
.stop--wide .stop__card { width: 60%; }
.stop.is-cur .stop__card { box-shadow: inset 0 0 0 2px var(--violet-mid), var(--sh-lg); }
.stop__when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.stop__when span { padding: 4px 10px; border-radius: 999px; background: var(--violet-light); color: var(--violet); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.stop h2 { margin: 14px 0 12px; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -.035em; }
.stop p { font-size: 16.5px; }
.stop__link { margin-top: 16px; }

.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.signs--1 { grid-template-columns: minmax(0, 1fr); }
.signs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.signs--schools { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.signs--uk .sign--xl { grid-column: 1 / -1; }
.sign { position: relative; display: grid; place-items: center; height: 84px; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); transition: box-shadow .3s, transform .4s var(--ease), background .3s; }
a.sign:hover { box-shadow: inset 0 0 0 1px var(--violet-mid), var(--sh-md); transform: translateY(-2px); }
.sign img { width: auto; max-width: 100%; max-height: 52px; object-fit: contain; }
.sign--xl { height: 116px; }
.sign--xl img { max-height: 74px; }
.sign--text { height: auto; min-height: 84px; text-align: center; }
.sign--text b { font-size: 28px; letter-spacing: -.03em; line-height: 1; color: var(--violet); }
.sign--text small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.sign--school { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 118px; padding: 12px 10px 10px; text-align: center; font-size: 12px; font-weight: 500; line-height: 1.25; color: var(--muted); }
.sign--school img { flex: none; width: 100%; height: 52px; max-height: none; object-fit: contain; }
.sign--school .ini { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--violet-light); color: var(--violet); font-size: 15px; font-weight: 700; }
a.sign--school:hover { color: var(--violet); }

.isles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.isle { text-align: center; }
.isle img { width: auto; height: 92px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(40, 20, 110, .14)); }
.isle figcaption { margin-top: 6px; font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--green-light); color: var(--green); font-size: 14px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.stats p { padding: 14px 10px; border-radius: 16px; background: var(--bg-tint); text-align: center; }
.stats b { display: block; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -.03em; color: var(--violet); }
.stats span { font-size: 13px; color: var(--muted); }

/* i loghi si accendono quando passa DINO (solo con l'animazione attiva) */
.rmap.is-live [data-pop] { transition: opacity .5s var(--ease), transform .7s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s, background .4s; transition-delay: var(--d, 0s); }
.rmap.is-live [data-pop]:not(.sign):not(.who):not(.clip):not(.on) { opacity: 0; transform: translateY(18px) scale(.86); }
.rmap.is-live .sign > * { transition: opacity .45s var(--ease), transform .7s cubic-bezier(.34, 1.56, .64, 1); transition-delay: var(--d, 0s); }
.rmap.is-live .sign:not(.on) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); transform: scale(.97); }
.rmap.is-live .sign:not(.on) > * { opacity: 0; transform: scale(.55) translateY(8px); }
.rmap.is-live .sign.on { animation: pb-sign .9s var(--ease) var(--d, 0s) both; }
@keyframes pb-sign { 0% { box-shadow: inset 0 0 0 2px var(--violet-mid), 0 0 0 0 rgba(111, 78, 240, .35); } 60% { box-shadow: inset 0 0 0 2px var(--violet-mid), 0 0 0 10px rgba(111, 78, 240, 0); } 100% { box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); } }

.walker { position: absolute; left: 0; top: 0; z-index: 4; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .4s; will-change: transform; }
.rmap.is-ready .walker { opacity: 1; }
.walker__body { position: absolute; left: -45px; bottom: -4px; width: 90px; transform-origin: 50% 100%; will-change: transform; }
.walker__body img { width: 100%; filter: drop-shadow(0 10px 10px rgba(40, 20, 110, .22)); transition: opacity .4s; }
.walker__b { position: absolute; left: 0; bottom: 0; opacity: 0; }
.walker.is-end .walker__a { opacity: 0; }
.walker.is-end .walker__b { opacity: 1; }
.walker__shadow { position: absolute; left: -32px; top: -10px; width: 64px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 20, 110, .28), transparent); }

.rmap__end { position: relative; z-index: 2; padding: clamp(130px, 12vw, 180px) 0 clamp(36px, 4vw, 56px); text-align: center; }
.rend { position: relative; width: min(100%, 340px); height: 250px; margin: 0 auto; }
.rend__pad { position: absolute; right: 0; bottom: 0; width: 210px; }
.rend__rocket { position: absolute; right: 60px; bottom: 22px; width: auto; height: 214px; }
.rend__spot { position: absolute; left: 22%; bottom: 8px; width: 2px; height: 2px; }
/* su schermo grande la strada arriva da destra: razzo a sinistra, DINO a destra */
@media (min-width: 720px) { .rmap:has(.stop:last-child.stop--l) .rend__pad { right: auto; left: 0; transform: scaleX(-1); } .rmap:has(.stop:last-child.stop--l) .rend__rocket { right: auto; left: 60px; } .rmap:has(.stop:last-child.stop--l) .rend__spot { left: auto; right: 18%; } }
.rend__t { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 22px; }
.rend__t b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }

@media (max-width: 719px) {
  .rmap { margin-inline: calc(var(--gutter) * -.5); padding: 0 12px 0 60px; border-radius: 24px; }
  .rmap__edge { stroke-width: 30; } .rmap__asph { stroke-width: 24; } .rmap__done { stroke-width: 6; } .rmap__dash { stroke-dasharray: 8 10; }
  .rmap__pins { display: none; }
  .rmap__start { height: 210px; margin-left: -48px; }
  .rstart { left: 50%; top: 20px; translate: -50% 0; }
  .stop__card, .stop--wide .stop__card { width: 100%; }
  .stop + .stop { margin-top: 72px; }
  .stop.stop--sea { margin-top: 150px; }
  .rmap__sea span { left: auto; right: 14px; top: 16px; translate: none; }
  .signs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signs--schools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sign--school { height: 112px; }
  .stop:first-child { margin-top: 110px; }
  .stats { gap: 6px; }
  .stats p { padding: 12px 4px; }
  .stats b { font-size: 21px; }
  .stats span { font-size: 11.5px; }
  .sign--xl { height: 96px; } .sign--xl img { max-height: 60px; }
  .isles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .walker__body { left: -28px; width: 56px; }
  .walker__shadow { left: -20px; top: -7px; width: 40px; height: 12px; }
  .rend { width: 300px; height: 220px; }
  .rend__pad { width: 180px; } .rend__rocket { height: 184px; right: 52px; }
  .rmap__end { margin-left: -48px; }
}

/* le persone */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.people__col { padding: 24px; border-radius: 22px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); }
.people__col h3 { margin-bottom: 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.people__col li { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.people__col li + li { margin-top: 12px; }
.people__col small { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.people__end { display: flex; align-items: center; justify-content: center; gap: 18px; max-width: 660px; margin: clamp(28px, 3vw, 44px) auto 0; font-size: 18px; color: var(--text); }
.people__end img { flex: none; width: 72px; }
@media (max-width: 1000px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } .people__end { font-size: 16px; } }

/* ---------- partner e scuole ---------- */
.partners { padding-block: clamp(36px, 4.5vw, 56px); border-bottom: 1px solid var(--line); }
.partners__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.partners__top a { display: grid; place-items: center; height: clamp(96px, 9vw, 120px); padding: 18px 26px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); transition: box-shadow .3s, transform .4s var(--ease); }
.partners__top a:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--sh-md); transform: translateY(-3px); }
.partners__top img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.partners__rest { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px clamp(28px, 4vw, 52px); margin-top: clamp(22px, 2.6vw, 32px); }
.partners__rest a { display: block; opacity: .92; transition: opacity .25s, transform .3s var(--ease); }
.partners__rest a:hover { opacity: 1; transform: translateY(-2px); }
.partners__rest img { height: 40px; width: auto; max-width: 170px; object-fit: contain; }
.schools { margin-top: clamp(30px, 3.6vw, 44px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px dashed var(--line-strong); }
.schools__label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.schools__label b { font-weight: 600; color: var(--ink); font-size: 14px; }
.schools__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.schools__list a, .schools__list .school { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 8px 14px 8px 8px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 500; line-height: 1.25; color: var(--muted); max-width: 250px; transition: box-shadow .25s, color .25s; }
.schools__list a:hover { box-shadow: inset 0 0 0 1px var(--violet); color: var(--violet); }
.schools__list img { flex: none; height: 40px; width: auto; max-width: 92px; object-fit: contain; }
.schools__list .ini { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--violet-light); color: var(--violet); font-weight: 700; font-size: 13px; }
@media (max-width: 760px) {
  .partners__top { grid-template-columns: 1fr 1fr 1fr; }
  .partners__top a { height: 84px; padding: 12px; border-radius: 16px; }
  .partners__top img { max-height: 46px; }
  .partners__rest img { height: 30px; }
  .schools__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .schools__list::-webkit-scrollbar { display: none; }
  .schools__list a, .schools__list .school { flex: none; }
}

/* ---------- articoli del blog ---------- */
.art { padding: calc(72px + clamp(36px, 5vw, 64px)) 0 clamp(48px, 6vw, 88px); }
.art__crumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.art__crumbs a { color: var(--violet); font-weight: 600; }
.art h1 { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -.04em; }
.art__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.art__cover { margin-top: clamp(24px, 3vw, 40px); border-radius: 24px; overflow: hidden; box-shadow: var(--sh-md); }
.art__cover img { width: 100%; }
.prose { margin-top: clamp(28px, 3.4vw, 44px); font-size: 18px; line-height: 1.72; color: var(--text); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 1.8em; }
.prose h3 { font-size: clamp(20px, 1.9vw, 24px); margin-top: 1.5em; }
.prose h4 { font-size: 18px; margin-top: 1.3em; }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--violet); color: var(--ink); font-weight: 500; }
.prose figure img, .prose > img { border-radius: 18px; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.art__cta { margin-top: clamp(36px, 4vw, 56px); padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--bg-tint); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; }
.art__cta h2 { font-size: clamp(22px, 2.2vw, 28px); }
.art__cta p { color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .art__cta { grid-template-columns: 1fr; } .prose { font-size: 17px; } }

/* ---------- 404 ---------- */
.e404 { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(72px + 40px) 0 64px; }
.e404 img { width: 160px; margin: 0 auto 24px; }
.e404 h1 { font-size: clamp(36px, 5vw, 64px); }
.e404 .lead { margin: 16px auto 0; max-width: 46ch; }
.e404 .ctas { justify-content: center; margin-top: 28px; }
.prose--legal { font-size: 16px; line-height: 1.65; }
.prose--legal h2 { font-size: 22px; } .prose--legal h3 { font-size: 18px; }
.plan__trial { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-strong); text-align: center; font-size: 14px; color: var(--muted); }
.plan__trial .link { font-size: 14px; }

/* anti-bot Cloudflare Turnstile (26/11/2026): il riquadro compare solo se Cloudflare chiede un'interazione */
.form__bot:empty { display: none; }
.form__bot { margin-top: 18px; }
.ftr__news + .form__bot { margin-top: 10px; }

/* Come nasce DINO? · persone e pubblicazioni lungo la strada (26/11/2026) */
.crew { margin-top: 22px; }
.crew__t { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.clips__t { margin-top: 22px; }
.crew__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.crew__list--solo { margin-top: 14px; }
.who { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 16px 6px 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); }
.who__ini { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--amber-light); color: var(--amber); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; }
.crew--founders .who__ini { background: var(--violet); color: #fff; }
.who__n { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.who__n b { font-size: 14px; font-weight: 600; color: var(--ink); }
.who__n small { font-size: 12px; color: var(--muted); }
.who--xl { gap: 14px; padding: 10px 22px 10px 10px; border-radius: 22px; }
.who--xl .who__ini { width: 54px; height: 54px; font-size: 17px; }
.who--xl .who__n b { font-size: 18px; }
.who--xl .who__n small { font-size: 13.5px; }

.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.clip { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 16px; border-radius: 6px; background: #fffdf6; box-shadow: inset 0 0 0 1px #ece5d3, 0 8px 20px rgba(18, 13, 38, .07); color: var(--ink); text-decoration: none; transition: box-shadow .3s, transform .4s var(--ease), background .3s; }
.clip:nth-child(odd) { rotate: -.7deg; }
.clip:nth-child(even) { rotate: .6deg; }
.clip::before { content: ''; position: absolute; top: -8px; left: 50%; width: 62px; height: 17px; margin-left: -31px; background: rgba(111, 78, 240, .16); rotate: -2deg; transition: opacity .4s; }
.clip--xl { grid-column: 1 / -1; }
.clip__src { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.clip__t { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.3; }
.clip--xl .clip__t { font-size: 22px; }
.clip__d { margin-top: auto; padding-top: 4px; font-size: 12.5px; color: var(--muted); }
a.clip:hover { box-shadow: inset 0 0 0 1px var(--violet-mid), 0 12px 28px rgba(18, 13, 38, .12); transform: translateY(-3px); }

.rmap.is-live .who > *, .rmap.is-live .clip > * { transition: opacity .45s var(--ease), transform .7s cubic-bezier(.34, 1.56, .64, 1); transition-delay: var(--d, 0s); }
.rmap.is-live .who:not(.on), .rmap.is-live .clip:not(.on) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.rmap.is-live .who:not(.on) > *, .rmap.is-live .clip:not(.on) > * { opacity: 0; transform: scale(.7) translateY(6px); }
.rmap.is-live .clip:not(.on)::before { opacity: 0; }
.rmap.is-live .who.on, .rmap.is-live .clip.on { animation: pb-sign .9s var(--ease) var(--d, 0s) both; }
.rmap.is-live .clip.on { animation-name: pb-clip; }
@keyframes pb-clip { 0% { box-shadow: inset 0 0 0 2px var(--violet-mid), 0 0 0 0 rgba(111, 78, 240, .35); } 60% { box-shadow: inset 0 0 0 2px var(--violet-mid), 0 0 0 10px rgba(111, 78, 240, 0); } 100% { box-shadow: inset 0 0 0 1px #ece5d3, 0 8px 20px rgba(18, 13, 38, .07); } }

@media (max-width: 719px) {
  .clips { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .clip--xl .clip__t { font-size: 19px; }
  .clip__t { font-size: 16px; }
  .who { padding-right: 12px; }
  .who__n b { font-size: 13.5px; }
  .who__n small { font-size: 11.5px; }
  .who--xl .who__ini { width: 46px; height: 46px; font-size: 15px; }
  .who--xl .who__n b { font-size: 16px; }
}
.people__col .people__h2 { margin-top: 26px; }
@media (max-width: 719px) { .sign--full-m { grid-column: 1 / -1; } }
.clip--row { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- cookie: banner e impostazioni (come su paperbox.health) */
.ckbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 0 max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); transform: translateY(110%); transition: transform .45s var(--ease); pointer-events: none; }
.ckbar.is-on { transform: none; }
.ckbar__in { position: relative; pointer-events: auto; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 28px; padding: 18px 60px 18px 24px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -20px rgba(18, 13, 38, .35); }
.ckbar__t { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.ckbar__t a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.ckbar__b { display: flex; align-items: center; gap: 10px; }
.ckbar__set { padding: 8px 6px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ckbar__set:hover { color: var(--violet); }
.ckbar__x { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.ckbar__x:hover { background: var(--bg-soft); color: var(--ink); }
.ckbar__x svg { width: 13px; height: 13px; }
.has-cookiebar .chatfab { bottom: calc(var(--ckh, 0px) + max(18px, env(safe-area-inset-bottom))); }
.chatfab { transition: transform .3s var(--ease), background .25s, bottom .45s var(--ease); }
@media (max-width: 900px) {
  .ckbar__in { grid-template-columns: 1fr; padding: 16px 18px; }
  .ckbar__t { padding-right: 34px; font-size: 14px; }
  .ckbar__x { top: 10px; right: 8px; transform: none; }
  .ckbar__b { flex-wrap: wrap; }
  .ckbar__b .btn { flex: 1 1 0; }
  .ckbar__set { order: 3; flex-basis: 100%; text-align: center; padding: 4px; font-size: 14px; }
}
.ckdlg { width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.ckdlg .modal__box { --pad: clamp(24px, 4vw, 36px); padding-top: 26px; }
.ckdlg__t { font-size: clamp(22px, 2.4vw, 28px); margin: 0 48px 10px 0; }
.ckdlg__row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.ckdlg__row:first-of-type { border-top: 0; }
.ckdlg__h { margin: 0 0 4px; font-weight: 600; font-size: 16px; color: var(--ink); }
.ckdlg__d { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ckdlg__foot { position: sticky; bottom: calc(var(--pad) * -1); margin-bottom: calc(var(--pad) * -1); padding: 18px 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 14px 16px; flex-wrap: wrap; border-top: 1px solid var(--line); background: #fff; }
.ckdlg__links { margin: 0; display: flex; gap: 16px; font-size: 14px; }
.ckdlg__links a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.ckswitch { position: relative; display: inline-block; width: 48px; height: 28px; margin-top: 2px; cursor: pointer; }
.ckswitch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.ckswitch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .25s; }
.ckswitch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform .25s var(--ease); }
.ckswitch input:checked + span { background: var(--violet); }
.ckswitch input:checked + span::after { transform: translateX(20px); }
.ckswitch input:disabled { cursor: not-allowed; }
.ckswitch input:disabled + span { background: var(--violet-mid); opacity: .55; }
.ckswitch input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 3px; }
@media (max-width: 520px) { .ckdlg__foot .btn { width: 100%; order: -1; } .ckdlg__links { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .ckbar { transition: none; } }
