/* ==========================================================================
   CLAUDIO TOZZI — Fisioterapia & Osteopata
   Design system: «Il corpo, ascoltato.»
   ========================================================================== */

:root {
  /* Colori */
  --ink: #0F2A2E;          /* Abisso — colore primario */
  --ink-2: #173B40;
  --ink-3: #24525A;
  --bone: #F3EEE6;         /* Lino — fondo */
  --paper: #FBF8F3;        /* Carta */
  --clay: #C26A3D;         /* Argilla — accento */
  --clay-2: #A9552C;
  --clay-soft: #EBCDB6;
  --sage: #8BA496;         /* Salvia */
  --mist: #DCE5E0;         /* Bruma */
  --text: #1A2A2C;
  --muted: #5E6C6B;
  --line: rgba(15, 42, 46, .12);
  --line-light: rgba(243, 238, 230, .16);
  --body-a: #E3EAE5;
  --body-b: #CFDCD5;

  /* Tipografia */
  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Spazi e forme */
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 22px;
  --radius-lg: 36px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow: 0 30px 60px -30px rgba(15, 42, 46, .35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--clay); color: var(--paper); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

/* Grana leggera su tutto il sito */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9990; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10000; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 99px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 11vw, 10rem); }
.center { text-align: center; margin-top: 3rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
[data-theme="dark"] { background: var(--ink); color: var(--bone); }
[data-theme="dark"] .muted { color: rgba(243,238,230,.6); }

/* ---------- Tipografia ---------- */
.display { font-family: var(--f-display); font-weight: 350; letter-spacing: -.02em; line-height: 1.02; font-variation-settings: "opsz" 144, "SOFT" 50; }
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 300; color: var(--clay); }
[data-theme="dark"] .display em { color: var(--clay-soft); }
.h2 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.6rem); }
.h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 34em; }
[data-theme="dark"] .lead { color: rgba(243,238,230,.72); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.4rem;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-2);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--clay-soft); }

.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 900px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

.prose p { margin-bottom: 1.2em; color: var(--muted); font-size: 1.08rem; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Icone ---------- */
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Bottoni ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --fill: var(--clay);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: .95rem 1.6rem; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .98rem; letter-spacing: .005em;
  transition: color .5s var(--ease), transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .ico { transition: transform .45s var(--ease); }
.btn:hover .ico { transform: translateX(4px) rotate(-0deg); }
.btn--accent { --bg: var(--clay); --fill: var(--ink); }
.btn--line { --bg: transparent; --fg: var(--ink); --fill: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { color: var(--paper); }
.btn--ghost-light { --bg: transparent; --fg: var(--bone); --fill: var(--bone); box-shadow: inset 0 0 0 1.5px var(--line-light); }
.btn--ghost-light:hover { color: var(--ink); }
.btn--small { padding: .65rem 1.15rem; font-size: .9rem; }
.btn--large { padding: 1.15rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.link:hover { background-size: 100% 1px; }
.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--clay-2); margin-top: 1.5rem; }
.link-arrow .ico { transition: transform .4s var(--ease); }
.link-arrow:hover .ico { transform: translateX(6px); }

.circle-btn {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line-light); transition: background .4s var(--ease), color .4s;
}
.circle-btn:hover { background: var(--bone); color: var(--ink); }
[data-maestri-prev] .ico { transform: rotate(180deg); }

.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); background: var(--paper);
  transition: background .35s var(--ease), color .35s, box-shadow .35s;
}
.chip sup { font-family: var(--f-mono); font-size: .65rem; opacity: .6; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { font-size: .82rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(15,42,46,.06); }
[data-theme="dark"] .tags li { background: rgba(243,238,230,.08); }

/* ---------- Preloader & tendina ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  overflow: hidden; background: var(--ink); color: var(--bone);
}
.loader__aura { position: absolute; width: min(100vw, 850px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle,rgba(139,164,150,.13),transparent 64%); animation: ct-breathe 2.8s ease-in-out infinite alternate; }
.loader__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 0; padding: 24px; }
.loader__seal { width: clamp(190px,31vh,290px); aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.loader__orbits { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--clay-soft); transform: rotate(-28deg); }
.loader__orbits ellipse { stroke: currentColor; stroke-width: .55; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: ct-orbit 1.9s var(--ease) forwards; }
.loader__orbits ellipse:nth-child(1) { opacity: .35; }
.loader__orbits ellipse:nth-child(2) { opacity: .2; animation-delay: .12s; }
.loader__orbits ellipse:nth-child(3) { opacity: .1; animation-delay: .24s; }
.loader__mark { width: 112px; height: 112px; color: var(--clay-soft); }
.loader__mark .mark-c,.loader__mark .mark-t { stroke-dasharray: 170; stroke-dashoffset: 170; animation: draw 1.2s var(--ease) forwards; }
.loader__mark .mark-t { animation-delay: .25s; }
.loader__mark .mark-v path { opacity: 0; transform: translateY(5px); animation: vert .7s var(--ease) forwards; }
.loader__mark .mark-v path:nth-child(1) { animation-delay: .5s; }
.loader__mark .mark-v path:nth-child(2) { animation-delay: .62s; }
.loader__mark .mark-v path:nth-child(3) { animation-delay: .74s; }
.loader__mark .mark-v path:nth-child(4) { animation-delay: .86s; }
.loader__signature { margin-top: 24px; animation: ct-signature 1s .4s both var(--ease); }
.loader__signature p { font: 400 clamp(1.5rem,4vw,2rem)/1.2 var(--f-display); letter-spacing: -.025em; }
.loader__signature span { display: block; margin-top: 12px; font: 400 .58rem/1.5 var(--f-mono); letter-spacing: .23em; text-transform: uppercase; color: var(--clay-soft); }
.loader__claim { margin-top: 24px; font: italic 300 1.1rem/1.4 var(--f-display); color: var(--clay-soft); animation: ct-signature 1s .65s both var(--ease); }
.loader__bar { width: 48px; height: 1px; margin-top: 28px; background: var(--line-light); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--clay-soft); transform-origin: left; animation: bar 1.8s var(--ease-in-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes vert { to { opacity: 1; transform: none; } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ct-orbit { to { stroke-dashoffset: 0; transform: rotate(12deg); transform-origin: center; } }
@keyframes ct-signature { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ct-breathe { from { transform: scale(.85); opacity: .4; } to { transform: scale(1.2); opacity: 1; } }
html:not(.js) .loader { display: none; }
.curtain {
  position: fixed; inset: 0; z-index: 9998; background: var(--ink); pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; visibility: hidden;
}
.curtain::before { content: ''; position: absolute; width: 230px; height: 250px; border: 1px solid rgba(235,205,182,.16); border-radius: 50%; pointer-events: none; }
.curtain .mark { width: 88px; height: 88px; color: var(--clay-soft); }
.curtain__claim { color: var(--clay-soft); font: italic 300 1.1rem var(--f-display); }
.from-nav .curtain { visibility: visible; }
.from-nav .loader { display: none; }
.intro-fallback .loader,.intro-fallback .curtain { display: none !important; }
.intro-fallback .js,.intro-fallback .reveal,.intro-fallback [data-hero-fade] { opacity: 1; transform: none; }
.intro-fallback .wi { transform: none !important; }
@media (max-height: 540px) { .loader__seal { width: 140px; } .loader__mark { width: 80px; height: 80px; } .loader__signature { margin-top: 12px; } .loader__claim { margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } .curtain::before { display: none; } }

/* ---------- Cursore ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor [role="button"] { cursor: none; }
  .has-cursor .cursor { display: block; position: fixed; inset: 0 auto auto 0; z-index: 9997; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
  .cursor__dot { width: 6px; height: 6px; background: var(--clay); }
  .cursor__ring {
    width: 38px; height: 38px; border: 1px solid rgba(194,106,61,.55);
    display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), background .4s, border-color .4s;
  }
  .cursor__ring em { font-style: normal; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper); opacity: 0; transition: opacity .3s; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(194,106,61,.12); border-color: var(--clay); }
  .cursor.is-drag .cursor__ring { width: 86px; height: 86px; background: var(--clay); border-color: var(--clay); }
  .cursor.is-drag .cursor__ring em { opacity: 1; }
  .cursor.is-drag .cursor__dot { opacity: 0; }
}

/* ---------- Navigazione ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 900; transition: transform .6s var(--ease); }
.nav__wrap {
  max-width: 1360px; margin: .8rem auto 0; padding: .7rem .8rem .7rem 1.2rem;
  display: flex; align-items: center; gap: 1.5rem; border-radius: 999px;
  width: calc(100% - 2 * var(--gutter) + 1.6rem);
  transition: background .5s var(--ease), box-shadow .5s, backdrop-filter .5s;
}
.nav.is-scrolled .nav__wrap { background: rgba(251,248,243,.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 10px 40px -20px rgba(15,42,46,.3), inset 0 0 0 1px rgba(15,42,46,.06); }
.nav.is-hidden { transform: translateY(-130%); }
.brand { display: flex; align-items: center; gap: .75rem; margin-right: auto; }
.brand .mark { width: 46px; height: 46px; color: var(--ink); transition: transform .8s var(--ease); }
.brand:hover .mark { transform: scale(1.06); }
.brand__text { display: grid; line-height: 1.1; }
.brand__text strong { font-family: var(--f-display); font-weight: 500; font-size: 1.22rem; letter-spacing: -.01em; }
.brand__title { font-style: italic; font-weight: 400; color: var(--clay); }
.menu-open .brand__title { color: var(--clay-soft); }
.brand__text small { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.nav__links { display: flex; gap: .3rem; }
.nav__links a { position: relative; padding: .55rem .95rem; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: background .3s; }
.nav__links a:hover { background: rgba(15,42,46,.06); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: .25rem; width: 4px; height: 4px; border-radius: 50%; background: var(--clay); transform: translateX(-50%); }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--paper); transition: transform .5s var(--ease); }
.burger span:nth-child(1) { top: 20px; } .burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 850; pointer-events: none; visibility: hidden; }
.menu__bg { position: absolute; inset: 0; background: var(--ink); clip-path: circle(0% at calc(100% - 3rem) 2.6rem); transition: clip-path .9s var(--ease-in-out); }
.menu-open .menu { pointer-events: auto; visibility: visible; }
.menu-open .menu__bg { clip-path: circle(150% at calc(100% - 3rem) 2.6rem); }
.menu__links { position: relative; padding: 7.5rem var(--gutter) 2rem; display: grid; gap: .3rem; }
.menu__links a { display: flex; align-items: baseline; gap: 1rem; color: var(--bone); font-family: var(--f-display); font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.1; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.menu__links a small { font-family: var(--f-mono); font-size: .75rem; color: var(--clay-soft); }
.menu__links a.is-active span { font-style: italic; color: var(--clay-soft); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(1) { transition-delay: .25s; } .menu-open .menu__links a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .35s; } .menu-open .menu__links a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .45s; }
.menu__foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2rem; display: grid; gap: .8rem; color: rgba(243,238,230,.75); opacity: 0; transition: opacity .6s .5s; }
.menu__foot a { display: flex; gap: .7rem; align-items: center; }
.menu-open .menu__foot { opacity: 1; }
.menu-open .nav .brand { color: var(--bone); }
.menu-open .nav .brand .mark, .menu-open .nav .brand small { color: var(--bone); }
.menu-open .nav .nav__wrap { background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .burger { background: var(--clay); }

/* ---------- Marchio ---------- */
.mark .mark-c, .mark .mark-t { stroke: currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 8rem 0 6rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob--1 { width: 46vw; height: 46vw; right: -8vw; top: -10vw; background: radial-gradient(circle at 30% 30%, var(--clay-soft), transparent 65%); animation: float1 18s ease-in-out infinite alternate; }
.blob--2 { width: 38vw; height: 38vw; left: -12vw; bottom: -14vw; background: radial-gradient(circle, var(--mist), transparent 65%); animation: float2 22s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate(-6vw, 8vw) scale(1.1); } }
@keyframes float2 { to { transform: translate(8vw, -6vw) scale(.9); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__title { font-size: clamp(3.6rem, 1.6rem + 8.6vw, 9.6rem); line-height: .92; margin-bottom: 2rem; }
.hero__title em { display: inline-block; }
.hero__lead { margin-bottom: 2.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__visual { position: relative; }
.arch {
  position: relative; aspect-ratio: 4 / 5.2; border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden; background: var(--ink); box-shadow: var(--shadow);
}
.arch__img { width: 100%; height: 100%; object-fit: cover; }
.arch__art { position: absolute; inset: 0; display: grid; place-items: center; color: var(--clay-soft);
  background: radial-gradient(120% 80% at 50% 20%, var(--ink-3), var(--ink) 70%); }
.arch__art .rings { position: absolute; width: 150%; max-width: none; opacity: .75; }
.arch__mark { position: relative; width: 26%; color: var(--bone); }
.rings .ring { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.rings--hero { animation: spin 90s linear infinite; }
.rings.is-drawn .ring, html:not(.js) .rings .ring { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease); transition-delay: calc(var(--i) * 70ms); }
@keyframes spin { to { transform: rotate(360deg); } }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem .85rem .9rem;
  border-radius: 18px; background: rgba(251,248,243,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(15,42,46,.35), inset 0 0 0 1px rgba(255,255,255,.6); font-size: .9rem; line-height: 1.25;
}
.float-chip > .ico { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--ink); color: var(--clay-soft); }
.float-chip b { display: block; font-weight: 600; }
.float-chip small { color: var(--muted); font-size: .78rem; }
.float-chip__num { font-family: var(--f-display); font-size: 2rem; color: var(--clay); line-height: 1; }
.float-chip--1 { left: -14%; top: 16%; }
.float-chip--2 { right: -8%; top: 50%; }
.float-chip--3 { left: -6%; bottom: 7%; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%); display: grid; justify-items: center; gap: .6rem; color: var(--muted); }
.scroll-cue__line { width: 1px; height: 52px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--clay); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee { padding-block: 2.2rem; border-block: 1px solid var(--line); overflow: hidden; background: var(--paper); }
.marquee__row { display: flex; overflow: hidden; }
.marquee__row--alt { margin-top: .6rem; }
.marquee__track { display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; white-space: nowrap; will-change: transform; flex: none; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem); font-weight: 300; letter-spacing: -.02em; }
.marquee__row--alt .marquee__track span { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--ink-3); }
.marquee__track i { font-style: normal; color: var(--clay); display: grid; place-items: center; }
.marquee__track i .mark { width: 34px; height: 34px; }

/* ---------- Manifesto ---------- */
.manifesto__text { font-size: clamp(2rem, 1.1rem + 3.4vw, 4.4rem); line-height: 1.12; max-width: 22ch; max-width: 1150px; }
.manifesto__text .mw { opacity: .14; transition: opacity .2s; }
.manifesto__text em { font-style: italic; color: var(--clay); }
.manifesto__sign { display: flex; align-items: center; gap: 1rem; margin-top: 3.5rem; }
.manifesto__sign .mark { width: 52px; height: 52px; color: var(--clay); }
.manifesto__sign span { display: grid; line-height: 1.2; }
.manifesto__sign small { color: var(--muted); }

/* ---------- Numeri ---------- */
.stats { padding-bottom: clamp(4rem, 8vw, 7rem); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 2.4rem 1.6rem 0 0; display: grid; gap: .5rem; border-right: 1px solid var(--line); padding-left: 1.6rem; }
.stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; }
.stat__n { font-family: var(--f-display); font-size: clamp(3.4rem, 2rem + 4vw, 6rem); line-height: 1; font-weight: 300; letter-spacing: -.03em; color: var(--ink); }
.stat__l { color: var(--muted); max-width: 14em; }

/* ---------- Istituzioni ---------- */
.partners { padding-bottom: clamp(4rem, 8vw, 7rem); }
.partners__label { color: var(--muted); text-align: center; margin-bottom: 1.6rem; }
.partners__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.6rem; }
.partners__list li { font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); font-weight: 400; color: var(--ink-3); opacity: .75; transition: opacity .3s, color .3s; }
.partners__list li:hover { opacity: 1; color: var(--clay); }

/* ---------- Card impilate ---------- */
.stack__list { display: grid; gap: 2rem; }
.stack-card { position: sticky; top: calc(6.5rem + var(--n) * 1.6rem); }
.stack-card__in {
  position: relative; overflow: hidden; min-height: 460px; padding: clamp(2rem, 4vw, 3.6rem);
  border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 -10px 40px -30px rgba(15,42,46,.4), inset 0 0 0 1px var(--line);
  display: grid; align-content: start; gap: 1.2rem; transform-origin: top center;
}
.stack-card--2 .stack-card__in { background: var(--mist); }
.stack-card--3 .stack-card__in { background: var(--ink); color: var(--bone); }
.stack-card--3 .tags li { background: rgba(243,238,230,.08); }
.stack-card--3 .link-arrow { color: var(--clay-soft); }
.stack-card--4 .stack-card__in { background: var(--clay-soft); }
.stack-card__meta { display: flex; justify-content: space-between; align-items: center; }
.stack-card__ico { width: 54px; height: 54px; color: var(--clay); }
.stack-card h3 { font-size: clamp(2.2rem, 1.3rem + 3vw, 4.4rem); max-width: 18ch; }
.stack-card p { max-width: 38em; font-size: 1.1rem; opacity: .85; }
.stack-card__art { position: absolute; right: -14%; bottom: -40%; width: 60%; color: var(--clay); opacity: .35; pointer-events: none; }
.stack-card__art .ring { stroke-dashoffset: 0; }

/* ---------- Mappa corporea ---------- */
.bodymap { background: var(--paper); }
.bodymap__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.bodymap__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; }
.bodymap__stage { display: grid; grid-template-columns: .8fr 1fr; gap: 1.5rem; align-items: center; }
.bodymap__figure { width: 100%; max-height: 620px; overflow: visible; }
.bodymap__body { transition: opacity .5s; }
.hotspot { cursor: pointer; outline: none; }
.hotspot__pulse { fill: var(--clay); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
.hotspot__ring { fill: var(--paper); stroke: var(--clay); stroke-width: 1.2; transition: r .3s; }
.hotspot__dot { fill: var(--clay); transition: fill .3s; }
.hotspot:hover .hotspot__ring, .hotspot:focus-visible .hotspot__ring { r: 10; }
.hotspot.is-active .hotspot__ring { fill: var(--clay); }
.hotspot.is-active .hotspot__dot { fill: var(--paper); }
@keyframes pulse { 0% { opacity: .45; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
.bodymap__panel { position: relative; min-height: 380px; }
.zone-card {
  position: absolute; inset: 0 auto auto 0; width: 100%; padding: 2rem; border-radius: var(--radius);
  background: var(--ink); color: var(--bone); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .5s;
}
.zone-card.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.zone-card__idx { color: var(--clay-soft); }
.zone-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; line-height: 1.1; margin: .8rem 0 .8rem; }
.zone-card p { color: rgba(243,238,230,.75); }
.zone-card ul { display: grid; gap: .55rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-light); }
.zone-card li { display: flex; gap: .6rem; align-items: center; }
.zone-card li .ico { color: var(--clay-soft); }
.zone-card .link-arrow { color: var(--clay-soft); }

/* ---------- Scroll orizzontale ---------- */
.hscroll { position: relative; overflow: hidden; }
.hscroll__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 6rem 3rem; }
.hscroll__head { margin-bottom: 3.5rem; }
.hscroll__head .h2 { max-width: 16ch; }
.hscroll__track { display: flex; gap: 0; padding-left: var(--gutter); will-change: transform; width: max-content; }
.milestone {
  position: relative; width: clamp(280px, 30vw, 400px); padding: 0 2.5rem 0 0; flex: none;
}
.milestone::before { content: ""; position: absolute; left: 0; right: 0; top: 7.6rem; height: 1px; background: var(--line-light); }
.milestone__year { display: block; font-size: clamp(4rem, 3rem + 3vw, 6.4rem); color: transparent; -webkit-text-stroke: 1px rgba(235,205,182,.65); line-height: 1; margin-bottom: 1.2rem; transition: color .5s; }
.milestone:hover .milestone__year { color: var(--clay-soft); }
.milestone__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin: -.4rem 0 1.6rem; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1px var(--clay-soft); color: var(--clay-soft); }
.milestone__dot .ico { width: 22px; height: 22px; }
.milestone h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; margin-bottom: .6rem; }
.milestone p { color: rgba(243,238,230,.7); max-width: 26em; }
.milestone--end { width: clamp(300px, 34vw, 460px); padding-right: var(--gutter); }
.milestone--end::before { display: none; }
.milestone--end .milestone__year { color: var(--clay-soft); -webkit-text-stroke: 0; font-style: italic; }
.milestone--end .btn { margin-top: 1.8rem; }
.hscroll__progress { margin-top: 3.5rem; }
.hscroll__progress span { display: block; height: 2px; background: var(--clay); transform-origin: left; transform: scaleX(0); }
.hscroll__progress::before { content: ""; display: block; height: 1px; background: var(--line-light); margin-bottom: -1.5px; }

/* ---------- Metodo ---------- */
.method__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.method__line { position: absolute; left: 8%; right: 8%; top: 34px; width: 84%; height: 40px; fill: none; stroke: var(--clay); stroke-width: 1.4; stroke-dasharray: 6 6; overflow: visible; }
.step { position: relative; text-align: center; display: grid; justify-items: center; gap: .9rem; }
.step__ico { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 18px 30px -20px rgba(15,42,46,.4); color: var(--clay); transition: transform .6s var(--ease), background .4s, color .4s; }
.step__ico .ico { width: 32px; height: 32px; }
.step:hover .step__ico { transform: translateY(-6px) rotate(-6deg); background: var(--ink); color: var(--clay-soft); }
.step__n { color: var(--clay-2); margin-top: .6rem; }
.step h3 { font-family: var(--f-display); font-size: 2rem; font-weight: 400; }
.step p { color: var(--muted); max-width: 22em; }

/* ---------- Maestri (carosello) ---------- */
.maestri { overflow: hidden; }
.maestri__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3.5rem; }
.maestri__head .h2 { max-width: 18ch; }
.maestri__nav { display: flex; gap: .7rem; }
.maestri__swiper { padding-inline: var(--gutter) !important; overflow: visible !important; }
@media (min-width: 1360px) { .maestri__swiper { padding-inline: calc((100vw - 1360px) / 2 + var(--gutter)) !important; } }
.maestro {
  position: relative; overflow: hidden; width: clamp(280px, 28vw, 380px) !important; height: auto !important; min-height: 380px;
  padding: 2rem; border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-light);
  display: flex; flex-direction: column; transition: background .5s var(--ease); transform-style: preserve-3d;
}
.maestro:hover { background: var(--ink-3); }
.maestro__top { display: flex; justify-content: space-between; align-items: start; color: var(--clay-soft); margin-bottom: auto; }
.maestro__n { text-align: right; display: grid; line-height: 1; }
.maestro__n b { font-family: var(--f-display); font-weight: 300; font-size: 3.6rem; color: var(--bone); }
.maestro__n small { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; color: rgba(243,238,230,.55); }
.maestro h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.85rem; line-height: 1.1; margin-top: 4rem; }
.maestro__school { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--clay-soft); margin: .7rem 0 1rem; }
.maestro__note { color: rgba(243,238,230,.7); font-size: .97rem; }
.maestro__shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(235,205,182,.14), transparent 45%); opacity: 0; transition: opacity .4s; }
.maestro:hover .maestro__shine { opacity: 1; }
.maestri__progress { margin-top: 3rem; height: 1px; background: var(--line-light); }
.maestri__progress span { display: block; height: 2px; margin-top: -.5px; background: var(--clay); transform-origin: left; transform: scaleX(.1); transition: transform .5s var(--ease); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__grid .lead { margin-top: 1.5rem; }
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__q { width: 100%; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.6rem 0; text-align: left; font-family: var(--f-display); font-size: clamp(1.2rem, 1rem + .6vw, 1.55rem); font-weight: 400; }
.acc__q i { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), background .4s, color .4s; }
.acc__q:hover i { background: var(--ink); color: var(--paper); }
.acc.is-open .acc__q i { transform: rotate(45deg); background: var(--clay); color: var(--paper); box-shadow: none; }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 4rem 1.8rem 0; color: var(--muted); }
.acc.is-open .acc__a { grid-template-rows: 1fr; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(6rem, 12vw, 11rem); text-align: center; }
.cta-band__glow { position: absolute; left: 50%; top: 50%; width: 70vw; height: 70vw; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(194,106,61,.35), transparent 60%); filter: blur(40px); pointer-events: none; }
.cta-band__in { position: relative; display: grid; justify-items: center; }
.cta-band__title { font-size: clamp(2.4rem, 1.2rem + 5vw, 6rem); max-width: 16ch; margin-bottom: 3rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

/* ---------- Footer ---------- */
.foot { padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line-light); overflow: hidden; }
.foot__top { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; padding-bottom: 3rem; }
.foot__mark { width: 64px; height: 64px; color: var(--clay-soft); }
.foot__claim { font-family: var(--f-display); font-style: italic; font-size: 1.6rem; margin-top: 1rem; color: var(--clay-soft); }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.foot h4 { font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,238,230,.5); margin-bottom: 1rem; }
.foot p { line-height: 1.9; }
.foot__giant { display: none; font-family: var(--f-display); font-weight: 300; font-size: clamp(4rem, 15.5vw, 15rem); line-height: .85; letter-spacing: -.045em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(243,238,230,.22); text-align: center; margin-bottom: -.12em; user-select: none; }
.foot__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem; border-top: 1px solid var(--line-light); font-size: .85rem; color: rgba(243,238,230,.6); background: var(--ink); }
.totop { display: inline-flex; gap: .5rem; align-items: center; }
.totop .ico { transform: rotate(180deg); }

.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 800; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--clay); color: var(--paper); box-shadow: 0 16px 30px -12px rgba(194,106,61,.7); transform: scale(0); transition: transform .6s var(--ease); }
.wa-float .ico { width: 26px; height: 26px; }
.wa-float.is-visible { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Pagine interne: hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(10rem, 18vw, 14rem) 0 clamp(4rem, 8vw, 7rem); }
.page-hero__art { position: absolute; right: -14vw; top: -10vw; width: 62vw; max-width: 900px; color: var(--clay); opacity: .32; pointer-events: none; }
.page-hero__art .rings { animation: spin 120s linear infinite; }
.crumbs { display: flex; gap: .6rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.crumbs a:hover { color: var(--clay); }
.page-hero__title { font-size: clamp(3rem, 1.4rem + 6.6vw, 8rem); line-height: .95; max-width: 13ch; margin-bottom: 2rem; position: relative; }
.page-hero__lead { position: relative; }

/* ---------- Chi sono ---------- */
.bio__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.bio__media { position: sticky; top: 7rem; }
.arch--bio { aspect-ratio: 4 / 5; }
.bio__badge { position: absolute; right: -1.5rem; bottom: 2.5rem; display: flex; align-items: center; gap: .8rem; padding: 1rem 1.3rem; border-radius: 20px; background: var(--clay); color: var(--paper); box-shadow: var(--shadow); }
.bio__badge .display { font-size: 3rem; line-height: 1; }
.bio__badge small { font-size: .8rem; line-height: 1.25; }
.bio__text .h2 { margin-bottom: 2.4rem; }
.signature { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.signature .mark { width: 46px; height: 46px; color: var(--clay); }
.signature .display { font-style: italic; font-size: 2rem; }

.worlds__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.world { position: relative; padding: 2.2rem; border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-light); display: grid; gap: .9rem; align-content: start; min-height: 360px; transition: background .5s; transform-style: preserve-3d; }
.world:hover { background: var(--ink-3); }
.world__ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(235,205,182,.1); color: var(--clay-soft); margin-bottom: 1.5rem; }
.world__ico .ico { width: 30px; height: 30px; }
.world .mono { color: var(--clay-soft); }
.world h3 { font-size: 2.6rem; }
.world__sub { font-weight: 600; }
.world p:last-child { color: rgba(243,238,230,.7); }

.exp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.exp__col .h3 { margin-bottom: 2.5rem; }
.vline { position: relative; display: grid; gap: 2.2rem; padding-left: 4.2rem; }
.vline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.vline::after { content: ""; position: absolute; left: 22px; top: 8px; width: 1px; height: calc(var(--p, 0) * (100% - 16px)); background: var(--clay); }
.vline__item { position: relative; }
.vline__dot { position: absolute; left: -4.2rem; top: -.2rem; width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--clay); z-index: 1; }
.vline__dot .ico { width: 20px; height: 20px; }
.vline__item .mono { color: var(--clay-2); }
.vline__item h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin: .35rem 0 .3rem; }
.vline__item p { color: var(--muted); }
.titles { display: grid; gap: 1rem; }
.title-card { display: flex; gap: 1.5rem; align-items: center; padding: 1.5rem; border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.title-card .display { font-size: 2.6rem; color: var(--clay); }
.title-card h3 { font-weight: 600; font-size: 1.1rem; }
.title-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Trattamenti ---------- */
.tx__grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.tx__aside { position: sticky; top: 7rem; }
.tx__index { display: grid; border-left: 1px solid var(--line); }
.tx__index a { position: relative; display: flex; gap: .9rem; padding: .7rem 0 .7rem 1.2rem; color: var(--muted); font-weight: 500; transition: color .3s, padding .4s var(--ease); }
.tx__index a .mono { color: var(--clay-2); padding-top: .2rem; }
.tx__index a::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--clay); transform: scaleY(0); transition: transform .4s var(--ease); }
.tx__index a:hover, .tx__index a.is-active { color: var(--ink); padding-left: 1.6rem; }
.tx__index a.is-active::before { transform: scaleY(1); }
.tx__list { display: grid; gap: 1.4rem; }
.tx-card { position: relative; overflow: hidden; padding: clamp(2rem, 4vw, 3.2rem); border-radius: var(--radius-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 7rem; transition: box-shadow .5s, transform .6s var(--ease); }
.tx-card:hover { box-shadow: inset 0 0 0 1px var(--clay), var(--shadow); }
.tx-card__art { position: absolute; right: -18%; top: -30%; width: 55%; color: var(--clay); opacity: 0; transform: scale(.8) rotate(-20deg); transition: opacity .8s, transform 1.2s var(--ease); pointer-events: none; }
.tx-card__art .ring { stroke-dashoffset: 0; }
.tx-card:hover .tx-card__art { opacity: .3; transform: none; }
.tx-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.tx-card__ico { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--ink); color: var(--clay-soft); transition: transform .6s var(--ease); }
.tx-card:hover .tx-card__ico { transform: rotate(-8deg) scale(1.05); }
.tx-card__ico .ico { width: 32px; height: 32px; }
.tx-card__sub { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-2); margin-bottom: .6rem; }
.tx-card h2 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem); margin-bottom: 1.2rem; position: relative; }
.tx-card__text { font-size: 1.12rem; color: var(--muted); max-width: 40em; position: relative; }
.tx-card__foot { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: grid; gap: .9rem; position: relative; }
.tx-card__label { color: var(--muted); }

/* ---------- Percorso ---------- */
.dist__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.dist .lead { margin-top: 1.6rem; }
.bars { display: grid; gap: 1.1rem; }
.bar { display: grid; grid-template-columns: 130px 1fr 32px; gap: 1rem; align-items: center; }
.bar__l { font-weight: 500; }
.bar__track { height: 12px; border-radius: 99px; background: rgba(15,42,46,.07); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--ink-3), var(--clay)); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.bar.is-in .bar__fill { transform: scaleX(1); }
.bar__n { text-align: right; }

.courses { padding-top: 0; }
.courses__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; position: sticky; top: 5.6rem; z-index: 5; padding: .8rem 0; background: linear-gradient(var(--bone) 70%, transparent); }
.courses__grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.courses__year { position: sticky; top: 12rem; display: grid; gap: .6rem; }
.courses__year .mono { color: var(--muted); }
.courses__year .display { font-size: clamp(5rem, 3rem + 5vw, 8.6rem); line-height: .9; color: var(--ink); font-weight: 300; }
.courses__yearbar { display: block; height: 2px; background: var(--line); }
.courses__yearbar span { display: block; height: 100%; background: var(--clay); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease); }
.course { display: grid; grid-template-columns: 90px 1fr auto; gap: 1.5rem; align-items: start; padding: 1.6rem 0; border-bottom: 1px solid var(--line); transition: opacity .45s var(--ease), transform .45s var(--ease), background .3s; }
.course:first-child { border-top: 1px solid var(--line); }
.course:hover { background: linear-gradient(90deg, transparent, rgba(194,106,61,.06), transparent); }
.course__year { color: var(--clay-2); padding-top: .35rem; }
.course h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; margin-bottom: .3rem; }
.course p { color: var(--muted); font-size: .96rem; }
.course__doc { color: var(--ink-3); font-weight: 500; }
.course__meta { display: grid; justify-items: end; gap: .5rem; }
.course__place { display: inline-flex; gap: .35rem; align-items: center; font-size: .85rem; color: var(--muted); }
.course__place .ico { width: 15px; height: 15px; }
.course.is-hidden { display: none; }
.course.is-entering { opacity: 0; transform: translateY(14px); }
.pill { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 99px; white-space: nowrap; background: var(--mist); }
.pill--viscerale { background: var(--clay-soft); }
.pill--osteopatia { background: var(--ink); color: var(--bone); }
.pill--neuro { background: #D7DDEA; }
.pill--cranio { background: #E8DDEB; }
.pill--pediatria { background: #F1E3C8; }
.pill--colonna { background: var(--sage); color: var(--paper); }

/* ---------- Contatti ---------- */
.contact { padding-top: 0; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info { display: grid; gap: .9rem; }
.info-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s, background .4s; }
.info-card:hover:not(.info-card--static) { box-shadow: inset 0 0 0 1px var(--clay); }
.info-card__ico { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--ink); color: var(--clay-soft); }
.info-card__ico .ico { width: 24px; height: 24px; }
.info-card small { display: block; color: var(--muted); margin-bottom: .1rem; }
.info-card b { font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.info-card__go { margin-left: auto; color: var(--clay); transition: transform .4s var(--ease); }
.info-card:hover .info-card__go { transform: translate(3px, -3px); }
.info-card--wa .info-card__ico { background: var(--clay); color: var(--paper); }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: inset 0 0 0 1px var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.15) contrast(.95); }

.form-wrap { padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.form { display: grid; gap: 1.1rem; }
.form .h3 { margin-bottom: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__alert { padding: .9rem 1.1rem; border-radius: 14px; background: #F6DED3; color: #7A2E12; }
.hp { position: absolute; left: -9999px; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.55rem 1.1rem .6rem; border-radius: 16px; border: 0; background: var(--bone); color: var(--text);
  font: inherit; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s, background .3s; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--clay); }
.field label { position: absolute; left: 1.1rem; top: 1.1rem; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-.62rem) scale(.76); color: var(--clay-2); }
.field--select::after { content: ""; position: absolute; right: 1.2rem; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field small, .err { display: block; color: #A33B17; font-size: .82rem; margin-top: .35rem; }
.has-error input { box-shadow: inset 0 0 0 1.5px #C2502A; }
.segmented { border: 0; padding: 0; margin: .3rem 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.segmented legend { width: 100%; margin-bottom: .6rem; color: var(--muted); font-size: .92rem; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: inline-block; padding: .6rem 1.1rem; border-radius: 99px; background: var(--bone); cursor: pointer; transition: background .3s, color .3s; font-weight: 500; font-size: .93rem; }
.segmented input:checked + span { background: var(--ink); color: var(--paper); }
.segmented input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.check { display: flex; gap: .8rem; align-items: start; font-size: .92rem; color: var(--muted); cursor: pointer; margin-top: .4rem; }
.check input { position: absolute; opacity: 0; }
.check__box { flex: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--ink-3); display: grid; place-items: center; transition: background .3s; }
.check input:checked + .check__box { background: var(--clay); box-shadow: none; }
.check input:checked + .check__box::after { content: ""; width: 6px; height: 11px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check input:focus-visible + .check__box { outline: 2px solid var(--clay); outline-offset: 2px; }
.has-error .check__box { box-shadow: inset 0 0 0 1.5px #C2502A; }
.form .btn--block { margin-top: .8rem; }
.form__note { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 16px; background: var(--mist); font-size: .9rem; line-height: 1.5; color: var(--ink-3); }
.form__note .ico { flex: none; width: 22px; height: 22px; color: var(--clay); margin-top: .1rem; }
.form__note b { color: var(--ink); }
.form-done { display: grid; gap: 1.2rem; justify-items: start; padding: 1rem 0; }
.form-done__ico { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--clay); color: var(--paper); }
.form-done__ico .ico { width: 32px; height: 32px; }
.form-done p { color: var(--muted); }

/* ---------- Reveal (solo con JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); }
.js [data-hero-fade] { opacity: 0; transform: translateY(24px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__cta { display: none; }
  .float-chip--1 { left: -4%; }
  .float-chip--2 { right: -2%; }
  .tx__grid { grid-template-columns: 1fr; }
  .tx__aside { display: none; }
  .bodymap__grid { grid-template-columns: 1fr; }
  .courses__grid { grid-template-columns: 1fr; }
  .courses__year { display: none; }
}

@media (max-width: 860px) {
  .hero { padding-top: 7rem; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin: 1rem auto 0; width: 88%; }
  .float-chip { font-size: .8rem; padding: .6rem .8rem .6rem .6rem; }
  .float-chip > .ico { width: 32px; height: 32px; padding: 7px; }
  .float-chip--1 { left: -10%; top: 10%; }
  .float-chip--2 { right: -10%; }
  .float-chip--3 { left: -8%; }
  .scroll-cue { display: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 2rem 1rem 2rem 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 1.2rem !important; }
  .stack-card { position: relative; top: auto; }
  .stack-card__in { min-height: 0; }
  .bodymap__stage { grid-template-columns: 1fr; }
  .bodymap__figure { max-height: 380px; }
  .bodymap__panel { min-height: 0; }
  .method__grid { grid-template-columns: 1fr; gap: 3rem; }
  .method__line { display: none; }
  .maestri__head { flex-direction: column; align-items: start; }
  .faq__grid, .bio__grid, .exp__grid, .dist__grid, .contact__grid { grid-template-columns: 1fr; }
  .bio__media { position: relative; top: 0; max-width: 420px; }
  .bio__badge { right: -.5rem; }
  .worlds__grid { grid-template-columns: 1fr; }
  .world { min-height: 0; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .course { grid-template-columns: 1fr; gap: .5rem; }
  .course__meta { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; gap: .8rem; }
  .courses__filters { top: 4.6rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .courses__filters .chip { flex: none; }

  /* scroll orizzontale nativo su mobile */
  .hscroll__pin { min-height: 0; padding-block: 5rem; }
  .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: var(--gutter); scrollbar-width: none; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .milestone { scroll-snap-align: start; width: 78vw; }
  .hscroll__progress { display: none; }
}

@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr; }
  .acc__a p { padding-right: 0; }
  .bar { grid-template-columns: 100px 1fr 26px; }
  .brand__text small { display: none; }
  .hero__actions .btn { width: 100%; }
  .float-chip--2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js [data-hero-fade] { opacity: 1; transform: none; }
}


/* Immagini editoriali e mappa corporea — ottobre 2026 */
.arch__caption { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.3rem; padding: .6rem .9rem; border-radius: 99px; background: rgba(15,42,46,.82); color: var(--paper); text-align: center; font-size: .7rem; letter-spacing: .015em; }
.stack-card__in--photo { padding-right: calc(36% + 3rem); }
.stack-card__photo { position: absolute; inset: 1.2rem 1.2rem 1.2rem auto; width: 34%; overflow: hidden; border-radius: 20px; z-index: 1; }
.stack-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.stack-card__in--photo .stack-card__meta { gap: 1rem; }
.stack-card__in--photo .stack-card__ico { width: 36px; height: 36px; flex-shrink: 0; }
.stack-card__in--photo .stack-card__art { display: none; }
.tx-card__photo { position: relative; z-index: 1; margin: 0 0 2rem; }
.tx-card__photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.tx-card__photo figcaption { margin-top: .5rem; font-size: .72rem; color: var(--muted); }
.bodymap__grid { grid-template-columns: .8fr 1.2fr; }
.bodymap__stage { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.bodymap__figure { display: block; height: auto; max-height: none; }
.bodymap__labels { fill: var(--muted); font-family: var(--f-mono); font-size: 7px; letter-spacing: 1px; }
.hotspot__target { fill: transparent; }
.hotspot__pulse, .hotspot__ring, .hotspot__dot { pointer-events: none; }
@media (max-width: 1100px) { .bodymap__grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .stack-card__in--photo { padding-right: clamp(2rem, 4vw, 3.6rem); }
  .stack-card__photo { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 10; margin-bottom: .3rem; }
  .bodymap__stage { grid-template-columns: 1fr; }
  .bodymap__figure { max-width: 440px; margin-inline: auto; }
  .bodymap__panel { min-width: 0; }
}
