/* =============================================================================
   Imprenditoria — stile del sito pubblico (home, academy, blog, Index, accesso)
   -----------------------------------------------------------------------------
   Fondo perla caldo, testo quasi nero, gradiente del logo (FFE53B → FF005B)
   solo su parole chiave, aure e un unico blocco forte (l'abbonamento).
   Titoli Sora, testo Figtree, etichette IBM Plex Mono. Caricato solo dalle
   pagine con layout 'site' (vedi templates/partials/header.php): area
   personale e admin continuano a usare theme.css.
   ============================================================================= */

@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/figtree-500.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/figtree-600.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/sora-400.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/sora-500.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/sora-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/plexmono-500.woff2") format("woff2"); }

:root {
	--bg: #f7f6f3;
	--surface: #ffffff;
	--fg: #1d1d1f;
	--muted: #6e6a66;
	--faint: #c9c3bb;
	--line: #e7e3dd;
	--line-strong: #e0dbd4;
	--track: #efebe5;
	--yellow: #ffe53b;
	--orange: #ff8a2b;
	--pink: #ff005b;
	--aura-1: #ffe9a8;
	--aura-2: #ffc2d6;
	--aura-3: #ffd3b0;
	--grad: linear-gradient(120deg, var(--orange), var(--pink));
	--font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--gutter-l: max(16px, env(safe-area-inset-left, 0px));
	--gutter-r: max(16px, env(safe-area-inset-right, 0px));
	--nav-h: 64px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	padding-top: env(safe-area-inset-top, 0px);
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--fg); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- Elementi di base ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.k {
	background-image: linear-gradient(100deg, var(--orange), #ff3d6e 45%, var(--pink) 70%, var(--orange));
	background-size: 220% 100%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
	animation: shimmer 7s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 26px; border-radius: 999px;
	font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center;
	text-decoration: none; border: 1px solid transparent; cursor: pointer;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-primary { background: var(--fg); color: #fff; }
.btn-primary:hover { box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--pink) 70%, transparent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-white { background: #fff; color: var(--fg); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-white:hover { border-color: #fff; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }

.block { padding-block: clamp(80px, 11vw, 140px); }
.block-head { display: grid; gap: 14px; max-width: 800px; }
.block-head h2, .h2 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; }
.block-head .intro { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.band { background: var(--surface); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.chip { display: inline-flex; align-items: center; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--bg); }
.badge-prio { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: #fff; background: var(--grad); border-radius: 6px; padding: 2px 6px; margin-left: 4px; white-space: nowrap; }

/* ---------- Comparsa allo scorrimento (app.js initReveal aggiunge .is-visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.k, .aura { animation: none !important; }
	.btn:hover { transform: none; }
}

/* ---------- Navigazione ---------- */
.site-nav {
	position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }
.site-nav__brand img { height: 24px; width: auto; }
.site-nav__links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.site-nav__links a { text-decoration: none; transition: color 0.2s ease; }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { color: var(--fg); }
.site-nav__right { display: flex; align-items: center; gap: 14px; }
.site-nav__login { font-size: 14px; color: var(--muted); text-decoration: none; }
.site-nav__login:hover { color: var(--fg); }
.site-nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0; place-content: center; gap: 5px; }
.site-nav__toggle span { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--fg); transition: transform 0.3s var(--ease); }
.site-nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.site-nav__sheet { display: none; border-top: 1px solid var(--line); padding-block: 8px 20px; }
.site-nav__sheet.is-open { display: block; animation: sheet-in 0.3s var(--ease) both; }
.site-nav__sheet .wrap { display: grid; }
.site-nav__sheet a:not(.btn) { padding: 14px 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav__sheet .btn { margin-top: 18px; justify-self: start; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
	.site-nav__links, .site-nav__login { display: none; }
	.site-nav__toggle { display: grid; }
}
@media (max-width: 480px) { .site-nav__right > .btn { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 104px); text-align: center; }
.hero h1 { margin: 24px auto 0; max-width: 17ch; font-size: clamp(2.4rem, 5.8vw, 4.9rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.03; }
.hero__sub { margin: 24px auto 0; max-width: 52ch; font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.4; color: var(--muted); text-wrap: balance; }
.ctas { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.load { animation: load-in 1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes load-in { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .load { animation: none; } }

.stage { position: relative; margin-top: clamp(32px, 4vw, 48px); overflow: hidden; padding: 24px var(--gutter-r) 48px var(--gutter-l); display: grid; place-items: center; }
.aura { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.9; pointer-events: none; will-change: transform; }
.aura.a1 { width: 44%; aspect-ratio: 1; left: 8%; top: 0; background: radial-gradient(circle, var(--aura-1), transparent 68%); animation: drift-1 18s ease-in-out infinite alternate; }
.aura.a2 { width: 40%; aspect-ratio: 1; right: 8%; top: -8%; background: radial-gradient(circle, var(--aura-2), transparent 68%); animation: drift-2 22s ease-in-out infinite alternate; }
.aura.a3 { width: 36%; aspect-ratio: 1; left: 34%; bottom: -22%; background: radial-gradient(circle, var(--aura-3), transparent 68%); animation: drift-3 20s ease-in-out infinite alternate; }
@keyframes drift-1 { to { transform: translate(12%, 10%) scale(1.12); } }
@keyframes drift-2 { to { transform: translate(-10%, 14%) scale(0.9); } }
@keyframes drift-3 { to { transform: translate(8%, -16%) scale(1.15); } }

/* Scheda Index d'esempio nella hero */
.idx-card { position: relative; width: 100%; max-width: 760px; text-align: left; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 22px; }
.idx-card__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.idx-card__head > div:first-child { display: grid; gap: 4px; }
.idx-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.idx-card__score { display: flex; align-items: baseline; gap: 6px; color: var(--muted); }
.idx-card__score b { font-family: var(--font-display); font-weight: 600; font-size: 3.2rem; letter-spacing: -0.05em; line-height: 1; color: var(--fg); }
.idx-rows { display: grid; gap: 10px; }
.idx-row { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) 2.5rem; gap: 12px; align-items: center; font-size: 14px; }
.idx-row.is-prio { font-weight: 600; }
.idx-bar { height: 8px; border-radius: 8px; background: var(--track); overflow: hidden; }
.idx-bar span { display: block; height: 100%; border-radius: 8px; background: var(--fg); }
.idx-row.is-prio .idx-bar span { background: linear-gradient(90deg, var(--orange), var(--pink)); }
.idx-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.idx-card__foot { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
	.idx-row { grid-template-columns: minmax(0, 1fr) 2.5rem; }
	.idx-row .idx-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Loghi ---------- */
.logos { padding-top: 32px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.logos p { color: var(--muted); font-size: 1.05rem; }
.logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; }
.client-logo { display: block; background: #8a857f; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; transition: background-color 0.3s ease; }
.client-logo:hover { background: var(--fg); }

/* ---------- Griglie ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.mt-l { margin-top: clamp(36px, 5vw, 56px); }

/* ---------- Ti riconosci ---------- */
.pain { padding: 28px; display: grid; gap: 18px; align-content: space-between; min-height: 220px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.pain:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px color-mix(in srgb, var(--pink) 50%, transparent); }
.pain p { font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.28; }
@media (max-width: 960px) { .pain { min-height: 0; } }

/* ---------- Passi ---------- */
.steps { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px 48px; align-items: baseline; padding-block: clamp(22px, 3.4vw, 36px); border-bottom: 1px solid var(--line); }
.step__word { display: flex; align-items: baseline; gap: 18px; font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; color: var(--faint); transition: color 0.5s ease, transform 0.5s var(--ease); }
.step__word small { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); }
.step p { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 34ch; transition: color 0.5s ease; }
.step.is-active .step__word { color: var(--fg); transform: translateX(10px); }
.step.is-active p { color: var(--fg); }
.no-js .step .step__word, .no-js .step p { color: var(--fg); }
@media (max-width: 720px) { .step { grid-template-columns: 1fr; } .step.is-active .step__word { transform: none; } }

/* ---------- Cosa include ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.flow__card { background: var(--bg); border: 1px solid var(--line); border-radius: 26px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.flow__card h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.03em; }
.flow__card p { color: var(--muted); }
.flow__arrow { display: grid; place-items: center; color: #b9b2a9; font-size: 26px; }
.prio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prio-chips span { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: #fff; background: var(--grad); }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr; } .flow__arrow { transform: rotate(90deg); height: 28px; } }
.extras { margin-top: 16px; }
.extras > div { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 4px; }
.extras b { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.extras span { color: var(--muted); }

/* ---------- Risultati ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stat { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--fg); }
.stat b { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4.2rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); max-width: 28ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 36px; } }
.quote { padding: 30px; display: grid; gap: 22px; align-content: space-between; min-height: 240px; border-radius: 26px; }
.quote blockquote { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; }
.who { display: flex; align-items: center; gap: 12px; }
.who .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 14px; background: var(--grad); }
.who span { display: grid; }
.who b { font-size: 15px; }
.who small { font-size: 13px; color: var(--muted); }

/* ---------- Abbonamento (blocco forte) ---------- */
.offer {
	position: relative; overflow: hidden; border-radius: 36px; color: #fff;
	padding: clamp(28px, 6vw, 72px);
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
	background: radial-gradient(70% 90% at 100% 0%, #ffcf3b 0%, transparent 60%), radial-gradient(80% 100% at 0% 100%, #d4004b 0%, transparent 62%), linear-gradient(135deg, #ff6a3d, #ff2d63 55%, var(--pink));
}
.offer::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 20% 15%, rgba(255, 255, 255, 0.18), transparent 70%); }
.offer > * { position: relative; z-index: 1; }
.offer__text { display: grid; gap: 18px; justify-items: start; }
.offer__eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); }
.offer h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.offer__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.offer__price b { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.4rem, 7vw, 5.2rem); letter-spacing: -0.06em; line-height: 1; }
.offer__price > span { font-size: 1.15rem; }
.offer__price s { font-size: 1.15rem; color: rgba(255, 255, 255, 0.78); }
.offer__text p { font-size: 1.05rem; line-height: 1.45; max-width: 42ch; color: rgba(255, 255, 255, 0.96); }
.seats { width: 100%; max-width: 380px; display: grid; gap: 8px; }
.seats__row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.seats__bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.seats__bar span { display: block; height: 100%; border-radius: 8px; background: #fff; }
.offer__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; border-radius: 28px; } }

/* Selettore mensile/annuale (app.js initPlanToggle: .price-card[data-price-monthly]) */
.plan-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.3); }
.plan-toggle__opt { font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: transparent; border: 0; border-radius: 999px; padding: 8px 16px; min-height: 40px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.plan-toggle__opt.is-active { background: #fff; color: var(--fg); }
.plan-toggle__save { font-family: var(--font-mono); font-size: 11px; }

/* Form d'iscrizione dentro il blocco forte */
.subscribe { background: #fff; color: var(--fg); border-radius: 26px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(80, 0, 30, 0.5); }
.subscribe h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.subscribe .muted { color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink) 15%, transparent); }
.assurances { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.assurances li { display: flex; gap: 8px; align-items: flex-start; }
.assurances li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, #000 35%, transparent 38%), linear-gradient(#000, #000); }
.alert { border-radius: 14px; padding: 12px 14px; font-size: 14px; background: #fff0f3; color: #a3002f; border: 1px solid #ffc6d4; }
.climate { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.climate a { color: var(--fg); }
.subscribe__login { font-size: 14px; color: var(--muted); text-align: center; }
.subscribe__login a { color: var(--fg); font-weight: 600; }

.team-strip { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.team-strip__people { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.faces { display: flex; }
.faces img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.faces > * + * { margin-left: -10px; }
.face-initials { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; background: var(--fg); color: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.team-strip a { font-weight: 600; text-decoration: none; }
.team-strip a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding-block: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-body); font-size: 18px; transition: transform 0.35s var(--ease), background 0.2s ease; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--track); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 62ch; }

/* ---------- Chiusura ---------- */
.final { text-align: center; padding-block: clamp(100px, 13vw, 160px) clamp(80px, 10vw, 120px); }
.final h2 { margin-inline: auto; max-width: 14ch; font-size: clamp(3rem, 9vw, 7rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.94; }
.final p { margin: 22px auto 0; max-width: 34ch; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted); }
.final .ctas { margin-top: 30px; }

/* ---------- Academy ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 112px) clamp(80px, 10vw, 120px); }
.page-hero .aura.a1 { width: 40%; left: -6%; top: -30%; }
.page-hero .aura.a2 { width: 38%; right: -6%; top: -10%; }
.page-hero .wrap { position: relative; display: grid; gap: 24px; justify-items: start; }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.05em; }
.page-hero p { max-width: 54ch; font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.4; color: var(--muted); }
.page-hero .ctas { justify-content: flex-start; margin-top: 8px; }

.compare { margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.compare__row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; padding-block: 24px; border-bottom: 1px solid var(--line); align-items: baseline; }
.compare__row b { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.compare__row .old { color: #8a857f; }
.compare__row.is-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.compare__row.is-head span:last-child { color: var(--fg); }
@media (max-width: 760px) {
	.compare__row { grid-template-columns: 1fr; gap: 4px; }
	.compare__row.is-head { display: none; }
	.compare__row .old::before { content: "E-learning: "; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
	.compare__row .new::before { content: "Imprenditoria: "; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
}

.partner { overflow: hidden; display: grid; grid-template-rows: auto 1fr; border-radius: 26px; }
.partner img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.partner__initials { aspect-ratio: 4 / 5; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 3rem; letter-spacing: -0.04em; background: radial-gradient(60% 50% at 30% 30%, var(--aura-1), transparent 70%), radial-gradient(60% 50% at 75% 70%, var(--aura-2), transparent 70%), #fbfaf8; }
.partner__body { padding: 20px 22px 24px; display: grid; gap: 6px; align-content: start; }
.partner__body h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; }
.partner__body p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.partner__body a { margin-top: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.partner__body a:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: end; }
.split p { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 46ch; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.path { padding: 28px; display: grid; gap: 12px; align-content: start; border-radius: 26px; background: var(--bg); border: 1px solid var(--line); }
.path h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.03em; }
.path p { color: var(--muted); }
.chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tile { padding: 26px; display: grid; gap: 8px; align-content: start; }
.tile b { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.tile span { color: var(--muted); }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.link-card { text-decoration: none; padding: 30px; display: grid; gap: 10px; align-content: space-between; min-height: 220px; border-radius: 26px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
a.link-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px color-mix(in srgb, var(--pink) 50%, transparent); }
.link-card > span:first-child { display: grid; gap: 8px; }
.link-card b { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.03em; }
.link-card .desc { color: var(--muted); }
.link-card .go { font-weight: 600; }

/* ---------- Pagine interne (blog, articolo, evento, Index, accesso) ---------- */
.page-head { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); }
.page-head .aura.a1 { width: 40%; left: -8%; top: -40%; }
.page-head .aura.a2 { width: 36%; right: -8%; top: -30%; }
.page-head .wrap { position: relative; display: grid; gap: 18px; justify-items: start; }
.page-head h1 { max-width: 18ch; font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 600; line-height: 1.03; letter-spacing: -0.045em; }
.page-head p { max-width: 56ch; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.45; color: var(--muted); }
.page-head p a { color: var(--fg); font-weight: 600; }
.page-head--center .wrap { justify-items: center; text-align: center; }
.page-head--center h1 { margin-inline: auto; }
.page-body { padding-bottom: clamp(80px, 11vw, 140px); }
.narrow { max-width: 760px; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--fg); }
.back svg { transform: rotate(180deg); }
.empty { padding: clamp(28px, 5vw, 48px); display: grid; gap: 16px; justify-items: center; text-align: center; color: var(--muted); }
.notice { padding: clamp(28px, 5vw, 48px); display: grid; gap: 16px; justify-items: center; text-align: center; }
.notice h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.notice p { max-width: 46ch; color: var(--muted); }
.notice p strong { color: var(--fg); }
.alert--success { background: #eef8f1; color: #176c3a; border-color: #c4e8d0; }
.alert--info { background: var(--surface); color: var(--fg); border-color: var(--line); }

/* Elenco articoli */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post-card { overflow: hidden; display: grid; grid-template-rows: auto 1fr; border-radius: 26px; text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px color-mix(in srgb, var(--pink) 50%, transparent); }
.post-card__cover { aspect-ratio: 16 / 9; background: radial-gradient(60% 60% at 25% 30%, var(--aura-1), transparent 70%), radial-gradient(60% 60% at 80% 70%, var(--aura-2), transparent 70%), #fbfaf8; }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; }
.post-card__body h2, .post-card__body h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.post-card__body p { color: var(--muted); font-size: 15px; }
.post-card__meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
.posts--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.posts--compact .post-card { grid-template-rows: 1fr; }
@media (max-width: 620px) { .posts--compact { grid-template-columns: 1fr; } }

/* Articolo */
.article-head { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 40px); }
.article-head .narrow { display: grid; gap: 18px; justify-items: start; }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.045em; }
.article-head .sub { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.4; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-cover { max-width: 1000px; margin: 0 auto clamp(32px, 5vw, 56px); border-radius: 26px; overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; }

/* Corpo articolo: HTML salvato nel database, con classi art-* */
.prose { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin: 2.2em 0 0.6em; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
.prose h3 { margin: 1.6em 0 0.4em; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.prose a { color: var(--fg); text-decoration-color: var(--pink); text-underline-offset: 3px; }
.prose a:hover { color: var(--pink); }
.prose strong, .prose b { font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--pink); }
.prose blockquote { margin: 1.6em 0; padding-left: 1.1em; border-left: 2px solid var(--pink); font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; }
.prose img { border-radius: 18px; margin: 1.4em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--track); border-radius: 6px; padding: 1px 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose .table-scroll { overflow-x: auto; margin: 1.4em 0; }
.prose .art-updated { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 1.4em; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.prose .art-updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.prose .art-dek { margin: 0 0 1.6em; font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.5; color: var(--muted); }
.prose .art-note { margin: 1.6em 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; font-size: 16px; color: var(--muted); }
.prose .art-note > :last-child { margin-bottom: 0; }
.prose .art-table { overflow-x: auto; margin: 1.4em 0 0.6em; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.prose .art-table table { min-width: 620px; }
.prose .art-table thead th, .prose thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.prose .art-table tbody tr:last-child td { border-bottom: 0; }
.prose .art-table td b { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.prose .art-prov { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.prose .art-cost { white-space: nowrap; font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: var(--fg); }
.prose .art-legend { margin: 0 0 1.4em; font-size: 14px; color: var(--muted); }
.prose .art-callout { margin: 2em 0; padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; position: relative; overflow: hidden; }
.prose .art-callout::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad); }
.prose .art-callout h2, .prose .art-callout h3 { margin-top: 0.3em; }
.prose .art-callout > :last-child { margin-bottom: 0; }
.prose .art-kicker { display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.prose .art-foot { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .prose { font-size: 17px; } }

.cta-card { margin-top: clamp(48px, 7vw, 80px); padding: clamp(26px, 4vw, 40px); display: grid; gap: 14px; justify-items: start; border-radius: 26px; }
.cta-card h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.08; }
.cta-card p { color: var(--muted); max-width: 52ch; }
.cta-card .ctas { justify-content: flex-start; margin-top: 6px; }
.more { margin-top: clamp(56px, 8vw, 96px); display: grid; gap: 22px; }
.more h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; letter-spacing: -0.04em; }

/* Form generici (accesso, evento, Index) */
.field select, .field textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; width: 100%; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field textarea { resize: vertical; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink) 15%, transparent); }
.field input { width: 100%; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pink); }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover { color: var(--fg); background: var(--track); }

/* Accesso e password */
.auth { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 96px) clamp(80px, 11vw, 140px); }
.auth .aura.a1 { width: 46%; left: -6%; top: -20%; }
.auth .aura.a2 { width: 40%; right: -8%; top: 10%; }
.auth-card { position: relative; width: 100%; max-width: 460px; margin-inline: auto; padding: clamp(26px, 4vw, 40px); display: grid; gap: 20px; border-radius: 26px; background: rgba(255, 255, 255, 0.94); }
.auth-card__head { display: grid; gap: 10px; }
.auth-card__head h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.auth-card__head p { color: var(--muted); }
.auth-card__links { display: grid; gap: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-card__links a { color: var(--fg); font-weight: 600; }

/* Evento */
.event-cover { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 40px); }
.event-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.event-facts .chip { gap: 6px; background: var(--surface); }
.event-facts .chip a { text-decoration: underline; text-underline-offset: 3px; }
.event-box { margin-top: clamp(32px, 5vw, 48px); padding: clamp(22px, 3.4vw, 32px); display: grid; gap: 16px; border-radius: 26px; }
.event-box h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.event-box .ctas { justify-content: flex-start; margin-top: 0; }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 680px) { .tiers { grid-template-columns: 1fr; } }
.tier { padding: 24px; display: grid; gap: 10px; align-content: start; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.tier.is-you { background: var(--surface); border-color: var(--fg); }
.tier__price { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; letter-spacing: -0.05em; line-height: 1; }
.tier p { color: var(--muted); font-size: 15px; }
.tier__actions { display: grid; gap: 8px; margin-top: 6px; }

/* Risultato dell'Index */
.score-card { padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; border-radius: 28px; }
.score-card__text { display: grid; gap: 14px; justify-items: start; }
.score-card__num { display: flex; align-items: baseline; gap: 8px; color: var(--muted); }
.score-card__num b { font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 9vw, 6.4rem); letter-spacing: -0.06em; line-height: 0.9; color: var(--fg); }
.score-card__level { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.score-card__text p { color: var(--muted); max-width: 40ch; }
.score-card__chart { display: grid; place-items: center; color: var(--fg); font-family: var(--font-body); }
.score-card__chart svg { max-width: 100% !important; }
/* chart_radar disegna un anello per ogni punto (100 anelli): qui ne teniamo uno ogni 20. */
.score-card__chart polygon[fill="none"]:not(:nth-of-type(20n)) { display: none; }
.score-card__chart polygon[fill="none"] { stroke-opacity: 0.5; stroke: var(--line-strong); }
@media (max-width: 860px) { .score-card { grid-template-columns: 1fr; } }
.areas-card { padding: clamp(22px, 3.4vw, 32px); display: grid; gap: 16px; border-radius: 26px; }
.areas-card h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.areas-card > p { color: var(--muted); font-size: 15px; }
.locked { padding: clamp(26px, 4vw, 44px); display: grid; gap: 16px; justify-items: start; border-radius: 28px; }
.locked h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.locked p { color: var(--muted); max-width: 56ch; }
.locked .eyebrow { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Questionario dell'Index (partials/assessment-form.php) ----------
   Il partial è condiviso con l'area riservata (theme.css): qui ne riprendiamo
   le classi nello stile del sito, comprese quelle storiche dei pulsanti. */
.index-form { width: 100%; max-width: 760px; margin-inline: auto; padding: clamp(22px, 4vw, 40px); border-radius: 28px; }
.index-form .stack { display: grid; }
.index-form .grid { display: grid; }
.index-form .text-center { text-align: center; }
.index-form .muted { color: var(--muted); }
.btn--primary { background: var(--fg); color: #fff; }
.btn--primary:hover { box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--pink) 70%, transparent); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--block { width: 100%; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.q-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 28px; }
.q-progress__track { height: 8px; border-radius: 8px; background: var(--track); overflow: hidden; }
.q-progress__fill { height: 100%; width: 0%; border-radius: 8px; background: linear-gradient(90deg, var(--orange), var(--pink)); transition: width 0.4s var(--ease); }
.q-progress__pct { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-steps { transition: min-height 0.15s ease; }
.q-step[hidden] { display: none; }
.q-step { display: grid; gap: 14px; align-content: start; }
.q-section { display: grid; gap: 8px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.q-section h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.08; }
.q-section p { color: var(--muted); }
.q-section strong { color: var(--fg); }
.q-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-field, .likert { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-legend, .likert__legend, .q-step .field > label[for^="profile_"] { display: block; padding: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.45rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--fg); margin-bottom: 12px; }
.q-step .field { gap: 0; }
.q-step .field label[for^="profile_other"] { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 14px 0 6px; }
.q-help { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 16px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.q-help svg { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.q-charcount { margin-top: 6px; text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.q-choices { display: grid; gap: 10px; }
.q-choice { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; -webkit-tap-highlight-color: transparent; }
.q-choice:hover { border-color: var(--muted); }
.q-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.q-choice__label { flex: 1 1 auto; font-size: 16px; font-weight: 500; line-height: 1.4; }
.q-choice__mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; }
.q-choice.is-checked, .q-choice:has(input:checked) { background: var(--surface); border-color: var(--fg); }
.q-choice.is-checked .q-choice__mark, .q-choice:has(input:checked) .q-choice__mark { border-color: transparent; background: var(--grad); }
.q-choice.is-checked .q-choice__mark::after, .q-choice:has(input:checked) .q-choice__mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.q-choice input:focus-visible ~ .q-choice__mark { outline: 2px solid var(--pink); outline-offset: 3px; }
.likert__scale { display: flex; gap: 8px; }
.likert__scale--wrap { flex-wrap: wrap; }
.likert__opt { position: relative; flex: 1 1 0; min-height: 64px; display: grid; place-items: center; align-content: center; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease); -webkit-tap-highlight-color: transparent; }
.likert__opt:hover { border-color: var(--muted); }
.likert__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.likert__num { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--muted); }
.likert__opt.is-checked, .likert__opt:has(input:checked) { background: var(--fg); border-color: var(--fg); }
.likert__opt.is-checked .likert__num, .likert__opt:has(input:checked) .likert__num { color: #fff; }
.likert__opt input:focus-visible ~ .likert__num { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
.likert__opt--wide { flex: 0 1 auto; min-height: 44px; padding: 8px 16px; border-radius: 999px; }
.likert__chip-label { font-size: 15px; font-weight: 500; }
.likert__opt--wide.is-checked .likert__chip-label, .likert__opt--wide:has(input:checked) .likert__chip-label { color: #fff; }
.likert__hints { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.q-slider { width: 100%; margin: 8px 0 4px; accent-color: var(--pink); }
.q-slider__labels { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.wiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
.index-form .checkbox { color: var(--muted); }
.index-form .checkbox input { accent-color: var(--pink); width: 18px; height: 18px; flex: none; }
@media (max-width: 560px) {
	.likert__opt { min-height: 56px; }
	.wiz__nav .btn { flex: 1 1 0; padding-inline: 14px; }
}

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-foot__brand { display: grid; gap: 14px; align-content: start; }
.site-foot__brand img { height: 22px; width: auto; }
.site-foot__brand p { max-width: 38ch; }
.site-foot h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-foot nav { display: grid; gap: 8px; }
.site-foot a { text-decoration: none; color: var(--fg); }
.site-foot a:hover { text-decoration: underline; }
.site-foot__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }
@media (max-width: 760px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* ---------- Movimento ----------
   Regole attive solo con html.motion (script inline dell'header, assente se il
   visitatore chiede di ridurre il movimento) e pilotate da js/site.js. */

/* Cascata tra elementi .reveal fratelli (--stagger da site.js) */
.js .reveal.is-visible { transition-delay: var(--stagger, 0s); }

/* Navigazione: trasparente in cima, piena appena si scorre */
.site-nav { transition: background-color 0.35s ease, border-color 0.35s ease; }
.motion .site-nav:not(.is-scrolled) { background: color-mix(in srgb, var(--bg) 55%, transparent); border-bottom-color: transparent; }
.site-nav.is-scrolled { background: color-mix(in srgb, var(--bg) 90%, transparent); }

/* Link con sottolineatura che scorre */
.site-nav__links a, .site-foot nav a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: color 0.2s ease, background-size 0.4s var(--ease); }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"], .site-foot nav a:hover { background-size: 100% 1px; text-decoration: none; }
.back svg { transition: translate 0.3s var(--ease); }
.back:hover svg { translate: -3px 0; }
.btn:active { transform: translateY(0) scale(0.98); }
.post-card__cover img { transition: transform 0.9s var(--ease); }
.post-card:hover .post-card__cover img { transform: scale(1.04); }

/* Barre dell'Index e dei posti: crescono quando entrano nello schermo */
.motion .idx-rows .idx-bar span, .motion .seats .seats__bar span { transform: scaleX(0); transform-origin: left center; transition: transform 1.2s var(--ease); }
.motion .idx-rows.is-in .idx-bar span, .motion .seats.is-in .seats__bar span { transform: none; }
.motion .idx-row:nth-child(2) .idx-bar span { transition-delay: 0.06s; }
.motion .idx-row:nth-child(3) .idx-bar span { transition-delay: 0.12s; }
.motion .idx-row:nth-child(4) .idx-bar span { transition-delay: 0.18s; }
.motion .idx-row:nth-child(5) .idx-bar span { transition-delay: 0.24s; }
.motion .idx-row:nth-child(6) .idx-bar span { transition-delay: 0.3s; }
.motion .idx-row:nth-child(7) .idx-bar span { transition-delay: 0.36s; }
.motion .idx-row:nth-child(n+8) .idx-bar span { transition-delay: 0.42s; }

/* Radar del risultato: il profilo si apre dal centro */
.motion .score-card__chart svg > polygon:not([fill="none"]), .motion .score-card__chart svg > circle { transform: scale(0); transform-box: view-box; transform-origin: 170px 165px; transition: transform 1.3s var(--ease) 0.25s; }
.motion .score-card__chart svg > text, .motion .score-card__chart svg > line, .motion .score-card__chart svg > polygon[fill="none"] { opacity: 0; transition: opacity 0.9s ease; }
.motion .score-card__chart.is-in svg > polygon:not([fill="none"]), .motion .score-card__chart.is-in svg > circle { transform: none; }
.motion .score-card__chart.is-in svg > text, .motion .score-card__chart.is-in svg > line { opacity: 1; }
.motion .score-card__chart.is-in svg > polygon[fill="none"] { opacity: 0.5; }

/* Barra di lettura degli articoli */
.read-bar { position: fixed; z-index: 31; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left center; pointer-events: none; }

/* Questionario: ogni domanda entra di lato, nel verso in cui ti muovi */
.motion .q-step { animation: q-in 0.45s var(--ease) both; }
.motion #bisogni-form[data-dir="back"] .q-step { animation-name: q-in-back; }
@keyframes q-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes q-in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* Passaggio tra le pagine del sito (browser che supportano le View Transitions) */
@view-transition { navigation: auto; }
.site-nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out 0.22s ease both; }
::view-transition-new(root) { animation: vt-in 0.38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
	.read-bar { display: none; }
}
