/* ==========================================================================
   KMT · Krav Maga Team Di Salvo — Palermo
   Design system: dark, high-contrast, editorial fight-gym aesthetic
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --bg-4: #202024;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --txt: #f4efe6;
  --txt-2: #c9c4ba;
  --muted: #8f8a80;
  --gold: #f2a51c;
  --gold-2: #ffc247;
  --gold-dim: rgba(242, 165, 28, 0.14);
  --rust: #c2410c;
  --teal: #2f8f9d;
  --danger: #e03131;

  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-cond: "Barlow Condensed", "Oswald", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: #000; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: #000; padding: 10px 16px; font-family: var(--font-cond); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), 1480px); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.display--xl { font-size: clamp(3.6rem, 11vw, 9.5rem); }
.display--l  { font-size: clamp(3rem, 7vw, 6.2rem); }
.display--m  { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.display--s  { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--txt-2); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--txt);
}
.outline--gold { -webkit-text-stroke-color: var(--gold); }

.measure { max-width: 64ch; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  border: 1.5px solid var(--gold);
  color: #000;
  background: var(--gold);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost { background: transparent; color: var(--txt); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--txt); }

.btn--wa { background: #25d366; border-color: #25d366; color: #04140a; }
.btn--wa:hover { background: #3ee07a; }

.btn--sm { padding: 12px 18px; font-size: 0.92rem; }
.btn--lg { padding: 20px 36px; font-size: 1.15rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-cond); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-size: 0.95rem;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
body.nav-open .header { z-index: 103; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; transform: none; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.header.is-scrolled .header__inner { height: 70px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: 54px; object-fit: contain; transition: width 0.3s; }
.header.is-scrolled .brand img { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: 0.04em; }
.brand__sub { font-family: var(--font-cond); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-2);
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--txt); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header__cta { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 48px; height: 48px;
  position: relative;
  z-index: 102;
}
.burger span {
  position: absolute; left: 12px; width: 24px; height: 2px;
  background: var(--txt);
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 30px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 40px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); visibility: visible; transition: transform 0.5s var(--ease), visibility 0s; }
.drawer__nav a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 4rem);
  line-height: 1.05;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--txt);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.drawer.is-open .drawer__nav a { opacity: 1; transform: none; }
.drawer.is-open .drawer__nav a:nth-child(1) { transition-delay: 0.08s; }
.drawer.is-open .drawer__nav a:nth-child(2) { transition-delay: 0.14s; }
.drawer.is-open .drawer__nav a:nth-child(3) { transition-delay: 0.2s; }
.drawer.is-open .drawer__nav a:nth-child(4) { transition-delay: 0.26s; }
.drawer.is-open .drawer__nav a:nth-child(5) { transition-delay: 0.32s; }
.drawer__nav a[aria-current="page"] { color: var(--gold); }
.drawer__foot { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.drawer__foot .btn { width: 100%; }
.drawer__meta { color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; filter: saturate(0.55) contrast(1.08) brightness(0.62); transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,11,0.98) 0%, rgba(10,10,11,0.92) 40%, rgba(10,10,11,0.6) 72%, rgba(10,10,11,0.75) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,0.2) 40%, rgba(10,10,11,0.35) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__content { padding: 0; }
.hero__title { margin: 18px 0 22px; font-size: clamp(3.2rem, 7.2vw, 7.4rem); }
.hero__title .line { display: block; }
.hero__lead { max-width: 48ch; margin-bottom: 28px; font-size: clamp(1rem, 1.2vw, 1.15rem); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 14px 32px;
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--font-cond); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; color: var(--muted);
}
.hero__meta strong { color: var(--txt); font-weight: 600; display: block; letter-spacing: 0.1em; font-size: 0.95rem; }

.hero__figure {
  position: relative;
  margin: 0;
  justify-self: end;
  height: clamp(340px, 68vh, 700px);
  aspect-ratio: 4/5;
  width: auto;
  max-width: 100%;
}
.hero__figure img {
  width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
}
.hero__figure::before {
  content: "";
  position: absolute;
  inset: 6% -18px -18px 18px;
  border: 1.5px solid var(--gold);
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
  opacity: 0.8;
}

.scroll-hint {
  position: absolute; right: var(--gutter); bottom: 40px;
  writing-mode: vertical-rl;
  font-family: var(--font-cond); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.72rem; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.scroll-hint::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* marquee */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: #000;
  padding: 14px 0;
  transform: rotate(-1.2deg) scale(1.02);
  transform-origin: center;
  z-index: 2;
}
.marquee--dark { background: var(--bg-3); color: var(--txt); border-block: 1px solid var(--line); transform: none; }
.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: 0.06em;
  padding: 0 28px;
  display: inline-flex; align-items: center; gap: 28px;
  white-space: nowrap;
}
.marquee__item::after { content: "✦"; font-size: 0.8em; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sections & layout primitives
   -------------------------------------------------------------------------- */

.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--alt { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--split { grid-template-columns: 1fr auto; align-items: end; }
.section-head .display { margin-top: 6px; }
.section-head p { max-width: 58ch; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.frame:hover img { transform: scale(1.04); }
.frame--45 { aspect-ratio: 4/5; }
.frame--34 { aspect-ratio: 3/4; }
.frame--32 { aspect-ratio: 3/2; }
.frame--169 { aspect-ratio: 16/9; }
.frame--1 { aspect-ratio: 1; }
.frame--cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%); }
.frame--gold::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  pointer-events: none;
}
.frame__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  font-family: var(--font-cond); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.82rem; color: var(--txt-2);
}

.offset-frame { position: relative; }
.offset-frame::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1.5px solid var(--gold);
  z-index: 0;
  pointer-events: none;
}
.offset-frame .frame { position: relative; z-index: 1; }

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.stat {
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  display: grid; gap: 6px;
}
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; color: var(--gold); }
.stat__label { font-family: var(--font-cond); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.82rem; color: var(--muted); }

/* discipline cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.card {
  position: relative;
  background: var(--bg);
  padding: 34px 28px 30px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
}
.card__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.6s; }
.card__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.6); transform: scale(1.08); transition: transform 1.2s var(--ease); }
.card__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,11,0.96) 20%, rgba(10,10,11,0.55)); }
.card:hover .card__bg { opacity: 1; }
.card:hover .card__bg img { transform: scale(1); }
.card__num { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.2em; color: var(--gold); }
.card__title { font-family: var(--font-display); font-size: clamp(1.9rem, 2.4vw, 2.4rem); line-height: 0.95; }
.card p { color: var(--txt-2); font-size: 0.98rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag {
  font-family: var(--font-cond); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 9px; border: 1px solid var(--line-strong); color: var(--txt-2);
}
.tag--gold { border-color: var(--gold); color: var(--gold); }
.card .link-arrow { margin-top: 12px; }
.card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold);
  transition: width 0.5s var(--ease);
}
.card:hover::after { width: 100%; }

/* big list (metodo) */
.biglist { border-top: 1px solid var(--line); counter-reset: bl; }
.biglist li {
  counter-increment: bl;
  display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease);
}
.biglist li:hover { padding-left: 12px; }
.biglist li::before {
  content: "0" counter(bl);
  font-family: var(--font-cond); font-weight: 600; letter-spacing: 0.16em; color: var(--gold); font-size: 0.95rem;
}
.biglist__title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1; }
.biglist__note { color: var(--muted); font-size: 0.95rem; max-width: 34ch; text-align: right; }

.sticky { position: sticky; top: 110px; }

/* check list */
.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--txt-2); }
.checks li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px; margin-top: 3px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' d='M4 12l5 5L20 6'/></svg>") center/16px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' d='M4 12l5 5L20 6'/></svg>") center/16px no-repeat, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* horizontal scroller */
.scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 24px;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller .frame { flex: 0 0 auto; width: clamp(260px, 32vw, 420px); scroll-snap-align: start; }
.scroller .frame--34 { width: clamp(220px, 24vw, 320px); }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(90px, 12vw, 160px) 0;
  text-align: center;
}
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5) contrast(1.1); }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10,10,11,0.55), rgba(10,10,11,0.92)); }
.cta-band .display { margin: 16px auto 22px; max-width: 14ch; }
.cta-band .lead { margin-inline: auto; margin-bottom: 36px; }
.cta-band .btn-row { justify-content: center; }
.cta-band__phone { margin-top: 28px; font-family: var(--font-cond); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-size: 0.9rem; }
.cta-band__phone a { color: var(--txt); font-size: 1.3rem; letter-spacing: 0.08em; display: block; margin-top: 4px; }

/* page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 180px 0 80px;
  overflow: hidden;
  isolation: isolate;
  min-height: 62vh;
  display: grid; align-items: end;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5) contrast(1.08) brightness(0.55); }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(0deg, var(--bg) 6%, rgba(10,10,11,0.55) 55%, rgba(10,10,11,0.8) 100%),
  linear-gradient(90deg, rgba(10,10,11,0.8) 0%, rgba(10,10,11,0.35) 60%, rgba(10,10,11,0.2) 100%); }
.page-hero .display { margin: 18px 0 20px; max-width: 12ch; }
.page-hero .lead { max-width: 56ch; }
.breadcrumb { font-family: var(--font-cond); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--bg); padding: 40px 32px; display: grid; gap: 14px; align-content: start; }
.value__icon { width: 44px; height: 44px; color: var(--gold); }
.value__icon svg { width: 100%; height: 100%; }
.value__title { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.value p { color: var(--txt-2); font-size: 0.98rem; }

/* timeline */
.timeline { display: grid; gap: 0; border-left: 1px solid var(--line-strong); margin-left: 8px; }
.tl { position: relative; padding: 0 0 40px 40px; }
.tl::before { content: ""; position: absolute; left: -7px; top: 8px; width: 13px; height: 13px; background: var(--gold); transform: rotate(45deg); }
.tl__date { font-family: var(--font-cond); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-size: 0.85rem; font-weight: 600; }
.tl__title { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; margin: 6px 0 8px; }
.tl p { color: var(--txt-2); max-width: 52ch; }

/* affiliations */
.affil { display: flex; flex-wrap: wrap; gap: 12px; }
.affil li {
  font-family: var(--font-cond); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.85rem;
  padding: 12px 18px; border: 1px solid var(--line-strong); color: var(--txt-2);
}
.affil li strong { color: var(--gold); font-weight: 700; margin-right: 6px; }

/* course detail */
.course { padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.course__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.course--flip .course__grid > :first-child { order: 2; }
.course__num { font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--line-strong); margin-bottom: 8px; }
.course .display { margin: 8px 0 18px; }
.course__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.fact__k { font-family: var(--font-cond); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.72rem; color: var(--muted); }
.fact__v { font-family: var(--font-cond); font-weight: 600; font-size: 1.05rem; margin-top: 4px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; text-align: left;
  font-family: var(--font-cond); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}
.faq__q .plus { flex: none; width: 34px; height: 34px; border: 1px solid var(--line-strong); display: grid; place-items: center; position: relative; transition: background 0.25s, transform 0.4s var(--ease); }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; background: var(--txt); width: 14px; height: 2px; }
.faq__q .plus::after { transform: rotate(90deg); transition: transform 0.3s var(--ease); }
.faq__q[aria-expanded="true"] .plus { background: var(--gold); border-color: var(--gold); }
.faq__q[aria-expanded="true"] .plus::before, .faq__q[aria-expanded="true"] .plus::after { background: #000; }
.faq__q[aria-expanded="true"] .plus::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--txt-2); padding-bottom: 26px; max-width: 70ch; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* anchor chips (pagina corsi) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  font-family: var(--font-cond); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.85rem;
  padding: 12px 18px; border: 1px solid var(--line-strong); color: var(--txt-2);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.filter:hover { border-color: var(--gold); color: var(--gold); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.info-list { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.info {
  background: var(--bg); padding: 26px 26px; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: center;
  transition: background 0.25s;
}
.info:hover { background: var(--bg-3); }
.info__icon { width: 44px; height: 44px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--gold); }
.info__icon svg { width: 20px; height: 20px; }
.info__k, .info__v { display: block; }
.info__k { font-family: var(--font-cond); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.72rem; color: var(--muted); }
.info__v { font-family: var(--font-cond); font-weight: 600; font-size: 1.15rem; margin-top: 2px; }
.info__v a:hover { color: var(--gold); }

.form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--bg-2); border: 1px solid var(--line); position: relative; }
.form::before { content: ""; position: absolute; top: 0; left: 0; width: 60px; height: 3px; background: var(--gold); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-cond); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.75rem; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); color: var(--txt);
  padding: 14px 16px; font: inherit; font-size: 1rem; border-radius: 0; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='%23f2a51c' stroke-width='2' d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.form__consent input { margin-top: 5px; accent-color: var(--gold); }
.form__consent a { color: var(--txt-2); text-decoration: underline; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form__hint { font-size: 0.85rem; color: var(--muted); }

.map { position: relative; aspect-ratio: 16/8; min-height: 280px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) invert(0.92) contrast(1.1); }
.map__consent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px);
}
.map__consent p { max-width: 46ch; color: var(--muted); font-size: 0.92rem; margin: 0; }
.map__consent svg.pin { width: 34px; height: 34px; color: var(--gold); }

/* socials */
.socials { display: flex; gap: 10px; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--txt-2);
  transition: all 0.25s;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #000; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* prose (privacy) */
.prose { max-width: 72ch; color: var(--txt-2); }
.prose h2 { font-family: var(--font-display); font-size: 2rem; color: var(--txt); margin: 40px 0 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--gold); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand img { width: 120px; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.footer h4 { font-family: var(--font-cond); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold); margin-bottom: 18px; }
.footer ul { display: grid; gap: 4px; }
.footer li a { display: inline-block; padding: 5px 0; color: var(--txt-2); transition: color 0.2s; font-size: 0.98rem; }
.footer__contact li { padding: 4px 0; }
.footer__bottom a { display: inline-block; padding: 6px 0; }
.footer li a:hover { color: var(--gold); }
.footer__contact li { color: var(--txt-2); font-size: 0.98rem; }
.footer__contact strong { display: block; font-family: var(--font-cond); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.footer__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 0.85rem; color: var(--muted);
}
.footer__bottom a:hover { color: var(--gold); }
.cinque { border: 1px solid var(--gold); padding: 18px; display: grid; gap: 4px; margin-top: 8px; }
.cinque strong { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.08em; color: var(--gold); }
.cinque span { color: var(--muted); font-size: 0.85rem; }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #04140a;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

.hero [data-reveal] { transition-duration: 1.1s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__bg img, .scroll-hint::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 340px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: block; }
  .hero { padding: 110px 0 60px; align-items: start; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { justify-self: stretch; height: auto; width: auto; aspect-ratio: 4/5; max-width: 440px; margin: 12px 20px 0 0; }
  .hero__figure img { object-position: center 25%; }
  .scroll-hint { display: none; }
  .grid-2, .course__grid, .contact-grid { grid-template-columns: 1fr; }
  .course--flip .course__grid > :first-child { order: 0; }
  .grid-3, .values { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-head--split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .biglist li { grid-template-columns: 44px 1fr; }
  .biglist__note { grid-column: 2; text-align: left; max-width: none; }
  .offset-frame::before { inset: 16px -12px -12px 16px; }
  .page-hero { min-height: 52vh; padding-top: 140px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .course__facts { grid-template-columns: 1fr; gap: 12px; }
  .brand__sub { display: none; }
  .hero__meta { gap: 16px; }
  .btn-row .btn { width: 100%; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* 404 */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 140px 0 80px; text-align: center; }
.notfound .display--xl { color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.notfound .btn-row { justify-content: center; margin-top: 32px; }
