/* Matcha Executive Lab · v2
   Reference: MasterClass / MasterClass Executive. Dark cinematic pages, image-led cards,
   one bold condensed display face, one cobalt accent, no rules, no eyebrow labels.
   Single deliberate dark theme; legal pages switch to a light reading surface. */

:root {
  --bg: #0B0C0F;
  --bg-2: #15171C;
  --bg-3: #1F2229;
  --line-soft: #2A2E37;
  --text: #F5F6F8;
  --text-2: #B9BEC9;
  --muted: #8C92A1;
  --accent: #127C56;
  --accent-hover: #1C8C63;
  --accent-soft: #8FD6B4;
  --ok: #3FBF8F;
  --paper: #FFFFFF;
  --ink: #15171C;
  --ink-2: #4B5160;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-display: clamp(2.9rem, 1.1rem + 6.4vw, 7rem);
  --fs-h1: clamp(2.4rem, 1.2rem + 4.2vw, 5rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.1vw, 3.1rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem);
  --fs-lead: clamp(1.1rem, 1.02rem + 0.4vw, 1.35rem);
  --fs-body: 1.0625rem;

  --pad: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px));
  --pad-r: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px));
  --wrap: 1320px;
  --section: clamp(4rem, 2.5rem + 4.4vw, 7.5rem);
  --r: 10px;
  --r-sm: 6px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 72px;
  color-scheme: dark;
}

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: #fff; color: #000; padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Layout */
.wrap { width: 100%; max-width: calc(var(--wrap) + 112px); margin-inline: auto; padding-left: var(--pad); padding-right: var(--pad-r); }
.narrow { max-width: 880px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.section--raised { background: #111318; }
.section:not(.section--raised) + .section:not(.section--raised), .section--raised + .section--raised { padding-top: calc(var(--section) * .45); }
.cine + .section { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 2rem); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 1024px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: var(--stack, 1.25rem); }

/* Type */
.display { font-size: var(--fs-display); font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.005em; }
.h1 { font-size: var(--fs-h1); font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: 0.95; }
@media (max-width: 359px) { :root { --fs-h1: 2.1rem; --fs-display: 2.6rem; } }
.h2 { font-size: var(--fs-h2); font-weight: 700; font-stretch: 88%; line-height: 1.06; letter-spacing: -0.01em; }
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; letter-spacing: -0.005em; }
.statement { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); font-weight: 700; font-stretch: 88%; line-height: 1.08; letter-spacing: -0.015em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 46ch; }
.text-2 { color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.xs { font-size: 0.82rem; }
.accent { color: var(--accent-soft); }
.tnum { font-variant-numeric: tabular-nums; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); flex-wrap: wrap; }
.head p { max-width: 52ch; }
.link { color: var(--accent-soft); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.link:hover { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: .8rem 1.5rem; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 700; font-size: 1rem; letter-spacing: 0; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--light { background: #fff; color: #0B0C0F; }
.btn--light:hover { background: #E3E6EE; }
.btn--ghost { background: transparent; color: var(--text); border-color: #3A3F4B; }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .93rem; }
.btn[disabled] { cursor: not-allowed; background: var(--bg-3); color: var(--muted); border-color: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: none; color: var(--text); }
.text-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; } }

.badge { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: .82rem; font-weight: 600; }
.badge--accent { background: var(--accent); }

/* Announcement + header */
.topbar { background: var(--accent); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: center; align-items: center; gap: .4rem 1rem; min-height: 42px; padding-block: 8px; text-align: center; flex-wrap: wrap; }
.topbar b { font-weight: 700; }
.topbar a { color: #fff; font-weight: 700; text-underline-offset: .2em; }
@media (max-width: 640px) { .topbar .tb-long { display: none; } }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(11,12,15,.92); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(11,12,15,.78); backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px); } }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; flex: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 800; font-stretch: 80%; font-size: 1.32rem; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand-name span { font-weight: 500; color: var(--text-2); }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .25rem; }
.nav a { display: block; padding: .55rem .85rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; color: var(--text-2); transition: color .2s, background-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
@media (max-width: 1380px) { .nav ul { gap: 0; } .nav a { padding-inline: .6rem; } }
.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.login-link { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .8rem; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text-2); border-radius: var(--r-sm); }
.login-link:hover { color: #fff; }
.login-link svg { width: 15px; height: 15px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-sm); border: 0; background: var(--bg-2); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle span { display: inline-flex; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: inline-flex; }
.mobile-nav { display: none; }
@media (max-width: 1180px) {
  .nav, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: block; position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49; background: var(--bg); overflow-y: auto; padding: 1.25rem max(20px, env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
  .mobile-nav ul { list-style: none; display: grid; gap: .25rem; }
  .mobile-nav li a { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--bg-2); text-decoration: none; font-weight: 700; font-size: 1.25rem; }
  .mobile-nav li a svg { width: 18px; height: 18px; color: var(--muted); }
  .mobile-nav .btn-row { margin-top: 1.25rem; }
  .mobile-nav .btn { flex: 1 1 100%; }
}

/* Hero (home) */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,12,15,.92) 0%, rgba(11,12,15,.72) 38%, rgba(11,12,15,.15) 72%, rgba(11,12,15,0) 100%), linear-gradient(0deg, rgba(11,12,15,1) 0%, rgba(11,12,15,0) 30%); }
.hero .wrap { padding-block: clamp(6rem, 4rem + 8vw, 11rem) clamp(3.5rem, 2.5rem + 3vw, 6rem); }
.hero-content { max-width: 720px; }
.hero .lead { margin-top: 1.6rem; color: #D5D9E2; }
.hero .btn-row { margin-top: 2.2rem; }
@media (max-width: 760px) { .hero { min-height: 0; } .hero::after { background: linear-gradient(0deg, rgba(11,12,15,1) 8%, rgba(11,12,15,.75) 55%, rgba(11,12,15,.35) 100%); } }

/* Apertura cinematografica (home): attiva solo con JS e senza riduzione del movimento.
   Senza .cine-on la sezione resta l'hero statico qui sopra. */
.cine-stage { display: contents; }
.cine-shade, .cine-veil, .cine-hint, .cine-mask, .cine-brand, .cine-canvas { display: none; }
.cine { --matcha: min(23vw, 46vh); }
.cine-on .topbar { position: relative; z-index: 51; }
.cine-on .cine { display: block; height: 420vh; height: 420svh; min-height: 0; overflow: visible; margin-top: calc(-1 * var(--chrome, 114px)); background: var(--bg); }
.cine-on .cine::after { display: none; }
.cine-on .cine-stage { display: flex; align-items: flex-end; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.cine-on .cine .hero-bg { z-index: -2; }
.cine-on .cine .hero-bg img { transform: scale(1.16); transform-origin: 50% 50%; }
.cine-on .cine-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--ease); }
.cine-on .cine.has-seq .cine-canvas { opacity: 1; }
.cine-on .cine.has-seq .hero-bg img { visibility: hidden; transition: visibility 0s linear .7s; }
.cine-on .cine-veil { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: rgba(11,12,15,.42); }
.cine-on .cine-shade { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(11,12,15,.9) 0%, rgba(11,12,15,.66) 38%, rgba(11,12,15,.12) 72%, rgba(11,12,15,0) 100%), linear-gradient(0deg, rgba(11,12,15,1) 0%, rgba(11,12,15,0) 34%); }
/* la parola: fondo pieno, lettere bianche in moltiplica, quindi il video si vede solo dentro le lettere */
.cine-on .cine-mask, .cine-on .cine-brand { display: flex; flex-direction: column; position: absolute; inset: 0; align-items: center; justify-content: center; padding: var(--chrome, var(--header-h)) 0 clamp(4.5rem, 13vh, 7rem); pointer-events: none; }
.cine-on .cine-mask { z-index: 0; background: var(--bg); mix-blend-mode: multiply; }
.cine-word { overflow: hidden; padding: .03em .02em; }
.cine-word span { display: block; color: #fff; font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: var(--matcha); line-height: .78; letter-spacing: -.012em; transition: transform 1.5s var(--ease); }
.cine-on .cine:not(.is-ready) .cine-word span { transform: translateY(104%); }
/* "Executive Lab" sotto MATCHA: bianco pieno, fuori dalla maschera; nella maschera resta solo come spazio */
.cine-sub { margin: calc(var(--matcha) * .1) 0 0; padding-left: .52em; font-size: max(.82rem, calc(var(--matcha) * .1)); font-weight: 600; letter-spacing: .52em; line-height: 1; text-transform: uppercase; white-space: nowrap; color: #fff; }
.cine-mask .cine-sub { visibility: hidden; }
.cine-on .cine-brand { z-index: 1; }
.cine-brand .cine-word { visibility: hidden; }
.cine-brand .cine-sub { transition: opacity 1.1s var(--ease) .75s, transform 1.3s var(--ease) .75s; }
.cine-on .cine:not(.is-ready) .cine-brand .cine-sub { opacity: 0; transform: translateY(.9em); }
.cine-on .cine .hero-content { animation: none; }
.cine-on .cine .wrap { padding-top: 0; }
.cine-on .cine-line { display: block; width: max-content; max-width: none; white-space: nowrap; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.cine-on .cine-in { display: inline-block; transform: translateY(110%); }
.cine-on .cine-rise { opacity: 0; transform: translateY(28px); }
.cine-on .cine.cine-focus .cine-rise, .cine-on .cine.cine-focus .cine-in { opacity: 1 !important; transform: none !important; }
.cine-on .cine-hint { display: flex; flex-direction: column; align-items: center; gap: .7rem; position: absolute; z-index: 1; left: 50%; bottom: max(1.6rem, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; pointer-events: none; opacity: 0; }
.cine-hint i { display: block; width: 1px; height: 44px; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0)); transform-origin: 50% 0; animation: cine-hint 2.2s var(--ease) infinite; }
@keyframes cine-hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .cine-on .cine { height: 340vh; height: 340svh; }
  .cine-on .cine-shade { background: linear-gradient(0deg, rgba(11,12,15,1) 10%, rgba(11,12,15,.78) 52%, rgba(11,12,15,.3) 100%); }
  .cine .display { font-size: min(var(--fs-display), 10.6vw); }
  .cine { --matcha: min(26.5vw, 44vh); }
  .cine-sub { margin-top: calc(var(--matcha) * .14); letter-spacing: .42em; padding-left: .42em; }
}

/* Page hero (interior) */
.page-hero { padding-block: clamp(3.5rem, 2.5rem + 4vw, 7rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.page-hero .lead { margin-top: 1.5rem; }
.page-hero .btn-row { margin-top: 2rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.crumbs li + li::before { content: "›"; margin-right: .45rem; color: #4A4F5C; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.wide-media { border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.wide-media img { width: 100%; aspect-ratio: 16 / 7.5; object-fit: cover; }
@media (max-width: 760px) { .wide-media img { aspect-ratio: 4 / 3; } }

/* Key facts */
.facts { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 1.5rem 2rem; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); margin: 0; }
.facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .45rem 0 0; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
@media (max-width: 1024px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.values h3 { font-size: 1.25rem; font-weight: 700; }
.values p { margin-top: .6rem; color: var(--text-2); font-size: .98rem; }
@media (max-width: 1024px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* Image cards */
.icard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; border-radius: var(--r); overflow: hidden; background: var(--bg-2); color: #fff; text-decoration: none; isolation: isolate; }
.icard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.icard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,9,12,.95) 0%, rgba(8,9,12,.6) 38%, rgba(8,9,12,0) 70%); }
a.icard:hover > img { transform: scale(1.04); }
.icard .body { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.icard h3 { font-size: clamp(1.35rem, 1.15rem + .6vw, 1.75rem); font-weight: 800; font-stretch: 85%; line-height: 1.1; }
.icard p { margin-top: .6rem; color: #CDD2DC; font-size: .95rem; line-height: 1.5; }
.icard .badge { position: absolute; top: 1rem; left: 1rem; }
.icard--wide { min-height: clamp(440px, 36vw, 600px); }
.icard--wide::after { background: linear-gradient(90deg, rgba(8,9,12,.92) 0%, rgba(8,9,12,.6) 45%, rgba(8,9,12,.05) 80%), linear-gradient(0deg, rgba(8,9,12,.6), rgba(8,9,12,0) 40%); }
.icard--wide .body { padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); max-width: 760px; }
.icard--wide h3 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); font-stretch: 75%; text-transform: uppercase; line-height: .95; }
.icard--wide p { font-size: 1.05rem; max-width: 52ch; }
.icard--wide .btn-row { margin-top: 1.6rem; }
@media (max-width: 640px) { .icard { min-height: 400px; } .icard--wide { min-height: 640px; } .icard--wide .body { padding-top: 4.5rem; } .icard--wide::after { background: linear-gradient(0deg, rgba(8,9,12,.95) 10%, rgba(8,9,12,.55) 60%, rgba(8,9,12,.2) 100%); } }

/* Carousel */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.rail-head p { margin-top: .8rem; }
.rail-nav { display: flex; gap: .5rem; }
.rail-nav button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--bg-2); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, opacity .2s; }
.rail-nav button:hover { background: var(--bg-3); }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail-nav svg { width: 18px; height: 18px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail--3 { grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); }
@media (max-width: 1024px) { .rail, .rail--3 { grid-auto-columns: 44%; } }
@media (max-width: 640px) { .rail, .rail--3 { grid-auto-columns: 82%; } }

/* Surface cards (no borders) */
.scard { background: var(--bg-2); border-radius: var(--r); padding: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.scard h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.scard p { color: var(--text-2); font-size: .97rem; }
.scard .foot { margin-top: auto; padding-top: .6rem; }

/* Media */
.media { border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--43 img { aspect-ratio: 4 / 3; }
.media--34 img { aspect-ratio: 3 / 4; }
.media--wide img { aspect-ratio: 16 / 10; }

/* Check list */
.checks { list-style: none; display: grid; gap: .85rem; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .75rem; color: var(--text-2); }
.checks li svg { width: 20px; height: 20px; color: var(--accent-soft); margin-top: 2px; }
.checks li b { color: var(--text); font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); counter-reset: s; list-style: none; }
.step::before { counter-increment: s; content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 1.1rem; }
.step h3 { font-size: 1.2rem; font-weight: 700; }
.step p { margin-top: .5rem; color: var(--text-2); font-size: .96rem; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Accordion */
.acc { display: grid; gap: .6rem; }
.acc details { background: var(--bg-2); border-radius: var(--r-sm); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1.15rem 1.35rem; font-weight: 700; font-size: 1.05rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary > svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); color: var(--text-2); }
.acc details[open] summary > svg { transform: rotate(180deg); }
.acc .answer { padding: 0 1.35rem 1.35rem; color: var(--text-2); max-width: 80ch; }
.acc .answer > * + * { margin-top: .7rem; }
.acc summary .sub { display: block; font-weight: 500; font-size: .88rem; color: var(--muted); margin-top: .2rem; }
.mod-n { color: var(--accent-soft); margin-right: .55rem; }
.lessons { list-style: none; display: grid; gap: .55rem; }
.lessons li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 0 .8rem; color: var(--text); }
.lessons li em { font-style: normal; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lessons li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.simbox { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-sm); background: var(--bg-3); color: var(--text-2); }
.simbox b { color: #fff; }

/* Faculty placeholders */
.prof { background: var(--bg-2); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.prof .ph { aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 1.1rem 1.25rem; background: radial-gradient(120% 90% at 85% 0%, rgba(18,124,86,.45), rgba(18,124,86,0) 60%), linear-gradient(180deg, #1A1D24, #121419); font-weight: 800; font-stretch: 75%; font-size: 3rem; line-height: 1; color: rgba(255,255,255,.9); }
.prof .info { padding: 1.1rem 1.25rem 1.35rem; }
.prof h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.prof p { margin-top: .35rem; font-size: .88rem; color: var(--muted); }

/* Certificate visual */
.cert { background: #F6F7FA; color: var(--ink); border-radius: var(--r); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.cert .top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cert .brand { color: var(--ink); }
.cert .brand-name span { color: var(--ink-2); }
.cert .kind { margin-top: 2.2rem; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.cert .title { margin-top: .5rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); font-weight: 800; font-stretch: 80%; line-height: 1.02; text-transform: uppercase; }
.cert .who { margin-top: 1.6rem; font-size: 1.15rem; font-weight: 600; }
.cert .meta { margin-top: 1.4rem; display: flex; gap: 2rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); }
.cert .meta b { display: block; color: var(--ink); font-size: 1rem; }
.cert .code { margin-top: 1.4rem; font-size: .84rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cert .stamp { font-size: .78rem; font-weight: 700; color: var(--ink-2); background: #E6E9F0; padding: .3rem .65rem; border-radius: 999px; }

/* Player mock (platform) */
.player { background: var(--bg-2); border-radius: 14px; padding: 12px; box-shadow: 0 60px 100px -50px rgba(0,0,0,.9); }
.player-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 12px; }
.screen { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.screen img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.screen .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; }
.screen .play svg { width: 22px; height: 22px; color: #0B0C0F; margin-left: 3px; }
.screen .cap { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .82rem; color: #fff; }
.screen .bar { position: absolute; left: 14px; right: 14px; bottom: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); }
.screen .bar i { display: block; height: 100%; width: 38%; border-radius: 4px; background: var(--accent); }
.playlist { display: grid; gap: 4px; align-content: start; }
.playlist .pl-title { padding: 6px 10px 10px; }
.playlist .pl-title b { display: block; font-size: .95rem; }
.playlist .pl-title span { font-size: .8rem; color: var(--muted); }
.pl-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; font-size: .84rem; color: var(--text-2); }
.pl-item i { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-3); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: .75rem; font-weight: 700; color: var(--text-2); }
.pl-item.done i { background: rgba(63,191,143,.18); color: var(--ok); }
.pl-item.now { background: var(--bg-3); color: #fff; }
.pl-item.now i { background: var(--accent); color: #fff; }
.pl-item em { font-style: normal; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.player-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px 6px 4px; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 6px; border-radius: 6px; background: var(--bg-3); }
.dots i.on { background: var(--accent); }
@media (max-width: 900px) { .player-grid { grid-template-columns: minmax(0, 1fr); } }

/* Login */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 620px; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.auth-media { position: relative; min-height: 280px; }
.auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-form { padding: clamp(1.75rem, 1rem + 3vw, 4rem); display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.note { padding: .9rem 1rem; border-radius: var(--r-sm); background: rgba(18,124,86,.16); color: #D6F0E3; font-size: .93rem; }
.or { text-align: center; color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .45rem; min-width: 0; }
.field label { font-size: .9rem; font-weight: 600; color: var(--text); }
.field .opt { color: var(--muted); font-weight: 400; }
.input { width: 100%; min-height: 52px; padding: .75rem .95rem; border-radius: var(--r-sm); border: 1px solid var(--line-soft); background: var(--bg-2); color: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: #6E7483; }
.input:hover { border-color: #4A505D; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(18,124,86,.3); }
.input[disabled] { opacity: .6; cursor: not-allowed; }
select.input option { background: #fff; color: #0B0C0F; }
textarea.input { min-height: 130px; resize: vertical; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .75rem; align-items: start; font-size: .88rem; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.form-msg { padding: .95rem 1.1rem; border-radius: var(--r-sm); background: rgba(63,191,143,.14); color: #CFF3E4; font-size: .93rem; }
.hp { position: absolute; left: -9999px; }

/* Contacts */
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.office { background: var(--bg-2); border-radius: var(--r); padding: 1.4rem 1.5rem; display: grid; gap: .35rem; align-content: start; min-width: 0; }
.office h3 { font-size: 1.12rem; font-weight: 700; }
.office p { color: var(--text-2); font-size: .92rem; }
.email-line { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .55rem; }
.email-line a { color: var(--accent-soft); font-weight: 600; text-decoration: none; word-break: break-all; }
.email-line a:hover { text-decoration: underline; }
.copy-btn { border: 0; background: var(--bg-3); color: var(--text-2); border-radius: 4px; padding: .3rem .6rem; font-size: .78rem; font-weight: 600; cursor: pointer; }
.copy-btn:hover { color: #fff; }
@media (max-width: 1024px) { .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .offices { grid-template-columns: minmax(0, 1fr); } }

/* Contatto in home */
.talk-direct { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.talk-direct dt { font-size: .86rem; font-weight: 600; color: var(--muted); }
.talk-direct dd { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 700; }
.talk-direct a { color: var(--text); text-decoration: none; }
.talk-direct a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* Metodo MATCHA: sequenza a lettere. Senza JS (o con riduzione del movimento) i sei passaggi sono un elenco;
   con .is-live la sezione resta ferma sullo schermo e scorrendo si accende una lettera alla volta, con la sua immagine e un solo testo. */
.intro-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.mx { position: relative; background: var(--bg); --mxw: min(19vw, 40vh); }
.mx-stage { padding-block: var(--section); }
.mx-media, .mx-mask, .mx-ghost { display: none; }
.mx-copy { width: 100%; max-width: calc(var(--wrap) + 112px); margin-inline: auto; padding-left: var(--pad); padding-right: var(--pad-r); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(2rem, 1rem + 4vw, 5rem); }
.mx-text[data-step="0"], .mx-text[data-step="7"] { grid-column: 1 / -1; }
.mx-text h3 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem); font-weight: 700; font-stretch: 88%; line-height: 1.05; letter-spacing: -.01em; }
.mx-text h3 b { color: var(--accent-soft); font-weight: inherit; }
.mx-text p { margin-top: 1rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 46ch; }
.mx-text .mx-end { margin-top: 0; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem); font-weight: 700; font-stretch: 88%; line-height: 1.05; color: #fff; }
.mx.is-live { height: 620vh; height: 620svh; }
.mx.is-live .mx-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; padding: 0; }
.mx.is-live .mx-media { display: block; position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.mx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transform: scale(1.1); transition: opacity .9s var(--ease), transform 2.6s var(--ease); }
.mx-img.is-on { opacity: 1; transform: scale(1); }
.mx.is-live .mx-mask, .mx.is-live .mx-ghost { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; padding: var(--mx-pt, var(--header-h)) 0 var(--mx-pb, clamp(12rem, 32vh, 17rem)); pointer-events: none; }
.mx.is-live .mx-mask { z-index: -1; background: #34373E; mix-blend-mode: multiply; }
.mx-word { display: flex; margin: 0; font-size: var(--mxw); font-weight: 800; font-stretch: 72%; line-height: .78; letter-spacing: -.012em; text-transform: uppercase; }
/* la scena resta in penombra, la lettera attiva la mostra in piena luce; le altre lettere sono solo contorno */
.mx-mask .mx-word span { color: #34373E; transition: color .8s var(--ease); }
.mx[data-step="0"] .mx-mask .mx-word span { color: #8E929C; }
.mx-mask .mx-word span.is-on { color: #fff; }
.mx-ghost .mx-word span { color: rgba(255,255,255,.03); -webkit-text-stroke: 1.5px rgba(255,255,255,.34); transition: -webkit-text-stroke-color .6s var(--ease), color .6s var(--ease); }
.mx-ghost .mx-word span.is-on { color: transparent; -webkit-text-stroke-color: rgba(255,255,255,.9); }
.mx[data-step="0"] .mx-ghost .mx-word span { color: transparent; -webkit-text-stroke-color: transparent; }
.mx.is-live .mx-copy { position: absolute; left: 0; right: 0; bottom: var(--mx-cb, clamp(2.2rem, 7vh, 4.5rem)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; text-align: center; }
.mx.is-live .mx-text { grid-area: 1 / 1; align-self: start; opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .7s var(--ease); }
.mx.is-live .mx-text.is-on { opacity: 1; transform: none; transition-delay: .18s; }
.mx.is-live .mx-text p { margin-inline: auto; color: #E2E5EC; }
.mx.is-live .mx-text { text-shadow: 0 1px 22px rgba(0,0,0,.65); }
@media (max-width: 760px) {
  .mx { --mxw: min(23vw, 26vh); }
  .mx-copy { grid-template-columns: minmax(0, 1fr); }
}

/* Impatto sociale: mappa e obiettivi */
.impact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.impact-note { margin-top: 1.4rem; max-width: 40ch; }
.impact-map { margin: 0; position: relative; }
.impact-map img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
@media (max-width: 860px) { .impact-grid { grid-template-columns: minmax(0, 1fr); } .impact-map { max-width: 420px; margin-inline: auto; } }
.sdg-head { max-width: 860px; }
.sdg-logo { display: inline-block; background: #fff; border-radius: var(--r); padding: clamp(1rem, .8rem + .8vw, 1.5rem) clamp(1.2rem, .9rem + 1vw, 1.9rem); margin-bottom: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); max-width: 100%; }
.sdg-logo img { display: block; width: min(380px, 70vw); height: auto; }
.sdg-head .text-2 { margin-top: 1rem; max-width: 62ch; }
.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, .7rem + 1vw, 1.6rem); margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.goal { display: grid; grid-template-columns: clamp(104px, 4.5rem + 4vw, 140px) minmax(0, 1fr); gap: clamp(.9rem, .7rem + .6vw, 1.3rem); align-items: start; background: var(--bg-2); border-radius: var(--r); padding: clamp(.9rem, .7rem + .6vw, 1.2rem); }
.goal img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.goal p { color: var(--text-2); font-size: .95rem; padding-top: .2rem; }
.sdg-note { margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); max-width: 92ch; }
@media (max-width: 1100px) { .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .goals { grid-template-columns: minmax(0, 1fr); } }

/* Capitoli allo scroll (impegni): foto ferma a sinistra, capitoli che scorrono a destra */
.chap-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.chap-media { position: sticky; top: calc(var(--header-h) + 24px); height: calc(100vh - var(--header-h) - 48px); height: calc(100svh - var(--header-h) - 48px); }
.chap-frame { position: relative; height: 100%; border-radius: var(--r); overflow: hidden; background: var(--bg-2); isolation: isolate; }
.chap-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 1.8s var(--ease); }
.chap-frame img.is-on { opacity: 1; transform: none; }
.chap-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(11,12,15,.6) 0%, rgba(11,12,15,0) 30%); }
.chap-count { position: absolute; left: 1.4rem; bottom: 1.2rem; z-index: 2; font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.78); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.chap-count b { color: #fff; font-weight: 800; }
.chap-head { padding-top: 2rem; }
.chap-head .lead { margin-top: 1rem; }
.chap { min-height: 78vh; min-height: 78svh; display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding-block: 3rem; }
.chap-fig { font-size: clamp(5rem, 2.5rem + 8vw, 11rem); font-weight: 800; font-stretch: 72%; line-height: .85; letter-spacing: -.02em; color: #fff; }
.chap-title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); font-weight: 800; font-stretch: 80%; line-height: 1.05; }
.chap .text-2 { max-width: 46ch; font-size: 1.08rem; }
.chap .checks { margin-top: .4rem; max-width: 54ch; }
.chap-head + .chap { min-height: 62vh; min-height: 62svh; }
.chap-pic { display: none; }
/* i capitoli non attivi restano leggibili: titoli grandi almeno 3:1, testi almeno 4,5:1 */
.chapters.is-js .chap > * { transition: opacity .6s var(--ease); }
.chapters.is-js .chap:not(.is-active) .chap-fig, .chapters.is-js .chap:not(.is-active) .chap-title { opacity: .45; }
.chapters.is-js .chap:not(.is-active) > p:not(.chap-fig), .chapters.is-js .chap:not(.is-active) .checks { opacity: .72; }
@media (max-width: 860px) {
  .chap-grid { grid-template-columns: minmax(0, 1fr); }
  .chap-media { display: none; }
  .chap-head { padding-top: 0; }
  .chap, .chap-head + .chap { min-height: 0; padding-block: 2rem; }
  .chap-pic { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); margin-bottom: .5rem; }
  .chap-fig { font-size: clamp(4.2rem, 2rem + 12vw, 6.5rem); }
  .chapters.is-js .chap:not(.is-active) > * { opacity: 1; }
}

/* CTA band */
.cta { background: var(--bg-2); border-radius: 14px; padding: clamp(2rem, 1.5rem + 3vw, 4rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta .h2 { max-width: 22ch; }
.cta--accent { background: var(--accent); }
.cta--accent .text-2 { color: #fff; }

/* SDG */
.sdg { display: flex; flex-wrap: wrap; gap: .6rem; }
.sdg span { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .95rem; border-radius: 999px; background: var(--bg-2); font-weight: 600; font-size: .92rem; }
.sdg b { color: var(--accent-soft); font-weight: 800; }

/* Commitments */
.commit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 1rem + 3vw, 5rem); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.commit h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem); font-weight: 800; font-stretch: 80%; line-height: 1.04; }
@media (max-width: 860px) { .commit { grid-template-columns: minmax(0, 1fr); } }

/* Big dates */
.bignums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.bignum { background: var(--bg-2); border-radius: var(--r); padding: 1.6rem 1.5rem; }
.bignum b { display: block; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 800; font-stretch: 78%; line-height: 1; color: #fff; }
.bignum h3 { margin-top: 1rem; font-size: 1.05rem; }
.bignum p { margin-top: .4rem; font-size: .9rem; color: var(--text-2); }
@media (max-width: 1024px) { .bignums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bignums { grid-template-columns: minmax(0, 1fr); } }

/* Sticky programme nav */
.subnav { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 40; background: rgba(11,12,15,.92); }
@supports (backdrop-filter: blur(8px)) { .subnav { background: rgba(11,12,15,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.subnav .wrap { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.subnav ul { list-style: none; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li a { display: block; padding: .55rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--text-2); white-space: nowrap; }
.subnav li a:hover { color: #fff; }
.subnav li a.is-active { background: #fff; color: #0B0C0F; }
@media (max-width: 760px) { .subnav .btn { display: none; } }

/* Footer */
.site-footer { background: #08090B; color: var(--text-2); padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: .93rem; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 2.5rem; padding-bottom: 3rem; }
.foot-brand p { margin-top: 1.1rem; max-width: 36ch; color: var(--muted); }
.foot-col h2 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.foot-col ul { list-style: none; display: grid; gap: .6rem; }
@media (max-width: 960px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-top { grid-template-columns: minmax(0, 1fr); } }
.foot-legal { display: flex; justify-content: space-between; gap: 1.25rem 3rem; flex-wrap: wrap; align-items: center; }
.foot-legal .company { font-size: .84rem; color: var(--muted); }
.soon { display: inline-block; padding: .18rem .6rem; border-radius: 999px; background: var(--bg-3); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em; margin-left: .35rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .84rem; }
.foot-links button { background: none; border: 0; padding: 0; color: var(--text-2); cursor: pointer; font-size: .84rem; }
.foot-links button:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: .8rem; color: var(--muted); }

/* Cookie */
.cookie { position: fixed; z-index: 80; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(392px, calc(100% - 32px)); background: rgba(21,23,28,.96); border-radius: 12px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.8); padding: 1rem 1.1rem 1.05rem; display: grid; gap: .85rem; font-size: .86rem; line-height: 1.45; color: var(--text-2); }
@supports (backdrop-filter: blur(8px)) { .cookie { background: rgba(21,23,28,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); } }
.cookie:not([hidden]) { animation: cookie-in .55s var(--ease) both; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 761px) { .cookie { left: auto; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); } }
.cookie b { color: #fff; font-weight: 700; }
.cookie .btns { display: flex; align-items: center; gap: .5rem; }
.cookie .btn { flex: 1 1 0; min-height: 40px; padding: .45rem .8rem; font-size: .86rem; }
.cookie-more { flex: none; margin-left: .2rem; padding: .5rem .3rem; border: 0; background: none; color: var(--text-2); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.cookie-more:hover { color: #fff; }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: var(--bg-2); border-radius: 14px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: clamp(1.4rem, 1rem + 1vw, 2.2rem); display: grid; gap: 1rem; }
.pref { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1rem; border-radius: var(--r-sm); background: var(--bg-3); }
.pref h3 { font-size: 1rem; }
.pref p { font-size: .87rem; color: var(--text-2); margin-top: .25rem; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 26px; background: #474C58; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { background: var(--accent); opacity: .55; }
.switch input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

/* Legal pages: light reading surface */
.paper { background: var(--paper); color: var(--ink); }
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.toc { list-style: none; display: grid; gap: .6rem; font-size: .93rem; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: #0B6B47; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }
.prose { max-width: 72ch; color: #2A2E37; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.85rem); font-weight: 800; font-stretch: 85%; line-height: 1.15; margin-top: 2.2em; color: var(--ink); }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a { color: #0B6B47; text-decoration: underline; text-underline-offset: .2em; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .8rem 1rem; background: #F2F4F8; vertical-align: top; }
.prose thead th { background: #E6E9F0; font-weight: 700; color: var(--ink); }
.prose tr > *:first-child { border-radius: 6px 0 0 6px; }
.prose tr > *:last-child { border-radius: 0 6px 6px 0; }
.table-wrap { overflow-x: auto; }
.prose code { background: #F2F4F8; padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.updated { font-size: .92rem; color: var(--muted); margin-top: 1rem; }

/* Misc */
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: clamp(2.5rem, 2rem + 2vw, 4.5rem); }
.not-found { min-height: 62vh; display: grid; align-content: center; }
.fade { animation: up .9s var(--ease) both; }
.fade.d2 { animation-delay: .12s; }
@keyframes up { from { opacity: .45; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Home: invito al Metodo MATCHA sotto "Si impara decidendo" */
.intro-cta { margin-top: 1.8rem; }

/* Transizione tra le pagine: un velo cobalto e uno scuro salgono, il marchio si disegna; nella nuova pagina escono verso l'alto */
.pt { position: fixed; inset: 0; z-index: 1000; visibility: hidden; pointer-events: none; }
.pt-a, .pt-b { position: absolute; inset: 0; transform: translateY(101%); will-change: transform; }
.pt-a { background: var(--accent); }
.pt-b { background: var(--bg); display: grid; place-items: center; }
.pt-mark { width: 60px; height: 60px; opacity: 0; transform: scale(.82); }
.pt-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pt-out .pt { visibility: visible; pointer-events: auto; }
.pt-out .pt-a { animation: pt-cover .52s cubic-bezier(.76,0,.24,1) both; }
.pt-out .pt-b { animation: pt-cover .52s cubic-bezier(.76,0,.24,1) .1s both; }
.pt-out .pt-mark { animation: pt-mark-in .4s var(--ease) .36s both, pt-wait 1.4s ease-in-out 1.2s infinite; }
.pt-out .pt-mark path { animation: pt-draw .5s var(--ease) .46s both; }
.pt-in .pt { visibility: visible; animation: pt-off 0s linear 1.2s both; }
.pt-in .pt-a, .pt-in .pt-b { transform: none; }
.pt-in .pt-b { animation: pt-leave .8s cubic-bezier(.76,0,.24,1) .1s both; }
.pt-in .pt-a { animation: pt-leave .8s cubic-bezier(.76,0,.24,1) .22s both; }
.pt-in .pt-mark { opacity: 1; transform: none; animation: pt-mark-out .35s var(--ease) both; }
.pt-in .pt-mark path { stroke-dashoffset: 0; }
@keyframes pt-cover { from { transform: translateY(101%); } to { transform: none; } }
@keyframes pt-leave { from { transform: none; } to { transform: translateY(-101%); } }
@keyframes pt-mark-in { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes pt-mark-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-24px); } }
@keyframes pt-draw { to { stroke-dashoffset: 0; } }
@keyframes pt-wait { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes pt-off { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .pt { display: none; } }

/* Matcha Nexus: fascio di luce che attraversa la pagina */
.beam-on { position: relative; }
.beam-on > section > .wrap { position: relative; z-index: 1; }
.beam { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.beam path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bm-track { stroke: rgba(143,214,180, .2); stroke-width: 1; stroke-dasharray: 1.5 10; animation: bm-flow 2.4s linear infinite; }
.bm-tail { stroke: #127C56; stroke-width: 2; opacity: .4; }
.bm-glow { stroke: #127C56; stroke-width: 10; opacity: .6; }
.bm-mid { stroke: #4FB487; stroke-width: 2.2; opacity: .8; }
.bm-core { stroke: #E3F5EC; stroke-width: 1.6; }
.bm-dot { fill: #fff; }
.bm-spark { fill: #C4EAD6; }
.beam .bm-head { transition: opacity .4s var(--ease); }
@keyframes bm-flow { to { stroke-dashoffset: -23; } }
@keyframes bm-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.bm-halo { transform-box: fill-box; transform-origin: center; animation: bm-breathe 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .bm-track { animation: none; } .bm-halo { animation: none; } }

/* Il nexus dove arriva il fascio */
.nexus-end { text-align: center; }
.nexus { width: min(420px, 78vw); aspect-ratio: 1; margin: 0 auto clamp(1rem, .5rem + 1.5vw, 2rem); }
.nexus svg { width: 100%; height: 100%; overflow: visible; }
.nexus-copy { max-width: 40rem; margin-inline: auto; }
.nexus-copy .lead { margin: 1rem auto 0; }
.nx-threads path { fill: none; stroke: rgba(143,214,180, .22); stroke-width: 1.2; stroke-linecap: round; }
.nx-ring { fill: none; stroke: rgba(143,214,180, .16); stroke-width: 1; }
.nx-ring--dash { stroke-dasharray: 2 9; }
.nx-orbit circle { fill: #8FD6B4; opacity: .55; }
.nx-orbit { transform-origin: 0 0; }
.nx-glow { opacity: .18; transition: opacity 1s var(--ease); }
.nx-pulse { fill: none; stroke: #8FD6B4; stroke-width: 1.5; opacity: 0; transform-origin: 0 0; }
.nx-core { transform-origin: 0 0; transform: scale(.86); opacity: .55; transition: transform .8s var(--ease), opacity .8s var(--ease); }
.nx-core path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease) .15s; }
.nexus .nx-threads path, .nexus .nx-ring { transition: stroke .8s var(--ease); }
.nexus.is-lit .nx-glow { opacity: 1; }
.nexus.is-lit .nx-core { transform: none; opacity: 1; }
.nexus.is-lit .nx-core path { stroke-dashoffset: 0; }
.nexus.is-lit .nx-threads path { stroke: rgba(143,214,180, .55); stroke-dasharray: 10 70; animation: nx-flow 2.2s linear infinite; }
.nexus.is-lit .nx-threads path:nth-child(2n) { animation-duration: 2.9s; }
.nexus.is-lit .nx-threads path:nth-child(3n) { animation-duration: 1.8s; }
.nexus.is-lit .nx-ring { stroke: rgba(143,214,180, .34); }
.nexus.is-lit .nx-orbit--a { animation: nx-spin 16s linear infinite; }
.nexus.is-lit .nx-orbit--b { animation: nx-spin 24s linear infinite reverse; }
.nexus.is-lit .nx-pulse { animation: nx-pulse 2.6s var(--ease) infinite; }
@keyframes nx-flow { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@keyframes nx-spin { to { transform: rotate(360deg); } }
@keyframes nx-pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(4.6); } }
@media (prefers-reduced-motion: reduce) { .nexus .nx-glow { opacity: 1; } .nexus .nx-core { transform: none; opacity: 1; } .nexus .nx-core path { stroke-dashoffset: 0; } .nexus .nx-threads path { stroke: rgba(143,214,180, .45); } }

/* ===== Pagina corso: scheda executive (percorso: chi, perché, cosa ottieni, come paghi, cosa studi, come si verifica, chi insegna, quanto costa) ===== */
.c-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; min-height: clamp(600px, calc(100svh - 170px), 860px); padding-block: clamp(1.25rem, 1rem + 1vw, 2rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.c-hero > .wrap { display: flex; flex-direction: column; }
.c-hero-bg { position: absolute; inset: 0; z-index: -1; }
.c-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.c-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,15,.95) 0%, rgba(11,12,15,.82) 36%, rgba(11,12,15,.3) 68%, rgba(11,12,15,.15) 100%), linear-gradient(0deg, rgba(11,12,15,1) 0%, rgba(11,12,15,.7) 22%, rgba(11,12,15,0) 48%); }
.c-hero .crumbs { margin-bottom: 0; }
.c-hero-main { max-width: 940px; margin-block: auto; padding-block: clamp(2rem, 1rem + 3vw, 4.5rem); }
.c-hero-main .h1 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.4rem); }
.c-hero-main .lead { max-width: 44ch; }
.c-hero-main .badge { margin-bottom: 1.6rem; }
.c-hero-main .lead { margin-top: 1.6rem; color: #D5D9E2; }
.c-hero-main .btn-row { margin-top: 2.4rem; }
.c-hero-main .btn svg { width: 18px; height: 18px; }
.btn--locked, .btn--locked[disabled] { background: var(--accent); color: #fff; border-color: transparent; opacity: .55; cursor: not-allowed; }
.btn--locked svg { width: 16px; height: 16px; }
.c-open { margin-top: 1rem; font-size: .92rem; color: var(--text-2); }
.c-open a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.fin-wrap .lead { max-width: 52ch; }
.c-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 1rem + 2vw, 3.5rem); margin: 0; }
.c-facts div { padding-left: 1.1rem; border-left: 2px solid var(--accent); }
.c-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.c-facts dd { margin: .45rem 0 0; font-weight: 700; font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.25; }

.req-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 1.5rem + 5vw, 7rem); }
.req > * + * { margin-top: 1.4rem; }
.req .h2 { margin-bottom: .2rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { padding: .5rem .95rem; border-radius: 999px; background: var(--bg-3); font-weight: 600; font-size: .93rem; }
.req .checks { gap: 1.1rem; }

.obj-wrap { gap: clamp(2rem, 1rem + 5vw, 7rem); }
.obj-intro { position: sticky; top: calc(var(--header-h) + 90px); }
.obj-intro .text-2 { margin-top: 1.4rem; max-width: 44ch; }
.obj-list { list-style: none; display: grid; gap: clamp(1.8rem, 1.4rem + 1vw, 2.6rem); }
.obj-list li { display: grid; grid-template-columns: clamp(3.4rem, 3rem + 1.5vw, 4.6rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.obj-list b { font-size: clamp(2.4rem, 2rem + 1.5vw, 3.4rem); font-weight: 800; font-stretch: 72%; line-height: .85; color: var(--accent-soft); }
.obj-list h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); font-weight: 700; line-height: 1.2; }
.obj-list p { margin-top: .45rem; color: var(--text-2); }
.dates-block { margin-top: clamp(4rem, 3rem + 4vw, 7rem); }
.dates-block h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.8rem); font-weight: 700; font-stretch: 88%; margin-bottom: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); }
.dates { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 1rem + 2vw, 3rem); }
.dates li { padding-left: 1.1rem; border-left: 2px solid var(--accent); }
.dates b { display: block; font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); font-weight: 800; font-stretch: 75%; line-height: 1.05; color: #fff; }
.dates p { margin-top: .7rem; color: var(--text-2); font-size: .96rem; }
.dates small { display: block; margin-top: .6rem; font-size: .82rem; color: var(--muted); }

.cert-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 5vw, 6.5rem); align-items: center; }
.cert-figure { margin: 0; max-width: 560px; }
.cert-figure img { width: 100%; height: auto; border-radius: var(--r); background: var(--bg-2); box-shadow: 0 40px 80px -50px rgba(0,0,0,.9); }
.cert-figure figcaption { margin-top: .8rem; font-size: .86rem; color: var(--muted); }
.cert-copy .text-2 { margin-top: 1.4rem; max-width: 46ch; }
.cert-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem clamp(1.5rem, 1rem + 2vw, 3rem); margin: clamp(2rem, 1.5rem + 1.5vw, 2.8rem) 0 0; }
.cert-points dt { font-weight: 700; font-size: 1.05rem; }
.cert-points dd { margin: .35rem 0 0; color: var(--text-2); font-size: .96rem; }
.cert-copy .small { margin-top: clamp(1.8rem, 1.4rem + 1vw, 2.4rem); }

.fin-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); margin: 0; }
.fin-list div, .meth div { background: var(--bg-3); border-radius: var(--r); padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.fin-list dt, .meth dt { font-weight: 700; font-size: 1.12rem; color: #fff; }
.fin-list dd, .meth dd { margin: .6rem 0 0; color: var(--text-2); font-size: .96rem; }
.meth { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); margin: 0; }

.prog-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); align-items: start; }
.prog-aside { position: sticky; top: calc(var(--header-h) + 90px); display: grid; gap: 1rem; }
.hours { background: var(--bg-2); border-radius: var(--r); padding: 1.6rem 1.6rem 1.4rem; }
.hours-total { font-size: 1.1rem; font-weight: 600; color: var(--text-2); }
.hours-total b { font-size: 4.4rem; font-weight: 800; font-stretch: 72%; line-height: .85; color: #fff; margin-right: .3rem; }
.hours dl { margin: 1.3rem 0 0; display: grid; gap: .65rem; }
.hours dl div { display: flex; justify-content: space-between; gap: 1rem; }
.hours dt { color: var(--text-2); }
.hours dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.ext { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: var(--r); background: var(--accent); color: #fff; text-decoration: none; transition: background-color .2s var(--ease); }
.ext:hover { background: var(--accent-hover); }
.ext-ico { display: grid; place-items: center; width: 46px; height: 56px; border-radius: 6px; background: #fff; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.ext b { display: block; font-size: 1.05rem; }
.ext small { display: block; margin-top: .25rem; font-size: .86rem; line-height: 1.35; color: #fff; }
.ext > svg { width: 20px; height: 20px; }
.refs-acc { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.refs { list-style: none; columns: 2; column-gap: clamp(1.5rem, 1rem + 3vw, 4rem); padding-top: .3rem; }
.refs li { break-inside: avoid; position: relative; padding: 0 0 .7rem 1.1rem; font-size: .95rem; }
.refs li::before { content: ""; position: absolute; left: 0; top: .55em; width: .42rem; height: .42rem; border-radius: 2px; background: var(--accent-soft); }
.refs-acc .answer { max-width: none; }

.outcomes { display: grid; gap: clamp(1.6rem, 1.2rem + 1vw, 2.4rem); margin: 0; }
.outcomes div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .6rem clamp(1.5rem, 1rem + 3vw, 4rem); align-items: baseline; }
.outcomes dt { font-weight: 800; font-stretch: 80%; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.15; }
.outcomes dd { margin: 0; color: var(--text-2); max-width: 60ch; }

.val-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); }
.val { background: var(--bg-3); border-radius: var(--r); padding: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); }
.val .val-k { font-size: clamp(2.4rem, 1.8rem + 1.8vw, 3.4rem); font-weight: 800; font-stretch: 72%; line-height: .9; color: var(--accent-soft); }
.val h3 { margin-top: 1.1rem; font-size: 1.2rem; font-weight: 700; }
.val p:not(.val-k) { margin-top: .5rem; color: var(--text-2); font-size: .96rem; }

.doc-wrap { gap: clamp(2rem, 1rem + 4vw, 6rem); }
.faculty { list-style: none; display: grid; gap: .6rem; }
.faculty li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1.25fr); gap: .4rem 1.2rem; align-items: baseline; padding: 1rem 1.2rem; border-radius: var(--r-sm); background: var(--bg-2); }
.fac-n { font-weight: 800; font-stretch: 75%; font-size: 1.5rem; line-height: 1; color: var(--accent-soft); }
.fac-m { font-weight: 700; }
.fac-p { color: var(--text-2); font-size: .94rem; }
.fee { font-size: 1.15rem; color: var(--text-2); }
.fee b { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.8rem); font-weight: 800; font-stretch: 75%; color: #fff; margin-right: .35rem; }
#iscrizione .btn-row { margin-top: .6rem; }
#iscrizione .scard { background: var(--bg-3); }

@media (max-width: 1100px) {
  .fin-list, .meth { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .prog-grid { grid-template-columns: minmax(0, 1fr); }
  .prog-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .obj-intro { position: static; }
  .val-grid { grid-template-columns: minmax(0, 1fr); }
  .outcomes div { grid-template-columns: minmax(0, 1fr); }
  .faculty li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .fac-p { grid-column: 2; }
}
@media (max-width: 860px) {
  .c-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req-grid, .cert-wrap { grid-template-columns: minmax(0, 1fr); }
  .cert-figure { max-width: 520px; }
}
@media (max-width: 760px) {
  .c-hero { min-height: 0; padding-top: 0; }
  .c-hero-bg { bottom: auto; height: 340px; }
  .c-hero-bg img { object-position: 72% 40%; }
  .c-hero-bg::after { background: linear-gradient(0deg, rgba(11,12,15,1) 0%, rgba(11,12,15,.55) 45%, rgba(11,12,15,.2) 100%); }
  .c-hero .crumbs { padding-top: 1.25rem; }
  .c-hero-main { margin-block: 0; padding-top: 150px; padding-bottom: 2.5rem; }
}
@media (max-width: 640px) {
  .fin-list, .meth, .dates, .prog-aside, .cert-points { grid-template-columns: minmax(0, 1fr); }
  .refs { columns: 1; }
  .c-facts { gap: 1.25rem 1rem; }
  .c-facts dd { font-size: 1.02rem; }
  .ext { grid-template-columns: auto minmax(0, 1fr); }
  .ext > svg { display: none; }
}

/* Impatto sociale: cifra con didascalia e i sei principi */
.chap-stat { display: block; }
.chap-stat .chap-fig { display: block; }
.chap-cap { display: block; margin-top: .8rem; max-width: 32ch; font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); line-height: 1.4; color: #D5D9E2; font-weight: 500; }
.chapters.is-js .chap:not(.is-active) > p.chap-stat:not(.chap-fig) { opacity: 1; }
.chapters.is-js .chap:not(.is-active) .chap-cap, .chapters.is-js .chap:not(.is-active) .principles { opacity: .72; }
.principles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: .4rem; }
.principles li { background: var(--bg-2); border-radius: var(--r-sm); padding: .95rem 1rem 1rem; }
.principles b { display: block; font-size: .82rem; font-weight: 800; color: var(--accent-soft); font-variant-numeric: tabular-nums; }
.principles h3 { margin-top: .35rem; font-size: 1.02rem; font-weight: 700; }
.principles p { margin-top: .3rem; font-size: .9rem; color: var(--text-2); line-height: 1.45; }
@media (max-width: 480px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* Pagina corso, versione breve: scheda leggibile, colonna di lettura e riquadro di iscrizione con indice */
.sk { padding-block: clamp(3rem, 2rem + 3vw, 5rem) var(--section); }
.sk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: start; }
.sk-main { max-width: 760px; min-width: 0; }
.sk-sec { scroll-margin-top: calc(var(--header-h) + 24px); }
.sk-sec + .sk-sec { margin-top: clamp(2.8rem, 2.2rem + 1.6vw, 3.8rem); }
.sk-sec h2 { font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); font-weight: 700; font-stretch: 88%; line-height: 1.1; letter-spacing: -.005em; margin-bottom: .9rem; }
.sk-sec h3 { font-size: 1.12rem; font-weight: 700; margin: 1.6rem 0 .45rem; }
.sk-sec p { color: var(--text-2); max-width: 66ch; }
.sk-sec p + p { margin-top: .8rem; }
.sk-list { list-style: none; display: grid; gap: .55rem; margin-top: .9rem; }
.sk-list li { position: relative; padding-left: 1.2rem; }
.sk-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .42rem; height: .42rem; border-radius: 2px; background: var(--accent-soft); }
.sk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem clamp(1.5rem, 1rem + 2vw, 3rem); }
.sk-dl { display: grid; gap: 1rem; margin: 1.1rem 0 0; }
.sk-dl div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: .25rem 1.5rem; }
.sk-dl dt { font-weight: 700; color: #fff; }
.sk-dl dd { margin: 0; color: var(--text-2); }
.sk-cert { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 1.5vw, 2.4rem); align-items: center; }
.sk-cert figure { margin: 0; }
.sk-cert img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.sk-cert .sk-list { margin-top: 0; }
.sk-acc { margin-top: 1rem; gap: .45rem; }
.sk-acc summary { padding: .95rem 1.15rem; font-size: 1rem; }
.sk-acc .answer { padding: 0 1.15rem 1.15rem; }
.sk-refs { margin-top: .45rem; }
.sk-refs .refs li { color: var(--text-2); }
.sk-more { margin-top: 1.3rem; }
#iscrizione .fee { margin-bottom: .6rem; }
.sk-sec .btn-row { margin-top: 1.6rem; }
.sk-sec .btn-row + .small { margin-top: 1rem; }
.sk-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.6rem; }
.sk-card { display: grid; gap: .7rem; padding: 1.4rem; border-radius: var(--r); background: var(--bg-2); }
.sk-price { font-size: 1rem; color: var(--text-2); margin-bottom: .2rem; }
.sk-price b { font-size: 2rem; font-weight: 800; font-stretch: 75%; color: #fff; margin-right: .3rem; }
.sk-card .btn { width: 100%; }
.sk-note { font-size: .85rem; color: var(--muted); text-align: center; margin: -.15rem 0 .2rem; }
.sk-link { justify-self: center; margin-top: .2rem; font-weight: 600; font-size: .95rem; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.sk-toc ol { list-style: none; display: grid; gap: .1rem; }
.sk-toc a { display: block; padding: .4rem .8rem; border-radius: var(--r-sm); text-decoration: none; color: var(--text-2); font-size: .93rem; font-weight: 600; }
.sk-toc a:hover, .sk-toc a.is-active { color: #fff; background: var(--bg-2); }
@media (max-width: 1024px) { .sk-grid { grid-template-columns: minmax(0, 1fr); } .sk-side { display: none; } .sk-main { max-width: 820px; } }
@media (max-width: 640px) {
  .sk-two, .sk-cert { grid-template-columns: minmax(0, 1fr); }
  .sk-cert figure { max-width: 320px; }
  .sk-dl div { grid-template-columns: minmax(0, 1fr); }
}
/* Confronto temporaneo tra le due versioni della pagina corso */
.review-switch { position: fixed; left: 16px; bottom: 16px; z-index: 45; padding: .6rem 1rem; border-radius: 999px; background: #fff; color: #0B0C0F; font-weight: 700; font-size: .85rem; text-decoration: none; box-shadow: 0 12px 30px -12px rgba(0,0,0,.7); }


/* Collaborazione con il Codacons: logo scontornato, colori originali */
.c-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); margin-block: auto; }
.c-hero-row .c-hero-main { margin-block: 0; }
.c-partner-card { display: grid; justify-items: center; gap: 1.1rem; padding: clamp(1.4rem, 1rem + 1.4vw, 2.2rem) clamp(1.6rem, 1rem + 2vw, 2.8rem); border-radius: 18px; background: rgba(11,12,15,.62); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 70px -40px rgba(0,0,0,.9); }
.c-partner-card p { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #D5D9E2; }
.c-partner-card img { display: block; width: clamp(220px, 12rem + 9vw, 340px); height: auto; }
@media (max-width: 1024px) {
  .c-hero-row { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .c-partner-card { order: -1; justify-self: start; grid-template-columns: auto auto; align-items: center; gap: 1.2rem; padding: 1rem 1.4rem; }
  .c-hero-row .c-hero-main { padding-top: 0; }
  .c-hero-row { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
  .c-partner-card img { width: clamp(150px, 30vw, 220px); }
}
@media (max-width: 760px) { .c-hero-row { padding-top: 150px; padding-bottom: 2.5rem; } .c-partner-card p { font-size: .7rem; } }

/* Public Speaking: galleria fotografica della prima edizione */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 4rem + 11vw, 240px); gap: clamp(.5rem, .3rem + .5vw, .9rem); margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery .g-big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 36vw; } }

/* Metodo MATCHA: marchio nell'hero che si sfalda in foglie al passaggio del mouse o al tocco (senza JS resta il marchio) */
.leafx { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.leafx-static { width: 43.5%; height: auto; aspect-ratio: 1; border-radius: 22%; filter: drop-shadow(0 12px 40px rgba(18,124,86,.35)); }
.leafx canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.leafx.is-live { cursor: pointer; }
.leafx.is-live .leafx-static { visibility: hidden; }
.leafx.is-live canvas { display: block; }
