/* MAIKER HUB · Home «Il lavoro prende forma»
   Modern Pop: Carbon, arancione, Syne / DM Sans, Poster a spessore, Gradienti e materia.
   Scroll nativo; le sezioni «appuntate» leggono la posizione della pagina e la restituiscono tornando su. */
:root {
  --carbon: #0b0f14;
  --carbon-2: #151b23;
  --white: #ffffff;
  --orange: #ff914d;
  --community: #4ade80;
  --formazione: #16a34a;
  --eventi: #60a5fa;
  --labs: #c084fc;
  --soft: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gut: clamp(16px, 3.4vw, 48px);
  --t: 12px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n' x='0' y='0' color-interpolation-filters='sRGB'><feTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04  0 0 0 0 0.06  0 0 0 0 0.08  1 0 0 0 0'/><feComponentTransfer><feFuncA type='discrete' tableValues='0 0 0 0 0.22 0.4 0.6'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
@font-face {
  font-family: "Syne";
  /* woff2 con i soli caratteri latini usati (13 KB invece di 30); il ttf resta come riserva */
  src: url("../fonts/Syne.woff2") format("woff2"), url("../fonts/Syne.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  /* woff2 variabile con i soli caratteri latini usati (79 KB invece di 235) */
  src: url("../fonts/DMSans-variable.woff2") format("woff2"), url("../fonts/DMSans-variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* niente scroll-behavior: smooth sull'html: ScrollTrigger, ricalcolando, salterebbe in cima con un'animazione
   e misurerebbe tutto spostato. Lo scorrimento morbido verso le ancore lo fa home.js. */
html {
  scroll-padding-top: 90px;
  overflow-x: hidden; overflow-x: clip;
}
body {
  background: var(--carbon);
  color: var(--white);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
}
/* nebbia di fondo come nei Labs: luce calda in alto a destra, verde in basso a sinistra */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 80% 12%, rgba(255, 145, 77, 0.1), transparent 70%),
    radial-gradient(ellipse 45% 40% at 10% 95%, rgba(22, 163, 74, 0.07), transparent 70%);
}
img,
video {
  display: block;
  max-width: 100%;
}
/* width e height nell'HTML riservano lo spazio prima del caricamento; l'altezza segue la larghezza reale */
img {
  height: auto;
}
a {
  color: inherit;
}
::selection {
  background: var(--orange);
  color: var(--carbon);
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
h2 {
  font-size: clamp(40px, 6vw, 96px);
  max-width: 15ch;
}
h3 {
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.06;
}
.wrap {
  padding: 0 var(--gut);
}
section {
  position: relative;
  padding: clamp(88px, 11vw, 160px) 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--orange);
  box-shadow: 3px 3px 0 var(--white);
}

/* Poster a spessore */
.plate {
  position: relative;
  background: var(--c, var(--orange));
  color: var(--carbon);
  box-shadow: var(--t) var(--t) 0 0 var(--d, var(--carbon)), var(--t) var(--t) 0 2px var(--white);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.plate.dark {
  --c: var(--carbon-2);
  color: var(--white);
  border: 2px solid var(--white);
  box-shadow: 10px 10px 0 0 var(--orange);
}
.plate.lite {
  --c: var(--white);
  --d: var(--orange);
}

/* pulsanti: azione principale arancio con testo Carbon */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--orange);
  color: var(--carbon);
  font: 600 16px/1 "DM Sans", system-ui, sans-serif;
  text-decoration: none;
  border: 2px solid var(--carbon);
  box-shadow: 6px 6px 0 var(--white);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), translate 0.15s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    box-shadow: 9px 9px 0 var(--white);
  }
}
.btn:focus-visible {
  box-shadow: 9px 9px 0 var(--white);
}
/* al tocco il bottone si schiaccia sull'ombra: è il riscontro che su telefono sostituisce la calamita */
.btn:active {
  translate: 3px 3px;
  box-shadow: 3px 3px 0 var(--white);
}
.btn.ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  box-shadow: 6px 6px 0 var(--orange);
}

/* ── intestazione, menu a tutto schermo, cursore ── */
.h3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gut);
  transition: background 0.3s, transform 0.35s var(--ease);
}
.h3-header.solid {
  background: rgba(11, 15, 20, 0.86);
}
.h3-header.hide {
  transform: translateY(-100%);
}
.h3-header .logo {
  width: 150px;
}
.h3-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.h3-header .btn {
  padding: 11px 18px;
  font-size: 14px;
  box-shadow: 4px 4px 0 var(--white);
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  font: 600 14px/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}
.menu-btn i {
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  transition: box-shadow 0.2s, transform 0.2s;
}
.menu-open .menu-btn i {
  box-shadow: none;
  transform: rotate(45deg);
}
.h3-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-content: end;
  padding: 120px var(--gut) 56px;
  background: var(--carbon);
  background-image: var(--grain);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s var(--ease);
}
.menu-open .h3-menu {
  clip-path: inset(0 0 0 0);
}
.h3-menu nav a {
  display: block;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s, transform 0.6s var(--ease), color 0.2s;
}
.menu-open .h3-menu nav a {
  opacity: 1;
  transform: none;
}
.h3-menu nav a:hover {
  color: var(--orange);
}
.h3-menu aside {
  display: grid;
  gap: 18px;
  align-content: end;
  color: var(--soft);
  font-size: 15px;
}
.h3-menu aside .btn {
  justify-self: start;
}
.h3-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  pointer-events: none;
  display: none;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), background 0.25s;
}
.h3-cursor span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 11px/1 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--carbon);
  opacity: 0;
  transition: opacity 0.2s;
}
.h3-cursor.on {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  background: rgba(255, 145, 77, 0.25);
}
.h3-cursor.word {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  background: var(--orange);
}
.h3-cursor.word span {
  opacity: 1;
}
@media (pointer: fine) {
  .has-cursor .h3-cursor {
    display: block;
  }
}

/* crocette agli angoli, come nei Labs */
.marks {
  position: absolute;
  inset: -12px;
  pointer-events: none;
}
.marks i {
  position: absolute;
  width: 14px;
  height: 14px;
}
.marks i::before,
.marks i::after {
  content: "";
  position: absolute;
  background: var(--soft);
}
.marks i::before {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
}
.marks i::after {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
}
.marks i:nth-child(1) { left: 0; top: 0; }
.marks i:nth-child(2) { right: 0; top: 0; }
.marks i:nth-child(3) { left: 0; bottom: 0; }
.marks i:nth-child(4) { right: 0; bottom: 0; }

/* ── 1 · apertura: la materia a tutto schermo, il testo sopra ──
   Il video (o la tela con l'increspatura) riempie lo schermo; due sfumature Carbon
   tengono leggibili l'intestazione in alto e il testo in basso a sinistra. */
.s-hero {
  position: relative;
  height: 100vh;
  height: 100vh; height: 100svh;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  will-change: transform;
}
.hero-media .bg,
.hero-media canvas.liquid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.liquid-on .hero-media .bg {
  opacity: 0;
}
/* ombra radiale al centro: il testo resta leggibile e la materia si vede ai bordi */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 58% at 50% 52%, rgba(11, 15, 20, 0.82) 0%, rgba(11, 15, 20, 0.55) 45%, rgba(11, 15, 20, 0) 78%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.6) 0%, rgba(11, 15, 20, 0) 18%, rgba(11, 15, 20, 0) 82%, rgba(11, 15, 20, 0.7) 100%);
}
.s-hero .marks {
  inset: 18px;
  z-index: 1;
}
.hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1100px;
  padding-top: 72px;
  will-change: transform, opacity;
}
.hero-center .eyebrow {
  margin-bottom: 18px;
}
.s-hero h1 {
  font-size: clamp(48px, 7.4vw, 132px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  max-width: 13ch;
}
.s-hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-center .lead {
  margin-top: 26px;
  max-width: 44ch;
  font-size: clamp(17px, 1.3vw, 21px);
  color: rgba(255, 255, 255, 0.88);
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(20px, 3vw, 44px);
  margin-top: 34px;
}
.proof li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.proof b {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.04em;
  color: var(--orange);
  line-height: 1;
}
.proof span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}
/* il payoff sta in alto a destra, sotto l'intestazione, come uno sticker sulla materia */
.hero-lastra {
  --c: var(--community);
  --t: 8px;
  --r: 3deg;
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  top: clamp(96px, 13vh, 132px);
  z-index: 1;
  padding: 14px 20px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.15;
  /* Lo sticker segue la sfumatura del contenitore della hero una sola volta. */
  translate: none;
  filter: none;
}
.scroll-hint {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: calc(1 - var(--go, 0));
}
.scroll-hint::after {
  content: "";
  width: 2px;
  height: 22px;
  background: linear-gradient(var(--orange), transparent);
  animation: hint 1.8s var(--ease) infinite;
}
@keyframes hint {
  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; }
}

/* Due ingressi dopo la hero: foto reali, testo stabile e azioni allineate. */
.s-start {
  padding: clamp(64px, 7vw, 104px) 0 clamp(96px, 10vw, 144px);
}
.s-start h2 {
  max-width: 23ch;
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 1.06;
  text-transform: uppercase;
  text-wrap: balance;
}
.start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin: 40px 8px 0 0;
}
.start-card {
  --area: var(--community);
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--carbon-2);
  border: 1px solid var(--area);
  box-shadow: 8px 8px 0 var(--area);
}
.start-training { --area: var(--formazione); }
.start-photo {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
}
.start-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Il ritaglio conserva la formatrice ed esclude le slide della vecchia offerta. */
.start-training .start-photo img {
  width: 150%;
  max-width: none;
  object-position: left top;
}
.start-label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 12px clamp(20px, 2.4vw, 36px);
  background: var(--area);
  color: var(--carbon);
  font: 700 clamp(22px, 2.4vw, 34px)/1.1 "Syne", sans-serif;
  letter-spacing: -.025em;
}
.start-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.8vw, 40px);
}
.start-copy h3 {
  max-width: 20ch;
  font-size: clamp(27px, 2.8vw, 42px);
  line-height: 1.12;
  text-wrap: balance;
}
.start-copy p {
  max-width: 46ch;
  margin: 20px 0 30px;
  color: var(--soft);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
}
.start-copy .btn {
  margin-top: auto;
  max-width: 100%;
  min-height: 48px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
@media (max-width: 720px) {
  .start-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 30px; }
  .start-copy { padding: 24px 20px 28px; }
  .start-copy h3 { max-width: 22ch; }
  .start-copy .btn { padding-inline: 16px; }
}

/* Il tuo lavoro, oggi: titolo pieno e ad alto contrasto. */
.today-heading h2 {
  max-width: none;
  font-size: clamp(40px, 6.5vw, 104px);
  line-height: 1.06;
  color: var(--white);
}
.today-heading h2 span,
.today-heading h2 em {
  display: block;
}
.today-heading h2 em {
  color: var(--orange);
  font-style: normal;
}

/* il video resta nascosto: una tela lo ridisegna solo dentro le lettere del titolo */

.needs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  margin-top: 64px;
}
.need {
  padding: clamp(28px, 3.4vw, 52px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.need:nth-child(1) { --r: -1.5deg; }
.need:nth-child(2) { --c: var(--white); --d: var(--orange); --r: 1.5deg; margin-top: 40px; }
.need q {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 58px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  quotes: "«" "»";
}
.need p {
  margin-top: 34px;
  max-width: 40ch;
  font-size: 17px;
}
.flip {
  margin-top: clamp(72px, 9vw, 130px);
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 76px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.flip em {
  font-style: normal;
  color: var(--orange);
  display: inline-block;
}

/* ── 3 · il metodo: titolo e scena fermi a sinistra, blocchi a destra ── */

/* Il film si allarga con lo scroll; le due parti del titolo scorrono ai lati. */
.s-reel {
  padding: 0;
}
.reel-pin {
  position: relative;
  height: 100vh; height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.reel-heading {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.reel-words {
  position: absolute;
  top: 50%;
  left: var(--gut);
  right: var(--gut);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  margin: 0;
  font-size: clamp(30px, 5vw, 86px);
  line-height: 1.08;
  color: var(--white);
  text-shadow: 0 2px 18px #0b0f14cc;
}
.reel-words span {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}
.reel-words span:last-child {
  color: var(--orange);
}
.reel-frame {
  position: relative;
  z-index: 1;
  width: 40vw;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--carbon-2);
  border: 1px solid var(--orange);
  box-shadow: 12px 12px 0 var(--orange);
}
.reel-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--carbon);
}
.reel-intro {
  position: absolute;
  top: 148px;
  left: var(--gut);
  width: min(34vw, 420px);
  margin: 0;
  color: var(--soft);
  font-size: 16px;
}

@media (max-width: 700px) {
  .reel-frame { width: 80vw; }
  .reel-words { top: calc(50% - 24vw - 32px); font-size: clamp(28px, 7vw, 44px); }

  .reel-intro { display: none; }
}
@media (max-height: 700px) {
  .reel-intro { display: none; }
}
/* Versione leggibile senza animazioni o senza GSAP. */
.reel-static .reel-pin {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 80px var(--gut);
  overflow: visible;
}
.reel-static .reel-heading { position: static; width: 100%; text-align: center; }
.reel-static .reel-heading .eyebrow { position: static; margin-bottom: 18px; }
.reel-static .reel-words { position: static; transform: none; justify-content: center; flex-wrap: wrap; gap: 0 .22em; }
.reel-static .reel-intro { position: static; display: block; width: auto; max-width: 62ch; margin: 22px auto 0; }
.reel-static .reel-frame { width: min(100%, 1180px); }

/* ── 5 e 7 · gallerie orizzontali: la sezione si appunta e la pagina muove la pista ── */
.htrack {
  position: relative;
  overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 0 40px;
}
.still .track {
  flex-wrap: wrap;
}
/* senza GSAP o su telefono in orizzontale: carosello nativo da scorrere di lato */
.htrack.native { min-height: 0; padding: clamp(56px, 8vw, 110px) 0; }
.htrack.native .track { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; padding-bottom: 12px; will-change: auto; }
.htrack.native .track > * { scroll-snap-align: start; }
.still .frame,
.still .frame.tall,
.still .card,
.still .card.wide,
.still .card.num {
  width: min(100%, 520px);
}
.htrack .hhead {
  padding: 0 var(--gut) 28px;
}
.track {
  display: flex;
  gap: clamp(20px, 2.5vw, 40px);
  padding: 0 var(--gut);
  will-change: transform;
}
.frame {
  flex: 0 0 auto;
  position: relative;
  width: min(46vw, 620px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--carbon-2);
}
.frame img,
.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}
.frame .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 2.6vw, 40px);
  background: linear-gradient(transparent, rgba(11, 15, 20, 0.85));
}
.frame .cap b {
  display: block;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.frame .cap span {
  display: block;
  margin-top: 10px;
  color: var(--soft);
  font-size: 15px;
}
.frame.tall {
  width: min(30vw, 380px);
}
.frame.plate-frame {
  background: var(--orange);
  color: var(--carbon);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
}
.frame.plate-frame b {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 80px);
  letter-spacing: -0.05em;
  line-height: 0.9;
}

/* storie: schede di misure diverse */

/* titoli che ruotano lettera per lettera */

/* ── 6 · l'offerta ── */

/* il cerchio di materia si apre man mano che leggi le cose incluse */

/* ── 8 · per chi è: titolo fermo, schede che scorrono sopra ── */
.s-who .who-wrap {
  position: relative;
}
.who-title {
  position: sticky;
  top: 0;
  height: 100vh; height: 100svh;
  display: grid;
  align-content: center;
  z-index: 0;
}
.who-title h2 {
  font-size: clamp(56px, 9vw, 150px);
  max-width: none;
  color: rgba(255, 255, 255, 0.14);
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.who-cards {
  position: relative;
  z-index: 1;
  margin-top: -78vh; margin-top: -78svh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-bottom: 20vh;
}
.who-card {
  --c: var(--white);
  --d: var(--orange);
  padding: clamp(24px, 2.8vw, 40px);
  will-change: transform;
}
.who-card:nth-child(1) { grid-column: 1 / 6; }
.who-card:nth-child(2) { grid-column: 7 / 13; margin-top: 18vh; }
.who-card:nth-child(3) { grid-column: 2 / 7; margin-top: 4vh; }
.who-card:nth-child(4) { grid-column: 8 / 12; margin-top: 14vh; }
.who-card .lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.who-card h3 {
  margin: 10px 0 14px;
  font-size: clamp(22px, 2.2vw, 32px);
}
.who-card p + p {
  margin-top: 12px;
}
.who-card .path {
  padding-top: 14px;
  border-top: 2px solid var(--carbon);
  font-size: 15px;
}
.fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3vw, 44px);
  margin-top: 40px;
}
.fit .yes {
  padding: clamp(26px, 3vw, 40px);
  --c: var(--community);
}
.fit .no {
  padding: clamp(26px, 3vw, 40px);
  border: 2px solid var(--line);
}
.fit ul {
  margin-top: 18px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.compare-wrap {
  margin-top: 40px;
  overflow-x: auto;
}
.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th,
.compare td {
  padding: 16px 14px;
  text-align: left;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  border-top: 0;
  color: var(--soft);
  font-weight: 600;
}
.compare td:first-child {
  font-weight: 700;
}
.compare .us {
  background: rgba(255, 145, 77, 0.12);
  color: var(--white);
  font-weight: 600;
}
/* su telefono la prima colonna resta ferma mentre la tabella scorre di lato */
@media (max-width: 900px) {
  .compare {
    --side: 120px;
    --col: calc(100vw - 2 * var(--gut) - var(--side));
    min-width: 0;
    width: calc(var(--side) + 3 * var(--col));
    table-layout: fixed;
  }
  .compare th,
  .compare td {
    width: var(--col);
  }
  .compare th:first-child,
  .compare td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: var(--side);
    background: var(--carbon);
    box-shadow: 1px 0 0 var(--line);
  }
}

/* ── fascia diagonale di materia tra le sezioni ── */
.band {
  position: relative;
  height: clamp(220px, 34vh, 420px);
  margin: clamp(24px, 4vw, 64px) 0;
  overflow: hidden;
  clip-path: polygon(0 18%, 100% 0, 100% 82%, 0 100%);
}
.band video,
.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  will-change: transform;
}

/* ── 9 · percorsi: righe che si aprono ── */

/* ── 10 · team: nomi grandi, foto che segue il cursore ── */
.team-lead {
  margin-top: 22px;
  max-width: 56ch;
  color: var(--soft);
}

/* ── 11 · FAQ ── */

/* ── 12 · tuffo e invito ── */

/* ── modulo di contatto in fondo alla pagina ── */
/* il modulo è una fascia a sé: materia sullo sfondo, bordi arancioni, tanto spazio intorno */
.s-contact {
  position: relative;
  isolation: isolate;
  margin: clamp(40px, 6vw, 90px) 0;
  padding: clamp(100px, 13vw, 190px) 0;
  background: var(--carbon-2);
  border-block: 2px solid var(--orange);
  overflow: hidden;
}
.s-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 85% 10%, #ff914d38, transparent 70%), radial-gradient(ellipse 50% 60% at 5% 95%, #4ade8026, transparent 70%), url(../../img/grana-04-condivisione.webp) center/cover;
  opacity: .55;
}
.s-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #151b23e6, #151b23b8 40%, #151b23e6), var(--grain);
}

/* ── footer: un nastro con il claim, la mappa del sito con i colori delle aree, la firma grande e la riga legale ── */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 8vw, 120px);
  background: var(--carbon-2);
  color: var(--white);
  overflow: hidden;
}
.ft-marquee {
  background: var(--orange);
  color: var(--carbon);
  border-block: 2px solid var(--carbon);
  overflow: hidden;
  padding: clamp(14px, 1.6vw, 22px) 0;
}
.ft-roll {
  display: flex;
  width: max-content;
  animation: ftRoll 38s linear infinite;
}
.ft-roll span {
  font: 800 clamp(26px, 3.4vw, 56px)/1 "Syne", sans-serif;
  letter-spacing: -0.04em;
  white-space: nowrap;
  padding-right: 0.4em;
}
.ft-roll i {
  font-style: normal;
  display: inline-block;
  margin: 0 0.35em;
  font-size: 0.6em;
  vertical-align: middle;
}
@keyframes ftRoll {
  to { transform: translateX(-50%); }
}
.ft-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(40px, 7vw, 120px);
  padding: clamp(64px, 9vw, 130px) var(--gut) clamp(50px, 7vw, 100px);
}
.ft-brand {
  display: grid;
  gap: 24px;
  align-content: start;
}
.ft-claim {
  font: 800 clamp(34px, 3.8vw, 64px)/0.94 "Syne", sans-serif;
  letter-spacing: -0.045em;
}
.ft-brand > p:not(.ft-claim) {
  color: var(--soft);
  max-width: 46ch;
  font-size: 16px;
}
.ft-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}
.ft-chat {
  color: var(--white);
  font-weight: 700;
  text-underline-offset: 5px;
}
.ft-mail {
  justify-self: start;
  font: 700 clamp(20px, 1.8vw, 28px)/1 "Syne", sans-serif;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 4px;
}
.ft-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.ft-cols > div {
  --a: var(--orange);
  padding-top: 18px;
  border-top: 3px solid var(--a);
}
.ft-cols .c-cm { --a: var(--community); }
.ft-cols .c-fo { --a: var(--formazione); }
.ft-cols .c-ev { --a: var(--eventi); }
.ft-cols h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 12px/1 "DM Sans", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}
.ft-cols h2::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--a);
  box-shadow: 2px 2px 0 var(--white);
}
.ft-cols ul {
  list-style: none;
  display: grid;
  gap: 14px;
}
.ft-cols a,
.ft-cols span {
  font-size: 16px;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.2s, translate 0.3s var(--ease);
}
/* blocco in linea: si sposta con translate (senza ricalcolare il layout) e il tocco ha un'area più alta */
.ft-cols a {
  display: inline-block;
  padding-block: 4px;
}
.ft-cols a:hover,
.ft-cols a:focus-visible {
  color: var(--white);
  translate: 6px 0;
}
.ft-cols span {
  color: #ffffffa6; /* contrasto ≥ 4.5:1 sul carbone anche a 16px */
}
/* «Salta al contenuto»: primo elemento raggiungibile con Tab, visibile solo al focus */
.skip-link { position: fixed; left: 12px; top: -64px; z-index: 300; padding: 12px 18px; border-radius: 10px; background: var(--orange); color: var(--carbon); font: 700 15px/1 "DM Sans", sans-serif; text-decoration: none; transition: top .2s; }
.skip-link:focus, .skip-link:focus-visible { top: 12px; outline: 3px solid var(--white); outline-offset: 2px; }
.ft-sign {
  display: block;
  padding: 0 var(--gut) clamp(28px, 4vw, 56px);
}
.ft-sign img {
  width: 100%;
  height: auto;
}
.ft-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding: 22px var(--gut) 30px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--soft);
}
.ft-bottom > :first-child {
  margin-right: auto;
}
.ft-bottom a {
  color: var(--soft);
}
.ft-up {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--carbon) !important;
  border: 2px solid var(--carbon);
  box-shadow: 4px 4px 0 var(--white);
  font: 800 20px/1 "DM Sans", sans-serif;
  text-decoration: none;
  transition: transform 0.35s var(--pop);
}
.ft-up:hover {
  transform: translateY(-4px) rotate(-6deg);
}
@media (max-width: 900px) {
  .ft-top {
    grid-template-columns: 1fr;
  }
  .ft-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ft-roll {
    animation: none;
  }
}

/* ── entrate ── */
.js .rv {
  opacity: 0;
  transform: translateY(40px) rotate(var(--r, 0deg));
}
.js .rv.in {
  opacity: 1;
  transform: translateY(0) rotate(var(--r, 0deg));
  transition: opacity 0.5s var(--ease), transform 0.8s var(--pop), box-shadow 0.45s var(--ease);
}

/* ── telefono e tablet ── */
@media (max-width: 1060px) {
  .h3-menu {
    grid-template-columns: 1fr;
  }

  

  .who-cards {
    grid-template-columns: 1fr 1fr;
    margin-top: -50vh; margin-top: -50svh;
  }
  .who-card:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }
  .who-card:nth-child(2) { margin-top: 20vh; }
  .who-card:nth-child(4) { margin-top: 20vh; }
}
@media (max-width: 900px) {
  /* le gallerie diventano caroselli nativi: swipe, niente sezione appuntata */
  .track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .track > * {
    scroll-snap-align: start;
  }
  /* quando è lo scroll verticale a muovere la pista, niente aggancio ai quadri e niente swipe laterale
     (lo scrub lo annullerebbe al gesto successivo): la pista si muove solo scendendo */
  .htrack.drive .track {
    scroll-snap-type: none;
    overflow-x: hidden;
    touch-action: pan-y;
  }
  .htrack {
    min-height: 0;
    padding: clamp(72px, 10vw, 120px) 0;
  }
  .frame,
  .frame.tall,
  .card,
  .card.wide,
  .card.num {
    width: 82vw;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 17px;
  }
  /* telefono: testo al centro, il payoff sopra il titolo, ombra più piena */
  .hero-center {
    padding-top: 64px;
  }
  .s-hero h1 {
    font-size: clamp(40px, 11.5vw, 58px);
  }
  .hero-center .lead {
    font-size: 16px;
    margin-top: 18px;
  }
  .proof {
    margin-top: 22px;
    gap: 8px 18px;
  }
  .hero-lastra {
    display: none;
  }
  .hero-shade {
    background: radial-gradient(ellipse 90% 60% at 50% 55%, rgba(11, 15, 20, 0.86) 0%, rgba(11, 15, 20, 0.6) 55%, rgba(11, 15, 20, 0.2) 100%),
      linear-gradient(180deg, rgba(11, 15, 20, 0.6) 0%, rgba(11, 15, 20, 0) 16%);
  }
  .s-hero .marks {
    display: none;
  }
  .scroll-hint {
    display: none;
  }
  :root {
    --t: 9px;
  }
  .h3-header .btn {
    padding: 10px 14px;
    font-size: 13px;
  }
  .h3-header .logo {
    width: 128px;
  }
  .needs,
  .fit,
  .who-cards {
    grid-template-columns: 1fr;
  }
  .need:nth-child(2),
  .who-card:nth-child(n) {
    margin-top: 0;
  }

  .ctas .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .js .rv {
    opacity: 1;
    transform: rotate(var(--r, 0deg));
  }
  .scroll-hint::after {
    display: none;
  }
}

/* Header scelto: barra sospesa, variante a spessore. */
.h3-header {
  top: 18px;
  left: max(20px, calc((100vw - 1360px) / 2));
  right: max(26px, calc((100vw - 1360px) / 2));
  min-height: 90px;
  padding: 20px 30px;
  border: 1px solid rgba(255, 145, 77, .5);
  border-radius: 8px;
  background: var(--carbon);
  box-shadow: 6px 7px 0 var(--orange);
}
.h3-header.solid { background: var(--carbon); }
.h3-header.hide { transform: translateY(calc(-100% - 32px)); }
.h3-header .logo { width: 210px; }
.h3-header a, .h3-header summary, .h3-header button,
.h3-menu nav a, .h3-menu aside a { text-transform: uppercase; }
.header-paths {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .025em;
}
.header-paths a { text-decoration: none; }

.h3-header .header-cta {
  padding: 13px 18px;
  font-size: 12px;
  border: 1px solid var(--orange);
  border-radius: 5px;
  box-shadow: none;
  white-space: nowrap;
}
.h3-header .header-cta:hover { box-shadow: 3px 3px 0 var(--white); }
.h3-header .menu-btn { display: none; }
.h3-menu { overflow-y: auto; padding-top: 150px; }
.h3-menu nav a { font-size: clamp(24px, 4.4vw, 62px); line-height: 1.12; }
html { scroll-padding-top: 145px; }
@media (max-width: 1100px) {
  .h3-header { padding: 18px 22px; gap: 18px; }
  .header-paths { gap: 15px; font-size: 12px; }
  .h3-header .header-cta { padding: 12px; font-size: 11px; }
}
@media (max-width: 950px) {
  .header-paths { display: none; }
  .h3-header .menu-btn { display: inline-flex; border: 1px solid var(--line); border-radius: 5px; text-transform: uppercase; min-height: 44px; }
}
@media (max-width: 600px) {
  .h3-header { top: 12px; left: 12px; right: 18px; padding: 16px; min-height: 80px; gap: 14px; }
  .h3-header .logo { width: 200px; }
  .h3-header .header-cta { display: none; }
  .h3-header .menu-btn { padding: 10px; font-size: 12px; }
  .h3-header .menu-btn i { width: 14px; }
  .h3-menu { padding: 120px 20px 30px; align-content: start; gap: 24px; }
  .h3-menu nav a { font-size: clamp(23px, 6.2vw, 34px); padding: 5px 0; }
  html { scroll-padding-top: 120px; }
}
@media (max-width: 380px) {
  .h3-header { gap: 8px; }
  .h3-header .menu-btn { font-size: 0; gap: 0; width: 40px; justify-content: center; }
}
/* Formazione mantiene la stessa gerarchia anche nel menu mobile. */

/* Mega menu: un pannello comune alla larghezza della barra sospesa. */
.mega-item { --area: var(--orange); }
.mega-item[data-area="0"] { --area: var(--community); }
.mega-item[data-area="1"] { --area: var(--formazione); }
.mega-item[data-area="2"] { --area: var(--eventi); }
.mega-item[data-area="3"] { --area: var(--labs); }
.mega-item > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  text-transform: uppercase;
}
.mega-item > summary::-webkit-details-marker { display: none; }
.mega-item > summary::after { content: '+'; font: 400 18px/1 "DM Sans", sans-serif; color: var(--orange); }
.mega-item[open] > summary, .mega-item > summary:hover { color: var(--orange); }
.mega-item[open] > summary::after { content: '−'; }
.mega-panel {
  position: absolute;
  left: -1px;
  right: -1px;
  top: calc(100% + 16px);
  display: grid;
  grid-template-columns: .85fr 1.7fr;
  gap: 26px;
  padding: 26px;
  border: 1px solid rgba(255, 145, 77, .5);
  border-radius: 8px;
  background: var(--carbon);
  box-shadow: 6px 7px 0 var(--orange), 0 22px 45px #0008;
  max-height: calc(100vh - 160px);
  max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px);
  overflow-y: auto;
  text-align: left;
  font-weight: 400;
  letter-spacing: normal;
}
.mega-intro { position: relative; border-radius: 5px; overflow: hidden; min-height: 250px; display: flex; align-items: end; padding: 24px; background: var(--carbon-2); }
.mega-intro > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.mega-intro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, #0b0f14ee); }
.mega-intro > div { position: relative; z-index: 1; }
.mega-intro h2, .mega-intro .mega-title { font: 700 clamp(23px, 2.2vw, 34px)/1.12 "Syne", sans-serif; margin: 0 0 12px; color: var(--area); text-transform: uppercase; }
.mega-intro p { font: 400 14px/1.6 "DM Sans", sans-serif; color: var(--soft); }
.mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.mega-card { display: flex; flex-direction: column; gap: 10px; padding: 23px 20px; min-height: 118px; background: var(--carbon-2); border: 1px solid var(--line); border-radius: 5px; text-decoration: none; }
.mega-card b { display: flex; justify-content: space-between; gap: 12px; font: 600 14px/1.4 "DM Sans", sans-serif; text-transform: uppercase; }
.mega-card b i { font-style: normal; color: var(--area); }
.mega-card span { font: 400 13px/1.6 "DM Sans", sans-serif; color: var(--soft); text-transform: none; }
a.mega-card:hover { border-color: var(--area); background: #1c2530; }
.h3-menu .mega-item > summary { font: 700 clamp(23px, 4vw, 48px)/1.2 "Syne", sans-serif; padding: 8px 0; letter-spacing: -.03em; }
.h3-menu .mega-panel { position: static; display: block; max-height: none; margin: 12px 6px 20px 0; padding: 14px; box-shadow: 3px 4px 0 var(--orange); }
.h3-menu .mega-intro { display: none; }
.h3-menu .mega-card { opacity: 1; transform: none; font-family: "DM Sans", sans-serif; letter-spacing: normal; padding: 15px; min-height: 88px; }
.h3-menu .mega-card b { font-size: 13px; }
.h3-menu .mega-links { gap: 8px; }
.h3-menu .mega-card span { font-size: 12px; }
@media (min-width: 951px) and (max-width: 1200px) {
  .h3-header .header-cta { display: none; }
  .h3-header .h3-right { display: none; }
  .header-paths { margin-left: auto; }
}
@media (max-width: 600px) {
  .h3-menu .mega-item > summary { font-size: 27px; }
  .h3-menu .mega-links { grid-template-columns: 1fr; }
  .h3-menu .mega-card { min-height: auto; }
}
/* Titoli stabili e griglia regolare dei mega menu. */
.header-paths > .mega-item > summary,
.h3-header .header-cta,
.mega-panel h2,
.mega-panel .mega-card b {
  text-transform: uppercase !important;
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .035em;
}
.mega-panel h2 { font-family: "Syne", Arial, sans-serif; font-weight: 700; }
.header-paths > .mega-item > summary,
.h3-header .header-cta,
.h3-menu .mega-item > summary,
.mega-panel .mega-card b {
  font-weight: 700;
}
.mega-links { grid-auto-rows: minmax(118px, 1fr); align-content: stretch; }
.mega-links .mega-card { height: 100%; }

@media (max-width: 600px) {
  .h3-menu .mega-links { grid-auto-rows: auto; }
}
/* Ponte tra barra e pannello: il passaggio del puntatore non chiude il menu. */
@media (hover: hover) and (pointer: fine) {
  .header-paths .mega-item[open]::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 18px;
  }
}
/* Il banner appartiene al flusso della hero, sotto le azioni principali. */
.s-hero { height: auto; min-height: 100vh; min-height: 100svh; padding: 140px 0 72px; }
.hero-center { padding-top: 0; }
.s-hero h1 { max-width: 17ch; font-size: clamp(42px, 6.5vw, 110px); line-height: 1.02; }
.hero-title-intro { white-space: nowrap; }
.hero-center .hero-lastra {
  display: inline-block;
  position: relative;
  top: auto;
  right: auto;
  margin-top: 28px;
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1.3;
  --r: -2deg;
  --t: 5px;
}
@media (max-width: 700px) {
  .s-hero { padding-top: 125px; padding-bottom: 56px; }
  .s-hero h1 { font-size: clamp(32px, 8.8vw, 52px); max-width: 17ch; }
  .hero-center .hero-lastra { font-size: 12px; margin-top: 24px; }
}
/* Titolo desktop su tre righe; sticker ancorato al suo angolo superiore destro. */
.s-hero { padding-top: clamp(120px, 24vh, 200px); padding-top: clamp(120px, 24svh, 200px); }
.hero-heading { position: relative; max-width: 100%; }
.s-hero h1 { max-width: none; }
.hero-title-intro, .hero-title-benefit, .hero-title-line { display: block; }
.hero-title-intro, .hero-title-line { white-space: nowrap; }
.hero-heading .hero-lastra {
  position: absolute;
  top: -64px;
  right: max(-140px, calc((100% - 100vw) / 2 + 40px));
  margin: 0;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  --r: 6deg;
  --t: 5px;
  pointer-events: none;
}
@media (max-width: 700px) {
  .s-hero { padding-top: 182px; }
  .hero-heading { width: 100%; }
  .s-hero h1 { max-width: 100%; font-size: clamp(30px, 8.8vw, 52px); }
  .hero-title-benefit { max-width: 17ch; margin-inline: auto; text-wrap: balance; }
  .hero-title-benefit .hero-title-line { display: inline; white-space: normal; }
  .hero-heading .hero-lastra { right: 8px; top: -64px; font-size: 10px; padding: 9px 12px; --r: 5deg; --t: 4px; }
}

/* Struttura della home: offerte distinte e modulo formazione in evidenza. */
.flow-section { padding-block: clamp(80px, 9vw, 136px); }
.flow-lead { max-width: 60ch; margin: 28px 0 0; color: var(--soft); font-size: clamp(18px, 1.7vw, 23px); line-height: 1.6; }
.s-training { background: linear-gradient(135deg, #16a34a12, transparent 65%); border-block: 1px solid var(--line); }
.s-training h2 { max-width: 20ch; }

.training-card, #percorsi { scroll-margin-top: 120px; }
#altri-percorsi h2 { max-width: 22ch; font-size: clamp(36px, 4.5vw, 68px); }

/* Titolo editoriale del film, separato dalle parole animate. */
.reel-section-title h2 { max-width: 20ch; font-size: clamp(40px, 6vw, 88px); line-height: 1.08; }

/* Film compatto: testo introduttivo nel flusso, parole vicine alla cornice. */
.reel-section-title { padding-block: 40px 8px; }
.reel-section-title .reel-intro { position: static; width: auto; max-width: 64ch; margin: 16px 0 0; display: block; }
.reel-pin { height: clamp(304px, 36vw, 584px); }
.reel-frame { width: 44vw; }
.reel-words { left: 0; right: 0; height: 0; font-size: clamp(28px, 4vw, 68px); }
.reel-words span { position: absolute; top: 0; transform: translateY(-50%); }
.reel-words span:first-child { right: calc(72% + 20px); }
.reel-words span:last-child { left: calc(72% + 20px); }
@media (max-width: 700px) {
  .reel-section-title { padding-top: 32px; }
  .reel-pin { height: calc(45vw + 116px); }
  .reel-frame { width: 80vw; }
  .reel-words { top: calc(50% - 22.5vw - 26px); height: auto; justify-content: center; gap: .22em; font-size: clamp(28px, 7vw, 44px); }
  .reel-words span { position: static; transform: none; }
}
.reel-static .reel-pin { height: auto; padding-block: 20px 24px; }
.reel-static .reel-words { height: auto; }
.reel-static .reel-words span { position: static; transform: none; }

/* Il percorso successivo entra subito dopo il film, senza una pausa vuota. */
.reel-section-title .eyebrow { margin-bottom: 10px; }
.s-reel + .s-start { padding-top: 36px; }
.s-reel + .s-start .start-grid { margin-top: 24px; }

/* ── mega menu: riga prezzo/collegamento nell’intro e carosello degli ultimi eventi ── */
.mega-intro .mega-price { display: grid; gap: 2px; margin-top: 16px; padding: 10px 12px; background: var(--area, var(--orange)); color: var(--carbon); border: 2px solid var(--carbon); box-shadow: 3px 3px 0 var(--white); text-decoration: none; justify-self: start; width: max-content; max-width: 100%; }
.mega-intro .mega-price b { font: 800 16px/1.1 "Syne", sans-serif; }
.mega-intro .mega-price span { font: 600 12px/1.3 "DM Sans", sans-serif; }
.mega-links:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-events { display: grid; gap: 14px; align-content: start; min-width: 0; }
.mega-ev-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mega-ev-head b { font: 600 14px/1.2 "DM Sans", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.mega-ev-head span { display: flex; gap: 6px; }
.mega-ev-head button { width: 44px; height: 44px; display: grid; place-items: center; background: var(--carbon-2); color: var(--white); border: 1px solid var(--line); border-radius: 5px; font: 700 16px/1 "DM Sans", sans-serif; cursor: pointer; }
.mega-ev-head button:is(:hover, :focus-visible):not(:disabled) { border-color: var(--area); color: var(--area); }
.mega-ev-head button:disabled { opacity: .35; cursor: default; }
.mega-ev-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; }
.mega-ev-track:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 8px; }
.mega-ev-track::-webkit-scrollbar { display: none; }
.mega-ev { scroll-snap-align: start; display: grid; align-content: start; gap: 6px; padding-bottom: 12px; background: var(--carbon-2); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; text-decoration: none; transition: border-color .2s, background .2s; }
.mega-ev:hover { border-color: var(--area); background: #1c2530; }
.mega-ev img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mega-ev .when { padding: 6px 12px 0; font: 800 11px/1.2 "DM Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--area); }
.mega-ev b { padding: 0 12px; font: 600 14px/1.3 "DM Sans", sans-serif; text-transform: uppercase; }
.mega-ev small { padding: 0 12px; font: 400 12px/1.5 "DM Sans", sans-serif; color: var(--soft); }
.mega-ev-info { min-height: 0; }
.h3-menu .mega-ev-track { grid-auto-columns: 72%; }
.h3-menu .mega-links:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .h3-menu .mega-links:has(> :nth-child(5)) { grid-template-columns: 1fr; } }
/* menu mobile: le card evento ereditano lo stile delle voci grandi del menu; le rimetto in colonna e in DM Sans */
.h3-menu .mega-ev { display: grid; grid-template-columns: 1fr; align-content: start; font-family: "DM Sans", sans-serif; font-size: 13px; letter-spacing: normal; text-transform: none; line-height: 1.4; }
.h3-menu .mega-ev .when, .h3-menu .mega-ev b, .h3-menu .mega-ev small { display: block; white-space: normal; }
.h3-menu .mega-ev b { font-size: 14px; }
.h3-menu .mega-ev-head b { font-size: 13px; }
/* menu mobile: dell'intro resta solo il bottone (prezzo Community, «Tutta la formazione», «Tutti gli eventi») */
.h3-menu .mega-intro:has(.mega-price) { display: block; min-height: 0; padding: 0 0 12px; background: none; }
.h3-menu .mega-intro:has(.mega-price) > img, .h3-menu .mega-intro:has(.mega-price) h2, .h3-menu .mega-intro:has(.mega-price) p { display: none; }
.h3-menu .mega-intro:has(.mega-price)::after { content: none; }
.h3-menu .mega-intro .mega-price { margin-top: 0; font-family: "DM Sans", sans-serif; letter-spacing: normal; text-transform: none; }
/* mega menu Eventi: il prossimo evento in cima, come il biglietto delle pagine evento (shared/eventi/eventi.css, .tk).
   Dopo la data di data-until core.js lo toglie dalla pagina. Le regole valgono anche nel menu mobile, dove i link
   ereditano lo stile delle voci grandi (Syne, maiuscolo, entrata): qui tornano in DM Sans e a grandezza di card. */
.mega-events .mega-promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 0; background: #f2efe7; color: var(--carbon); border: 2px solid var(--carbon); border-radius: 5px; box-shadow: 5px 5px 0 var(--area); font-family: "DM Sans", sans-serif; font-size: 13px; line-height: 1.4; letter-spacing: normal; text-transform: none; text-decoration: none; transition: opacity .4s, transform .6s var(--ease), box-shadow .2s var(--ease), translate .2s var(--ease); }
.mega-events .mega-promo:is(:hover, :focus-visible) { color: var(--carbon); translate: -2px -2px; box-shadow: 8px 8px 0 var(--area); }
.mega-events .mega-promo:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.mega-promo .mp-stub { align-self: stretch; display: grid; place-content: center; justify-items: center; gap: 3px; padding: 12px 18px; border-right: 2px dashed #0b0f1466; font: 800 11px/1 "DM Sans", sans-serif; letter-spacing: .2em; }
.mega-promo .mp-stub b { font: 800 34px/.9 "Syne", sans-serif; letter-spacing: -.04em; }
.mega-promo .mp-body { display: grid; gap: 4px; padding: 14px 18px; min-width: 0; }
.mega-promo .mp-kicker { font: 800 11px/1.2 "DM Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #1d4ed8; }
.mega-promo .mp-body b { font: 700 17px/1.2 "Syne", sans-serif; letter-spacing: -.01em; }
.mega-promo small { font: 500 12px/1.45 "DM Sans", sans-serif; color: #0b0f14bf; }
.mega-promo .mp-go { margin-right: 18px; padding: 10px 14px; background: var(--orange); border: 2px solid var(--carbon); font: 700 13px/1 "DM Sans", sans-serif; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.mega-promo .mp-go i { font-style: normal; }
@media (max-width: 600px) {
  .mega-events .mega-promo { grid-template-columns: auto minmax(0, 1fr); }
  .mega-promo .mp-stub { grid-row: span 2; padding-inline: 14px; }
  .mega-promo .mp-body { padding: 12px 14px 8px; }
  .mega-promo .mp-go { justify-self: start; margin: 0 14px 12px; }
}
/* collegamenti alla pagina pilastro Formazione */
.fz-all { margin-top: clamp(40px, 5vw, 64px); }
.sn-all { text-align: center; margin: 0 0 22px; font-weight: 700; }
.sn-all a, .fz-back a { color: var(--community); text-underline-offset: 4px; }
.fz-back { margin: 0 0 clamp(26px, 3vw, 40px); color: var(--soft); font-weight: 600; }
.ft-cols h2 a { color: inherit; text-decoration: none; }
.ft-cols h2 a:hover { color: var(--area, var(--orange)); }

/* ── telefono in orizzontale e schermi bassi: barra più compatta, così l'apertura resta leggibile ── */
@media (max-height: 500px) and (orientation: landscape) {
  .h3-header { top: 8px; min-height: 0; padding: 10px 18px; }
  .h3-header .logo { width: 170px; }
  .h3-menu { padding-top: 84px; }
  html { scroll-padding-top: 84px; }
}
/* il nastro del piè di pagina gira solo quando si vede (home.js mette .ft-off fuori vista) */
.ft-marquee.ft-off .ft-roll { animation-play-state: paused; }

/* Landing (variant="landing" in scripts/site/partials.mjs): header con solo il logo e il bottone di conversione,
   niente menu; piè con la sola riga legale. Il bottone resta visibile anche sul telefono. */
.h3-landing .header-cta { padding: 14px 20px; font-size: 13px; }
@media (max-width: 600px) {
  .h3-landing .header-cta { display: inline-flex; padding: 11px 12px; font-size: 11px; }
  .h3-landing .logo { width: 150px; }
}
@media (max-width: 380px) {
  .h3-landing { gap: 10px; padding: 14px 12px; }
  .h3-landing .logo { width: 116px; }
  .h3-landing .header-cta { padding: 10px; font-size: 10.5px; letter-spacing: 0; }
}
.lp-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 28px var(--gut, 20px); border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; }
.lp-footer a { color: var(--white); text-underline-offset: 3px; }
@media (max-width: 900px) { .lp-footer { padding-bottom: 104px; } }
