/* =========================================================
   Fores Marche – Ente di Formazione
   Colori dal logo: blu "Ente di formazione", rosso "Fores Marche", verde globo
   ========================================================= */
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --navy: #121c54;
  --navy-2: #1d2a7a;
  --navy-3: #2c3d9e;
  --red: #c8102e;
  --red-2: #a50d26;
  --green: #4f9a2f;
  --green-2: #7cc04b;
  --cream: #faf7f2;
  --paper: #ffffff;
  --ink: #141833;
  --muted: #5b6079;
  --line: #e7e3da;
  --soft: #f1eee7;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(18, 28, 84, .25);
  --shadow-lg: 0 30px 60px -20px rgba(18, 28, 84, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Fraunces", Georgia, serif;
  --sans: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.65; font-size: 17px; overflow-x: hidden; overflow-x: clip; }
html { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; color: var(--red); font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; border-radius: 6px; }
.hp, .sr-only { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Bottoni, badge, chip ---------- */
.btn { --bg: var(--navy); display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .95em 1.6em; border-radius: 999px; border: 0; background: var(--bg); color: #fff; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--bg) 70%, transparent); }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); z-index: -1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--bg) 80%, transparent); }
.btn:hover::before { transform: translateX(120%); }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn--red { --bg: var(--red); }
.btn--green { --bg: var(--green); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--white { --bg: #fff; color: var(--navy); }
.btn--block { width: 100%; }
.btn--sm { padding: .7em 1.2em; font-size: .92rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--green-2); }
.eyebrow--center { justify-content: center; }

.badge { display: inline-flex; align-items: center; gap: .5em; padding: .45em .9em; border-radius: 999px; font: 700 .78rem/1 var(--sans); letter-spacing: .03em; background: var(--soft); color: var(--navy); }
.badge--green { background: #e6f3dd; color: #2d6a14; }
.badge--red { background: #fde6ea; color: var(--red-2); }
.badge--navy { background: #e4e8fb; color: var(--navy-2); }
.badge--amber { background: #fff1d6; color: #8a5a00; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }

.chip { display: inline-flex; align-items: center; gap: .45em; padding: .55em 1em; border-radius: 999px; background: var(--soft); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9rem; transition: background .25s, color .25s, transform .25s; }
.chip:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: .55em; }
.ticks li { display: flex; gap: .65em; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: .15em; border-radius: 50%; background: #e6f3dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232d6a14' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat; }
.ticks--light li::before { background-color: rgba(124,192,75,.2); }

/* ---------- Progress + topbar + header ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--green), var(--red)); }
.topbar { background: var(--navy); color: rgba(255,255,255,.82); font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 1.2rem; }
.topbar a:hover { color: var(--green-2); }
.topbar__acc { display: inline-flex; align-items: center; gap: .45em; }
.header { position: sticky; top: 0; z-index: 100; background: rgba(250,247,242,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s; }
.header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(18,28,84,.4); border-color: var(--line); background: rgba(255,255,255,.9); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 82px; transition: height .3s var(--ease); }
.header.is-scrolled .header__in { height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand img { width: 54px; height: auto; transition: transform .8s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt strong { font: 800 1.28rem/1 var(--display); letter-spacing: .02em; color: var(--navy); }
.brand__txt strong em { font-style: normal; color: var(--red); }
.brand__txt small { font: 700 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--navy-3); margin-top: .35rem; }
.brand--light strong, .brand--light small { color: #fff; }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .2rem; }
.nav a { display: block; padding: .6rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; position: relative; transition: color .25s, background .25s; }
.nav a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--red); }
.nav__cta { padding: .8em 1.3em; font-size: .92rem; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--navy); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sezioni ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--white { background: var(--paper); }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.85); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 3rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.section--navy .section__head p { color: rgba(255,255,255,.72); }
.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Hero home ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 16s ease-in-out infinite alternate; }
.blob--1 { width: 520px; height: 520px; background: #d6def9; top: -160px; right: -120px; }
.blob--2 { width: 420px; height: 420px; background: #e2f1d6; bottom: -180px; left: -120px; animation-delay: -6s; }
.blob--3 { width: 260px; height: 260px; background: #fbd9df; top: 40%; left: 40%; animation-delay: -10s; opacity: .4; }
@keyframes float { to { transform: translate(40px, 30px) scale(1.1); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(18,28,84,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(18,28,84,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%); }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.rotator { display: inline-grid; vertical-align: bottom; color: var(--red); font-style: italic; font-weight: 500; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.6em) rotateX(-60deg); transition: opacity .6s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.rotator > span.is-on { opacity: 1; transform: none; }
.rotator > span.is-out { opacity: 0; transform: translateY(-.6em) rotateX(60deg); }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero__ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin: 2rem 0 2.2rem; }
.hero__trust { display: flex; gap: 1.6rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: .45em; }
.hero__trust .ic { color: var(--green); }
.hero__visual { position: relative; aspect-ratio: 1 / 1.02; }
.hv { position: absolute; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hv img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.hv:hover img { transform: scale(1.14); }
.hv--1 { inset: 0 22% 26% 0; }
.hv--2 { inset: 44% 0 0 38%; border: 8px solid var(--cream); }
.hv--3 { width: 34%; aspect-ratio: 1; top: 6%; right: 0; border: 6px solid var(--cream); border-radius: 50%; }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: .8rem; background: #fff; border-radius: 16px; padding: .9rem 1.1rem; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.3; animation: bob 5s ease-in-out infinite; }
.float-card strong { display: block; font-size: 1.05rem; color: var(--navy); }
.float-card__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #e6f3dd; color: #2d6a14; }
.float-card__ic--red { background: #fde6ea; color: var(--red); }
.float-card--a { left: -6%; bottom: 14%; }
.float-card--b { right: 4%; top: 40%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding: 1.1rem 0; transform: rotate(-1.2deg); margin: -1rem -2% 0; width: 104%; position: relative; z-index: 2; }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 2.5rem; font: 500 1.5rem/1 var(--display); font-style: italic; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--green-2); font-style: normal; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statistiche ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: #fff; padding: 2rem 1.6rem; }
.stat b { display: block; font: 600 clamp(2.2rem, 4vw, 3.2rem)/1 var(--display); color: var(--navy); margin-bottom: .4rem; }
.stat b small { font-size: .5em; color: var(--red); margin-left: .1em; }
.stat > span { color: var(--muted); font-size: .95rem; }

/* ---------- Due canali FSE / GOL ---------- */
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.channel { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow); }
.channel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.channel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,28,84,.05) 10%, rgba(18,28,84,.92) 85%); transition: background .5s; }
.channel--gol::before { background: linear-gradient(180deg, rgba(20,60,10,.05) 10%, rgba(18,46,20,.92) 85%); }
.channel:hover img { transform: scale(1.07); }
.channel__body { padding: 2.2rem; }
.channel__tag { display: inline-block; font: 800 .8rem/1 var(--sans); letter-spacing: .16em; padding: .5em .9em; border-radius: 999px; background: var(--red); margin-bottom: 1rem; }
.channel--gol .channel__tag { background: var(--green); }
.channel h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.channel p { color: rgba(255,255,255,.85); max-width: 460px; }
.channel__more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; margin-top: .4rem; }
.channel__more .ic { transition: transform .3s var(--ease); }
.channel:hover .channel__more .ic { transform: translateX(6px); }

/* ---------- Spotlight corso ---------- */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.spot__media { position: relative; }
.spot__media .main { border-radius: var(--r-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.spot__media .mini { position: absolute; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 8px solid var(--paper); right: -6%; bottom: -8%; box-shadow: var(--shadow); }
.spot__seal { position: absolute; top: -28px; left: -28px; width: 120px; height: 120px; }
.spot__seal svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.spot__seal b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.6rem/1 var(--display); color: #fff; }
.spot__seal::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin: 1.6rem 0 2rem; }
.fact { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); }
.fact .ic { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: #fff; color: var(--red); box-shadow: 0 4px 10px -6px rgba(0,0,0,.2); }
.fact b { display: block; color: var(--navy); line-height: 1.2; }
.fact span { font-size: .85rem; color: var(--muted); line-height: 1.2; }

/* ---------- Card corsi ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 2px 0 var(--line), var(--shadow); display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); transform-style: preserve-3d; will-change: transform; }
.card:hover { box-shadow: var(--shadow-lg); }
.card__img { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__img img { transform: scale(1.08); }
.card__img .badge { position: absolute; top: 1rem; left: 1rem; box-shadow: 0 4px 14px -4px rgba(0,0,0,.25); }
.card__ic { position: absolute; right: 1rem; bottom: -22px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: #fff; box-shadow: var(--shadow); z-index: 2; }
.card__ic .ic { width: 24px; height: 24px; }
.card__ic--green { background: var(--green); } .card__ic--red { background: var(--red); }
.card__body { padding: 1.8rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__kicker { font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .86rem; color: var(--navy-2); font-weight: 600; margin: auto 0 1.2rem; padding-top: .6rem; }
.card__meta span { display: inline-flex; gap: .35em; align-items: center; }
.card__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 8px, transparent 8px 16px); }
.section--white .steps::before, .section--soft .steps::before { background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 .4rem; }
.step__n { width: 68px; height: 68px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy-2); color: #fff; font: 600 1.5rem/1 var(--display); box-shadow: 0 0 0 8px var(--navy); position: relative; transition: transform .4s var(--ease), background .4s; }
.section--white .step__n, .section--soft .step__n { box-shadow: 0 0 0 8px var(--paper); background: var(--navy); }
.section--soft .step__n { box-shadow: 0 0 0 8px var(--soft); }
.step:hover .step__n { transform: scale(1.1) rotate(-6deg); background: var(--red); }
.step h3 { font-size: 1.1rem; margin-bottom: .35em; }
.step p { font-size: .92rem; margin: 0; opacity: .85; }

/* ---------- Valori / features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature { padding: 1.8rem 1.5rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(79,154,47,.15), transparent 70%); transition: transform .6s var(--ease); }
.feature:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.feature:hover::after { transform: scale(2); }
.feature__ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #e4e8fb; color: var(--navy-2); margin-bottom: 1.2rem; }
.feature__ic .ic { width: 26px; height: 26px; }
.feature:nth-child(2) .feature__ic { background: #fde6ea; color: var(--red); }
.feature:nth-child(3) .feature__ic { background: #e6f3dd; color: #2d6a14; }
.feature:nth-child(4) .feature__ic { background: #fff1d6; color: #8a5a00; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Split testo/immagine ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.split__note { position: absolute; left: -1.5rem; bottom: -1.5rem; background: var(--red); color: #fff; border-radius: var(--r); padding: 1.2rem 1.4rem; max-width: 260px; box-shadow: var(--shadow); font-size: .92rem; line-height: 1.4; }
.split__note b { display: block; font: 600 2rem/1 var(--display); margin-bottom: .2rem; }

/* ---------- Page hero (interne) ---------- */
.phero { position: relative; overflow: hidden; color: #fff; padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem); background: var(--navy); isolation: isolate; }
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 120%; object-fit: cover; opacity: .35; will-change: transform; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 80% 0%, rgba(200,16,46,.35), transparent 55%), linear-gradient(90deg, var(--navy) 25%, rgba(18,28,84,.55)); }
.phero--green::before { background: radial-gradient(ellipse at 80% 0%, rgba(124,192,75,.35), transparent 55%), linear-gradient(90deg, #0f2a14 20%, rgba(15,42,20,.55)); }
.phero--green { background: #0f2a14; }
.phero h1 { color: #fff; max-width: 860px; }
.phero h1 em { color: var(--green-2); }
.phero p { max-width: 640px; font-size: 1.2rem; color: rgba(255,255,255,.82); }
.crumbs { display: flex; gap: .5rem; font-size: .88rem; margin-bottom: 1.4rem; color: rgba(255,255,255,.7); }
.crumbs a { color: #fff; text-decoration: none; }
.phero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.phero__chips .chip { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px); }
.phero__chips .chip:hover { background: #fff; color: var(--navy); }

/* ---------- Scheda corso dettagliata ---------- */
.course { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.course__aside { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.panel { background: #fff; border-radius: var(--r-lg); padding: 2rem; box-shadow: 0 2px 0 var(--line), var(--shadow); }
.panel--navy { background: var(--navy); color: rgba(255,255,255,.85); }
.panel--navy h3 { color: #fff; }
.kv { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed rgba(255,255,255,.18); font-size: .95rem; }
.kv li span { opacity: .75; }
.kv li b { text-align: right; color: #fff; }
.panel:not(.panel--navy) .kv li { border-color: var(--line); }
.panel:not(.panel--navy) .kv li b { color: var(--navy); }

.hours { display: grid; gap: .75rem; margin: 1.5rem 0; }
.hour { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; font-size: .95rem; }
.hour b { color: var(--navy); font-variant-numeric: tabular-nums; }
.hour__bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--soft); overflow: hidden; }
.hour__bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--navy-2), var(--navy-3)); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease); }
.hour--stage .hour__bar i { background: linear-gradient(90deg, var(--green), var(--green-2)); }
.is-visible .hour__bar i { transform: scaleX(1); }
.hours .hour:nth-child(n) .hour__bar i { transition-delay: calc(var(--i, 0) * 70ms); }

.donut { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0 0; }
.donut svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; }
.donut .seg { stroke-dasharray: 0 999; transition: stroke-dasharray 1.6s var(--ease); }
.donut__legend { display: grid; gap: .4rem; font-size: .92rem; }
.donut__legend span { display: flex; align-items: center; gap: .5rem; }
.donut__legend i { width: 12px; height: 12px; border-radius: 4px; }

.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
.score { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; text-align: center; }
.score b { display: block; font: 600 2.4rem/1 var(--display); color: var(--red); }
.score span { font-size: .9rem; color: var(--muted); }

.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.docs li { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; font-size: .95rem; transition: border-color .3s, transform .3s; }
.docs li:hover { border-color: var(--navy-3); transform: translateX(4px); }
.docs .ic { color: var(--navy-2); width: 22px; height: 22px; }

.status { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border-radius: var(--r); background: #fff8e6; border: 1px solid #f3dfa8; color: #6b4b00; font-size: .95rem; margin-bottom: 1.5rem; }
.status .ic { width: 24px; height: 24px; margin-top: .1rem; color: #b07a00; }
.status b { color: #5a3d00; }

/* ---------- GOL: percorsi ---------- */
.paths { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.path { border-radius: var(--r); padding: 1.6rem 1.3rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background .35s, transform .35s var(--ease); }
.path:hover { background: rgba(255,255,255,.12); transform: translateY(-6px); }
.path b { display: block; font: 600 2.6rem/1 var(--display); color: var(--green-2); margin-bottom: .8rem; }
.path h3 { font-size: 1.1rem; }
.path p { font-size: .9rem; margin: 0; color: rgba(255,255,255,.75); }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.who div { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border-radius: var(--r); padding: 1.2rem 1.3rem; border: 1px solid var(--line); }
.who .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #e6f3dd; color: #2d6a14; }
.who b { display: block; color: var(--navy); }
.who span { font-size: .9rem; color: var(--muted); }

/* ---------- Timeline (chi siamo) ---------- */
.timeline { position: relative; display: grid; gap: 2.2rem; padding-left: 2.4rem; }
.timeline::before { content: ""; position: absolute; left: 9px; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 9px; top: .4rem; width: 2px; height: var(--tl, 0%); background: linear-gradient(var(--red), var(--green)); transition: height .2s linear; }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -2.4rem; top: .35rem; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--red); z-index: 1; }
.tl b { font: 600 1.7rem/1 var(--display); color: var(--red); display: block; margin-bottom: .4rem; }
.tl h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.tl p { color: var(--muted); margin: 0; }

.sedi { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.sede { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.sede img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.sede__body { padding: 1.6rem; }
.sede__ph { aspect-ratio: 16/9; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #2c3d9e, var(--navy)); color: #fff; }
.sede__ph img { width: 40%; aspect-ratio: auto; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); animation: bob 6s ease-in-out infinite; }

.targa { background: #fff; border-radius: var(--r); padding: 1.2rem; box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 1.5rem; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23121c54' stroke-width='2.5' stroke-linecap='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .35s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: #fde6ea; }
.faq .faq__a { padding: 0 1.5rem 1.3rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(2.5rem, 6vw, 4.5rem); background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #3a2a7a 100%); color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; isolation: isolate; }
.cta::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(200,16,46,.55), transparent 70%); z-index: -1; animation: float 12s ease-in-out infinite alternate; }
.cta::after { content: ""; position: absolute; width: 300px; height: 300px; left: 30%; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(124,192,75,.4), transparent 70%); z-index: -1; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255,255,255,.8); margin: 0; font-size: 1.1rem; }
.cta__btns { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Contatti ---------- */
.ccards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: -4.5rem; position: relative; z-index: 3; }
.ccard b { overflow-wrap: anywhere; }
.ccard { background: #fff; border-radius: var(--r); padding: 1.6rem 1.4rem; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s; display: block; }
.ccard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ccard .ic { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--navy); color: #fff; margin-bottom: 1rem; }
.ccard:nth-child(2) .ic { background: var(--red); } .ccard:nth-child(3) .ic { background: var(--green); } .ccard:nth-child(4) .ic { background: var(--navy-3); }
.ccard small { display: block; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; margin-bottom: .3rem; }
.ccard b { color: var(--navy); font-size: 1.02rem; word-break: break-word; }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.map { border-radius: var(--r-lg); overflow: hidden; background: var(--navy); position: relative; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ph { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .8rem; padding: 2rem; color: rgba(255,255,255,.85); background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.08), transparent 60%), repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px); }
.map__ph .ic { width: 44px; height: 44px; margin: 0 auto; color: var(--red); animation: bob 2.6s ease-in-out infinite; }
.map__ph small { font-size: .8rem; opacity: .7; max-width: 380px; margin: 0 auto; }
.map__tabs { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.map__tabs button { border: 0; background: var(--soft); padding: .6rem 1rem; border-radius: 999px; font: 600 .9rem var(--sans); cursor: pointer; color: var(--navy); }
.map__tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1rem; }
.form--card { background: #fff; padding: clamp(1.6rem, 3vw, 2.5rem); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; }
.field input, .field textarea, .field select { width: 100%; font: 500 1rem var(--sans); color: var(--ink); background: var(--cream); border: 1.5px solid var(--line); border-radius: 14px; padding: 1.35rem 1rem .55rem; transition: border-color .25s, background .25s, box-shadow .25s; resize: vertical; }
.field select { padding: 1rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23121c54' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; }
.field label { position: absolute; left: 1rem; top: 1rem; color: var(--muted); pointer-events: none; transition: transform .2s var(--ease), font-size .2s, color .2s; transform-origin: left top; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy-3); background: #fff; box-shadow: 0 0 0 4px rgba(44,61,158,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-.6rem); font-size: .74rem; color: var(--navy-3); font-weight: 700; }
.field.is-invalid input { border-color: var(--red); background: #fff5f6; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--red); flex: none; }
.form__msg { margin: 0; font-weight: 600; min-height: 1.2em; font-size: .95rem; }
.form__msg.is-ok { color: #2d6a14; } .form__msg.is-err { color: var(--red); }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* ---------- Modali ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(960px, calc(100% - 24px)); width: 100%; max-height: calc(100dvh - 24px); overflow: visible; color: var(--ink); }
.modal::backdrop { background: rgba(12,16,48,.6); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .5s var(--ease); }
.modal[open]::backdrop { animation: fade .4s ease; }
.modal.is-closing { animation: popout .3s ease forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes popout { to { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.modal__box { position: relative; background: #fff; border-radius: var(--r-lg); overflow: auto; max-height: calc(100dvh - 24px); box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); }
.modal__box--form { display: grid; grid-template-columns: .9fr 1.1fr; }
.modal__side { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: rgba(255,255,255,.85); padding: 2.6rem 2.2rem; position: relative; overflow: hidden; }
.modal__side::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -100px; bottom: -100px; background: radial-gradient(circle, rgba(200,16,46,.5), transparent 70%); }
.modal__side h2 { color: #fff; font-size: 2rem; }
.modal__call { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font: 600 1.4rem var(--display); text-decoration: none; margin-top: .5rem; position: relative; z-index: 1; }
.modal__box--form .form { padding: 2.6rem 2.2rem; }
.modal__x { position: absolute; top: 14px; right: 14px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--soft); color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.modal__x:hover { transform: rotate(90deg); background: #fde6ea; color: var(--red); }
.modal__x--light { background: rgba(255,255,255,.9); }
.promo { display: grid; grid-template-columns: 1fr 1.15fr; max-width: 880px; }
.modal--promo { max-width: min(880px, calc(100% - 24px)); }
.promo__img { position: relative; min-height: 100%; }
.promo__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__body { padding: 2.6rem 2.4rem; }
.promo__body h2 { font-size: 2.1rem; margin-top: 1rem; }
.promo__links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; }
.cmodal { padding: 0; }
.cmodal__hero { position: relative; height: 230px; overflow: hidden; }
.cmodal__hero img { width: 100%; height: 100%; object-fit: cover; }
.cmodal__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,28,84,.9), transparent 70%); }
.cmodal__hero div { position: absolute; left: 2.2rem; bottom: 1.5rem; right: 2.2rem; z-index: 1; color: #fff; }
.cmodal__hero h2 { color: #fff; margin: .4rem 0 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cmodal__body { padding: 2rem 2.2rem 2.4rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.cmodal__body h3 { font-size: 1.1rem; margin-top: 1.2rem; }
.cmodal__body h3:first-child { margin-top: 0; }
.cmodal__body p, .cmodal__body li { color: var(--muted); font-size: .97rem; }

/* ---------- FAB contatto rapido ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.fab__btn { width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 14px 30px -8px rgba(200,16,46,.6); display: grid; place-items: center; position: relative; transition: transform .35s var(--ease); }
.fab__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); z-index: -1; animation: ping 2.4s var(--ease) infinite; }
.fab__btn:hover { transform: scale(1.08) rotate(-8deg); }
.fab__btn .ic { width: 26px; height: 26px; grid-area: 1/1; transition: transform .35s var(--ease), opacity .25s; }
.fab__btn .ic--close { opacity: 0; transform: rotate(-90deg); }
.fab.is-open .fab__btn .ic--open { opacity: 0; transform: rotate(90deg); }
.fab.is-open .fab__btn .ic--close { opacity: 1; transform: none; }
.fab.is-open .fab__btn::before { animation: none; }
.fab__bubble { background: #fff; color: var(--navy); font-weight: 700; font-size: .9rem; padding: .7rem 1rem; border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px) scale(.9); transform-origin: right bottom; transition: opacity .4s, transform .4s var(--ease); pointer-events: none; }
.fab.has-bubble .fab__bubble { opacity: 1; transform: none; }
.fab.is-open .fab__bubble { opacity: 0; }
.fab__menu { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: .8rem; width: 270px; display: grid; gap: .3rem; transform-origin: right bottom; animation: pop .35s var(--ease); }
.fab__menu[hidden] { display: none; }
.fab__hello { margin: .3rem .6rem .5rem; font-weight: 700; color: var(--navy); font-size: .95rem; }
.fab__menu a, .fab__menu button { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; border-radius: 12px; text-decoration: none; color: var(--ink); font: 600 .95rem var(--sans); background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.fab__menu a:hover, .fab__menu button:hover { background: var(--soft); }
.fab__menu .ic { width: 20px; height: 20px; color: var(--red); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden; background: var(--navy); color: #fff; padding: .9rem 1.4rem; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; transition: transform .5s var(--ease); max-width: calc(100% - 40px); }
.toast { transition: transform .5s var(--ease), opacity .3s, visibility .5s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .5s var(--ease), opacity .3s; }

/* ---------- Footer ---------- */
.funding { background: #fff; border-top: 1px solid var(--line); padding: 1.8rem 0; }
.funding__in { display: flex; align-items: center; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.funding p { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.funding img { width: min(680px, 100%); }
.footer { background: #0c1340; color: rgba(255,255,255,.72); padding: 4.5rem 0 1.5rem; position: relative; overflow: hidden; font-size: .95rem; }
.footer__glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; left: -200px; top: -300px; background: radial-gradient(circle, rgba(79,154,47,.18), transparent 70%); }
.footer__grid { display: grid; grid-template-columns: 1.4fr .8fr 1.1fr 1.2fr; gap: 2.5rem; position: relative; }
.footer h3 { color: #fff; font: 700 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: .4rem 0 1.3rem; }
.footer__brand p { margin-top: 1.2rem; }
.footer__acc { display: flex; gap: .5rem; font-size: .85rem; color: var(--green-2); }
.footer__acc .ic { margin-top: .2rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer__list a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s, padding .3s var(--ease); }
.footer__list a:hover { color: #fff; padding-left: 4px; }
.footer__list--ic li { display: flex; gap: .7rem; align-items: flex-start; }
.footer__list--ic .ic { color: var(--green-2); margin-top: .3rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; position: relative; }
.footer__bottom a { color: rgba(255,255,255,.85); }

/* ---------- Animazioni allo scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-46px); }
.js [data-reveal="right"] { transform: translateX(46px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js .split-words.is-visible .w > span { transform: none; }

/* ---------- Pagine semplici ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound b { font: 600 clamp(6rem, 18vw, 12rem)/1 var(--display); color: var(--navy); display: block; }
.notfound b em { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 100%); background: var(--paper); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 6rem 1.5rem 2rem; gap: 1.5rem; transform: translateX(100%); transition: transform .5s var(--ease); box-shadow: -20px 0 60px -20px rgba(0,0,0,.3); z-index: 99; height: 100dvh; }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; gap: .3rem; }
  .nav a { font-size: 1.2rem; padding: .9rem 1rem; border-radius: 14px; }
  .nav a::after { display: none; }
  .nav a.is-active { background: #fde6ea; }
  .nav.is-open li { animation: slidein .5s var(--ease) both; }
  .nav.is-open li:nth-child(2) { animation-delay: .05s; } .nav.is-open li:nth-child(3) { animation-delay: .1s; } .nav.is-open li:nth-child(4) { animation-delay: .15s; } .nav.is-open li:nth-child(5) { animation-delay: .2s; }
  @keyframes slidein { from { opacity: 0; transform: translateX(30px); } }
  .burger { display: block; z-index: 101; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(12,16,48,.4); z-index: 98; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .steps::before { display: none; }
  .paths { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .ccards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero__in, .spot, .split, .course, .contact, .channels, .sedi { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .hero__visual { max-width: 520px; width: 100%; margin: 1rem auto 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .course__aside { position: static; }
  .cta { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr 1fr; }
  .modal__box--form, .promo, .cmodal__body { grid-template-columns: 1fr; }
  .promo__img { height: 200px; }
  .modal__side { padding: 2rem 1.6rem; }
  .modal__box--form .form, .promo__body { padding: 1.8rem 1.6rem; }
  .spot__media { margin: 0 6% 2rem 0; }
  .split__note { left: 1rem; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topbar__acc { display: none; }
  .topbar__in { justify-content: center; }
  .topbar a { margin: 0 .6rem; }
  .header__in { height: 70px; }
  .brand img { width: 44px; }
  .brand__txt strong { font-size: 1.08rem; }
  .steps, .paths, .features, .who, .docs, .footer__grid, .form__row { grid-template-columns: 1fr; }
  .scores { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .channel { min-height: 400px; }
  .channel__body { padding: 1.6rem; }
  .float-card--a { left: 0; }
  .float-card { font-size: .8rem; padding: .7rem .85rem; }
  .ccards { grid-template-columns: 1fr; margin-top: -3rem; }
  .panel { padding: 1.5rem; }
  .cmodal__body, .cmodal__hero div { padding-left: 1.4rem; padding-right: 1.4rem; left: 0; right: 0; }
  .cmodal__hero div { left: 1.4rem; right: 1.4rem; padding: 0; }
  .marquee span { font-size: 1.15rem; }
  .fab { right: 14px; bottom: 14px; }
  .fab__btn { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .split-words .w > span { opacity: 1; transform: none; }
}

/* Contatore anni (Chi siamo) */
.years { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 5/4; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.6rem, 4vw, 3rem); }
.years::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 15%, rgba(200,16,46,.45), transparent 45%), radial-gradient(circle at 10% 95%, rgba(124,192,75,.3), transparent 45%); }
.years__ring { position: absolute; right: -18%; top: -22%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.18); animation: spin 40s linear infinite; z-index: -1; }
.years__from { text-transform: uppercase; letter-spacing: .18em; font: 700 .8rem var(--sans); color: var(--green-2); }
.years__num { font: 600 clamp(4.5rem, 12vw, 8.5rem)/1 var(--display); letter-spacing: -.02em; margin: .4rem 0 1.4rem; font-variant-numeric: tabular-nums; }
.years__bar { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.years__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green-2), var(--red)); transition: width 1.6s cubic-bezier(.16,1,.3,1) .1s; }
.is-visible .years__bar i, .no-js .years__bar i { width: 100%; }
.years__ends { display: flex; justify-content: space-between; margin-top: .5rem; font: 600 .85rem var(--sans); color: rgba(255,255,255,.6); }
.years__label { margin-top: 1.4rem; font-size: 1.05rem; color: rgba(255,255,255,.85); }
.years__label b { font: 600 1.6rem var(--display); color: #fff; margin-right: .25rem; }
@media (prefers-reduced-motion: reduce) { .years__ring { animation: none; } .years__bar i { transition: none; width: 100%; } }
