/* ═══════════════════════════════════════════════════════════════════════════
   MUD Studio Italia · sito rivisto (prototipo Elvexa, 24/11/2026)
   Mobile first: le regole di base sono per il telefono, i @media (min-width) aggiungono il desktop.
   Un solo font (Inter, variabile, ospitato qui), nessuna libreria.
   Colori dei corsi: --acc (pieno) e --acc-ink (per i testi, contrasto AA su bianco), impostati su <body>.
   ═══════════════════════════════════════════════════════════════════════════ */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonti/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonti/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #111111;
  --ink-2: #2a2a2a;
  --muted: #5d5d5d;
  --line: rgba(17, 17, 17, .12);
  --line-2: rgba(17, 17, 17, .2);
  --paper: #ffffff;
  --cream: #f7f2ea;
  --sand: #ece3d5;
  --night: #121212;
  --brand: #cc0055;          /* fucsia MUD, colore del Level I */
  --brand-ink: #b3004b;
  --ok: #1f7a46;
  --err: #b42318;
  --acc: var(--brand);
  --acc-ink: var(--brand-ink);
  --acc-soft: #fbe7ef;
  --r: 18px;
  --r-s: 12px;
  --wrap: 1200px;
  --gut: 20px;
  --head: 60px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* colori dei corsi (dal sito attuale); -ink è la variante scura per i testi */
.c-level1    { --acc: #cc0055; --acc-ink: #b3004b; --acc-soft: #fbe7ef; }
.c-level2    { --acc: #cc4e00; --acc-ink: #a33f00; --acc-soft: #fbeee5; }
.c-bridal    { --acc: #f3a090; --acc-ink: #a4473a; --acc-soft: #fdf0ec; }
.c-fashion   { --acc: #b91616; --acc-ink: #a31313; --acc-soft: #fbe9e9; }
.c-hair      { --acc: #e4a100; --acc-ink: #855806; --acc-soft: #fcf3dc; }
.c-portfolio { --acc: #6739c2; --acc-ink: #5a30ad; --acc-soft: #efeafa; }
.c-sfx       { --acc: #0d8dd7; --acc-ink: #0a679e; --acc-soft: #e5f3fb; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: 72px; /* spazio per la barra in basso su mobile */
}
img, picture, video, iframe { display: block; max-width: 100%; }
picture { width: 100%; height: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.06; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 650; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.salta:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.acc { color: var(--acc-ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-ink); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.eyebrow--chiaro { color: #fff; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); }

h1, .h1 { font-size: clamp(38px, 10.5vw, 84px); letter-spacing: -.045em; }
h2, .h2 { font-size: clamp(30px, 7.6vw, 54px); letter-spacing: -.04em; }
h3, .h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
h1 em, h2 em { font-style: normal; color: var(--acc-ink); }

/* ───────── pulsanti ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--ink);
  font: 650 16px/1.1 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  background: var(--ink); color: #fff; transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 19px; height: 19px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { background: var(--acc-ink); border-color: var(--acc-ink); }
.btn--acc { background: var(--acc-ink); border-color: var(--acc-ink); }
.btn--acc:hover { background: var(--ink); border-color: var(--ink); }
.btn--vuoto { background: transparent; color: var(--ink); }
.btn--vuoto:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--chiaro { background: #fff; color: var(--ink); border-color: #fff; }
.btn--chiaro:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--vetro { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); backdrop-filter: blur(6px); }
.btn--vetro:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--piccolo { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--pieno { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.azioni { display: flex; flex-wrap: wrap; gap: 12px; }
.link-freccia { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; color: var(--acc-ink); }
.link-freccia svg { width: 18px; height: 18px; transition: transform .2s; }
.link-freccia:hover svg { transform: translateX(3px); }

/* ───────── barra avvisi e testata ───────── */
.avviso { background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.35; text-align: center; }
.avviso a { display: block; padding: 9px var(--gut); text-decoration: none; }
.avviso strong { color: #ff8fc0; font-weight: 650; }
.avviso u { text-decoration-color: rgba(255, 255, 255, .5); }

.testata { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.testata__in { height: var(--head); display: flex; align-items: center; gap: 16px; }
.logo { display: block; flex: none; }
.logo img { width: 92px; height: auto; }
.menu { display: none; }
.testata__azioni { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.testata__cta { display: none; }
.hamburger { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.hamburger svg { width: 22px; height: 22px; }
.hamburger .apri, .hamburger .chiudi { display: grid; }
.hamburger .chiudi { display: none; }
.menu-aperto .hamburger .apri { display: none; }
.menu-aperto .hamburger .chiudi { display: block; }

/* menu mobile a pannello */
.pannello { position: fixed; inset: calc(var(--head) + var(--avviso, 0px)) 0 0 0; z-index: 49; background: #fff; overflow-y: auto; padding: 8px var(--gut) 120px; display: none; }
.menu-aperto .pannello { display: block; }
.menu-aperto { overflow: hidden; }
.pannello__gruppo { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pannello__titolo { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pannello a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 20px; font-weight: 650; text-decoration: none; letter-spacing: -.01em; }
.pannello a small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pannello .pallino { width: 12px; height: 12px; border-radius: 50%; background: var(--acc); flex: none; }
.pannello__corsi a { justify-content: flex-start; }
.pannello__corsi a span:last-child { margin-left: auto; }
.pannello__fondo { display: grid; gap: 10px; padding-top: 20px; }

/* ───────── barra fissa in basso (mobile) ───────── */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px; box-shadow: 0 -6px 24px rgba(0, 0, 0, .06); }
.barra a { min-height: 48px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12.5px; font-weight: 650; text-decoration: none; border: 1px solid var(--line-2); color: var(--ink); }
.barra a svg { width: 20px; height: 20px; }
.barra--2 { grid-template-columns: 1fr 1.6fr; }   /* senza WhatsApp */
.barra a.barra__cta { background: var(--acc-ink); border-color: var(--acc-ink); color: #fff; flex-direction: row; font-size: 15px; gap: 8px; }

/* ───────── hero ───────── */
.hero { position: relative; color: #fff; background: var(--night); overflow: hidden; }
.hero__foto, .hero__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.78) 100%); }
.hero__in { position: relative; z-index: 1; min-height: min(86svh, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 32px; }
.hero h1 { max-width: 13ch; }
.hero .lede { color: rgba(255, 255, 255, .9); margin-top: 16px; max-width: 34ch; font-size: 18px; }
.hero .azioni { margin-top: 24px; }
.hero .azioni .btn { flex: 1 1 auto; }
.prove { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 13.5px; color: rgba(255, 255, 255, .88); }
.prove li { display: flex; align-items: center; gap: 7px; }
.prove svg { width: 16px; height: 16px; color: #ff8fc0; }

/* ───────── sezioni ───────── */
.sez { padding: 64px 0; }
.sez--crema { background: var(--cream); }
.sez--notte { background: var(--night); color: #fff; }
.sez--notte .muted, .sez--notte .lede { color: rgba(255, 255, 255, .78); }
.sez--notte .eyebrow { color: #ff8fc0; }
.sez--acc { background: var(--acc-soft); }
.sez__testa { display: grid; gap: 14px; margin-bottom: 32px; max-width: 760px; }
.sez__testa p { color: var(--muted); font-size: 18px; }
.sez--notte .sez__testa p { color: rgba(255, 255, 255, .78); }
.sez__testa--centro { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* scelta del percorso */
.scelta { display: grid; gap: 12px; }
.scelta a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.scelta a:hover { border-color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .07); }
.scelta__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); font-weight: 800; }
.scelta strong { display: block; font-size: 18px; letter-spacing: -.01em; }
.scelta span.muted { display: block; font-size: 14.5px; line-height: 1.45; margin-top: 2px; }
.scelta svg { width: 20px; height: 20px; color: var(--muted); }

/* schede dei corsi */
.corsi { display: grid; gap: 16px; }
.corso { position: relative; display: grid; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: box-shadow .25s, transform .25s; }
.corso:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .1); }
.corso__foto { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.corso__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.corso:hover .corso__foto img { transform: scale(1.03); }
.corso__testo { padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.corso__livello { font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-ink); }
.corso h3 { font-size: 23px; }
.corso p { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.corso__dati { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--cream); font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.2; }
.chip svg { width: 14px; height: 14px; }
.corso .link-freccia { margin-top: 6px; }
.corso::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc); z-index: 1; }
/* su telefono la scheda è orizzontale: foto stretta a sinistra, testo a destra */
.corso { grid-template-columns: 116px 1fr; }
.corso__foto { aspect-ratio: auto; min-height: 168px; }
.corso__testo { padding: 14px 14px 16px; gap: 6px; }
.corso h3 { font-size: 19px; }
.corso p { font-size: 14.5px; line-height: 1.45; }
.corso .link-freccia { display: none; }
.corso__dati .chip { font-size: 12px; padding: 4px 8px; }
/* vantaggi compatti su telefono: icona a sinistra */
.punto { grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
.punto__icona { grid-row: span 2; }
.punto > :not(.punto__icona) { grid-column: 2; }

/* percorso a tappe */
.tappe { display: grid; gap: 12px; counter-reset: tappa; }
.tappa { position: relative; padding: 20px 20px 20px 64px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.tappa::before { counter-increment: tappa; content: counter(tappa); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.tappa h3 { font-size: 19px; }
.tappa p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.tappa__link { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tappa__link a { text-decoration: none; }
.tappa__link .chip { background: var(--acc-soft); color: var(--acc-ink); }

/* vantaggi / punti */
.punti { display: grid; gap: 14px; }
.punto { padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.sez--crema .punto { border-color: transparent; }
.sez--notte .punto { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.punto__icona { width: 44px; height: 44px; border-radius: 12px; background: var(--acc-soft); color: var(--acc-ink); display: grid; place-items: center; }
.sez--notte .punto__icona { background: rgba(255, 255, 255, .1); color: #ff8fc0; }
.punto__icona svg { width: 22px; height: 22px; }
.punto h3 { font-size: 19px; }
.punto p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.sez--notte .punto p { color: rgba(255, 255, 255, .75); }

/* blocco testo + foto */
.duo { display: grid; gap: 28px; align-items: center; }
.duo__foto { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.duo__foto img { width: 100%; height: 100%; object-fit: cover; }
.duo__testo { display: grid; gap: 16px; }
.duo__testo p { color: var(--ink-2); }
.numeri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.numeri div { padding: 14px 12px; border-radius: var(--r-s); background: var(--cream); }
.numeri strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.numeri span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 4px; }

/* galleria: scorre di lato su mobile */
.galleria { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 8px; margin: 0 calc(var(--gut) * -1); scrollbar-width: none; }
.galleria::-webkit-scrollbar { display: none; }
.galleria figure { scroll-snap-align: start; border-radius: var(--r-s); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.galleria img { width: 100%; height: 100%; object-fit: cover; }

/* recensioni */
.recensioni { display: grid; gap: 14px; }
.recensione { padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.stelle { display: flex; gap: 2px; color: #00b67a; }
.stelle svg { width: 18px; height: 18px; }
.recensione blockquote { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.recensione figcaption { font-size: 14px; color: var(--muted); }
.recensione figcaption strong { color: var(--ink); }
.fonte { margin-top: 18px; font-size: 14.5px; }

/* video (si carica solo al clic) */
.video { display: grid; gap: 14px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; background: #000; }
.yt button { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: #000; color: #fff; }
.yt button img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.yt button:hover img { opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .65); display: grid; place-items: center; }
.yt__play svg { width: 26px; height: 26px; margin-left: 3px; }
.yt__titolo { position: absolute; left: 12px; right: 12px; bottom: 10px; text-align: left; font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* sedi */
.sedi { display: grid; gap: 16px; }
.sede { border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; }
.sede__foto { aspect-ratio: 16 / 10; background: var(--sand); }
.sede__foto img { width: 100%; height: 100%; object-fit: cover; }
.sede__testo { padding: 20px; display: grid; gap: 6px; }
.sede h3 { font-size: 24px; }
.sede address { font-style: normal; color: var(--ink-2); }
.sede__azioni { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* domande frequenti */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: var(--r-s); background: #fff; border: 1px solid var(--line); }
.sez--crema .faq details { border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 18px; position: relative; font-weight: 650; font-size: 17px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details > div { padding: 0 18px 18px; color: var(--ink-2); display: grid; gap: 10px; }

/* dati del corso */
.dati { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dato { padding: 16px; border-radius: var(--r-s); background: #fff; border: 1px solid var(--line); }
.dato dt { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dato dd { font-size: 17px; font-weight: 650; line-height: 1.35; margin-top: 4px; }
.dato dd small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* programma: moduli */
.moduli { display: grid; gap: 16px; }
.modulo { border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; }
.modulo__foto { aspect-ratio: 3 / 2; background: var(--sand); }
.modulo__foto img { width: 100%; height: 100%; object-fit: cover; }
.modulo__testo { padding: 20px; display: grid; gap: 8px; }
.modulo__n { font-size: 12.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-ink); }
.modulo h3 { font-size: 22px; }
.modulo p { color: var(--ink-2); font-size: 16px; }
.lista-spunte { display: grid; gap: 10px; padding: 0; list-style: none; }
.lista-spunte li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.lista-spunte svg { width: 22px; height: 22px; color: var(--acc-ink); margin-top: 2px; }

/* per chi è */
.perchi { display: grid; gap: 10px; }
.perchi li { padding: 18px 18px 18px 54px; position: relative; border-radius: var(--r-s); background: #fff; border: 1px solid var(--line); }
.perchi li svg { position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; color: var(--acc-ink); }
.perchi strong { display: block; font-size: 17px; }
.perchi span { color: var(--muted); font-size: 15.5px; }

/* kit */
.kit { display: grid; gap: 20px; align-items: center; padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.kit__foto { border-radius: var(--r-s); overflow: hidden; background: #fff; }
.kit__foto img { width: 100%; height: auto; }

/* testata delle pagine interne */
.testa-pagina { padding: 40px 0 28px; background: var(--cream); }
.testa-pagina h1 { font-size: clamp(36px, 9vw, 68px); }
.testa-pagina .lede { margin-top: 14px; max-width: 40ch; }

/* hero dei corsi */
.hero-corso { background: var(--cream); }
.hero-corso__in { display: grid; gap: 0; }
.hero-corso__foto { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin: 0 calc(var(--gut) * -1); }
.hero-corso__foto img { width: 100%; height: 100%; object-fit: cover; }
.hero-corso__foto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--acc); }
.hero-corso__testo { padding: 18px 0 30px; display: grid; gap: 12px; }
.hero-corso h1 { font-size: clamp(36px, 10vw, 72px); }
.hero-corso h1 span { display: block; color: var(--acc-ink); }
.hero-corso .lede { font-size: 18px; }
.hero-corso__chip { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-corso__chip .chip { background: #fff; }
.briciole { font-size: 13.5px; color: var(--muted); }
.briciole a { text-decoration: none; }
.briciole a:hover { text-decoration: underline; }

/* modulo di contatto */
.contatto { display: grid; gap: 28px; }
.contatto__intro { display: grid; gap: 14px; align-content: start; }
.contatto__intro .lede { color: var(--ink-2); }
.contatto__canali { display: grid; gap: 10px; margin-top: 6px; }
.canale { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-s); background: #fff; border: 1px solid var(--line); text-decoration: none; }
.canale svg { width: 22px; height: 22px; color: var(--acc-ink); }
.canale strong { display: block; font-size: 16px; }
.canale span { display: block; font-size: 14px; color: var(--muted); }
.scheda { background: #fff; border-radius: var(--r); padding: 22px 18px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .07); }
.scheda h3 { font-size: 22px; margin-bottom: 4px; }
.scheda > p.muted { font-size: 15px; margin-bottom: 16px; }
.form__griglia { display: grid; gap: 14px; }
.campo { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.campo > label, .campo > legend { font-size: 14px; font-weight: 650; padding: 0; }
.campo input[type=text], .campo input[type=email], .campo input[type=tel], .campo select {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff;
  font: 400 16px/1.2 var(--font); color: var(--ink); appearance: none;
}
.campo select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--acc-soft); }
.campo.is-error input, .campo.is-error select { border-color: var(--err); }
.lp-err { font-size: 13.5px; color: var(--err); min-height: 0; }
.lp-err:empty { display: none; }
.tel { display: flex; align-items: stretch; }
.tel__cc { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line-2); border-right: 0; border-radius: 12px 0 0 12px; background: var(--cream); font-size: 15px; font-weight: 600; }
.tel input { border-radius: 0 12px 12px 0 !important; }
.segmenti { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 8px; }
.segmenti label { position: relative; cursor: pointer; }
.segmenti input { position: absolute; opacity: 0; inset: 0; }
.segmenti span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid var(--line-2); font-size: 15px; font-weight: 600; text-align: center; line-height: 1.2; }
.segmenti input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.segmenti input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }
.form__privacy { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.spunta label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; font-weight: 500; }
.spunta input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--acc-ink); }
.lp-status { font-size: 14.5px; margin-top: 10px; color: var(--err); }
.lp-status:empty { display: none; }
.lp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* banda finale */
.banda { background: var(--acc-ink); color: #fff; border-radius: var(--r); padding: 30px 22px; display: grid; gap: 16px; }
.banda h2 { font-size: clamp(28px, 7vw, 44px); }
.banda p { color: rgba(255, 255, 255, .88); }

/* piè di pagina */
.piede { background: var(--night); color: rgba(255, 255, 255, .78); padding: 52px 0 28px; font-size: 15px; }
.piede a { text-decoration: none; }
.piede a:hover { color: #fff; text-decoration: underline; }
.piede__griglia { display: grid; gap: 30px; }
.piede__logo img { width: 110px; }
.piede h2 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; font-weight: 700; }
.piede ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.piede address { font-style: normal; line-height: 1.6; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; color: #fff; }
.social a:hover { background: #fff; color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.piede__legale { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 36px; padding-top: 20px; font-size: 13px; line-height: 1.55; display: grid; gap: 8px; color: rgba(255, 255, 255, .6); }
.piede__legale nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.piede__legale button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.piede__legale button:hover { color: #fff; text-decoration: underline; }

/* nota da confermare (solo nel prototipo) */
.nota-interna { display: none; }
.mostra-note .nota-interna { display: inline; background: #fff1a8; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.mostra-note .da-confermare { background: #fff1a8; color: #111; box-shadow: 0 0 0 2px #fff1a8; outline: 1.5px dashed #b88a00; border-radius: 3px; }

/* ringraziamento e 404 */
.grazie { min-height: 70svh; display: grid; place-items: center; padding: 56px 0; background: var(--cream); }
.grazie__in { max-width: 660px; display: grid; gap: 16px; }
.grazie ol { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }

/* ═════════ tablet e desktop ═════════ */
@media (min-width: 700px) {
  :root { --gut: 32px; }
  .corsi { grid-template-columns: 1fr 1fr; }
  .corso { grid-template-columns: 1fr; }
  .corso__foto { aspect-ratio: 4 / 3; min-height: 0; }
  .corso__testo { padding: 18px 18px 20px; gap: 8px; }
  .corso h3 { font-size: 23px; }
  .corso p { font-size: 15.5px; }
  .corso .link-freccia { display: inline-flex; }
  .corso::before { right: 0; bottom: auto; width: auto; height: 4px; }
  .punto { grid-template-columns: 1fr; padding: 22px; }
  .punto__icona { grid-row: auto; }
  .punto > :not(.punto__icona) { grid-column: auto; }
  .punti { grid-template-columns: 1fr 1fr; }
  .recensioni { grid-template-columns: repeat(3, 1fr); }
  .video { grid-template-columns: repeat(3, 1fr); }
  .sedi { grid-template-columns: 1fr 1fr; }
  .galleria { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
  .galleria figure:nth-child(n+9) { display: none; }
  .galleria--tutte figure:nth-child(n+9) { display: block; }
  .dati { grid-template-columns: repeat(3, 1fr); }
  .moduli { grid-template-columns: 1fr 1fr; }
  .perchi { grid-template-columns: 1fr 1fr; }
  .kit { grid-template-columns: 1fr 1fr; padding: 36px; }
  .form__griglia { grid-template-columns: 1fr 1fr; }
  .form__griglia .campo--largo, .form__griglia .form__invio { grid-column: 1 / -1; }
  .scheda { padding: 30px; }
  .banda { padding: 44px; grid-template-columns: 1fr auto; align-items: center; }
  .piede__griglia { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .tappe { grid-template-columns: repeat(3, 1fr); }
  .hero .azioni .btn { flex: 0 0 auto; }
}

@media (min-width: 1000px) {
  :root { --head: 72px; }
  body { padding-bottom: 0; font-size: 18px; }
  .barra { display: none; }
  .hamburger { display: none; }
  .testata__cta { display: inline-flex; }
  .logo img { width: 104px; }
  .menu { display: flex; align-items: center; gap: 4px; margin-left: 28px; }
  .menu > li { position: relative; }
  .menu > li > a, .menu > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 999px; font: 600 15.5px/1 var(--font); text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; }
  .menu > li > a:hover, .menu > li > button:hover, .menu > li > a[aria-current=page] { background: var(--cream); }
  .menu svg { width: 14px; height: 14px; transition: transform .2s; }
  .tendina { position: absolute; left: -12px; top: calc(100% + 10px); width: 640px; padding: 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .14); display: none; grid-template-columns: 1fr 1fr; gap: 4px; }
  .tendina::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .menu li:hover .tendina, .menu li:focus-within .tendina, .menu li.aperto .tendina { display: grid; }
  .menu li:hover > button svg, .menu li.aperto > button svg { transform: rotate(180deg); }
  .tendina a { display: grid; grid-template-columns: 28px 1fr; gap: 2px 14px; align-items: center; padding: 12px; border-radius: var(--r-s); text-decoration: none; }
  .tendina a:hover { background: var(--cream); }
  .tendina .pallino { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
  .tendina strong { font-size: 15.5px; }
  .tendina small { grid-column: 2; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
  .tendina__tutti { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .pannello { display: none !important; }

  h3, .h3 { font-size: 23px; }
  .sez { padding: 104px 0; }
  .sez__testa { margin-bottom: 48px; }
  .hero__in { min-height: min(88vh, 820px); padding-bottom: 64px; }
  .hero .lede { font-size: 21px; max-width: 40ch; }
  .hero::after { background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%), linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.35) 100%); }
  .corsi { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .corsi--4 { grid-template-columns: repeat(4, 1fr); }
  .scelta { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .scelta a { grid-template-columns: 1fr; align-content: start; gap: 14px; padding: 26px; }
  .scelta a > svg { display: none; }
  .punti { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .punti--4 { grid-template-columns: repeat(4, 1fr); }
  .duo { grid-template-columns: 1fr 1fr; gap: 64px; }
  .duo--inverso .duo__foto { order: 2; }
  .galleria { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .contatto { grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
  .contatto__intro { position: sticky; top: calc(var(--head) + 24px); }
  .hero-corso__in { grid-template-columns: 1.05fr 1fr; align-items: stretch; min-height: 580px; }
  .hero-corso__foto { order: 2; margin: 0 calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gut)) 0 0; aspect-ratio: auto; }
  .hero-corso__foto::after { left: 0; top: 0; bottom: 0; right: auto; width: 6px; height: auto; }
  .hero-corso__testo { padding: 44px 48px 52px 0; align-content: center; }
  .hero-corso h1 { font-size: clamp(44px, 4.6vw, 66px); }
  .dati { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .moduli { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .moduli--3 { grid-template-columns: repeat(3, 1fr); }
  .modulo--orizzontale { grid-template-columns: 1fr 1fr; }
  .testa-pagina { padding: 72px 0 48px; }
  .grazie { min-height: 72vh; }
}
@media (min-width: 1300px) {
  .hero-corso__foto { margin-right: calc((100vw - var(--wrap)) / -2 - var(--gut)); }
}

/* banner cookie: discreto. Desktop: scheda piccola in basso a sinistra. Telefono: riga compatta sopra la barra
   in basso, testo a sinistra e pulsanti a destra. «Rifiuta» e «Accetta» hanno la stessa forma e lo stesso peso. */
#lp-consent { position: fixed; z-index: 1000; left: 16px; bottom: 16px; max-width: 340px; font: 400 12.5px/1.4 var(--font); }
.lp-consent__in { background: rgba(255, 255, 255, .97); color: #333; border-radius: 12px; padding: 10px 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .06); }
.lp-consent__text { margin: 0 0 8px; }
.lp-consent__text a, .lp-consent__link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lp-consent__link { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.lp-consent__link[hidden], .lp-consent__prefs[hidden], .lp-consent__btns button[hidden], .lp-consent__more[hidden] { display: none; }
.lp-consent__prefs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; }
.lp-consent__prefs label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.lp-consent__btns { display: flex; gap: 6px; justify-content: flex-end; }
.lp-consent__btns button { font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; padding: 5px 14px; min-height: 32px; border: 1px solid #222; background: #222; color: #fff; }
.lp-consent__btns button:focus-visible, .lp-consent__link:focus-visible, .lp-consent__text a:focus-visible { outline: 3px solid var(--acc, #f3a090); outline-offset: 2px; }
@media (max-width: 999px) {
  #lp-consent { left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); max-width: none; font-size: 12px; }
  .lp-consent__in { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
  .lp-consent__text { margin: 0; flex: 1 1 auto; }
  .lp-consent__in:has(.lp-consent__prefs:not([hidden])) { flex-wrap: wrap; }
  .lp-consent__btns { flex: 0 0 auto; flex-direction: column; gap: 4px; }
  .lp-consent__btns button { min-height: 30px; padding: 4px 12px; }
}

/* tabella prezzi */
.tabella { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.tabella table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabella th, .tabella td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabella thead th { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--cream); }
.tabella tbody tr:last-child > * { border-bottom: 0; }
.tabella tbody th a { text-decoration: none; font-weight: 650; border-left: 4px solid var(--acc); padding-left: 10px; }
.tabella tbody th a:hover { text-decoration: underline; }
@media (min-width: 700px) { .tabella table { font-size: 16px; } .tabella th, .tabella td { padding: 14px 16px; } }
@media (min-width: 1000px) { .tappe--5 { grid-template-columns: repeat(5, 1fr); } }

/* ═════════ blog (24/11/2026) ═════════ */
.wrap--stretto { max-width: 800px; }
.testa-articolo { padding: 32px 0 0; background: linear-gradient(var(--cream) 0 72%, transparent 72%); }
.testa-articolo h1 { font-size: clamp(32px, 8.4vw, 54px); margin-top: 2px; }
.testa-articolo .lede { margin-top: 14px; font-size: 18.5px; }
.articolo__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.articolo__copertina { margin-top: 24px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--sand); }
.articolo__copertina img { width: 100%; height: 100%; object-fit: cover; }
.indice { margin-top: 28px; padding: 18px 20px; border-radius: var(--r-s); border: 1px solid var(--line); font-size: 15.5px; }
.indice p { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.indice ol, .indice ul { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.indice ul { list-style: none; padding-left: 0; }
.indice a { text-decoration: none; }
.indice a:hover { text-decoration: underline; color: var(--acc-ink); }
.prosa { padding: 8px 0 24px; font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.prosa > * + * { margin-top: 18px; }
.prosa h2 { font-size: clamp(25px, 6vw, 34px); margin-top: 48px; color: var(--ink); scroll-margin-top: calc(var(--head) + 16px); }
.prosa h3 { font-size: 20px; margin-top: 30px; color: var(--ink); scroll-margin-top: calc(var(--head) + 16px); }
.prosa h2 + *, .prosa h3 + * { margin-top: 12px; }
.prosa ul, .prosa ol { padding-left: 24px; display: grid; gap: 10px; }
.prosa li::marker { color: var(--acc-ink); font-weight: 700; }
.prosa strong { color: var(--ink); }
.prosa a { color: var(--acc-ink); font-weight: 600; }
.prosa figure { margin: 30px 0; }
.prosa figure img { border-radius: var(--r-s); width: 100%; max-height: 560px; object-fit: cover; }
.prosa figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.prosa blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--acc); }
.prosa blockquote p:first-child { font-size: 19px; line-height: 1.55; color: var(--ink); }
.prosa .citazione { margin-top: 8px; font-size: 14px; color: var(--muted); }
.prosa .tabella { margin: 24px 0; }
.prosa .tabella table { font-size: 15px; line-height: 1.45; }
.prosa .tabella tbody th a { font-weight: 650; color: var(--ink); }
.articolo__vecchi { padding-bottom: 32px; }
.box-corso { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 16px; margin: 36px 0 8px; padding: 18px; border-radius: var(--r); background: var(--acc-soft); overflow: hidden; }
.box-corso__foto { width: 84px; height: 84px; border-radius: var(--r-s); overflow: hidden; }
.box-corso__foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.box-corso__testo { display: grid; gap: 6px; }
.box-corso__eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-ink); }
.box-corso__titolo { font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.box-corso__testo p:not([class]) { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.box-corso__link { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
.prosa .box-corso a { font-weight: 650; text-decoration: none; }
.prosa .box-corso > * + * { margin-top: 0; }

/* schede degli articoli e degli argomenti */
.articoli, .temi { display: grid; gap: 16px; }
.scheda-articolo, .tema { display: grid; grid-template-columns: 112px 1fr; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: box-shadow .25s; }
.sez--crema .scheda-articolo { border-color: transparent; }
.scheda-articolo:hover, .tema:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .1); }
.scheda-articolo__foto, .tema__foto { background: var(--sand); min-height: 150px; }
.scheda-articolo__foto img, .tema__foto img { width: 100%; height: 100%; object-fit: cover; }
.scheda-articolo__testo, .tema__testo { padding: 14px 14px 16px; display: grid; gap: 6px; align-content: start; }
.scheda-articolo__tema { font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-ink); }
.scheda-articolo h3, .tema h3 { font-size: 18px; line-height: 1.25; }
.scheda-articolo p:not([class]), .tema p { font-size: 14.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.scheda-articolo .link-freccia { display: none; }
.tema .link-freccia { font-size: 14.5px; }
@media (min-width: 700px) {
  .testa-articolo { padding-top: 48px; }
  .articoli, .temi { grid-template-columns: 1fr 1fr; }
  .scheda-articolo, .tema { grid-template-columns: 1fr; }
  .scheda-articolo__foto, .tema__foto { aspect-ratio: 16 / 10; min-height: 0; }
  .scheda-articolo__testo, .tema__testo { padding: 18px 18px 20px; gap: 8px; }
  .scheda-articolo h3, .tema h3 { font-size: 21px; }
  .scheda-articolo .link-freccia { display: inline-flex; margin-top: 4px; }
  .box-corso { grid-template-columns: 120px 1fr; gap: 22px; padding: 22px; }
  .box-corso__foto { width: 120px; height: 120px; }
}
@media (min-width: 1000px) {
  .articoli, .temi { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .testa-articolo h1 { font-size: clamp(40px, 4.4vw, 56px); }
}

/* ── Banner dei cookie di Prism Iris (componente _elvexa/consenso.js): discreto, soprattutto da telefono ── */
.ec-banner{font-family:inherit;border-radius:12px}
@media (max-width:640px){
  .ec-banner{bottom:calc(72px + env(safe-area-inset-bottom))!important;padding:10px 12px!important;font-size:12px!important}
  .ec-banner .ec-t{display:none}
  .ec-banner .ec-x{font-size:12px!important;margin-bottom:8px!important}
  .ec-az .ec-b{padding:7px 10px!important}
  .ec-l{flex:0 0 auto!important;margin:0 0 0 auto!important;padding:7px 2px!important}
}
