/* ==========================================================
   ADD Academy Umbria - proposta di design
   Mobile first. Palette: inchiostro, blu del logo, giallo "volt".
   ========================================================== */

:root {
  --ink: #0A0F1F;
  --ink-2: #121A33;
  --ink-3: #1B2547;
  --blue: #1668FF;
  --blue-d: #0B4BD1;
  --volt: #D8FF3E;
  --paper: #F4F2EC;
  --white: #fff;
  --text: #1B2033;
  --muted: #5B6275;
  --radius: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(18px, 5vw, 48px);
  --max: 1180px;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(64px, 12vw, 150px); }

/* ---------- progress bar ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: var(--volt); transform-origin: left; transform: scaleX(var(--p, 0));
}

/* ---------- header ---------- */
.topbar {
  position: fixed; z-index: 90;
  top: max(10px, env(safe-area-inset-top));
  left: var(--gutter); right: var(--gutter);
  max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 16px;
  background: rgba(255, 255, 255, .97);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(10, 15, 31, .18);
  transition: transform .5s var(--ease), box-shadow .3s, background .3s;
}
.topbar.is-hidden { transform: translateY(-140%); }

.brand { display: block; line-height: 0; }
.brand__crop {
  position: relative; display: block; overflow: hidden;
  width: 138px; aspect-ratio: 1425 / 360;
}
.brand__crop img {
  position: absolute; max-width: none;
  width: 140.4%; left: -3.86%; top: -16.7%;
}

.burger {
  position: relative; z-index: 2;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--ink); display: grid; place-content: center; gap: 6px;
}
.burger span {
  display: block; width: 20px; height: 2px; background: var(--volt); border-radius: 2px;
  transition: transform .45s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* menu mobile: pannello a tutto schermo */
.nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 90px var(--gutter) 40px;
  background: var(--ink);
  clip-path: circle(0 at calc(100% - 40px) 40px);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.nav.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.nav a {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; text-decoration: none;
  font-size: clamp(3rem, 15vw, 5.5rem); line-height: 1; color: var(--white);
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s, transform .6s var(--ease), color .2s;
}
.nav.is-open a { opacity: 1; transform: none; }
.nav.is-open a:nth-child(1) { transition-delay: .18s; }
.nav.is-open a:nth-child(2) { transition-delay: .24s; }
.nav.is-open a:nth-child(3) { transition-delay: .30s; }
.nav.is-open a:nth-child(4) { transition-delay: .36s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--volt); }
.nav .ext { font-style: normal; font-size: .5em; margin-left: .15em; vertical-align: top; }
.nav__cta { color: var(--volt) !important; }

/* header desktop */
@media (min-width: 860px) {
  /* il blur solo da desktop: su mobile renderebbe "fixed" il menu relativo alla barra */
  .topbar { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .burger { display: none; }
  .brand__crop { width: 168px; }
  .nav {
    position: static; inset: auto; z-index: auto; flex-direction: row; align-items: center; gap: 2px;
    padding: 0; background: none; clip-path: none; visibility: visible; transition: none;
  }
  .nav a, .nav.is-open a {
    opacity: 1; transform: none; transition: none;
    font-family: var(--body); font-weight: 600; text-transform: none; font-size: .98rem;
    color: var(--ink); padding: 11px 18px; border-radius: 999px; line-height: 1.2;
    transition: background .25s, color .25s;
  }
  .nav a:hover { background: rgba(10, 15, 31, .07); color: var(--ink); }
  .nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
  .nav .ext { font-size: .85em; margin-left: 3px; vertical-align: baseline; }
  .nav .nav__cta { background: var(--blue); color: var(--white) !important; margin-left: 6px; }
  .nav .nav__cta:hover { background: var(--blue-d); color: var(--white) !important; }
}

/* ---------- bottoni ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1.02rem; text-decoration: none; line-height: 1.1;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn i { font-style: normal; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:hover i { transform: translateY(3px); }
.btn:active { transform: scale(.97); }
.btn--volt { background: var(--volt); color: var(--ink); }
.btn--volt:hover { background: var(--white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: .88rem; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* titoli con maschera */
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; animation-delay: var(--ld, .15s); }
.line:nth-child(2) > span { --ld: .3s; }
@keyframes rise { to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); background: var(--ink); overflow: hidden;
  padding: 120px 0 clamp(70px, 12vh, 110px);
}
.hero__bg { position: absolute; inset: -6% 0; will-change: transform; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  opacity: 0; animation: heroSlide 18s infinite;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 6s; object-position: 60% 40%; }
.hero__slide:nth-child(3) { animation-delay: 12s; object-position: 35% 40%; }
@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1.12); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; transform: scale(1); }
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 31, .6) 0%, rgba(10, 15, 31, .1) 35%, rgba(10, 15, 31, .94) 100%),
    linear-gradient(120deg, rgba(22, 104, 255, .45), rgba(22, 104, 255, 0) 60%);
}
.hero__inner { position: relative; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 9px 16px; border-radius: 999px; font-size: .86rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .25);
  opacity: 0; animation: fadeup .8s var(--ease) .1s forwards;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 0 var(--volt); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(216, 255, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 255, 62, 0); } }

.hero__title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.6rem, 19vw, 11.5rem); line-height: .86; letter-spacing: -.01em;
}
.line--volt { color: var(--volt); }

.hero__moves {
  display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 22px 0 30px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.35rem, 5.5vw, 2.1rem); letter-spacing: .03em;
}
.hero__moves span {
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85);
  animation: lit 6s infinite;
}
.hero__moves span:nth-child(1) { animation-delay: 0s; }
.hero__moves span:nth-child(2) { animation-delay: 2s; }
.hero__moves span:nth-child(3) { animation-delay: 4s; }
@keyframes lit {
  0%, 28%, 100% { color: transparent; -webkit-text-stroke-color: rgba(255, 255, 255, .85); }
  6%, 22% { color: var(--volt); -webkit-text-stroke-color: var(--volt); }
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fadeup .9s var(--ease) .75s forwards; }

.scrollhint {
  position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; translate: -50% 0;
  border: 2px solid rgba(255, 255, 255, .6); border-radius: 16px; display: none;
}
.scrollhint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--volt); border-radius: 4px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80%, 100% { opacity: 0; transform: translateY(16px); } }
@media (min-width: 700px) and (min-height: 600px) { .scrollhint { display: block; } }

/* ---------- marquee ---------- */
.marquee { background: var(--volt); color: var(--ink); overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg) scale(1.03); margin-block: -14px; position: relative; z-index: 2; box-shadow: 0 10px 30px rgba(10, 15, 31, .18); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 5vw, 2.4rem); white-space: nowrap; line-height: 1; }
.marquee__group b { width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); margin: 0 clamp(20px, 4vw, 44px); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- intro ---------- */
.intro { padding-top: clamp(90px, 14vw, 170px); }
.display {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .88;
  font-size: clamp(3rem, 13vw, 7.5rem); color: var(--ink); letter-spacing: -.01em;
}
.display em { font-style: normal; color: var(--blue); }
.display--light { color: var(--white); }

.intro__grid { display: grid; gap: 30px; }
.intro__text { display: grid; gap: 18px; max-width: 62ch; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); font-weight: 500; }
.intro__text p { color: var(--muted); }
.intro__text .lead { color: var(--ink); }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: start; }
  .lead { font-size: 1.3rem; }
}

.values { display: grid; gap: 14px; margin-top: clamp(40px, 7vw, 80px); }
.value {
  position: relative; padding: 28px 26px 30px; border-radius: var(--radius); overflow: hidden;
  min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .45s var(--ease);
}
.value:hover { transform: translateY(-6px) rotate(-.6deg); }
.value__n { position: absolute; top: 12px; right: 20px; font-family: var(--display); font-weight: 800; font-size: 5.5rem; line-height: 1; opacity: .18; }
.value h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: .95; }
.value p { margin-top: 8px; max-width: 30ch; font-size: 1rem; line-height: 1.4; opacity: .9; }
.value--blue { background: var(--blue); color: var(--white); }
.value--volt { background: var(--volt); color: var(--ink); }
.value--ink { background: var(--ink); color: var(--white); }
@media (min-width: 800px) {
  .values { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .value { min-height: 300px; }
  .values .value:nth-child(2) { margin-top: 34px; }
  .values .value:nth-child(3) { margin-top: 68px; }
}
.js .values .value:nth-child(2) { --d: .12s; }
.js .values .value:nth-child(3) { --d: .24s; }

.signature { margin-top: 30px; font-family: var(--display); font-weight: 600; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.signature::before { content: ""; width: 44px; height: 3px; background: var(--blue); border-radius: 3px; }

/* ---------- galleria / strisce scorrevoli ---------- */
.gallery { position: relative; padding-bottom: clamp(40px, 8vw, 90px); }
.strip {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 0 var(--gutter) 6px; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: 0 0 86%; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.strip figure:hover img { transform: scale(1.06); }
@media (min-width: 700px) { .strip figure { flex-basis: 52%; aspect-ratio: 16 / 10; } }
@media (min-width: 1100px) { .strip { padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); } .strip figure { flex-basis: 38%; } }
.swipehint { margin: 14px var(--gutter) 0; text-align: right; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.swipehint i { display: inline-block; font-style: normal; animation: nudge 1.4s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }

/* ---------- corsi ---------- */
.courses {
  position: relative; background: var(--ink); color: var(--white); overflow: hidden;
  border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0;
}
.courses::before, .courses::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none;
}
.courses::before { background: var(--blue); top: -35vmax; right: -25vmax; animation: float 16s ease-in-out infinite; }
.courses::after { background: #3B2BFF; bottom: -40vmax; left: -30vmax; opacity: .3; animation: float 20s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(-6vmax, 5vmax) scale(1.1); } }
.courses .wrap { position: relative; z-index: 1; }

.courses__head { margin-bottom: 30px; }
.courses__sub { margin-top: 12px; font-size: 1.2rem; color: var(--volt); font-weight: 500; }

.tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 420px;
  padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14);
  margin-bottom: 28px;
}
.tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 14px 10px; border-radius: 999px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .04em; transition: color .35s; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--volt); transition: transform .55s var(--ease); }
.tabs[data-active="terni"] .tabs__thumb { transform: translateX(100%); }

.cities { display: grid; gap: 40px; }
.city { display: none; }
.city.is-active { display: block; }
.city__name { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .04em; margin-bottom: 16px; color: rgba(255, 255, 255, .75); }
.city__name b { font-weight: 800; color: var(--white); font-size: 1.25em; }
.days { display: grid; gap: 14px; }
.day {
  padding: 22px 22px 14px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), border-color .3s;
}
.day:hover { transform: translateY(-4px); border-color: var(--volt); }
.day h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; color: var(--volt); margin-bottom: 8px; }
.day li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.age { font-family: var(--display); font-weight: 700; font-size: 1.45rem; text-transform: uppercase; line-height: 1.1; }
.age small { font-family: var(--body); font-size: .72rem; font-weight: 500; letter-spacing: .08em; opacity: .7; }
.time { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.35; }

/* le card non scendono mai sotto 270px: si dispongono da sole in base allo spazio */
.age, .time { white-space: nowrap; }
@media (min-width: 640px) { .days, .days--3 { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); } }
@media (min-width: 1000px) {
  .tabs { display: none; }
  .cities { gap: 56px; }
  .city, .city.is-active { display: block; }
  .city__name { margin-bottom: 20px; font-size: 1.3rem; }
  .city__name b { font-size: 2.2rem; }
  .day { padding: 24px 26px 14px; }
}

.personal {
  margin-top: 40px; padding: 26px 22px; border-radius: var(--radius); text-align: center;
  background: var(--white); color: var(--ink);
  font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.4rem, 5vw, 2.1rem); line-height: 1.15;
}
.personal b { display: inline-block; background: var(--blue); color: var(--white); padding: 2px 14px 0; border-radius: 10px; margin-top: 6px; transform: rotate(-1.5deg); }

/* ---------- 5 x 1000 ---------- */
.cinque { background: var(--blue); color: var(--white); padding-block: clamp(46px, 8vw, 90px); position: relative; overflow: hidden; }
.cinque::before { content: "5×1000"; position: absolute; right: -2vw; top: 50%; translate: 0 -50%; font-family: var(--display); font-weight: 800; font-size: clamp(8rem, 30vw, 22rem); line-height: .8; color: rgba(255, 255, 255, .07); pointer-events: none; white-space: nowrap; }
.cinque__inner { position: relative; display: grid; gap: 24px; justify-items: start; }
.cinque p { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 8vw, 4rem); line-height: 1; max-width: 18ch; }
.cinque p b { color: var(--volt); white-space: nowrap; }
.cf {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 12px 12px 22px; border-radius: 999px;
  background: var(--ink); border: 0; color: var(--white); font-weight: 600; font-size: 1.15rem;
  transition: transform .35s var(--ease), background .25s;
}
.cf:hover { transform: translateY(-3px); background: var(--ink-3); }
.cf__label { opacity: .6; }
.cf__num { font-family: var(--display); font-size: 1.7rem; letter-spacing: .06em; color: var(--volt); }
.cf__copy { padding: 8px 16px; border-radius: 999px; background: var(--volt); color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 900px) { .cinque__inner { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding-top: clamp(56px, 9vw, 100px); font-size: .98rem; }
.footer__grid { display: grid; gap: 50px; }
.brand--footer .brand__crop { background: var(--white); border-radius: 14px; width: 200px; padding: 0; }
.footer__name { margin: 22px 0 18px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; line-height: 1.1; color: var(--white); }
.contact li { display: grid; gap: 0; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.contact span { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--volt); font-weight: 600; }
.contact a { text-decoration: none; transition: color .2s; }
.contact a:hover { color: var(--volt); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: transform .35s var(--ease), background .25s; }
.social svg { width: 22px; height: 22px; fill: var(--white); transition: fill .25s; }
.social a:hover { background: var(--volt); transform: translateY(-4px) rotate(-8deg); }
.social a:hover svg { fill: var(--ink); }

.footer__docs { display: grid; gap: 12px; align-content: start; }
.doc { display: grid; gap: 12px; justify-items: start; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font-size: .93rem; line-height: 1.45; }
.doc p { color: rgba(255, 255, 255, .85); }
.doc--safe { background: rgba(216, 255, 62, .1); border-color: rgba(216, 255, 62, .35); }
.doc--safe p { color: var(--white); font-weight: 500; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 70px; } .footer__docs { grid-template-columns: 1fr 1fr; } .doc--safe { grid-column: 1 / -1; } }

.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-block: 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer__bottom a { color: var(--white); text-underline-offset: 3px; }

/* ==========================================================
   PAGINA ASSOCIAZIONE
   ========================================================== */
.pagehero { position: relative; min-height: 56svh; display: flex; align-items: flex-end; padding: 130px 0 46px; color: var(--white); background: var(--ink); overflow: hidden; }
.pagehero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; animation: kenburns 20s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1); } }
.pagehero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 15, 31, .5), rgba(10, 15, 31, .92)), linear-gradient(120deg, rgba(22, 104, 255, .5), transparent 65%); }
.pagehero__inner { position: relative; }
.pagehero__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(3.4rem, 17vw, 10rem); line-height: .88; }
.pagehero__sub { margin-top: 12px; font-size: 1.2rem; color: var(--volt); font-weight: 500; opacity: 0; animation: fadeup .8s var(--ease) .6s forwards; }

.about__grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 5fr 6fr; gap: 70px; align-items: start; } }
.eyebrow { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 7vw, 3rem); line-height: 1; color: var(--ink); margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.eyebrow::after { content: ""; flex: 1; height: 3px; background: linear-gradient(90deg, var(--blue), transparent); border-radius: 3px; }

.carousel { margin-bottom: 28px; }
.strip--photos { padding-inline: 0; border-radius: var(--radius); }
.strip--photos figure { flex-basis: 100%; aspect-ratio: 5 / 4; border-radius: var(--radius); }
.carousel__bar { display: flex; align-items: center; gap: 16px; margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; color: var(--muted); }
.carousel__count b { color: var(--blue); font-size: 1.5rem; }
.carousel__line { flex: 1; height: 4px; border-radius: 4px; background: rgba(10, 15, 31, .12); overflow: hidden; }
.carousel__line i { display: block; height: 100%; width: calc(100% / 7); background: var(--blue); border-radius: 4px; transform-origin: left; transition: transform .2s linear; }

.prose { display: grid; gap: 16px; }
.prose p { color: var(--text); }
.prose a { color: var(--blue); text-underline-offset: 3px; font-weight: 500; }
.prose a:hover { color: var(--blue-d); }
.hl { font-weight: 600; background: linear-gradient(transparent 58%, rgba(216, 255, 62, .85) 58%); padding: 0 2px; }

/* accordion */
.acc { display: grid; gap: 12px; }
.acc__item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 rgba(10, 15, 31, .06); transition: box-shadow .4s; }
.acc__item.is-open { box-shadow: 0 18px 50px rgba(10, 15, 31, .14); }
.acc__btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 20px; border: 0; background: none; text-align: left; }
.acc__ico { font-family: var(--display); font-weight: 800; font-size: 1rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--volt); flex-shrink: 0; transition: background .3s, color .3s; }
.acc__item.is-open .acc__ico { background: var(--blue); color: var(--white); }
.acc__t { flex: 1; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.acc__plus { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: var(--ink); border-radius: 3px; transition: transform .45s var(--ease); }
.acc__plus::after { transform: rotate(90deg); }
.acc__item.is-open .acc__plus::after { transform: rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { min-height: 0; overflow: hidden; padding: 0 20px; }
.acc__item.is-open .acc__inner { padding-bottom: 26px; }
.acc__inner > :first-child { margin-top: 2px; }

.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.founders li { border-radius: 18px; overflow: hidden; background: var(--paper); }
.founders__logo { display: grid; place-items: center; padding: 14px; background: var(--white) !important; border: 1px solid rgba(10, 15, 31, .1); }
.founders__logo img { width: 100%; max-height: 150px; object-fit: contain; }
.founders figure { position: relative; aspect-ratio: 1; }
.founders figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform 1s var(--ease); }
.founders li:hover figure img { filter: none; transform: scale(1.07); }
.founders figcaption { position: absolute; inset: auto 0 0 0; padding: 36px 12px 12px; background: linear-gradient(transparent, rgba(10, 15, 31, .9)); color: var(--white); font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: 1.05rem; line-height: 1.05; }
.founders figcaption b { display: block; color: var(--volt); font-weight: 800; font-size: 1.3rem; }
@media (min-width: 600px) { .founders { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .acc__inner { padding-inline: 28px; } .acc__btn { padding: 24px 28px; } }

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
  .hero__slide:nth-child(n+2) { display: none; }
  .hero__slide:first-child { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   SEO / contenuti: pagine di sede, disciplina, FAQ
   ========================================================== */
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--volt); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.hero__lead { max-width: 34ch; margin: -6px 0 26px; font-size: 1.05rem; line-height: 1.45; color: rgba(255, 255, 255, .88); opacity: 0; animation: fadeup .9s var(--ease) .6s forwards; }
@media (min-width: 700px) { .hero__lead { max-width: 52ch; font-size: 1.15rem; } }

.textlink { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; transition: color .25s, gap .3s var(--ease); }
.textlink:hover { color: var(--blue-d); gap: .7em; }
.textlink i { font-style: normal; }
.textlink--light { color: var(--volt); }
.textlink--light:hover { color: var(--white); }
.more { margin-top: 26px; }
.city__more { margin-top: 18px; }

.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--blue); }
.cta-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* breadcrumb */
.crumbs { margin-bottom: 14px; font-size: .88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.crumbs a { text-decoration: none; opacity: .85; }
.crumbs a:hover { opacity: 1; color: var(--volt); }
.crumbs [aria-current] { color: var(--volt); font-weight: 600; }

/* varianti hero pagina */
.pagehero--long { min-height: 62svh; }
.pagehero__title--long { font-size: clamp(2.5rem, 10.5vw, 6rem); line-height: .92; }
.pagehero--plain { min-height: 44svh; background: linear-gradient(135deg, var(--ink), var(--ink-3)); }
.pagehero--plain .pagehero__shade { background: radial-gradient(60% 80% at 85% 20%, rgba(22, 104, 255, .5), transparent); }

/* articolo */
.article-sec { padding-block: clamp(48px, 9vw, 110px); }
.article { max-width: 72ch; }
.article--wide { max-width: 78ch; }
.article h2.eyebrow { margin: 52px 0 18px; }
.article h2.eyebrow:first-child { margin-top: 0; }
.article h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 5.5vw, 2.1rem); line-height: 1; color: var(--ink); margin: 38px 0 12px; }
.article p { margin-bottom: 16px; }
.article a { color: var(--blue); text-underline-offset: 3px; font-weight: 500; }
.article .btn { color: var(--white); text-decoration: none; }
.article .lead { font-size: 1.2rem; color: var(--ink); font-weight: 500; }
.checks { display: grid; gap: 10px; margin: 0 0 20px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 18px; height: 18px; border-radius: 5px; background: var(--volt); box-shadow: inset 0 0 0 4px var(--ink); transform: rotate(45deg) scale(.8); }

.twocol { display: grid; gap: 32px; }
@media (min-width: 900px) { .twocol { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; } }

/* scheda "In breve" */
.facts { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 26px 24px; }
.facts__t { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; color: var(--volt); margin-bottom: 8px; }
.facts dl { margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--volt); font-weight: 600; padding-top: 3px; }
.facts dd { margin: 0; line-height: 1.4; }
.facts a { text-decoration: none; }
.facts a:hover { color: var(--volt); }

/* fasce d'età */
.ages-sec { background: var(--paper); }
.ages-sec--tight { padding-top: 0; }
.ages { display: grid; gap: 14px; margin-top: clamp(28px, 5vw, 50px); }
.age-card { background: var(--white); border-radius: var(--radius); padding: 24px 24px 26px; box-shadow: 0 1px 0 rgba(10, 15, 31, .06); border-top: 6px solid var(--blue); transition: transform .4s var(--ease), box-shadow .4s; }
.age-card:nth-child(2) { border-top-color: var(--volt); }
.age-card:nth-child(3) { border-top-color: var(--ink); }
.age-card:nth-child(4) { border-top-color: var(--blue-d); }
.age-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(10, 15, 31, .12); }
.age-card__n { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--blue); }
.age-card__n small { font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.age-card h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; color: var(--ink); margin: 6px 0 4px; line-height: 1; }
.age-card p { color: var(--muted); font-size: .98rem; line-height: 1.5; margin: 0; }
.age-card__tipo { color: var(--blue) !important; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem !important; margin-bottom: 8px !important; }
.age-card__slots { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid rgba(10, 15, 31, .1); color: var(--ink) !important; font-weight: 500; font-size: .92rem !important; }
@media (min-width: 640px) { .ages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ages { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; } }

/* FAQ */
.faq-sec { background: var(--paper); padding-top: clamp(24px, 6vw, 70px); }
.faq-wrap { max-width: 860px; }
.acc__t--q { font-family: var(--body); font-weight: 600; text-transform: none; font-size: 1.12rem; line-height: 1.3; }
.faq-sec .acc__inner p { margin: 0; color: var(--text); }

/* fascia contatto in fondo alle pagine di sede */
.cinque--cta::before { content: "ADD"; }
.cinque--cta .cinque__inner { justify-items: start; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cinque__links { font-family: var(--body) !important; font-weight: 500 !important; text-transform: none !important; font-size: 1rem !important; max-width: none !important; line-height: 1.6 !important; }
.cinque__links a { color: var(--white); text-underline-offset: 3px; }
.cinque__links a:hover { color: var(--volt); }

.courses--page { border-radius: 0; }
.courses--page .city { display: block; }

/* nav piè di pagina */
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-weight: 500; }
.footer__nav a { text-decoration: none; transition: color .2s; }
.footer__nav a:hover { color: var(--volt); }
.footer__nav + .footer__bottom { margin-top: 28px; }
/* fix: colonne griglia comprimibili e testi lunghi (email) a 320px */
.twocol > * { min-width: 0; }
.facts dd { overflow-wrap: anywhere; }
@media (max-width: 380px) { .facts dl > div { grid-template-columns: 82px 1fr; gap: 8px; } }
/* ===== 404: minigioco Parkour Run ===== */
.lead--center { text-align: center; max-width: 640px; margin: 0 auto 24px; }
.game { position: relative; max-width: 900px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: var(--ink); box-shadow: 0 18px 50px -20px rgba(10,15,31,.6); }
.game canvas { display: block; width: 100%; touch-action: none; outline: none; cursor: pointer; }
.game canvas:focus-visible { outline: 3px solid var(--volt); outline-offset: -3px; }
.game__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; color: var(--white); background: rgba(10,15,31,.72); }
.game__overlay[hidden] { display: none; }
.game__title { font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 800; font-size: clamp(1.5rem, 5.5vw, 2.6rem); line-height: 1.05; text-transform: uppercase; margin: 0; color: var(--volt); }
.game__text { margin: 0; max-width: 440px; font-size: .9rem; line-height: 1.45; }
.game__pad { display: flex; gap: 10px; max-width: 900px; margin: 12px auto 0; }
.game__btn { flex: 1; padding: 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); color: var(--ink); font: 800 1.05rem "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; letter-spacing: .04em; touch-action: manipulation; cursor: pointer; }
.game__btn--jump { background: var(--volt); }
.game__btn:active { transform: scale(.97); }
.game__hint { text-align: center; font-size: .85rem; opacity: .7; margin: 12px auto 0; max-width: 640px; }
.cta-links--center { justify-content: center; }
@media (hover: hover) and (min-width: 860px) { .game__pad { display: none; } }

/* ===== 404: classifica ===== */
.score, .board-wrap { max-width: 900px; margin: 22px auto 0; }
.score { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 18px; }
.score[hidden], .score__who[hidden], .score__form[hidden] { display: none; }
.score__sum { font: 800 1.5rem "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; margin: 0 0 8px; }
.score__lead { margin: 0 0 10px; font-weight: 600; }
.score__form { display: grid; gap: 12px; }
.score__form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.score__form input[type=text], .score__form input[type=email] { font: inherit; font-size: 1rem; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper, #fff); min-width: 0; }
.score__form input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.score__form .score__check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.score__check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.score__form .btn { justify-self: start; border: 0; cursor: pointer; }
.score__who { margin: 0; font-weight: 600; }
.score__link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: var(--blue); }
.score__msg { margin: 10px 0 0; min-height: 1.3em; font-weight: 600; }
.score__msg.is-bad { color: #c0262d; }
.board-wrap .eyebrow { margin-bottom: 10px; }
.board { list-style: none; counter-reset: pos; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { counter-increment: pos; display: grid; grid-template-columns: 2.2em 1fr auto auto; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; background: var(--ink); color: var(--white); font-weight: 600; }
.board li::before { content: counter(pos); font: 800 1.3rem "Barlow Condensed", Impact, sans-serif; color: var(--volt); }
.board li:nth-child(-n+3)::before { font-size: 1.6rem; }
.board__nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__gems { color: var(--volt); font-size: .9rem; }
.board__score { font: 800 1.25rem "Barlow Condensed", Impact, sans-serif; }
.board li.is-me { background: var(--blue); outline: 2px solid var(--volt); }
.board li.board__empty { display: block; counter-increment: none; text-align: center; background: transparent; color: var(--ink); opacity: .7; }
.board li.board__empty::before { content: none; }
