/* =====================================================================
   CrossFit Massa — stile
   Palette presa dal palinsesto: nero lavagna, blu, rosa e il rosso
   della skill class. Le forme a pennellata sono in css/pennellate.css.
   ===================================================================== */

:root {
  --nero: #000;
  --lavagna: #121216;
  --blu: #0052c2;
  --blu-vivo: #0a8dff;
  --rosa: #e0007a;
  --rosa-vivo: #ff1f8f;
  --rosso: #e3161b;
  --gesso: #f3f3f6;
  --grigio: #a9a9b3;

  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --condensato: "Barlow Condensed", "Arial Narrow", sans-serif;
  --testo: "Barlow", system-ui, sans-serif;

  --margine: clamp(1rem, 4vw, 3.5rem);
  --larghezza: 76rem;
  --spazio-sezione: clamp(4.5rem, 11vw, 9rem);
  --testata: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--testata);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--nero);
  color: var(--gesso);
  font-family: var(--testo);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
}

/* grana da lavagna su tutta la pagina */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { overflow-x: clip; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--blu-vivo);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.salta {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: .6rem 1rem; background: var(--gesso); color: var(--nero);
  font-weight: 600; text-decoration: none;
}
.salta:focus { top: 1rem; }

/* ---------- pennellate: utilità comuni ---------- */

.pennello, .bottone::before, .titolo span::before, .lezione::before,
.hero__fascia::before, .classe h3::before, .skill__mese-titolo::before,
.skill__data::before, .glossario dt::before {
  -webkit-mask: var(--pennellata-1) center / 100% 100% no-repeat;
  mask: var(--pennellata-1) center / 100% 100% no-repeat;
}

/* ---------- bottoni ---------- */

.bottone {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .55rem 1.9rem .6rem;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--condensato);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.bottone::before {
  content: "";
  position: absolute;
  inset: 0 -.4rem;
  z-index: -1;
  background: var(--rosa);
  -webkit-mask-image: var(--pennellata-2);
  mask-image: var(--pennellata-2);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background-color .2s;
}
.bottone:hover::before { transform: scaleX(1.07) rotate(-1deg); background: var(--rosa-vivo); }
.bottone:active::before { transform: scaleX(.97); }

.bottone--vuoto::before { background: var(--gesso); }
.bottone--vuoto { color: var(--nero); }
.bottone--vuoto:hover::before { background: #fff; }

.link {
  color: var(--blu-vivo);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.link:hover { color: var(--gesso); }

/* ---------- testata ---------- */

.testata {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--testata);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--margine);
  transition: background-color .3s, box-shadow .3s;
}
.testata--piena {
  background: rgba(0, 0, 0, .88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.testata__marchio {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-family: var(--marker);
  font-size: 1.25rem;
}
.testata__marchio img { width: 2.75rem; }

.navigazione {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.8rem);
  font-family: var(--condensato);
  font-weight: 600;
  font-size: 1.15rem;
}
.navigazione a:not(.bottone) {
  text-decoration: none;
  padding: .3rem 0;
  background: linear-gradient(var(--rosa-vivo), var(--rosa-vivo)) left bottom / 0 3px no-repeat;
  transition: background-size .25s;
}
.navigazione a:not(.bottone):hover,
.navigazione a[aria-current="true"] { background-size: 100% 3px; }
.navigazione__cta { font-size: 1.1rem; min-height: 2.75rem; padding: .4rem 1.4rem; }

.testata__menu {
  display: none;
  width: 3rem; height: 3rem;
  border: 0; background: none; cursor: pointer;
  position: relative; z-index: 2;
}
.testata__hamburger,
.testata__hamburger::before,
.testata__hamburger::after {
  position: absolute; left: .6rem; right: .6rem; height: 3px;
  background: var(--gesso); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.testata__hamburger { top: calc(50% - 1.5px); }
.testata__hamburger::before, .testata__hamburger::after { content: ""; left: 0; right: 0; }
.testata__hamburger::before { top: -8px; }
.testata__hamburger::after { top: 8px; }
.testata__menu[aria-expanded="true"] .testata__hamburger { background: transparent; }
.testata__menu[aria-expanded="true"] .testata__hamburger::before { transform: translateY(8px) rotate(45deg); }
.testata__menu[aria-expanded="true"] .testata__hamburger::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 64rem) {
  .testata__menu { display: block; }
  .navigazione {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    background: var(--nero);
    font-family: var(--marker);
    font-weight: 400;
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility 0s .25s;
  }
  .navigazione--aperta { opacity: 1; visibility: visible; transition: opacity .25s; }
  /* il blur creerebbe un contenitore per il menu fisso: su mobile solo sfondo pieno */
  .testata--piena { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, .94); }
  .navigazione__cta { font-size: 1.4rem; margin-top: 1rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--testata) + 2rem) var(--margine) 4rem;
  overflow: hidden;
  text-align: center;
}

.hero__video, .spiaggia__video { position: absolute; inset: 0; z-index: -2; }
.hero__video video, .spiaggia__video video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.35) brightness(.5);
}
.hero__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(224, 0, 122, .55), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(10, 141, 255, .5), transparent 50%),
    radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, .75) 80%),
    linear-gradient(transparent 60%, var(--nero));
}

.schizzo {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
.schizzo--hero-sx { width: clamp(14rem, 34vw, 30rem); left: -7%; bottom: 4%; opacity: .9; }
.schizzo--hero-dx { width: clamp(12rem, 28vw, 26rem); right: -5%; top: 10%; opacity: .85; transform: rotate(140deg); }

.hero__graffio {
  position: absolute;
  z-index: -1;
  height: clamp(3rem, 7vw, 6rem);
  width: clamp(18rem, 48vw, 44rem);
}
.hero__graffio--rosa {
  top: 12%; left: -8%;
  background: var(--rosa);
  transform: rotate(-24deg);
  -webkit-mask-image: var(--pennellata-3);
  mask-image: var(--pennellata-3);
}
.hero__graffio--blu {
  bottom: 14%; right: -10%;
  background: var(--blu);
  transform: rotate(-24deg) scaleX(-1);
  -webkit-mask-image: var(--pennellata-1);
  mask-image: var(--pennellata-1);
}

.hero__corpo { max-width: 62rem; }

.hero__logo {
  width: clamp(9rem, 20vw, 13.5rem);
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .8));
}

.hero__titolo {
  font-family: var(--marker);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 8.6vw, 7rem);
  line-height: .98;
  letter-spacing: -.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .6);
}
.hero__riga { display: block; }

.hero__fascia {
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin: 1.4rem 0 2.2rem;
  padding: .55rem 2.4rem .65rem;
  color: var(--nero);
  font-family: var(--condensato);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.9rem);
  line-height: 1.1;
}
.hero__fascia::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  z-index: -1;
  background: var(--rosa-vivo);
  -webkit-mask-image: var(--pennellata-2);
  mask-image: var(--pennellata-2);
}

.hero__azioni { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.6rem; }

.hero__prossima {
  margin: 2.2rem 0 0;
  font-family: var(--condensato);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gesso);
  min-height: 1.6em;
}
.hero__prossima strong { color: var(--rosa-vivo); font-weight: 800; }
.hero__prossima::before {
  content: "";
  display: inline-block;
  width: .6rem; height: .6rem;
  margin-right: .55rem;
  border-radius: 50%;
  background: var(--rosa-vivo);
  vertical-align: .1em;
  animation: pulsa 1.8s ease-in-out infinite;
}
.hero__prossima:empty::before { display: none; }

@keyframes pulsa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 31, 143, .7); }
  60% { box-shadow: 0 0 0 .6rem rgba(255, 31, 143, 0); }
}

/* sequenza d'ingresso: la vernice arriva, poi il logo si stampa, poi il titolo si dipinge */
.js .hero .schizzo { animation: schizza .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.js .schizzo--hero-sx { animation-delay: .15s; }
.js .schizzo--hero-dx { animation-delay: .35s; --r: 140deg; }
.js .hero__graffio { animation: dipingi .55s cubic-bezier(.7, 0, .3, 1) both; }
.js .hero__graffio--rosa { animation-delay: .05s; }
.js .hero__graffio--blu { animation-delay: .3s; }
.js .hero__logo { animation: timbro .55s cubic-bezier(.2, 1.4, .4, 1) .55s both; }
.js .hero__riga { animation: scrivi .6s cubic-bezier(.6, 0, .2, 1) both; }
.js .hero__riga:nth-child(1) { animation-delay: .9s; }
.js .hero__riga:nth-child(2) { animation-delay: 1.15s; }
.js .hero__fascia::before { animation: dipingi .5s cubic-bezier(.7, 0, .3, 1) 1.5s both; }
.js .hero__fascia span { animation: compari .3s ease 1.8s both; }
.js .hero__azioni, .js .hero__prossima { animation: compari .5s ease 1.95s both; }

@keyframes schizza {
  from { opacity: 0; transform: scale(.2) rotate(var(--r, 0deg)); }
}
@keyframes dipingi {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes timbro {
  from { opacity: 0; transform: scale(1.8) rotate(-8deg); }
}
@keyframes scrivi {
  from { clip-path: inset(-10% 100% -10% 0); }
  to { clip-path: inset(-10% -2% -10% 0); }
}
@keyframes compari {
  from { opacity: 0; }
}

/* ---------- nastro dei motti ---------- */

.nastro {
  position: relative;
  z-index: 2;
  margin: -2.2rem -2rem 0;
  padding: .9rem 0 1rem;
  background: var(--blu);
  transform: rotate(-2deg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--blu);
}
.nastro__scorri {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  font-family: var(--marker);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  text-transform: uppercase;
  white-space: nowrap;
  animation: scorri 38s linear infinite;
}
.nastro__scorri i {
  flex: none;
  width: 1.1rem; height: 1.1rem;
  background: url("../assets/svg/schizzo-rosa.svg") center / 260% no-repeat;
}
.nastro:hover .nastro__scorri { animation-play-state: paused; }
@keyframes scorri { to { transform: translateX(-50%); } }

/* ---------- sezioni ---------- */

.sezione {
  position: relative;
  max-width: calc(var(--larghezza) + 2 * var(--margine));
  margin: 0 auto;
  padding: var(--spazio-sezione) var(--margine) 0;
}
.sezione__testa { margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.sezione__intro { max-width: 38rem; color: var(--grigio); font-size: 1.1em; margin: 1rem 0 0; }

.titolo {
  font-family: var(--marker);
  text-transform: uppercase;
  font-size: clamp(2.3rem, 6.2vw, 4.6rem);
  line-height: 1;
}
.titolo span {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 0 .15em;
}
.titolo span::before {
  content: "";
  position: absolute;
  left: -.25em; right: -.35em;
  bottom: -.08em;
  height: .52em;
  z-index: -1;
  background: var(--blu);
  -webkit-mask-image: var(--pennellata-3);
  mask-image: var(--pennellata-3);
}
.titolo--rosa span::before { background: var(--rosa); }

.js .titolo span::before { clip-path: inset(0 100% 0 0); transition: clip-path .6s cubic-bezier(.7, 0, .3, 1) .1s; }
.js .visto .titolo span::before, .js .titolo.visto span::before { clip-path: inset(0 0 0 0); }

/* ---------- foto in bicromia ---------- */

.foto {
  position: relative;
  overflow: hidden;
  background: var(--lavagna);
}
.foto img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.45) brightness(.78);
  transition: filter .5s, transform .6s cubic-bezier(.2, .8, .3, 1);
}
.foto::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: color;
  opacity: .62;
  transition: opacity .5s;
  pointer-events: none;
}
.foto--blu::after { background: var(--blu-vivo); }
.foto--rosa::after { background: var(--rosa-vivo); }
.foto:hover img { filter: none; transform: scale(1.03); }
.foto:hover::after { opacity: 0; }

/* ---------- palinsesto ---------- */

.orari { overflow: visible; }
.schizzo--orari { width: 22rem; right: -6rem; top: 3rem; opacity: .5; }

.filtri { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.filtro {
  --c: var(--gesso);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem .5rem;
  border: 2px solid rgba(255, 255, 255, .25);
  border-radius: 99px;
  background: none;
  font-family: var(--condensato);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.filtro::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--c); }
.filtro--crossfit { --c: var(--blu-vivo); }
.filtro--hybrid { --c: var(--rosa-vivo); }
.filtro--skill { --c: var(--rosso); }
.filtro:hover { border-color: var(--c); }
.filtro[aria-pressed="true"] { border-color: var(--c); background: var(--c); color: var(--nero); }
.filtro[aria-pressed="true"]::before { background: var(--nero); }

.giorni { display: none; }

.palinsesto {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 2px solid rgba(255, 255, 255, .85);
}
.giorno {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 0 .55rem 1rem;
  border-left: 2px solid rgba(255, 255, 255, .85);
}
.giorno:first-child { border-left: 0; }
.giorno__nome {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .5rem;
  margin: 0 -.55rem .5rem;
  padding: .7rem .3rem .6rem;
  border-bottom: 2px solid rgba(255, 255, 255, .85);
  font-family: var(--marker);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  text-transform: uppercase;
  text-align: center;
}
.giorno__oggi {
  font-family: var(--condensato);
  font-weight: 800;
  font-size: .95rem;
  text-transform: none;
  color: var(--nero);
  background: var(--gesso);
  padding: 0 .45rem;
  border-radius: 3px;
}
.giorno--oggi { background: linear-gradient(rgba(255, 255, 255, .07), transparent 70%); }

.lezione {
  --c: var(--blu);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .6rem .4rem .7rem;
  font-family: var(--condensato);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transition: opacity .3s, transform .3s;
}
.lezione::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c);
}
.lezione:nth-child(3n + 1)::before { -webkit-mask-image: var(--pennellata-2); mask-image: var(--pennellata-2); }
.lezione:nth-child(3n + 2)::before { -webkit-mask-image: var(--pennellata-3); mask-image: var(--pennellata-3); }
.lezione--hybrid { --c: var(--rosa); }
.lezione--skill { --c: var(--rosso); }
.lezione__ora { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.lezione__tipo { font-size: clamp(.95rem, 1.4vw, 1.15rem); text-transform: uppercase; letter-spacing: .02em; }

.lezione--passata { opacity: .38; }
.lezione--prossima { transform: scale(1.06); z-index: 1; }
.lezione--prossima::after {
  content: "Prossima";
  position: absolute;
  top: -.7rem; right: -.2rem;
  padding: .1rem .4rem;
  background: var(--gesso);
  color: var(--nero);
  font-size: .8rem;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 3px;
  transform: rotate(4deg);
}
.lezione--spenta { opacity: .12; transform: scale(.94); }

/* le pennellate si dipingono quando il palinsesto entra in vista */
.js .palinsesto .lezione::before { clip-path: inset(0 100% 0 0); transition: clip-path .45s cubic-bezier(.7, 0, .3, 1); transition-delay: calc(var(--i, 0) * 28ms); }
.js .palinsesto .lezione > * { opacity: 0; transition: opacity .3s; transition-delay: calc(var(--i, 0) * 28ms + .25s); }
.js .palinsesto.visto .lezione::before { clip-path: inset(0 0 0 0); }
.js .palinsesto.visto .lezione > * { opacity: 1; }

@media (max-width: 47.99rem) {
  .giorni {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .3rem;
    margin-bottom: 1.2rem;
  }
  .giorni button {
    padding: .55rem 0 .45rem;
    border: 0;
    border-bottom: 3px solid rgba(255, 255, 255, .2);
    background: none;
    font-family: var(--marker);
    font-size: 1.15rem;
    text-transform: uppercase;
    cursor: pointer;
  }
  .giorni button[aria-selected="true"] { border-color: var(--rosa-vivo); color: #fff; background: rgba(255, 255, 255, .06); }
  .giorni button.e-oggi::after { content: ""; display: block; width: .35rem; height: .35rem; margin: .15rem auto 0; border-radius: 50%; background: var(--rosa-vivo); }

  .palinsesto { display: block; border: 0; }
  .giorno { display: none; border: 0; padding: 0; }
  .giorno--attivo { display: flex; }
  .giorno__nome { display: none; }
  .lezione { flex-direction: row; justify-content: space-between; padding: .85rem 1.4rem; }
  .lezione__ora { font-size: 1.6rem; }
  .lezione--prossima { transform: none; }
  .lezione--prossima::after { top: -.55rem; right: 1rem; }
}

/* ---------- classi ---------- */

.classi__lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3.2rem);
}
.classe h3 {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: .5rem 1.6rem .6rem 1.1rem;
  margin: 0 0 1rem -.4rem;
  font-family: var(--marker);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-transform: uppercase;
}
.classe h3::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--c);
  -webkit-mask-image: var(--pennellata-2);
  mask-image: var(--pennellata-2);
}
.classe--crossfit { --c: var(--blu); }
.classe--hybrid { --c: var(--rosa); }
.classe--skill { --c: var(--rosso); }
.classe__quando {
  font-family: var(--condensato);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #fff;
  border-left: 4px solid var(--c);
  padding-left: .8rem;
}
.classe p:last-child { color: var(--grigio); max-width: 34rem; }

/* ---------- skill class ---------- */

.schizzo--skill { width: 20rem; left: -12rem; top: 1rem; opacity: .4; }

.skill__mesi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.skill__mese { --c: var(--rosa); }
.skill__mese:nth-child(even) { --c: var(--blu); }

.skill__mese-titolo {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.4rem -.3rem;
  padding: .45rem 1.8rem .55rem 1.2rem;
  border: 0;
  background: none;
  font-family: var(--marker);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  cursor: zoom-in;
}
.skill__mese-titolo::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--c);
  -webkit-mask-image: var(--pennellata-1);
  mask-image: var(--pennellata-1);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.skill__mese-titolo:hover::before { transform: scaleX(1.05) rotate(-1deg); }
.skill__mese-titolo svg { width: 1.3rem; height: 1.3rem; flex: none; }

.skill__lista { list-style: none; margin: 0; padding: 0; }
.skill__lezione {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 2px solid rgba(255, 255, 255, .12);
}
.skill__data {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .45rem 0 .5rem;
  font-family: var(--condensato);
  font-weight: 800;
  line-height: .9;
  text-transform: uppercase;
}
.skill__data::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--c);
  -webkit-mask-image: var(--pennellata-2);
  mask-image: var(--pennellata-2);
}
.skill__giorno { font-size: 2rem; }
.skill__mese-breve { font-size: 1.1rem; }
.skill__titolo {
  font-family: var(--condensato);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  line-height: 1.2;
}
.skill__stato {
  display: inline-block;
  margin-top: .3rem;
  font-family: var(--testo);
  font-size: .9rem;
  font-weight: 600;
  color: var(--grigio);
}
.skill__lezione--fatta { opacity: .45; }
.skill__lezione--prossima .skill__stato { color: var(--nero); background: var(--gesso); padding: 0 .45rem; border-radius: 3px; }

/* ---------- chi siamo ---------- */

.chi {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.chi__testo { max-width: 38rem; }
.chi__testo .titolo { margin-bottom: 1.8rem; }
.chi__apertura {
  font-family: var(--condensato);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  color: #fff;
}
.chi__testo p:not(.chi__apertura):not(.chi__firma) { color: #d4d4db; }
.chi__firma { font-family: var(--marker); font-size: 1.6rem; color: var(--rosa-vivo); transform: rotate(-3deg); transform-origin: left; margin-top: 1.4rem; }
.chi__foto { aspect-ratio: 3 / 4; transform: rotate(2deg); box-shadow: -1.2rem 1.2rem 0 var(--blu); }

/* ---------- manifesto ---------- */

.manifesto {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(26rem, 70vh, 40rem);
  margin-top: var(--spazio-sezione);
  padding: 4rem var(--margine);
  overflow: hidden;
  text-align: center;
}
.manifesto__foto { position: absolute; inset: 0; z-index: -1; }
.manifesto__foto img { filter: grayscale(1) contrast(1.4) brightness(.45); }
.manifesto__foto:hover img { filter: grayscale(1) contrast(1.4) brightness(.45); transform: none; }
.manifesto__foto::after { opacity: .5; }
.manifesto__foto:hover::after { opacity: .5; }
.manifesto__frase { margin: 0; max-width: 58rem; }
.manifesto__frase p {
  margin: 0;
  font-family: var(--marker);
  font-size: clamp(2rem, 5.6vw, 4.4rem);
  line-height: 1.12;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .7);
}

/* ---------- cos'è il crossfit ---------- */

.crossfit {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.crossfit__foto img { object-position: center 85%; }
.crossfit__foto { aspect-ratio: 3 / 4; transform: rotate(-2deg); box-shadow: 1.2rem 1.2rem 0 var(--rosa); position: sticky; top: calc(var(--testata) + 2rem); }
.crossfit__testo { max-width: 40rem; }
.crossfit__testo .titolo { margin-bottom: 1.8rem; }
.crossfit__testo > p:first-of-type { color: #d4d4db; }

.glossario {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem 2rem;
  margin: 2.2rem 0 1.6rem;
}
.glossario div:nth-child(odd) { --c: var(--blu); }
.glossario div:nth-child(even) { --c: var(--rosa); }
.glossario dt {
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin-bottom: .6rem;
  padding: .25rem 1.2rem .35rem .8rem;
  font-family: var(--marker);
  font-size: 1.5rem;
  text-transform: uppercase;
}
.glossario dt::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--c);
  -webkit-mask-image: var(--pennellata-3);
  mask-image: var(--pennellata-3);
}
.glossario dd { margin: 0; color: var(--grigio); line-height: 1.5; }
.nota { font-size: .9rem; color: #7c7c86; }

/* ---------- galleria ---------- */

.galleria {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(9rem, 17vw, 15rem);
  gap: clamp(.5rem, 1.2vw, 1rem);
}
.galleria__a { grid-area: 1 / 1 / 3 / 2; }
.galleria__b { grid-area: 1 / 2 / 2 / 3; }
.galleria__c { grid-area: 1 / 3 / 2 / 5; }
.galleria__d { grid-area: 2 / 2 / 4 / 3; }
.galleria__e { grid-area: 2 / 3 / 4 / 5; }
.galleria__f { grid-area: 3 / 1 / 4 / 2; }

/* ---------- spiaggia ---------- */

.spiaggia {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(28rem, 80vh, 44rem);
  margin-top: var(--spazio-sezione);
  padding: 4rem var(--margine);
  overflow: hidden;
}
.spiaggia__video { z-index: -1; }
.spiaggia__video video { filter: grayscale(.2) contrast(1.1) brightness(.7) saturate(1.2); }
.spiaggia__video::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--nero) 5%, transparent 55%), linear-gradient(to right, rgba(0, 0, 0, .6), transparent 60%);
}
.spiaggia__testo {
  max-width: calc(var(--larghezza));
  width: 100%;
  margin: 0 auto;
}
.spiaggia__testo p { max-width: 30rem; font-size: 1.15em; margin-top: 1.2rem; }

/* ---------- contatti ---------- */

.contatti {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contatti .titolo { margin-bottom: 1.6rem; }
.contatti h3 {
  margin: 2.2rem 0 .8rem;
  font-family: var(--condensato);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}
address { font-style: normal; }
.contatti__indirizzo {
  font-family: var(--condensato);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  margin-bottom: .6rem;
}
.orari-box, .persone { margin: 0; padding: 0; list-style: none; }
.orari-box div, .persone li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.orari-box dt, .persone span { color: var(--grigio); }
.orari-box dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.persone a { font-weight: 600; text-decoration: none; }
.persone a:hover { color: var(--rosa-vivo); text-decoration: underline; }
.contatti__azioni { margin-top: 2rem; }

.mappa {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 896 / 657;
  overflow: hidden;
  border: 3px solid var(--gesso);
  transform: rotate(1deg);
  box-shadow: -1rem 1rem 0 var(--blu);
  background: var(--lavagna);
}
.mappa img, .mappa iframe {
  grid-area: 1 / 1;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}
.mappa img { filter: grayscale(.4) brightness(.85); }
.mappa__carica { grid-area: 1 / 1; z-index: 1; }
.mappa__nota {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: .5rem .8rem;
  background: rgba(0, 0, 0, .75);
  font-size: .85rem;
  color: var(--grigio);
  text-align: center;
}
.mappa--attiva { transform: none; }

/* ---------- piede ---------- */

.piede {
  margin-top: var(--spazio-sezione);
  padding: 3.5rem var(--margine) 2.5rem;
  border-top: 2px solid rgba(255, 255, 255, .12);
  text-align: center;
}
.piede__logo { width: 7rem; margin: 0 auto 1.5rem; }
.social { display: flex; justify-content: center; gap: 1.6rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.social a { font-family: var(--condensato); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.social a:hover { color: var(--rosa-vivo); }
.piede__legale { font-size: .85rem; color: #7c7c86; margin: 0; }

/* ---------- locandina ---------- */

.locandina {
  width: min(92vw, 44rem);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}
.locandina::backdrop { background: rgba(0, 0, 0, .88); }
.locandina img { width: 100%; height: auto; max-height: 90vh; object-fit: contain; }
.locandina[open] img { animation: timbro .35s cubic-bezier(.2, 1.3, .4, 1); }
.locandina__chiudi {
  position: absolute;
  top: -1rem; right: -1rem;
  width: 2.8rem; height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: var(--gesso);
  color: var(--nero);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- responsive ---------- */

@media (max-width: 60rem) {
  .classi__lista { grid-template-columns: 1fr; max-width: 36rem; }
  .chi, .crossfit, .contatti { grid-template-columns: 1fr; }
  .chi__foto { max-width: 26rem; justify-self: center; width: 85%; }
  .crossfit__foto { position: relative; top: 0; max-width: 26rem; width: 85%; justify-self: center; order: 2; }
  .galleria { grid-template-columns: repeat(2, 1fr); }
  .galleria figure { grid-area: auto; }
  .galleria__a, .galleria__d { grid-row: span 2; }
  .galleria__c, .galleria__e { grid-column: span 2; }
}

@media (max-width: 36rem) {
  .schizzo--orari, .schizzo--skill { display: none; }
  .schizzo--hero-sx { bottom: -6%; left: -18%; opacity: .7; }
  .schizzo--hero-dx { top: 6%; right: -14%; opacity: .7; }
  .glossario { grid-template-columns: 1fr; }
  .hero__graffio { opacity: .8; }
  .skill__lezione { grid-template-columns: 4.4rem 1fr; gap: .9rem; }
  .skill__giorno { font-size: 1.7rem; }
  .mappa { transform: none; box-shadow: -.6rem .6rem 0 var(--blu); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .nastro__scorri { animation: none; }
}
