/* Claspy · landing. Direzione: capitoli di colore. Un solo font (Bricolage Grotesque per i titoli, Public Sans per il testo). */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-style: normal; font-display: swap; src: url(../fonts/bricolage-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-style: normal; font-display: swap; src: url(../fonts/bricolage-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: 'Public Sans'; font-weight: 100 900; font-style: normal; font-display: swap; src: url(../fonts/publicsans-latin.woff2) format('woff2'); }

:root {
  --navy: #0B3D66; --deep: #062A47; --blue: #1C5C96; --gold: #E9B949; --paper: #F4F2EB; --sand: #E6E1D2; --white: #FBFAF6;
  --soft: #4F667C;
  --m: clamp(20px, 2.4vw, 36px);
  --r: 12px;
  --head: 'Bricolage Grotesque', 'Public Sans', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 18px/1.55 var(--body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -.045em; line-height: .95; text-wrap: balance; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.on-light :focus-visible, .paper :focus-visible { outline-color: var(--blue); }

.field { position: relative; }
.paper { background: var(--paper); color: var(--navy); }
.navy { background: var(--navy); color: var(--paper); }
.deep { background: var(--deep); color: var(--paper); }
.gold { background: var(--gold); color: var(--deep); }
.blue { background: var(--blue); color: var(--paper); }
.sandf { background: var(--sand); color: var(--navy); }

/* Bottoni: un solo stile, angoli pieni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--r); background: var(--navy); color: var(--paper); font: 700 17px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .2s; }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.is-gold { background: var(--gold); color: var(--deep); }
.btn.is-gold:hover { background: #F2C65E; }
.link { color: inherit; font-weight: 600; text-underline-offset: .22em; text-decoration-thickness: 2px; }
.link:hover { text-decoration-color: var(--gold); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .32em; font: 800 28px/1 var(--head); letter-spacing: -.03em; text-decoration: none; }
.logo svg { width: .9em; height: auto; flex: none; }

/* ---------- Header ---------- */
.bar { position: absolute; z-index: 20; inset: 0 0 auto 0; display: flex; align-items: stretch; height: 64px; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar .mark { display: flex; align-items: center; padding: 0 var(--m); background: var(--paper); color: var(--navy); }
.bar .blocks span { color: var(--paper); }
.bar .blocks .b1, .bar .blocks .b4 { background: var(--gold); color: var(--deep); }
.bar .blocks .b2, .bar .blocks .b5 { background: var(--navy); }
.bar .blocks .b3, .bar .blocks .b6 { background: var(--blue); }
.bar .tab { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding: 0 var(--m); background: var(--gold); color: var(--deep); font-weight: 600; font-size: 16px; }
.bar .tab a { text-decoration: none; white-space: nowrap; }
.bar .tab a:hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 2px; }
.bar .act { margin: 10px var(--m) 0 auto; min-height: 44px; padding: 0 22px; }
.bar .act.is-gold { background: var(--navy); color: var(--paper); }
.bar .act.is-gold:hover { background: var(--deep); }

/* ---------- Hero ---------- */
.hero { --ww: min(980px, 74vw); --wt: 250px; position: relative; min-height: max(900px, 100svh); overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 150px var(--m) 0; background: var(--paper); color: var(--navy); }
.hero-c { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; max-width: 1100px; }
.hero h1 { font-size: clamp(34px, 5.9vw, 100px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: block; }
.lead { margin-top: clamp(22px, 3vw, 36px); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; max-width: 44ch; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn.is-white { background: var(--white); color: var(--navy); }
.btn.is-white:hover { background: #fff; }
.hero .qcard { position: absolute; left: 50%; top: calc(100% - var(--wt)); transform: translateX(-50%) perspective(1500px) rotateX(16deg); transform-origin: 50% 0; width: var(--ww); z-index: 2; text-align: left; padding: 26px; border: 1px solid #D7D1C0; }
.hero-anchor { position: absolute; width: var(--mw); height: calc(var(--mw) * 1.38); left: calc(50% + var(--ww) / 2 - 150px); top: calc(100% - var(--wt) - var(--mw) * 1.38 * .82); pointer-events: none; visibility: hidden; }
.qcard { background: var(--white); border-radius: var(--r); display: grid; gap: 12px; }
.srch { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 10px; padding: 11px 14px; font-size: 15px; color: var(--soft); }
.srch svg { width: 18px; height: 18px; stroke: currentColor; flex: none; }
.who { font-size: 15px; color: var(--soft); margin-top: 4px; }
.qcard .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 800 22px/1.1 var(--head); letter-spacing: -.03em; }
.qcard .hd span:last-child { font-size: 28px; white-space: nowrap; }
.qrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; background: var(--paper); border-radius: 10px; animation: ansin .6s var(--ease) both; animation-delay: var(--t); }
.qrow > div { display: grid; gap: 2px; min-width: 0; }
.qrow .q { font: 500 14px/1.35 var(--body); color: var(--soft); }
.qrow .a { font: 600 15px/1.35 var(--body); }
.st { flex: none; display: inline-flex; padding: 3px 11px; border-radius: 99px; font-size: 13px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.st.v { background: #0B3D66; color: #F4F2EB; }
.st.p { background: #D2E3F3; color: #14477A; }
.st.d { background: #E4E0D4; color: #4F667C; }
.st.f { background: #F6E4B0; color: #6B4A06; }
.st.m { background: #F3D6D0; color: #8A2A1D; }
/* tre questionari arrivano alla rinfusa; poi arriva Claspy, si inserisce e li mette in ordine */
.pg { --ty: 0px; --mx: 0px; --my: 0px; --mr: 0deg; position: absolute; left: 50%; top: calc(100% - var(--wt)); width: var(--ww); height: 420px; z-index: 0; background: var(--white); border: 1px solid #D7D1C0; border-radius: var(--r); padding: 4px 18px; text-align: left; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--soft); transform: translateX(-50%) translateY(var(--ty)) perspective(1500px) rotateX(16deg); transform-origin: 50% 0; animation: drop .8s cubic-bezier(.23, 1, .32, 1) var(--d) both, tidy .75s cubic-bezier(.23, 1, .32, 1) 2.55s forwards; }
.pg.p3 { --ty: -52px; --mx: 70px; --my: -8px; --mr: 6deg; --d: .1s; }
.pg.p2 { --ty: -26px; --mx: -82px; --my: 10px; --mr: -5deg; --d: .35s; }
.hero .qcard { --mx: -36px; --my: 6px; --mr: 2.2deg; animation: drop .8s cubic-bezier(.23, 1, .32, 1) .6s both, tidy .75s cubic-bezier(.23, 1, .32, 1) 2.55s forwards; }
@keyframes drop { from { opacity: 0; translate: var(--mx) calc(var(--my) - 180px); rotate: var(--mr); } to { opacity: 1; translate: var(--mx) var(--my); rotate: var(--mr); } }
@keyframes tidy { from { translate: var(--mx) var(--my); rotate: var(--mr); } to { translate: 0 0; rotate: 0deg; } }
/* la mascotte non c'è: arriva con un salto da destra e si infila tra i fogli */
@keyframes popin {
  0% { opacity: 0; translate: 42vw 40px; rotate: 24deg; }
  8% { opacity: 1; }
  40% { translate: 18vw -160px; rotate: 10deg; }
  68% { translate: 3vw -34px; rotate: 0deg; }
  82% { translate: 0 -22px; }
  100% { translate: 0 0; }
}
@keyframes ansin { from { opacity: 0; transform: translateY(8px); } }
.bar-track { height: 10px; border-radius: 99px; background: #DAD4C2; overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 68%; background: var(--gold); transform-origin: left; animation: sfill 2.4s cubic-bezier(.3, .7, .2, 1) 3.2s both; }
@keyframes sfill { from { transform: scaleX(0); } }

/* ---------- Il problema ---------- */
.manifesto { padding: clamp(96px, 12vw, 180px) var(--m); background: var(--sand); }
.man { font: 700 clamp(30px, 4.2vw, 68px)/1.08 var(--head); letter-spacing: -.04em; max-width: 21em; }
.man + .man { margin-top: .5em; }
.js .man .w { opacity: .16; transition: opacity .35s linear; }
.js .man .w.on { opacity: 1; }
.hl { position: relative; display: inline-block; isolation: isolate; white-space: nowrap; }
.hl::before { content: ''; position: absolute; z-index: -1; left: -.1em; right: -.12em; bottom: .04em; height: .6em; background: var(--gold); border-radius: .06em .22em .08em .26em; transform-origin: 0 50%; transform: scaleX(0) rotate(-1.4deg); transition: transform .7s cubic-bezier(.77, 0, .175, 1) .2s; }
.hl.on::before { transform: scaleX(1) rotate(-1.4deg); }
.fix { margin-top: clamp(36px, 5vw, 72px); display: flex; align-items: flex-end; justify-content: flex-start; gap: 28px; font: 800 clamp(30px, 3.6vw, 56px)/1 var(--head); letter-spacing: -.045em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Oggi e con Claspy ---------- */
.vs-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.vs-h { margin: 0; padding: clamp(48px, 6vw, 88px) var(--m) clamp(28px, 3vw, 44px); font: 800 clamp(48px, 8.4vw, 150px)/.9 var(--head); letter-spacing: -.055em; }
.vs-l { background: var(--sand); color: var(--navy); }
.vs-r { background: var(--navy); color: var(--paper); }
.vs-c { display: flex; align-items: center; gap: 20px; min-height: 17vh; padding: 30px var(--m); font: 600 clamp(20px, 2vw, 32px)/1.2 var(--body); letter-spacing: -.015em; }
.vs-c:nth-child(4n+1).vs-l, .vs-c:nth-child(4n+5).vs-l { background: #DDD6C2; }
.vs-c:nth-child(4n+2).vs-r, .vs-c:nth-child(4n+6).vs-r { background: #093557; }
.vs-c .t { max-width: 30ch; }
.x, .ok { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; }
.x { background: #B9B29C; }
.x::before, .x::after { content: ''; position: absolute; left: 9px; top: 14.5px; width: 14px; height: 3px; border-radius: 2px; background: var(--navy); transform: rotate(45deg); }
.x::after { transform: rotate(-45deg); }
.ok { background: var(--gold); display: grid; place-items: center; }
.ok svg { width: 14px; height: 14px; stroke: var(--deep); }
.js .vs-l[data-r] { transform: translateX(-28px); }
.js .vs-r[data-r] { transform: translateX(28px); }
.js .vs-c[data-r].in { transform: none; }

/* ---------- ancore della mascotte (invisibili) e mascotte unica ---------- */
:root { --mw: clamp(84px, 8vw, 120px); }
.anc { position: absolute; width: var(--mw); height: calc(var(--mw) * 1.38); pointer-events: none; visibility: hidden; }
.anc.st { position: static; flex: none; }
#mg { --cl-body: var(--navy); --cl-accent: var(--gold); --cl-eye: var(--navy); position: absolute; left: 0; top: 0; z-index: 1; width: 100px; transform-origin: 0 0; will-change: transform; cursor: pointer; }
#mg.intro { animation: popin 1.1s cubic-bezier(.3, .7, .3, 1) 1.8s both; }
@keyframes popin {
  0% { opacity: 0; translate: 42vw 40px; rotate: 24deg; }
  8% { opacity: 1; }
  40% { translate: 18vw -160px; rotate: 10deg; }
  68% { translate: 3vw -34px; rotate: 0deg; }
  82% { translate: 0 -22px; }
  100% { translate: 0 0; }
}

/* ---------- Rispondi una volta: il check ---------- */
.chk { background: var(--navy); color: var(--paper); padding: clamp(72px, 9vw, 130px) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; row-gap: 40px; align-items: start; }
.chk-t { grid-column: 1 / 6; }
.chk h2, .stp h2, .lvl-h h2, .xl h2, .app h2 { font-size: clamp(40px, 5.2vw, 92px); }
.chk .sub, .stp .sub, .xl .sub { margin-top: 22px; font-size: 20px; line-height: 1.5; max-width: 34ch; }
.chk-c { grid-column: 6 / 13; position: relative; }
.chk-card { background: var(--white); color: var(--navy); border-radius: var(--r); padding: clamp(18px, 2.2vw, 30px); display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
.chk-card .qh { font: 800 clamp(22px, 2.1vw, 30px)/1.15 var(--head); letter-spacing: -.03em; margin: 8px 0 0; }
.chk-card .area { font-size: 15px; font-weight: 700; color: var(--soft); }
.chk-card .hint { margin-top: 10px; font-size: 15px; color: var(--soft); }
.opts { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { text-align: left; border: 2px solid transparent; background: var(--paper); color: var(--navy); border-radius: 10px; padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; font: 700 17px/1.2 var(--body); transition: transform .2s var(--ease), background-color .2s, border-color .2s; }
.opt small { font: 500 14px/1.3 var(--body); color: var(--soft); }
.opt:hover { transform: translateY(-2px); }
.opt:active { transform: scale(.97); }
.opt[aria-pressed="true"] { border-color: var(--gold); background: #FBF3DC; }
.chk-side { background: #E8EEF5; border-radius: 10px; padding: 16px; display: grid; gap: 12px; align-content: start; font-size: 14px; line-height: 1.45; }
.chk-side b { font-size: 14px; }
.chk-side .ctl { background: var(--white); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.chk-side .ctl span { font-weight: 700; font-size: 15px; }
.chk-side .ctl em { font-style: normal; color: var(--soft); }
.chk-c .anc { right: 6%; top: calc(var(--mw) * -1.38 + 8px); }

/* ---------- Come funziona: carica, abbina, scrivi ---------- */
.stp { background: var(--paper); padding: clamp(72px, 9vw, 130px) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; row-gap: 36px; }
.stp-t { grid-column: 1 / 7; display: grid; gap: 28px; align-content: start; }
.sps { display: grid; }
.sp { grid-area: 1 / 1; display: none; }
.sp.on { display: block; animation: swapin .3s var(--ease); }
@keyframes swapin { from { opacity: 0; transform: translateY(8px); } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r); background: var(--sand); color: var(--navy); font: 700 16px/1 var(--body); cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.tabs button:hover { transform: translateY(-2px); }
.tabs button[aria-current="true"] { background: var(--navy); color: var(--paper); }
.stp-f { grid-column: 7 / 13; position: relative; display: grid; align-content: start; }
.sf { grid-area: 1 / 1; background: var(--sand); border-radius: var(--r); padding: clamp(18px, 2.2vw, 30px); display: none; gap: 14px; align-content: start; }
.sf.on { display: grid; animation: swapin .3s var(--ease); }
.sf h3 { font: 800 22px/1.1 var(--head); letter-spacing: -.03em; }
.fld { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld div { background: var(--white); border-radius: 10px; padding: 10px 14px; display: grid; gap: 2px; }
.fld small { color: var(--soft); font-size: 14px; }
.fld span { font-size: 16px; color: var(--soft); }
.drop { background: var(--white); border-radius: 12px; padding: 34px 16px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.drop svg { width: 30px; stroke: var(--blue); }
.drop b { font-size: 17px; }
.drop span { color: var(--soft); font-size: 14px; }
.mrow { background: var(--white); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 14px; align-items: center; font-size: 15px; }
.mrow .sel { background: var(--paper); border-radius: 8px; padding: 8px 12px; font-weight: 600; font-size: 14px; display: grid; gap: 6px; justify-items: start; }
.mrow .conf { font-size: 14px; color: var(--soft); font-weight: 600; white-space: nowrap; }
.ans { background: var(--white); border-radius: 10px; padding: 14px 16px; display: grid; gap: 6px; font-size: 15px; }
.ans b { font-size: 16px; }
.ans small { color: var(--soft); font-size: 14px; }
.ans .acts { display: flex; gap: 14px; font-size: 14px; font-weight: 600; color: var(--soft); }
.stp-prog { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; }
.stp-prog span:last-child { color: #6F5208; }
.stp-f .anc { right: 6%; top: calc(var(--mw) * -1.38 + 8px); }

/* ---------- Livelli ---------- */
.lvl-h { background: var(--paper); padding: clamp(56px, 7vw, 100px) var(--m) clamp(32px, 4vw, 56px); }
.lvl-h .sub { margin-top: 22px; font-size: 20px; max-width: 36ch; }
.lv { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; align-items: center; padding: 22px var(--m); position: relative; }
.lv h3 { grid-column: 1 / 7; font: 800 clamp(36px, 5.6vw, 100px)/.9 var(--head); letter-spacing: -.055em; }
.lv .what { grid-column: 7 / 13; display: grid; gap: 8px; }
.lv .what b { font: 700 clamp(22px, 2vw, 30px)/1.2 var(--body); }
.lv .what span { font-size: 17px; line-height: 1.45; max-width: 46ch; }
.lv.v { background: var(--navy); color: var(--paper); }
.lv.p { background: var(--blue); color: var(--paper); }
.lv.d { background: var(--sand); color: var(--navy); }
.lv.f { background: var(--gold); color: var(--deep); }
.lv .anc { right: var(--m); bottom: 0; }

/* ---------- Excel compilato ---------- */
.xl { background: var(--paper); padding: clamp(72px, 9vw, 130px) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; row-gap: 36px; align-items: start; }
.xl-t { grid-column: 1 / 6; }
.xl-c { grid-column: 6 / 13; position: relative; }
.xl-sheet { background: var(--white); border-radius: var(--r); padding: 18px; overflow: hidden; }
.xl-sheet .hd { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; color: var(--soft); margin-bottom: 12px; }
.xl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.xl th { text-align: left; font-size: 14px; color: var(--soft); padding: 8px 10px; background: var(--paper); }
.xl td { padding: 11px 10px; vertical-align: top; line-height: 1.35; }
.xl tr:nth-child(even) td { background: #F8F6F0; }
.xl td:first-child { color: var(--soft); white-space: nowrap; }
.xl td:last-child { font-weight: 700; white-space: nowrap; }
.xl tr.no td { background: #F6E4B0; }
.xl-c .anc { right: 6%; top: calc(var(--mw) * -1.38 + 8px); }

/* ---------- Il resto dell'app ---------- */
.app { background: var(--sand); padding: clamp(56px, 7vw, 100px) var(--m); position: relative; }
.app h2 { max-width: 9em; font-size: clamp(36px, 4.4vw, 76px); }
.app-l { margin-top: clamp(24px, 3vw, 40px); display: grid; }
.ai { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; align-items: baseline; padding: 14px 0; }
.ai h3 { grid-column: 1 / 6; font: 800 clamp(24px, 2.6vw, 40px)/1 var(--head); letter-spacing: -.045em; }
.ai p { grid-column: 6 / 13; font-size: 17px; line-height: 1.5; max-width: 52ch; }
.app .anc { right: var(--m); top: clamp(56px, 7vw, 100px); }

/* ---------- Invito: mascotte ancorata ---------- */
.cta .anc { right: var(--m); bottom: 0; width: clamp(110px, 14vw, 220px); height: calc(clamp(110px, 14vw, 220px) * 1.38); }
.cta { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; row-gap: 8px; align-items: start; }
.cta-l { grid-column: 1 / 7; }
.cta-r { grid-column: 8 / 13; background: var(--blue); border-radius: var(--r); padding: clamp(20px, 2.4vw, 34px); display: grid; gap: 12px; }
.cta-r p { font-size: 16px; line-height: 1.5; }
.cta-r .big { font: 800 clamp(26px, 2.6vw, 42px)/1.05 var(--head); letter-spacing: -.04em; }
.cta-r ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; line-height: 1.45; }
.cta-r li b { display: block; font-size: 17px; }
.cta .sub { margin-top: 24px; font-size: 20px; line-height: 1.5; max-width: 40ch; }
.cta-btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.cta-btns .link:hover { text-decoration-color: var(--gold); }
/* ---------- FAQ: mascotte ancorata ---------- */
.faq-side .anc { position: static; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(48px, 6vw, 88px) var(--m) clamp(56px, 7vw, 100px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; }
.faq-side { grid-column: 1 / 5; position: sticky; top: 96px; align-self: start; display: grid; gap: 28px; justify-items: start; }
.faq h2 { font-size: clamp(40px, 4.2vw, 72px); }
.faq .list { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq details { background: var(--sand); border-radius: var(--r); transition: background-color .25s var(--ease); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding: 16px 24px; font: 600 20px/1.3 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(11, 61, 102, .05); border-radius: var(--r); }
.faq .pl { position: relative; flex: none; width: 16px; height: 16px; }
.faq .pl::before, .faq .pl::after { content: ''; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.faq .pl::after { transform: rotate(90deg); }
.faq details[open] { background: var(--gold); color: var(--deep); }
.faq details[open] .pl::after { transform: rotate(0); }
.faq .a { padding: 0 24px 24px; font-size: 17px; max-width: 52ch; }
.faq details[open] .a { animation: fadeup .4s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Invito ---------- */
.cta { background: var(--navy); color: var(--paper); padding: clamp(56px, 7vw, 96px) var(--m) clamp(48px, 5vw, 72px); position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(36px, 6vw, 100px); line-height: 1.02; letter-spacing: -.05em; max-width: 12.5em; }
.cta form { display: contents; }
.cta .field-in { display: inline-block; vertical-align: baseline; width: 7em; height: 1.1em; padding: 0 .3em; border: 0; border-radius: var(--r); background: var(--blue); color: var(--paper); font: inherit; letter-spacing: -.03em; font-weight: 500; }
.cta .field-in::placeholder { color: #A9C3DA; opacity: 1; }
.cta .field-in:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.cta .go { display: inline-block; vertical-align: baseline; height: 1.1em; padding: 0 .45em; border: 0; border-radius: .22em; background: var(--gold); color: var(--deep); font: inherit; font-weight: 800; letter-spacing: -.04em; cursor: pointer; transition: transform .25s var(--ease), background-color .2s; }
.cta .go:hover { transform: translateY(-3px); background: #F2C65E; }
.cta .go:active { transform: scale(.96); }
.cta .after { margin-top: 32px; font-size: 16px; color: #B7CADB; max-width: 54ch; }
/*sr*/.sr0 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Piede ---------- */
.foot { background: var(--deep); color: var(--paper); padding: clamp(64px, 8vw, 120px) var(--m) 24px; }
.blocks { display: flex; gap: 4px; align-items: flex-end; height: calc(25vw * 1.02); font-size: 25vw; line-height: 1; }
.blocks span { flex: 1 0 auto; display: flex; align-items: flex-end; justify-content: center; padding: 0 .02em; height: var(--h); border-radius: 0; font: 800 1em/1 var(--head); letter-spacing: -.04em; background: var(--c); color: var(--deep); overflow: hidden; }
@keyframes bgrow { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.1, 1.07); } }
.blocks span { transform-origin: 50% 100%; }
.blocks { position: relative; }
.blocks .bfr { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.blocks.wave span { position: relative; z-index: 1; animation: bgrow .6s cubic-bezier(.77, 0, .175, 1) both; }
.blocks.wave span:nth-child(1) { animation-delay: 0s; } .blocks.wave span:nth-child(2) { animation-delay: .14s; } .blocks.wave span:nth-child(3) { animation-delay: .28s; }
.blocks.wave span:nth-child(4) { animation-delay: .42s; } .blocks.wave span:nth-child(5) { animation-delay: .56s; } .blocks.wave span:nth-child(6) { animation-delay: .7s; }
.blocks .b1 { --c: var(--gold); --h: 100%; }
.blocks .b2 { --c: var(--paper); --h: 90%; }
.blocks .b3 { --c: var(--blue); --h: 96%; color: var(--deep); }
.blocks .b4 { --c: var(--gold); --h: 88%; }
.blocks .b5 { --c: var(--paper); --h: 100%; }
.blocks .b6 { --c: var(--blue); --h: 94%; }
.foot-cols { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; row-gap: 32px; font-size: 15px; }
.foot-cols .links { grid-column: 1 / 9; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-cols h3 { font: 700 15px/1.3 var(--body); letter-spacing: 0; color: var(--gold); margin-bottom: 10px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-cols a { text-decoration: none; display: inline-block; padding: 4px 0; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: .22em; }
.foot-cols .addr { grid-column: 9 / 13; display: grid; gap: 6px; align-content: start; font-size: 15px; }
.foot-bot { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; color: #B7CADB; }
.foot-bot .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

.blocks.sm { height: 44px; font-size: 43px; gap: 2px; }
.blocks.sm span { padding: 0 .015em; }
/* ---------- Entrate ---------- */
.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-r].in { opacity: 1; transform: none; }
.js .ln > span { transform: translateY(105%); transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.js .ln:nth-child(2) > span { transition-delay: .11s; }
.js.go .ln > span { transform: none; }
.js .hero-fade { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease) .85s, transform .7s var(--ease) .85s; }
.js.go .hero-fade { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-r], .js .ln > span, .js .hero-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .man .w { opacity: 1; transition: none; }
  .qrow, .bar-track i, .pg, .hero .qcard, #mg.intro, .blocks.wave span { animation: none !important; }
  .hl::before { transition: none; }
  .sp, .sf { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .bar .tab { display: none; }
}

/* ---------- Telefono ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .bar { height: 60px; }
  .bar .mark { padding: 0 var(--m); }
  .bar .act { margin-top: 8px; padding: 0 16px; font-size: 15px; }
  .bar .act.is-gold { background: var(--navy); color: var(--paper); }
  .blocks.sm { font-size: 32px; height: 33px; }
  .hero { --ww: 92vw; --wt: 200px; min-height: 800px; padding-top: 120px; }
  .hero h1 { font-size: 8.6vw; letter-spacing: -.045em; }
  .lead { font-size: 17px; }
  .hero .qcard { padding: 16px; }
  .hero .qcard .hd { font-size: 15px; } .hero .qcard .hd span:last-child { font-size: 18px; }
  .hero .who { font-size: 14px; }
  .hero .qrow:nth-of-type(n+4) { display: none; }
  .hero-anchor { left: auto; right: 8vw; }
  .manifesto { padding: 72px var(--m); }
  .man { font-size: clamp(24px, 4.2vw, 32px); line-height: 1.2; }
  .fix { font-size: 8vw; align-items: center; }
  .chk, .stp, .xl { display: block; padding: 72px var(--m); }
  .chk-c, .stp-f, .xl-c { margin-top: 64px; }
  .chk-card { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr 1fr; }
  .chk .sub, .stp .sub, .xl .sub { font-size: 18px; }
  .chk h2, .stp h2, .lvl-h h2, .xl h2, .app h2 { font-size: 9vw; }
  .mrow { grid-template-columns: 1fr; }
  .lvl-h { padding: 72px var(--m) 36px; }
  .lv { display: block; min-height: 0; padding: 36px var(--m) 40px; }
  .lv h3 { font-size: 13vw; margin-bottom: 14px; }
  .lv .what b { font-size: 21px; } .lv .what span { font-size: 16px; }
  .xl table { font-size: 12.5px; } .xl td, .xl th { padding: 8px 6px; }
  .xl td:nth-child(1), .xl th:nth-child(1) { display: none; }
  .app { padding: 72px var(--m); }
  .ai { display: block; padding: 20px 0; } .ai h3 { font-size: 9vw; margin-bottom: 8px; } .ai p { font-size: 17px; }
  .vs-grid { display: flex; flex-direction: column; }
  .vs-h.vs-l { order: 1; } .vs-c.vs-l { order: 2; } .vs-h.vs-r { order: 3; } .vs-c.vs-r { order: 4; }
  .vs-h { font-size: 15vw; padding: 44px var(--m) 20px; }
  .vs-c { min-height: 96px; padding: 20px var(--m); font-size: 19px; }
  .js .vs-l[data-r], .js .vs-r[data-r] { transform: translateY(20px); }
  .faq { display: block; padding: 72px var(--m); }
  .faq-side { position: static; margin-bottom: 28px; } .faq h2 { font-size: 9vw; }
  .faq .list { gap: 6px; }
  .faq summary { font-size: 18px; min-height: 64px; padding: 14px 20px; }
  .faq .a { font-size: 16px; padding: 0 20px 20px; }
  .cta { display: block; padding: 72px var(--m) 140px; }
  .cta-r { margin-top: 40px; }
  .cta h2 { font-size: 10vw; }
  .cta .after { font-size: 15px; }
  .foot { padding-top: 56px; }
  .blocks { gap: 3px; }
  .foot-cols { display: block; margin-top: 40px; }
  .foot-cols .links { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .foot-cols .addr { margin-top: 32px; }
  .foot-bot { margin-top: 36px; flex-wrap: wrap; }
}

/* evidenziatore: la parola chiave */
mark.hl { background: none; color: inherit; }
.chk .hl::before { background: var(--blue); }

/* ---------- In parole semplici ---------- */
.cr { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; align-items: center; padding: clamp(44px, 5vw, 76px) var(--m); }
.cr h2 { grid-column: 1 / 6; font-size: clamp(44px, 6vw, 108px); line-height: .9; letter-spacing: -.055em; }
.cb { grid-column: 6 / 12; display: grid; gap: 20px; }
.lead2 { font: 700 clamp(24px, 2.5vw, 36px)/1.15 var(--head); letter-spacing: -.03em; max-width: 24ch; }
.det { font-size: 20px; line-height: 1.55; max-width: 46ch; }
.cr.r1 { background: var(--sand); color: var(--navy); }
.cr.r2 { background: var(--navy); color: var(--paper); }
.cr.r2 .hl::before { background: var(--blue); }
.cr.r3 { background: var(--gold); color: var(--deep); }
.cr.r3 .hl::before { background: var(--paper); }
.cr .anc { right: var(--m); top: 50%; margin-top: calc(var(--mw) * -.69); }

/* ---------- Il video ---------- */
.vid { background: var(--deep); color: var(--paper); padding: clamp(56px, 7vw, 96px) var(--m); }
.vid h2 { font-size: clamp(40px, 5.6vw, 100px); }
.vid .hl::before { background: var(--blue); }
.vid .sub { margin-top: 22px; font-size: 20px; line-height: 1.5; max-width: 44ch; }
.vid-c { position: relative; margin-top: clamp(40px, 5vw, 56px); max-width: 1080px; margin-inline: auto; }
.vwrap { aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.vwrap video { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.chap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chap button { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r); background: var(--blue); color: var(--paper); font: 700 15px/1 var(--body); cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.chap button:hover { background: #2A6AA6; transform: translateY(-2px); }
.chap button:active { transform: scale(.97); }
.chap button.on { background: var(--gold); color: var(--deep); }
.vid-c .anc { right: 4%; top: calc(var(--mw) * -1.38 + 6px); }

.vs-c.first { position: relative; }
.vs-c.first .anc { right: 24px; top: 50%; margin-top: calc(var(--mw) * -.69); }

@media (max-width: 860px) {
  .cr { display: block; min-height: 0; padding: 64px var(--m); }
  .cr h2 { font-size: 15vw; margin-bottom: 20px; }
  .det { font-size: 17px; }
  .cr .anc { top: auto; bottom: 12px; margin-top: 0; }
  .vid { padding: 64px var(--m); }
  .vid h2 { font-size: 9vw; } .vid .sub { font-size: 18px; } .vid-c { margin-top: 128px; }
  .chap button { font-size: 14px; padding: 0 12px; }
  .vs-c.first .anc { display: none; }
}

/* tabella dell'Excel compilato dentro la scheda */
.hd2 { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; color: var(--soft); }
.xt { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); border-radius: 10px; overflow: hidden; }
.xt th { text-align: left; font-size: 14px; color: var(--soft); padding: 8px 10px; background: var(--paper); }
.xt td { padding: 11px 10px; vertical-align: top; line-height: 1.35; }
.xt td:first-child { color: var(--soft); white-space: nowrap; }
.xt td:last-child { font-weight: 700; white-space: nowrap; }
.xt tr:nth-child(even) td { background: #F8F6F0; }
.xt tr.no td { background: #F6E4B0; }

/* il check dentro la scheda del passo 0 */
.sf .chk-card { grid-template-columns: 1fr; padding: clamp(16px, 2vw, 24px); }
.sf .opts { grid-template-columns: 1fr 1fr; }
.blocks { height: calc(20vw * 1.02); font-size: 20vw; }

/* ---------- In parole semplici: scena che segue lo scroll ---------- */
.cose { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; align-items: center; min-height: min(100vh, 760px); padding: clamp(40px, 6vw, 80px) var(--m); background: var(--sand); color: var(--navy); transition: background-color .25s var(--ease), color .25s var(--ease); }
.cose[data-s="1"] { background: var(--navy); color: var(--paper); }
.cose[data-s="2"] { background: var(--gold); color: var(--deep); }
.cs-list { position: relative; z-index: 2; grid-column: 1 / 7; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cs-list h2 { font-size: clamp(40px, 6vw, 104px); line-height: .92; letter-spacing: -.055em; padding: .12em 0; }
.cs-list button { all: unset; display: block; line-height: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; opacity: .72; transition: opacity .3s linear; }
.cs-list li.on button { opacity: 1; }
.cs-list button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.cs-list .lead2 { max-width: 28ch; display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: opacity .3s linear, visibility 0s linear .3s; }
.cs-list li.on .lead2 { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
.cs-list .lead2 > span { overflow: hidden; }
.cose[data-s="1"] .hl::before { background: var(--blue); }
.cose[data-s="2"] .hl::before { background: var(--paper); }
.cs-3d { grid-column: 7 / 13; position: relative; height: clamp(380px, 46vw, 560px); perspective: 1500px; overflow: clip; }
.cs-scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.sh { position: absolute; left: 50%; top: 50%; width: 300px; height: 198px; margin: -99px 0 0 -150px; background: var(--white); color: var(--navy); border-radius: 10px; padding: 12px 14px; will-change: transform; }
.sh b { font: 700 13px/1 var(--body); }
.sh i { display: block; height: 9px; border-radius: 5px; background: #E4DFD0; margin-top: 12px; }
.sh i:nth-of-type(2) { width: 82%; } .sh i:nth-of-type(3) { width: 64%; }
.sh-clip { position: absolute; left: 50%; top: 50%; width: 46px; height: auto; margin: -50px 0 0 -23px; color: var(--navy); opacity: 0; will-change: transform; }
.cs-3d .anc { right: 0; bottom: -6px; }

/* ---------- Livelli: quattro strati in 3D ---------- */
.lvl3 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; align-items: center; min-height: min(100vh, 760px); padding: clamp(40px, 6vw, 80px) var(--m); background: var(--paper); color: var(--navy); }
.l3-t { grid-column: 1 / 6; display: grid; gap: 22px; align-content: center; }
.l3-t h2 { font-size: clamp(36px, 4.6vw, 80px); }
.l3-t .sub { font-size: 20px; line-height: 1.5; max-width: 34ch; }
.l3-now { display: grid; gap: 6px; min-height: 96px; }
.l3-now b { font: 800 clamp(24px, 2.4vw, 34px)/1.1 var(--head); letter-spacing: -.035em; }
.l3-now span { font-size: 18px; line-height: 1.45; max-width: 36ch; }
.l3-stage { grid-column: 6 / 13; position: relative; height: clamp(400px, 48vw, 580px); perspective: 1700px; overflow: clip; }
.l3-rot { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(var(--rz, -34deg)); }
.slab { position: absolute; left: 50%; top: 50%; width: min(440px, 72%); aspect-ratio: 16 / 9; margin: calc(min(440px, 72%) * -.28) 0 0 calc(min(440px, 72%) * -.5); border-radius: 18px; padding: 20px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; translate: 0 0 var(--z, 0px); opacity: .55; transition: translate .5s var(--ease), opacity .4s linear; cursor: pointer; }
.slab::after { content: attr(data-t); font: 800 clamp(26px, 3.2vw, 50px)/.95 var(--head); letter-spacing: -.05em; }
.slab.on { opacity: 1; }
.sl-f { --z: 0px; background: var(--gold); color: var(--deep); }
.sl-d { --z: 92px; background: #D6CFB8; color: var(--navy); }
.sl-p { --z: 184px; background: var(--blue); color: var(--paper); }
.sl-v { --z: 276px; background: var(--navy); color: var(--paper); }
.slab.on { translate: 0 0 calc(var(--z) + 46px); }
.l3-stage .anc { right: 0; top: -8px; }

@media (max-width: 860px) {
  .cose, .lvl3 { display: block; min-height: 0; padding: 56px var(--m); }
  .cs-list h2 { font-size: 13vw; }
  .cs-3d { height: 340px; margin-top: 24px; overflow: clip; }
  .cs-scene { transform: scale(.7); }
  .cs-list button { display: block; width: 100%; }
  .sh { transform-origin: center; width: 200px; height: 132px; margin: -66px 0 0 -100px; }
  .lvl3 .l3-t h2 { font-size: 9vw; }
  .cs-list .lead2, .l3-t .sub, .l3-now span { max-width: none; }
  .l3-now b { font-size: 20px; } .l3-now span { font-size: 16px; }
  .l3-stage { height: 380px; margin-top: 20px; }
  .l3-rot { scale: .72; }
  .l3-stage .anc, .cs-3d .anc { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cose, .slab, .cs-list button, .cs-list .lead2 { transition: none; } }

.cs-3d .bfr, .l3-stage .bfr { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }


/* ======== versione con scena lunga, video pulito, passi cliccabili e FAQ a capitoli ======== */
/* in parole semplici: la scena resta ferma sullo schermo mentre scorri (3 schermate di scroll) */
.cose { display: block; height: 340vh; padding: 0; min-height: 0; }
.cose-in { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; align-items: center; padding: 0 var(--m); overflow: clip; }
.cs-3d { height: min(62vh, 560px); }

/* video: sempre in loop, senza comandi */
.vid { padding: clamp(56px, 7vw, 100px) var(--m); }
.vid-c { max-width: 1160px; }
.vwrap { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #fff; pointer-events: none; }
.vwrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.chap { display: none; }

/* passi cliccabili: righe vere, con freccia e barra di avanzamento */
.tabs { display: grid; gap: 8px; max-width: 480px; }
.tabs button { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 54px; padding: 0 20px; border: 0; border-radius: var(--r); background: var(--sand); color: var(--navy); font: 700 17px/1 var(--body); text-align: left; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.tabs button::after { content: ''; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M11 5l5 5-5 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M11 5l5 5-5 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s var(--ease); }
.tabs button:hover { background: #DDD6C2; transform: translateX(4px); }
.tabs button:hover::after { transform: translateX(4px); }
.tabs button:active { transform: scale(.98); }
.tabs button[aria-current="true"] { background: var(--navy); color: var(--paper); }
.tabs button::before { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.tabs:not(.manual) button[aria-current="true"]::before { animation: tabfill 4.2s linear forwards; }
@keyframes tabfill { to { transform: scaleX(1); } }
.tabs.manual button[aria-current="true"]::before { transform: scaleX(1); }

/* FAQ: capitoli di colore come il resto del sito */
.faq2 { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; align-items: center; min-height: min(100vh, 780px); padding: clamp(48px, 6vw, 88px) var(--m); background: var(--sand); color: var(--navy); transition: background-color .25s var(--ease), color .25s var(--ease); }
.faq2[data-s="1"] { background: var(--navy); color: var(--paper); }
.faq2[data-s="2"] { background: var(--gold); color: var(--deep); }
.fq-l { grid-column: 1 / 7; display: grid; gap: 26px; }
.fq-l h2 { font-size: clamp(40px, 5vw, 88px); }
.fq-list { display: grid; gap: 4px; }
.fq-list button { all: unset; box-sizing: border-box; display: block; cursor: pointer; padding: 10px 0; font: 700 clamp(18px, 1.7vw, 26px)/1.2 var(--head); letter-spacing: -.025em; opacity: .75; transition: opacity .25s linear, transform .25s var(--ease); }
.fq-list button:hover { opacity: .9; transform: translateX(6px); }
.fq-list button[aria-selected="true"] { opacity: 1; }
.fq-list button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.fq-r { grid-column: 8 / 13; display: grid; align-content: center; min-height: 320px; }
.fq-a[hidden] { display: none; }
.fq-a { display: grid; gap: 20px; animation: swapin .3s var(--ease); }
.fq-a .lead2 { max-width: 22ch; font-size: clamp(22px, 2.4vw, 34px); }
.fq-a .det { max-width: 40ch; }
.faq2[data-s="1"] .hl::before { background: var(--blue); }
.faq2[data-s="2"] .hl::before { background: var(--paper); }
.faq2 .anc { right: var(--m); bottom: 24px; }

@media (max-width: 860px) {
  .cose { height: 330vh; }
  .cose-in { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 64px var(--m) 20px; }
  .cose-in .cs-list { grid-column: auto; }
  .cs-3d { flex: 1; height: auto; min-height: 220px; width: 100%; margin-top: 0; }
  .tabs { max-width: none; }
  .faq2 { display: block; min-height: 0; padding: 56px var(--m); }
  .fq-r { margin-top: 28px; min-height: 0; }
  .fq-list button { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .tabs button::before { animation: none !important; transform: scaleX(1); } .faq2, .fq-list button { transition: none; } }

/* chiusura: Claspy sotto il testo, non sopra la scheda */
.cta .anc { left: var(--m); right: auto; bottom: 24px; width: 130px; height: calc(130px * 1.38); }
.cta .cta-l { padding-bottom: 210px; }
@media (max-width: 860px) { .cta .anc { left: auto; right: var(--m); } .cta .cta-l { padding-bottom: 0; } .cta { padding-bottom: 200px; } }

/* livelli: scena ferma sullo schermo mentre la pila ruota, cosi' non viene mai tagliata */
.lvl3 { display: block; height: 300vh; padding: 0; min-height: 0; }
.lvl3-in { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; align-items: center; padding: 0 var(--m); overflow: clip; }
.l3-stage { height: min(74vh, 620px); overflow: visible; }
.l3-rot { scale: .8; }
@media (max-width: 860px) {
  .lvl3 { height: 280vh; }
  .lvl3-in { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 64px var(--m) 16px; }
  .l3-stage { flex: 1; height: auto; min-height: 240px; width: 100%; margin-top: 0; }
  .l3-rot { scale: .58; }
  .l3-t { gap: 12px; } .l3-now { min-height: 0; } .lvl3 .l3-t .sub { display: none; }
  .lvl3 .tabs button { min-height: 44px; }
}

/* chiusura senza mascotte: nessuno spazio riservato */
.cta .cta-l { padding-bottom: 0; }
@media (max-width: 860px) { .cta { padding-bottom: 72px; } }

.cta-more { margin-top: 20px; }
.cta-more .link:hover { text-decoration-color: var(--gold); }
.sr-row { display: block; }
