/* ==========================================================================
   Impara la TWS – main.css · v3
   Palette di Samuel (logica IBKR): grafite e bianco, nebbia per le sezioni,
   rosso solo per le CTA, ambra per bonus/gratis, verde per conferme.
   Liquid Glass sulle parti scure + un gradiente blu lieve negli angoli.
   ========================================================================== */

@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-var.woff2") format("woff2-variations"), url("../fonts/figtree-var.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/plex-mono-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #15181D;          /* Grafite */
	--graphite: #0F1115;
	--graphite-2: #1E2229;
	--text: #1B1F24;
	--muted: #5B6470;
	--faint: #8A919B;
	--line: rgba(21, 24, 29, .09);
	--line-strong: rgba(21, 24, 29, .16);
	--bg: #FFFFFF;           /* Bianco */
	--surface: #F4F5F7;      /* Nebbia */
	--surface-2: #E6E8EB;

	--red: #D7192A;          /* Rosso azione: solo CTA */
	--red-hover: #BE1424;
	--red-text: #C41424;
	--red-on-dark: #FF5A64;
	--green: #12A15A;        /* Conferme, sicurezza */
	--green-on-dark: #2BC178;
	--amber: #FFB300;        /* Gratis, bonus, avvisi */
	--on-dark: #F5F6F7;
	--on-dark-muted: #A9AFB8;
	--blue-glow: rgba(56, 132, 255, .30);   /* gradiente blu, solo negli angoli */
	--blue-glow-soft: rgba(56, 132, 255, .14);

	--r-xs: 10px;
	--r-sm: 14px;
	--r-md: 20px;
	--r-lg: 28px;
	--r-xl: 40px;

	--wrap: 1200px;
	--pad: clamp(20px, 5vw, 40px);
	--sect: clamp(88px, 11vw, 148px);

	--ease: cubic-bezier(.22, .8, .24, 1);
	--sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 6px rgba(16, 24, 40, .04);
	--shadow-md: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -6px rgba(16, 24, 40, .08), 0 24px 48px -24px rgba(16, 24, 40, .12);
	--shadow-lg: 0 2px 4px rgba(16, 24, 40, .03), 0 18px 40px -12px rgba(16, 24, 40, .12), 0 48px 96px -40px rgba(16, 24, 40, .22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(46px, 6.6vw, 90px); line-height: .98; letter-spacing: -.045em; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
h3, .h3 { font-size: clamp(21px, 1.9vw, 24px); line-height: 1.2; letter-spacing: -.02em; }
/* seconda parte del titolo in grigio, come nella proposta */
h2 em { font-style: normal; color: var(--faint); }
h1 em { font-style: normal; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid #3884FF; outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(215, 25, 42, .16); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 560; text-decoration: none; }
.skip:focus { top: 16px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.wrap.narrow { max-width: calc(880px + var(--pad) * 2); }

/* ---------- Liquid Glass ---------- */
.glass {
	position: relative;
	background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5));
	-webkit-backdrop-filter: blur(22px) saturate(180%);
	backdrop-filter: blur(22px) saturate(180%);
	box-shadow:
		0 0 0 1px rgba(11, 13, 18, .05),
		inset 0 1px 0 rgba(255, 255, 255, .95),
		inset 0 -1px 0 rgba(255, 255, 255, .35),
		0 10px 30px -10px rgba(16, 24, 40, .14),
		0 30px 60px -30px rgba(16, 24, 40, .18);
	isolation: isolate;
}
/* bordo speculare: luce che scorre sul profilo del vetro */
.glass::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(150deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .15) 38%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .7) 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
	z-index: 1;
}
/* Vetro scuro (sulle parti in grafite) */
.dark .glass, .glass--dark {
	background: linear-gradient(145deg, rgba(40, 45, 54, .62), rgba(30, 34, 41, .42));
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, .10),
		inset 0 1px 0 rgba(255, 255, 255, .16),
		0 20px 50px -20px rgba(0, 0, 0, .6);
	color: var(--on-dark);
}
.dark .glass::before, .glass--dark::before { background: linear-gradient(150deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .25)); }
.dark .glass.glass--light, .glass--light {
	background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .80));
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), inset 0 1px 0 #fff, 0 18px 40px -16px rgba(0, 0, 0, .5);
	color: var(--ink);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.glass { background: rgba(255, 255, 255, .94); }
	.dark .glass, .glass--dark { background: rgba(30, 34, 41, .94); }
}

/* ---------- Bottoni ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
	font-size: 15.5px; font-weight: 560; letter-spacing: -.005em; line-height: 1;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .25s var(--ease), color .25s;
}
.btn { position: relative; isolation: isolate; overflow: hidden; -webkit-tap-highlight-color: transparent; --sheen: rgba(255, 255, 255, .55); --spec: rgba(255, 255, 255, .26); }
/* riflesso speculare che segue il puntatore */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
	background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 0%), var(--spec), transparent 62%);
	transition: opacity .45s var(--ease); }
/* lama di luce che attraversa il pulsante al passaggio del mouse */
.btn::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 60%; z-index: -1; pointer-events: none;
	background: linear-gradient(105deg, transparent 20%, var(--sheen) 50%, transparent 80%);
	transform: translateX(-180%) skewX(-12deg); opacity: .0; }
.btn:hover::before { opacity: 1; }
.btn:hover::after { opacity: 1; transform: translateX(260%) skewX(-12deg); transition: transform 1s cubic-bezier(.3, .6, .2, 1), opacity .2s; }
/* pressione: il vetro "cede" sotto il dito */
.btn:active { transform: translateY(0) scale(.965) !important; transition-duration: .09s !important; }
.btn:active::before { opacity: 1; background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), var(--spec), transparent 70%); }
.btn--cta:active { box-shadow: inset 0 2px 6px rgba(80, 0, 10, .35), inset 0 -1px 0 rgba(255, 255, 255, .12), 0 4px 10px -6px rgba(215, 25, 42, .6) !important; }
.btn--dark:active { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5), 0 2px 6px -4px rgba(0, 0, 0, .5) !important; }
.btn--line, .btn--glass { --sheen: rgba(255, 255, 255, .9); --spec: rgba(56, 132, 255, .10); }
.btn--line:active, .btn--glass:active { box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 2px 5px rgba(21, 24, 29, .12) !important; }
.dark .btn--glass { --sheen: rgba(255, 255, 255, .22); --spec: rgba(255, 255, 255, .16); }
.dark .btn--glass:active { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 2px 6px rgba(0, 0, 0, .45) !important; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #3884FF !important; }
.dark .btn:focus-visible { box-shadow: 0 0 0 3px var(--graphite), 0 0 0 5px #3884FF !important; }
@media (hover: none) { .btn:hover::after { opacity: 0; transition: none; } }
@media (prefers-reduced-motion: reduce) { .btn::after { display: none; } }
.btn .ico { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(2px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--cta {
	color: #fff;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .05) 48%, rgba(255, 255, 255, 0) 50%),
		linear-gradient(180deg, #E0283A 0%, var(--red) 55%, #C9172A 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(150, 10, 25, .25), 0 10px 24px -8px rgba(215, 25, 42, .55);
}
.btn--cta:hover { color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 2px 4px rgba(150, 10, 25, .25), 0 16px 32px -10px rgba(215, 25, 42, .6); }
.btn__sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .35); }
.btn__price { font-variant-numeric: tabular-nums; opacity: .92; }
.btn--glass {
	color: var(--ink);
	background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .62));
	-webkit-backdrop-filter: blur(16px) saturate(170%);
	backdrop-filter: blur(16px) saturate(170%);
	box-shadow: 0 0 0 1px rgba(11, 13, 18, .08), inset 0 1px 0 #fff, 0 6px 18px -8px rgba(16, 24, 40, .18);
}
.btn--glass:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(11, 13, 18, .12), inset 0 1px 0 #fff, 0 12px 26px -10px rgba(16, 24, 40, .24); }
.dark .btn--glass { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .14); }
.dark .btn--glass:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.dark .btn__play { background: #fff; color: var(--ink); }
.btn__play { width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; }
.btn__play .ico { width: 11px; height: 11px; margin-left: 2px; }
.btn--glass:hover .btn__play .ico { transform: none; }
.btn--dark { color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .02) 48%, rgba(255, 255, 255, 0) 50%), var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 20px -10px rgba(11, 13, 18, .5); }
.btn--dark:hover { color: #fff; transform: translateY(-1px); background: linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .03) 48%, rgba(255, 255, 255, 0) 50%), #1E232C; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 14px 28px -12px rgba(11, 13, 18, .6); }
.btn--line { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--line:hover { color: var(--ink); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--ink), 0 10px 22px -12px rgba(21, 24, 29, .35); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 560; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-color: var(--ink); }
.link .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link:hover .ico { transform: translateX(3px); }

/* ---------- Etichette ---------- */
.eyebrow { display: inline-block; margin-bottom: 18px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); }
.dark .eyebrow { color: var(--red-on-dark); }
.chip { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 520; color: var(--text); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-on-dark); box-shadow: 0 0 0 3px rgba(255, 90, 100, .18); }
.dark .chip { color: #C9CDD3; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-head { position: fixed; inset: 0 0 auto; z-index: 60; padding: max(12px, env(safe-area-inset-top)) var(--pad) 0; pointer-events: none; }
.site-head__bar { pointer-events: auto; max-width: var(--wrap); margin-inline: auto; height: 60px; padding: 0 8px 0 14px; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: box-shadow .3s var(--ease), background .3s; }
.site-head .site-head__bar { background: linear-gradient(145deg, rgba(40, 45, 54, .62), rgba(30, 34, 41, .46)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 30px -12px rgba(0, 0, 0, .45); }
.site-head .site-head__bar::before { background: linear-gradient(150deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .05) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .2)); }
.site-head.is-scrolled .site-head__bar { background: linear-gradient(145deg, rgba(30, 34, 41, .86), rgba(21, 24, 29, .78)); }
.site-head .brand { color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav-toggle { position: relative; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nav-toggle__bars { position: relative; width: 18px; height: 10px; }
.nav-toggle__bars i { position: absolute; left: 0; width: 100%; height: 1.6px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle__bars i:first-child { top: 0; }
.nav-toggle__bars i:last-child { top: 8px; }
.nav-open .nav-toggle__bars i:first-child { top: 4px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars i:last-child { top: 4px; transform: rotate(-45deg); }

.site-nav { position: fixed; inset: 0; z-index: -1; padding: 108px var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; background: rgba(15, 17, 21, .94); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.nav-open .site-nav { opacity: 1; visibility: visible; }
/* il vetro della barra (backdrop-filter) diventa il contenitore dei figli fixed: a menu aperto lo spegniamo, così il pannello copre tutto lo schermo */
@media (max-width: 1039.98px) {
	.nav-open .site-head__bar { -webkit-backdrop-filter: none; backdrop-filter: none; }
	.nav-open .site-head__bar::before { opacity: 0; }
	.site-nav { background: rgba(15, 17, 21, .97); overflow-y: auto; overscroll-behavior: contain; }
}
.nav-open { overflow: hidden; }
.site-nav li a { display: block; padding: 12px 0; color: #fff; font-size: 30px; font-weight: 560; letter-spacing: -.03em; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-nav__end { display: flex; flex-direction: column; gap: 12px; }
.site-nav__end .btn { min-height: 54px; font-size: 16px; }
.site-nav__login { color: var(--on-dark-muted); font-weight: 520; text-decoration: none; text-align: center; padding: 10px; }

@media (min-width: 1040px) {
	.nav-toggle { display: none; }
	.site-nav { position: static; z-index: auto; inset: auto; padding: 0; flex: 1; flex-direction: row; align-items: center; justify-content: space-between; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; visibility: visible; }
	.site-nav ul { display: flex; gap: 2px; margin-inline: auto; }
	.site-nav li a { padding: 9px 15px; border: 0; border-radius: 999px; font-size: 14.5px; font-weight: 500; letter-spacing: 0; color: #C9CDD3; transition: color .2s, background-color .2s; }
	.site-nav li a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
	.site-nav li a[aria-current] { color: #fff; background: rgba(255, 255, 255, .10); }
	.site-nav__end { flex-direction: row; align-items: center; gap: 6px; }
	.site-nav__end .btn { min-height: 42px; font-size: 14.5px; }
	.site-nav__login { padding: 8px 14px; font-size: 14.5px; color: #E6E8EB; }
	.site-nav__login:hover { color: #fff; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(120px, 15vw, 168px) 0 0; overflow: hidden; isolation: isolate; color: var(--on-dark); background: linear-gradient(180deg, var(--graphite) 0%, var(--ink) 100%); }
.hero h1 { color: #fff; }
.hero__copy h1 { font-size: clamp(42px, 4.9vw, 72px); line-height: 1; letter-spacing: -.042em; }
.hero__light { position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(46% 58% at 100% 0%, var(--blue-glow), rgba(56, 132, 255, 0) 72%),
		radial-gradient(40% 40% at 18% -6%, rgba(215, 25, 42, .16), rgba(215, 25, 42, 0) 70%),
		radial-gradient(52% 34% at 0% 100%, var(--blue-glow), rgba(56, 132, 255, 0) 72%);   /* luce opposta, in basso a sinistra */
}
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.lead { max-width: 540px; color: var(--on-dark-muted); font-size: clamp(17px, 1.45vw, 19px); line-height: 1.6; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--on-dark-muted); font-size: 14px; }
.assure li { display: inline-flex; align-items: center; gap: 7px; }
.assure .ico { width: 15px; height: 15px; color: var(--green-on-dark); }

/* Palco */
.hero__stage { position: relative; height: clamp(470px, 122vw, 560px); isolation: isolate; }
.hero__stage::before { content: ""; position: absolute; z-index: 0; right: 2%; top: 20%; width: 64%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(56, 132, 255, .30), rgba(56, 132, 255, 0)); pointer-events: none; }
.hero__stage::after { content: ""; position: absolute; z-index: 0; right: 34%; top: 56%; width: 36%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(215, 25, 42, .18), rgba(215, 25, 42, 0)); pointer-events: none; }
.portrait { position: absolute; z-index: 2; left: -14%; bottom: 0; height: 100%; aspect-ratio: 1024 / 1536; margin: 0; pointer-events: none;
	-webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 99%); mask-image: linear-gradient(to bottom, #000 72%, transparent 99%); }
.portrait img { filter: drop-shadow(-18px 24px 40px rgba(0, 0, 0, .55)); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.02); transition: transform .8s var(--ease); }
.window { position: absolute; z-index: 2; right: 0; top: 22%; width: 46%; padding: 14px; border-radius: 24px; display: none; flex-direction: column; gap: 12px; animation: drift 9s ease-in-out infinite; }
.window__bar { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--mono); font-size: 11px; color: #8A919B; }
.window__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.window__bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__quote { display: flex; justify-content: space-between; align-items: flex-end; }
.window__quote b { display: block; color: #fff; font-size: 15px; font-weight: 620; letter-spacing: -.01em; }
.window__quote small { display: block; color: var(--faint); font-size: 11px; }
.window__quote .num { color: #fff; font-family: var(--mono); font-weight: 500 !important; font-size: 22px; font-weight: 560; letter-spacing: -.03em; text-align: right; line-height: 1.1; }
.window__quote .num small { font-size: 12px; letter-spacing: 0; }
.neg { color: #FF8A91 !important; }
.window__chart { width: 100%; height: 92px; }
.window__order { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-size: 12.5px; }
.window__order div { display: flex; justify-content: space-between; }
.window__order span { color: #8A919B; }
.window__order b { color: #fff; font-weight: 600; }

.bubble { position: absolute; z-index: 3; right: 0; top: 0; width: min(250px, 60%); margin: 0; padding: 14px 16px; border-radius: 20px 20px 20px 6px; color: var(--ink); font-size: 14.5px; font-weight: 520; line-height: 1.4; letter-spacing: -.005em; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.bubble.is-swap { opacity: 0; transform: translateY(4px); }
.toast { position: absolute; z-index: 3; right: 2%; bottom: 3%; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; font-size: 13px; animation: drift 9s 1.5s ease-in-out infinite reverse; }
.toast b { display: block; color: #fff; font-weight: 600; }
.toast small { display: block; color: #A9AFB8; font-size: 11.5px; }
.toast__ok { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--green); box-shadow: 0 4px 10px -2px rgba(18, 161, 90, .45); }
.toast__ok .ico { width: 15px; height: 15px; }
@keyframes drift { 50% { transform: translateY(-8px); } }

.platforms { display: grid; grid-template-columns: 1fr 1fr; text-align: center; gap: 12px 16px; margin-top: clamp(40px, 6vw, 72px); padding: 26px 0 30px; border-top: 1px solid rgba(255, 255, 255, .08); color: #C9CDD3; font-size: 15px; font-weight: 520; letter-spacing: -.01em; }
.platforms small { color: #8A919B; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.platforms li:first-child { grid-column: 1 / -1; }

@media (max-width: 959px) {
	.hero__stage { height: clamp(520px, 140vw, 640px); }
	.portrait { height: 82%; left: -22%; }
	.bubble { width: 48%; top: auto; bottom: 22%; right: 0; }
}
@media (min-width: 960px) {
	.hero__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 32px; }
	.hero__stage { height: clamp(500px, min(48vw, calc(100svh - 170px)), 660px); }
	.portrait { left: -16%; }
	.bubble { top: 0; right: 0; width: 262px; font-size: 15px; }
}

/* ---------- Lavagna interattiva (TWS dietro il vetro) ---------- */
.board { position: absolute; z-index: 1; top: 3%; right: -6%; width: 84%; padding: 10px; border-radius: 22px; display: flex; flex-direction: column; gap: 8px;
	/* lavagna alle spalle di Samuel, girata verso di lui */
	transform: perspective(1500px) rotateY(16deg) rotateX(2deg); transform-origin: 0% 50%; }
.board > * { position: relative; z-index: 2; }
.board__bar { display: flex; align-items: center; gap: 6px; padding: 2px 6px 0; color: #8A919B; font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
.board__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.board__bar span { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; }
.board__screen { position: relative; aspect-ratio: 1918 / 1014; border-radius: 12px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.board__screen::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: linear-gradient(155deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .03) 32%, rgba(255, 255, 255, 0) 50%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 40px rgba(0, 0, 0, .35); }
.board__zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.65, 0, .25, 1); will-change: transform; --z: 1; }
.board__zoom img { display: block; width: 100%; height: 100%; max-width: none; filter: saturate(.92) brightness(.9); transition: filter .6s; }
.board.is-zoomed .board__zoom img { filter: saturate(1) brightness(1); }
.board__chalk { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.board__mark { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .5)); transition: stroke-dashoffset .9s cubic-bezier(.5, 0, .3, 1) .5s, opacity .25s; }
.board__mark.is-on { opacity: .95; stroke-dashoffset: 0; }
.board__dot { position: absolute; left: var(--x); top: var(--y); z-index: 4; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--red); font-family: var(--sans); font-size: 12px; font-weight: 700; cursor: pointer; transform: translate(-50%, -50%) scale(calc(1 / var(--z))); transition: transform 1.1s cubic-bezier(.65, 0, .25, 1), background-color .3s, color .3s, opacity .3s; box-shadow: 0 0 0 3px rgba(215, 25, 42, .28), 0 6px 14px -4px rgba(0, 0, 0, .7); }
.board__dot::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(255, 90, 100, .7); animation: ping 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.board__dot.is-on { color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3), 0 6px 14px -4px rgba(0, 0, 0, .7); }
.board__dot.is-on::before { border-color: rgba(255, 255, 255, .7); }
.board.is-zoomed .board__dot:not(.is-on) { opacity: .45; }
.board__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
.board__note { display: flex; align-items: flex-start; gap: 10px; min-height: 2.9em; margin: 0; padding: 2px 6px 4px; color: #E6E8EB; font-size: 13.5px; line-height: 1.4; }
.board__note b { width: 22px; height: 22px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .12); font-size: 11.5px; }
.board__note span { transition: opacity .3s; }
.board__note.is-swap span { opacity: 0; }
@media (min-width: 960px) {
	.board { top: 13%; right: -4%; width: 74%; transform: perspective(1800px) rotateY(18deg) rotateX(2deg); }
}
@media (prefers-reduced-motion: reduce) { .board__dot::before { display: none; } }

/* ---------- Piattaforme (sotto la prima schermata e nel videocorso) ---------- */
.hero__platforms { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(72px, 8vw, 104px); }
.platforms-label { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; color: #8A919B; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.platforms-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); }
.pf { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad) 10px; scrollbar-width: none; }
.pf::-webkit-scrollbar { display: none; }
.pf__item { flex: 0 0 78%; display: flex; flex-direction: column; gap: 14px; scroll-snap-align: start; }
.pf__item--mobile { flex-basis: 44%; }
.pf__shot { position: relative; margin: 0; height: clamp(180px, 16vw, 210px); border-radius: 18px; overflow: hidden; background: #0B0D10; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 44px -24px rgba(0, 0, 0, .8); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.pf__shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 38%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.pf__shot img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 0 0; transition: transform 1s var(--ease); }
.pf__item--mobile .pf__shot { background: radial-gradient(70% 60% at 50% 30%, rgba(56, 132, 255, .22), rgba(11, 13, 16, 1) 75%); }
.pf__item--mobile .pf__shot img { object-fit: cover; object-position: 50% 0; padding: 14px 18px 0; }
.pf__item:hover .pf__shot { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 54px -24px rgba(0, 0, 0, .85); }
.pf__item:hover .pf__shot img { transform: scale(1.04); }
.pf__cap { display: flex; flex-direction: column; gap: 2px; }
.pf__tag { color: #8EB8FF; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.pf__cap b { color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.pf__cap small { color: #8A919B; font-size: 13.5px; }
@media (min-width: 960px) {
	.pf { display: grid; grid-template-columns: 1fr 1fr 1fr .5fr; gap: 18px; overflow: visible; margin: 0; padding: 0; }
	.pf--course { grid-template-columns: 1.2fr 1.2fr .62fr; gap: 24px; }
}
/* variante chiara, pagina videocorso */
.pf--course .pf__shot { height: clamp(200px, 18vw, 240px); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.pf--course .pf__item--mobile .pf__shot { background: radial-gradient(70% 60% at 50% 30%, rgba(56, 132, 255, .18), #EEF1F5 75%); }
.pf--course .pf__tag { color: var(--red-text); }
.pf--course .pf__cap b { color: var(--ink); font-size: 18px; }
.pf--course .pf__cap p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Logo IBKR accanto a "Il metodo" */
.head.head--logo { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
.head--logo > :not(.head__logo) { grid-column: 1; max-width: 720px; }
.head__logo { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: end; width: auto; height: clamp(64px, 10vw, 150px); filter: drop-shadow(0 18px 24px rgba(215, 25, 42, .18)); }

/* ==========================================================================
   Avatar a fotogrammi
   ========================================================================== */
.avatar { position: relative; aspect-ratio: 1000 / 1472; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.avatar--hero { cursor: grab; }
.avatar--hero.is-dragging { cursor: grabbing; }
.avatar__body { position: absolute; inset: 0; animation: breathe 6s ease-in-out infinite; transform-origin: 50% 100%; }
.avatar__frame { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; opacity: 0; z-index: 0; -webkit-user-drag: none; pointer-events: none; }
.avatar__frame.is-prev { opacity: 1; z-index: 1; }
.avatar--hero .avatar__frame { filter: drop-shadow(0 28px 28px rgba(0, 0, 0, .38)); }
.avatar__frame.is-on { opacity: 1; z-index: 2; transition: opacity .09s linear; }
.avatar.is-posing .avatar__frame { transition: opacity .24s ease; }
.avatar__floor { position: absolute; z-index: -1; left: 50%; bottom: -6px; width: 58%; height: 30px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
@keyframes breathe { 50% { transform: translateY(-3px); } }

/* ==========================================================================
   Sezioni
   ========================================================================== */
.section { padding-top: var(--sect); }
.section--tight { padding-top: calc(var(--sect) * .6); }
.head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.head--center { margin-inline: auto; text-align: center; }
.head__lead { margin-top: 20px; color: var(--muted); font-size: clamp(17px, 1.45vw, 19px); line-height: 1.6; }

/* Metodo */
.features { display: grid; gap: 16px; }
.feature { padding: 30px; border-radius: var(--r-lg); background: var(--surface); transition: background-color .3s var(--ease); }
.feature h3 { margin: 26px 0 10px; }
.feature p { color: var(--muted); font-size: 16px; }
.feature__ico { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.feature__ico .ico { width: 22px; height: 22px; stroke-width: 1.6; }
@media (min-width: 860px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Videocorso */
.showcase { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 40px; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl); background: var(--surface); }
.showcase > * { min-width: 0; }
.showcase__light { display: none; }
.showcase h2 { margin-bottom: 28px; }
.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.ticks .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--green); stroke-width: 2.2; }
.ticks--sm li { font-size: 15px; }
.ticks--sm .ico { width: 16px; height: 16px; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.buy__price .num { display: block; color: var(--ink); font-size: 44px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.buy__price small { color: var(--faint); font-size: 13.5px; }

.player { align-self: center; padding: 10px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.player__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(60% 80% at 100% 0%, rgba(56, 132, 255, .22), transparent 65%), linear-gradient(160deg, var(--graphite-2), var(--graphite)); }
.player__play { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.player__play .ico { width: 22px; height: 22px; margin-left: 3px; }
.player__caption { position: absolute; left: 16px; bottom: 18px; color: rgba(255, 255, 255, .78); font-size: 12.5px; }
.player__caption b { color: #fff; font-weight: 600; }
.player__badge { position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px; color: var(--ink); background: var(--amber); font-size: 11.5px; font-weight: 700; }
.player__progress { position: absolute; left: 16px; right: 16px; bottom: 9px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.player__progress i { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: 3px; background: var(--red); }
.player__list { padding: 8px 6px 2px; }
.player__list li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.player__list li:last-child { border-bottom: 0; }
.player__n { color: var(--faint); font-family: var(--mono); font-size: 12px; }
.player__t { color: var(--ink); font-weight: 520; }
.player__d { color: var(--faint); font-size: 12.5px; }
.player__list li.is-done .player__n { color: var(--green); }
.player__more { display: block !important; color: var(--faint); font-size: 13px !important; text-align: center; }
@media (min-width: 960px) { .showcase { grid-template-columns: 1fr 1.05fr; gap: 64px; } }

/* Percorsi */
.plans { display: grid; gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 32px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.plan header p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.plan__price { display: flex; flex-direction: column; gap: 4px; min-height: 76px; justify-content: flex-end; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan__price .num { color: var(--ink); font-size: 44px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.plan__price small { color: var(--faint); font-size: 13.5px; }
.plan__price s { color: var(--faint); }
.plan__quote { color: var(--ink); font-size: 30px; font-weight: 540; letter-spacing: -.03em; line-height: 1.1; }
.plan .ticks { flex: 1; }
.plan--featured { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-lg); }
.plan__flag { position: absolute; top: -12px; left: 32px; padding: 5px 12px; border-radius: 999px; color: #fff; background: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Quiz + guida */
.lab { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 32px; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl); background: var(--surface); }
.lab > * { min-width: 0; }
.lab__light { display: none; }
.quiz { display: flex; flex-direction: column; gap: 18px; }
.quiz .eyebrow { margin-bottom: 0; }
.quiz__opts { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.quiz__opt { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 10px 18px 10px 12px; border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); text-align: left; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s; }
.quiz__opt:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-md); }
.quiz__opt kbd { width: 34px; height: 34px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: all .3s var(--ease); }
.quiz__opt span { display: flex; flex-direction: column; color: var(--ink); font-weight: 540; line-height: 1.25; }
.quiz__opt small { color: var(--faint); font-size: 12.5px; font-weight: 500; }
.quiz__opt.is-right { box-shadow: inset 0 0 0 1.5px var(--green), 0 8px 24px -10px rgba(18, 161, 90, .4); }
.quiz__opt.is-right kbd { color: #fff; background: var(--green); box-shadow: none; }
.quiz__opt.is-wrong { box-shadow: inset 0 0 0 1.5px var(--red); }
.quiz__opt.is-wrong kbd { color: #fff; background: var(--red); box-shadow: none; }
.quiz__opt.is-dim { opacity: .5; }
.quiz__feedback { padding: 14px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; animation: rise .45s var(--ease); }
.quiz__feedback--ok { color: #0B5E35; background: rgba(18, 161, 90, .09); }
.quiz__feedback--ko { color: #7A1420; background: rgba(215, 25, 42, .07); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.form { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-lg); }
.form > * { position: relative; z-index: 2; }
.form__tag { align-self: flex-start; padding: 5px 11px; border-radius: 999px; color: #6B4600; background: #FFF1CC; font-size: 12px; font-weight: 700; }
.form__lead { color: var(--muted); font-size: 15px; margin-top: -4px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span:not(.sr), .field legend { padding: 0; color: var(--muted); font-size: 13.5px; font-weight: 520; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 0 18px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 16px; transition: box-shadow .2s; }
.field textarea { min-height: 120px; padding: 14px 18px; resize: vertical; }
.field input::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(21, 24, 29, .08); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.check a { color: var(--ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 520; }
.notice--ok { color: #0B5E35; background: rgba(18, 161, 90, .1); }
.notice--err { color: #7A1420; background: rgba(215, 25, 42, .08); }
@media (min-width: 960px) { .lab { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; } }

/* Chi ti insegna */
.teacher { display: grid; gap: 40px; align-items: center; }
.teacher > * { min-width: 0; }
/* Ritratto "Chi ti insegna": foto vera su fondo grafite, nessuno scontorno */
.teacher__photo { position: relative; height: clamp(440px, 60vw, 600px); border-radius: var(--r-xl); overflow: hidden; isolation: isolate; background: #111419; box-shadow: var(--shadow-lg); }
.teacher__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform: scale(1.12); transform-origin: 50% 0; }
.teacher__light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 45% at 100% 0%, rgba(56, 132, 255, .22), transparent 70%), linear-gradient(180deg, transparent 62%, rgba(17, 20, 25, .9) 100%); }
.teacher__badge { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; padding: 12px 18px; border-radius: 16px; }
.teacher__badge > * { position: relative; z-index: 2; }
.teacher__badge b { color: #fff; font-weight: 600; }
.teacher__badge small { color: var(--on-dark-muted); font-size: 12.5px; }
.promises { display: flex; flex-direction: column; gap: 18px; margin: 32px 0; }
.promises li { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); font-size: 15.5px; }
.promises li > span { width: 40px; height: 40px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.promises .ico { width: 19px; height: 19px; stroke-width: 1.7; }
.promises b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 580; }
@media (min-width: 960px) { .teacher { grid-template-columns: .9fr 1.1fr; gap: 80px; } }

/* Video */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(60% 80% at 100% 0%, rgba(56, 132, 255, .22), transparent 65%), linear-gradient(160deg, var(--graphite-2), var(--graphite)); box-shadow: var(--shadow-lg); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; background: none; color: #fff; cursor: pointer; }
.yt__icon { width: 78px; height: 78px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .3s var(--ease); }
.yt__icon .ico { width: 26px; height: 26px; margin-left: 4px; }
.yt__play:hover .yt__icon { transform: scale(1.06); }
.yt__note { position: absolute; left: 20px; right: 20px; bottom: 16px; color: rgba(255, 255, 255, .55); font-size: 12px; text-align: center; }
.yt.is-playing .yt__play, .yt.is-playing .yt__note { display: none; }

/* FAQ */
.faq-grid { display: grid; gap: 24px; }
.faq-grid .head { margin-bottom: 0; }
.tg { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 10px 20px 10px 10px; border-radius: 999px; color: var(--ink); text-decoration: none; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.tg:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-md); }
.tg__ico { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #229ED9; }
.tg__ico .ico { width: 19px; height: 19px; margin-left: -2px; }
.tg b { display: block; font-size: 15px; font-weight: 580; }
.tg small { display: block; color: var(--faint); font-size: 13px; }
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { position: relative; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; color: var(--ink); font-size: 18px; font-weight: 540; letter-spacing: -.015em; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc__sign { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface); transition: background-color .3s, transform .4s var(--ease); }
.acc__sign::before, .acc__sign::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.6px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.acc__sign::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.acc[open] .acc__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc p { max-width: 640px; padding: 0 0 24px; color: var(--muted); font-size: 16px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; } .faq-grid .head { position: sticky; top: 120px; } }

/* Chiusura */
.closing { padding: var(--sect) 0; }
.closing__card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: clamp(56px, 9vw, 112px) var(--pad); border-radius: var(--r-xl); text-align: center; color: var(--on-dark); background: linear-gradient(180deg, var(--ink), var(--graphite)); }
.closing__card h2 { color: #fff; }
.closing__card h2 em { color: #fff; }
.closing__light { position: absolute; z-index: -1; inset: 0; background: radial-gradient(50% 75% at 100% 0%, var(--blue-glow), rgba(56, 132, 255, 0) 70%), radial-gradient(40% 60% at 0% 100%, rgba(215, 25, 42, .14), rgba(215, 25, 42, 0) 70%); pointer-events: none; }
.closing p { color: var(--on-dark-muted); font-size: clamp(17px, 1.45vw, 19px); }
.closing .actions { margin-top: 10px; }


/* ==========================================================================
   Pagine interne
   ========================================================================== */
.section-end { height: var(--sect); }
.hero--page { padding-bottom: clamp(72px, 10vw, 120px); }
.page-hero { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; max-width: calc(880px + var(--pad) * 2); }
.page-hero .chip { align-self: center; }
/* email di contatto nel footer */
.site-foot .site-foot__mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--on-dark); text-decoration: none; font-weight: 520; }
.site-foot .site-foot__mail svg { width: 18px; height: 18px; opacity: .7; }
.site-foot .site-foot__mail:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* occhiello editoriale (sostituisce la "pillola" nei titoli di pagina) */
.kicker { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--red); flex: none; }
.dark .kicker { color: var(--on-dark-muted); }
.dark .kicker::before { background: var(--red-on-dark); }
.page-hero .kicker { align-self: center; }
.page-hero .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .35; flex: none; }
.page-hero .lead { margin-inline: auto; max-width: 620px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 80px); }

.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 6px; border-radius: 999px; margin-top: 8px; }
.tabs a { position: relative; z-index: 2; padding: 10px 18px; border-radius: 999px; color: #C9CDD3; font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .2s, color .2s; }
.tabs a:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* Videocorso – hero */
.hero--course { padding-bottom: clamp(72px, 10vw, 120px); }
.course-hero { display: grid; gap: 40px; align-items: center; }
.course-hero > * { min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 28px; padding-top: 8px; }
.stats li { display: flex; flex-direction: column; gap: 2px; }
.stats b { color: #fff; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stats span { color: var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.buybox { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); }
.buybox > * { position: relative; z-index: 2; }
.buybox .eyebrow { margin: 0; }
.buybox__price .num { display: block; color: #fff; font-size: 56px; font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.buybox__price small { color: var(--faint); font-size: 13.5px; }
.ticks--dark li { color: #E6E8EB; font-size: 15.5px; }
.ticks--dark .ico { color: var(--green-on-dark); }
.buybox .btn--glass { min-height: 50px; }
.buybox__note { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--faint); font-size: 12.5px; }
.buybox__note .ico { width: 14px; height: 14px; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, auto); gap: 18px 36px; } }
@media (min-width: 960px) { .course-hero { grid-template-columns: 1.25fr 1fr; gap: 72px; } }

.feature__num { display: inline-flex; color: var(--red-text); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
.feature__num + h3 { margin-top: 18px; }
.features--two { margin-bottom: 40px; }
@media (min-width: 860px) { .features--two { grid-template-columns: 1fr 1fr; } }
.soon { display: inline-flex; padding: 5px 11px; border-radius: 999px; color: #6B4600; background: #FFF1CC; font-size: 12px; font-weight: 700; }
.soon + h3 { margin-top: 20px; }

/* Dispositivi illustrativi */
.devices { position: relative; min-height: 340px; }
.device { position: absolute; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--graphite-2), var(--graphite)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), var(--shadow-lg); }
.device__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #8A919B; font-family: var(--mono); font-size: 10.5px; }
.device__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.device__bar span { margin-left: 6px; }
.device svg { display: block; width: 100%; height: calc(100% - 37px); }
.device--desk { left: 0; top: 0; width: 82%; height: 250px; }
.device--web { right: 0; bottom: 0; width: 56%; height: 170px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.device--web .device__bar { color: var(--faint); border-color: var(--line); }
.device--web .device__bar i { background: var(--surface-2); }
.device__rows { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.device__rows span { height: 10px; border-radius: 6px; background: var(--surface-2); }
.device__rows span:nth-child(2) { width: 70%; }
.device__rows span:nth-child(3) { width: 85%; }
.device__rows span:nth-child(4) { width: 50%; }
.device--phone { left: 8%; bottom: -10px; width: 120px; height: 230px; border-radius: 26px; padding-top: 26px; box-shadow: 0 0 0 5px #2A2F37, var(--shadow-lg); }
.device--phone .device__rows span { background: rgba(255, 255, 255, .1); }
.device__notch { position: absolute; top: 8px; left: 50%; width: 40px; height: 6px; border-radius: 6px; transform: translateX(-50%); background: #2A2F37; }
.device--phone em { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-style: normal; color: #8A919B; font-family: var(--mono); font-size: 9.5px; }

/* Programma */
.acc--module summary { display: grid; grid-template-columns: 36px 1fr auto 30px; gap: 14px; }
.acc__n { color: var(--red-text); font-family: var(--mono); font-size: 13px; }
.acc__c { color: var(--faint); font-size: 13.5px; font-weight: 500; }
.acc--module p { padding-left: 50px; }
.gift { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding: 14px 16px; border-radius: 16px; background: #FFF8E6; box-shadow: inset 0 0 0 1px rgba(255, 179, 0, .35); color: var(--text); font-size: 15px; font-weight: 560; }
.gift__tag { padding: 4px 10px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 700; }
.guarantee { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; color: var(--muted); font-size: 15px; }
.guarantee > span { width: 40px; height: 40px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--green); background: rgba(18, 161, 90, .1); }
.guarantee .ico { width: 20px; height: 20px; }
.guarantee b { display: block; color: var(--ink); font-weight: 600; }
.closing__card .eyebrow { margin-bottom: 0; }

/* Barra d'acquisto mobile */
.buybar { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; transform: translateY(150%); transition: transform .5s var(--ease); }
.buybar > * { position: relative; z-index: 2; }
.buybar.is-in { transform: none; }
.buybar__price { color: #fff; font-size: 21px; font-weight: 650; letter-spacing: -.02em; margin-right: 8px; }
.buybar__sub { color: var(--on-dark-muted); font-size: 13px; }
@media (min-width: 1040px) { .buybar { display: none; } }

/* Percorsi */
.split { display: grid; gap: 40px; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 960px) { .split { grid-template-columns: 1.15fr 1fr; gap: 80px; } }
.calendar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 32px 0; }
.calendar__week { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: var(--surface); }
.calendar__week span { color: var(--faint); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; }
.calendar__week i { padding: 7px 4px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 12.5px; font-style: normal; font-weight: 600; text-align: center; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts b { color: var(--ink); font-size: clamp(24px, 2.6vw, 32px); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.facts span { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.offer { gap: 20px; }
.plan__flag--amber { color: var(--ink); background: var(--amber); }
.offer__next { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.offer__next span { color: var(--faint); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.offer__next b { color: var(--ink); font-weight: 600; }
.offer__gift { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.tg__ico--sm { width: 28px; height: 28px; }
.tg__ico--sm .ico { width: 14px; height: 14px; }
.showcase--split { align-items: start; }
.showcase--split h2 { margin-bottom: 0; }
.showcase--split .plan { box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
@media (min-width: 960px) { .showcase--split { grid-template-columns: 1.2fr 1fr; } }

.planner { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.seg { display: inline-flex; align-self: flex-start; padding: 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 14.5px; font-weight: 560; cursor: pointer; transition: all .3s var(--ease); }
.seg button[aria-checked="true"] { color: #fff; background: var(--ink); box-shadow: 0 6px 14px -6px rgba(21, 24, 29, .5); }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 6px; height: 120px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.bars span { height: 6%; border-radius: 6px; background: var(--surface-2); transition: height .6s var(--ease), background .3s; }
.bars span.full { height: 100%; background: linear-gradient(180deg, #2A2F37, var(--ink)); }
.bars span.half { height: 50%; background: linear-gradient(180deg, #2A2F37, var(--ink)); }
.bars__axis { display: flex; justify-content: space-between; color: var(--faint); font-family: var(--mono); font-size: 11px; }
.planner__explain { color: var(--muted); font-size: 15.5px; }

.form--card { background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md); }
.form__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } .form__row--inline { grid-template-columns: 1fr auto; align-items: end; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-flex; padding: 9px 15px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); font-size: 14.5px; font-weight: 520; transition: all .2s; }
.pills input:checked + span { color: #fff; background: var(--ink); box-shadow: none; }
.pills input:focus-visible + span { outline: 2px solid #3884FF; outline-offset: 2px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B6470' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.form--inline { gap: 16px; }

/* Testi lunghi */
.prose { color: var(--text); font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 32px; }
.prose h3 { margin-top: 1.5em; font-size: 24px; }
.prose a { color: var(--red-text); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-foot { padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--graphite); color: var(--on-dark-muted); font-size: 14.5px; }
.site-foot__top { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-foot__brand p { margin-top: 14px; max-width: 300px; }
.site-foot__col { display: flex; flex-direction: column; gap: 10px; }
.site-foot__col h2 { margin-bottom: 4px; color: #fff; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.site-foot a { color: #C9CDD3; text-decoration: none; transition: color .2s; }
.site-foot a:hover { color: #fff; }
.site-foot .brand { color: #fff; }
.site-foot__legal { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; font-size: 12.5px; line-height: 1.65; color: var(--faint); }
.site-foot__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-foot__nocookie { display: inline-flex; align-items: center; gap: 7px; }
.site-foot__nocookie .ico { width: 14px; height: 14px; color: var(--green-on-dark); }
@media (min-width: 860px) { .site-foot__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ==========================================================================
   Samuel guida
   ========================================================================== */
.guide { position: fixed; z-index: 50; right: max(4px, env(safe-area-inset-right)); bottom: env(safe-area-inset-bottom); display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 10px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.guide.is-in { opacity: 1; transform: none; pointer-events: auto; }
.guide__figure { position: relative; flex: none; padding: 0; border: 0; background: none; cursor: pointer; }
.guide__figure { width: 104px; height: 132px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.guide__figure .avatar { display: block; position: absolute; left: 0; top: 0; width: 104px; }
.guide__figure .avatar__frame { filter: drop-shadow(0 6px 10px rgba(16, 24, 40, .25)); }
.guide__figure .avatar__frame[data-key="point"] { transform: scaleX(-1); }   /* indica verso i contenuti */
.guide__head { display: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line), 0 12px 28px -8px rgba(16, 24, 40, .35); transition: transform .3s var(--ease); }
.guide__figure:hover .guide__head { transform: scale(1.04); }
.guide__status { display: none; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2.5px #fff; }
.guide__bubble { background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88)) !important; max-width: min(280px, calc(100vw - 110px)); margin-bottom: 6px; padding: 12px 36px 13px 16px; border-radius: 18px 18px 6px 18px; transition: opacity .35s var(--ease), transform .35s var(--ease); transform-origin: 100% 100%; }
.guide__bubble > * { position: relative; z-index: 2; }
.guide__name { display: block; margin-bottom: 2px; color: var(--faint); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.guide__bubble p { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.42; transition: opacity .25s var(--ease); }
.guide__bubble p.is-swap { opacity: 0; }
.guide.is-quiet .guide__bubble { opacity: 0; transform: scale(.94) translateY(6px); pointer-events: none; }
.guide__close { position: absolute !important; top: 8px; right: 8px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--faint); background: transparent; cursor: pointer; }
.guide__close:hover { color: var(--ink); background: rgba(21, 24, 29, .06); }
.guide__close .ico { width: 13px; height: 13px; }
.has-buybar .guide { bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (max-width: 1039px) {
	.guide { gap: 0; }
	.guide__bubble { max-width: min(250px, calc(100vw - 130px)); margin-bottom: 64px; margin-right: -12px; padding: 10px 32px 11px 14px; }
	.guide__bubble p { font-size: 13.5px; }
	/* mentre scorri si fa da parte, quando ti fermi torna */
	.guide.is-in.is-scrolling { opacity: 0; transform: translateY(70%); pointer-events: none; transition-duration: .25s; }
}

@media (min-width: 1040px) {
	.guide { right: 12px; bottom: 0; gap: 0; }
	.guide__figure { width: 210px; height: 236px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
	.guide__figure .avatar { display: block; position: absolute; left: 0; top: 0; width: 210px; }
	.guide__head, .guide__status { display: none; }
	.guide__bubble { margin-bottom: 150px; margin-right: -26px; border-radius: 20px 20px 6px 20px; }
	.has-buybar .guide { bottom: 0; }
}

/* ==========================================================================
   Comparsa
   ========================================================================== */
@media (scripting: enabled) {
	.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
	.reveal.is-in { opacity: 1; transform: none; }
	html:not(.rv) .reveal { animation: reveal-fallback .6s 2.5s forwards; }
}
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
	.reveal { opacity: 1 !important; transform: none !important; }
}
@media (forced-colors: active) { .glass { border: 1px solid CanvasText; } }
@media print { .site-head, .guide, .hero__light { display: none !important; } }
@media (max-width: 480px) { .seg button { padding: 0 13px; font-size: 13.5px; white-space: nowrap; } }

@media (min-width: 960px) { .head.head--logo .head__logo { grid-row: 1 / span 3; } }

/* ==========================================================================
   Quiz a 8 domande
   ========================================================================== */
.lab.qz { display: flex; flex-direction: column; gap: 28px; }
.qz__head { display: grid; gap: 20px; align-items: end; }
.qz__head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.qz__head .head__lead { margin-top: 14px; }
.qz__progress { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.qz__count { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.qz__bar { position: relative; height: 6px; border-radius: 6px; background: rgba(21, 24, 29, .08); overflow: hidden; }
.qz__bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #2A2F37, var(--ink)); transition: width .6s var(--ease); }
@media (min-width: 860px) { .qz__head { grid-template-columns: 1fr 240px; } }
.qz__steps { list-style: none; margin: 0; padding: 0; }
.qz__step h3 { display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; font-size: clamp(20px, 2vw, 25px); }
.qz__step h3 .num { color: var(--red-text); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.qz.is-live .qz__step:not(.is-on), .qz.is-live .qz__result:not(.is-on), .qz:not(.is-live) .qz__result { display: none; }
.qz:not(.is-live) .qz__step + .qz__step { margin-top: 36px; }
.qz.is-live .qz__step.is-on, .qz__result.is-on { animation: rise .5s var(--ease); }
.qz .quiz__opts { display: grid; gap: 10px; }
@media (min-width: 860px) { .qz .quiz__opts { grid-template-columns: repeat(3, 1fr); } .qz .quiz__opt { align-items: flex-start; min-height: 96px; padding: 16px 18px 16px 14px; } }
.quiz__opt:disabled { cursor: default; }
.quiz__opt:disabled:hover { transform: none; }
.qz__after { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; min-height: 50px; }
.qz__fb { font-size: 15.5px; font-weight: 560; }
.qz__fb.is-ok { color: #0B7A45; }
.qz__fb.is-ko { color: #A3141F; }
.qz__step:not(.is-answered) .qz__next { visibility: hidden; }
.qz:not(.is-live) .qz__next { display: none; }
.qz__result { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md); }
.qz__score { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.qz__score b { color: var(--ink); font-size: clamp(48px, 6vw, 72px); font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.qz__score span { padding: 6px 14px; border-radius: 999px; color: #fff; background: var(--ink); font-size: 14px; font-weight: 600; }
.qz__msg { max-width: 640px; color: var(--text); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; }
.qz.is-live .qz__form:not(.is-open) { display: none; }
.qz__form.is-open { animation: rise .5s var(--ease); }
.qz__skip { margin: 0; }
.qz__skip .link { padding: 0 0 2px; border: 0; border-bottom: 1px solid var(--line-strong); background: none; cursor: pointer; font-size: 15px; }
.teacher__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.teacher__in .ico { width: 17px; height: 17px; color: #0A66C2; }
.btn:hover .teacher__in .ico, .teacher__in:hover .ico { transform: none; }

/* Videocorso: titolo + elenco sopra, piattaforme sotto */
.showcase.showcase--stack { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.showcase__top { display: grid; gap: 24px 64px; align-items: end; }
.showcase__top h2 { margin-bottom: 0; }
@media (min-width: 960px) { .showcase__top { grid-template-columns: 1fr 1fr; } }

/* Icona Rec */
.facts b.rec { display: inline-flex; align-items: center; gap: 8px; }
.facts b.rec .ico { width: .8em; height: .8em; color: var(--red); animation: rec-blink 2s ease-in-out infinite; }
@keyframes rec-blink { 50% { opacity: .35; } }

/* Software */
.apps { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 104px); }
.app { display: grid; gap: 32px; align-items: center; }
.app > * { min-width: 0; }
.app__copy { display: flex; flex-direction: column; gap: 14px; }
.app__copy .soon { align-self: flex-start; }
.app__name { font-size: clamp(34px, 4vw, 52px); }
.app__title { color: var(--ink); font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.app__text { color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.app__tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 4px; padding: 7px 14px; border-radius: 999px; color: #0B6B3D; background: rgba(18, 161, 90, .09); font-size: 13.5px; font-weight: 600; }
.app__tag .ico { width: 15px; height: 15px; }
.app__shot { position: relative; margin: 0; padding: 0 8px 8px; border-radius: 22px; background: linear-gradient(180deg, #F4F5F7, #E9EBEF); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.app__shot:hover { transform: translateY(-4px); }
.app__bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 8px; color: var(--faint); font-family: var(--mono); font-size: 11px; }
.app__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D4D7DD; }
.app__bar i:nth-child(1) { background: #FF5F57; } .app__bar i:nth-child(2) { background: #FEBC2E; } .app__bar i:nth-child(3) { background: #28C840; }
.app__bar span { margin-left: auto; margin-right: auto; transform: translateX(-24px); }
.app__shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(21, 24, 29, .06); }
@media (min-width: 960px) {
	.app { grid-template-columns: .82fr 1.18fr; gap: 64px; }
	.app--flip .app__copy { order: 2; }
}
.lab.qz { align-items: stretch; }
/* la nota della lavagna parte a destra di Samuel, che ne copre il lato sinistro */
.board__note { padding-left: 34%; }
@media (max-width: 959px) { .board { right: -2%; width: 84%; } .board__note { padding-left: 30%; font-size: 12.5px; } }
@media (min-width: 960px) { .board__note { padding-left: 27%; } }

/* ==========================================================================
   Footer: powered by EDCloud
   ========================================================================== */
.site-foot__powered { display: flex; justify-content: center; padding-top: 28px; }
.powered { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; color: #A9AFB8 !important; font-size: 12.5px; letter-spacing: .02em; text-decoration: none;
	background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .1);
	transition: color .3s, box-shadow .3s, transform .3s var(--ease); }
.powered b { color: #fff; font-weight: 600; letter-spacing: 0; }
.powered__dot { width: 6px; height: 6px; border-radius: 50%; background: #3884FF; box-shadow: 0 0 0 3px rgba(56, 132, 255, .2); }
.powered:hover { color: #fff !important; transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(56, 132, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -10px rgba(56, 132, 255, .5); }

/* ==========================================================================
   Avviso provvisorio "Nuovo sito"
   ========================================================================== */
.notice-pop { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; }
.notice-pop[hidden] { display: none; }
.notice-pop__veil { position: absolute; inset: 0; background: rgba(8, 10, 13, .55); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); opacity: 0; transition: opacity .5s var(--ease); }
.notice-pop__card { position: relative; width: min(720px, 100%); display: grid; grid-template-columns: 1fr; border-radius: 30px; overflow: hidden; color: var(--on-dark);
	background: linear-gradient(150deg, rgba(36, 41, 50, .82), rgba(18, 21, 26, .78)) !important;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .18), 0 40px 100px -30px rgba(0, 0, 0, .8) !important;
	opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.notice-pop.is-open .notice-pop__veil { opacity: 1; }
.notice-pop.is-open .notice-pop__card { opacity: 1; transform: none; }
.notice-pop.is-closing .notice-pop__veil, .notice-pop.is-closing .notice-pop__card { opacity: 0; transition-duration: .35s; }
.notice-pop.is-closing .notice-pop__card { transform: translateY(10px) scale(.98); }
.notice-pop__card > * { position: relative; z-index: 2; }
.notice-pop__light { position: absolute !important; z-index: 0 !important; inset: 0; pointer-events: none;
	background: radial-gradient(60% 70% at 100% 0%, rgba(56, 132, 255, .32), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(215, 25, 42, .18), transparent 70%); }
.notice-pop__face { margin: 0; height: 190px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.notice-pop__face img { width: 240px; height: auto; max-width: none; margin-top: 8px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.notice-pop__body { display: flex; flex-direction: column; gap: 14px; padding: 6px 26px 28px; }
.notice-pop__tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; color: #C9CDD3; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 520; }
.notice-pop h2 { color: #fff; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.08; letter-spacing: -.03em; }
.notice-pop__body > p { color: #C2C7CF; font-size: 15.5px; line-height: 1.6; }
.notice-pop__small { font-size: 13.5px !important; color: #9AA1AB !important; }
.notice-pop__small a { color: #fff; text-underline-offset: 3px; }
.notice-pop__actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; flex-wrap: wrap; }
.notice-pop__sign { color: #9AA1AB; font-size: 14px; font-style: italic; }
.notice-pop__x { position: absolute !important; top: 14px; right: 14px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #C9CDD3; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); cursor: pointer; z-index: 3 !important; transition: background-color .2s, color .2s; }
.notice-pop__x:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.notice-pop__x .ico { width: 15px; height: 15px; }
@media (min-width: 680px) {
	.notice-pop__card { grid-template-columns: 250px 1fr; min-height: 340px; }
	.notice-pop__face { height: auto; align-items: flex-end; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
	.notice-pop__face img { width: 340px; margin: 22px 0 -150px -34px; }
	.notice-pop__body { padding: 40px 40px 36px 8px; justify-content: center; }
}
.notice-lock { overflow: hidden; }

.notice-pop__card:focus { outline: none; }
