/* A shorter opening brings the moving activity strip and Skate story closer. */
.hero { min-height: 0; }
.hero-copy { padding-top: 160px; padding-bottom: 36px; }
.hero-footnote { margin-top: 18px; }
.brand-strip { padding-block: 12px; }
.school { padding-top: 56px; }

/* Use a drawn symbol instead of a platform-coloured emoji. */
.brand-word b.brand-spark {
  display: inline-grid;
  place-items: center;
  width: .68em;
  height: .68em;
  margin-left: .45em;
  border-radius: 3px;
  background: var(--orange);
  font-size: 1em;
  vertical-align: .04em;
}
.brand-spark svg { width: 75%; height: 75%; fill: #fff; }

/* One photo every three seconds in each course card. */
.course-head-photos img { animation-duration: 12s; }
.course-head-photos img:nth-child(2) { animation-delay: -9s; }
.course-head-photos img:nth-child(3) { animation-delay: -6s; }
.course-head-photos img:nth-child(4) { animation-delay: -3s; }
.course-combat .course-head-photos img { animation-duration: 9s; }
.course-combat .course-head-photos img:nth-child(2) { animation-delay: -6s; }
.course-combat .course-head-photos img:nth-child(3) { animation-delay: -3s; }

/* Keep the story above the people in the park photograph. */
.park { align-items: flex-start; }
.park-copy { padding-top: 30px; padding-bottom: 30px; }
.park-copy h2 { margin: 14px 0; }
.park-photo img { filter: saturate(.85) brightness(.82); }
.park-photo::after {
  background: linear-gradient(90deg, rgba(12, 16, 19, .08), rgba(12, 16, 19, .16) 40%, rgba(12, 16, 19, .78)),
              linear-gradient(180deg, rgba(12, 16, 19, .55), transparent 42%, rgba(12, 16, 19, .18) 88%, #0c1013);
}
@supports selector(body:has(.menu-toggle)) {
  body:has(.menu-toggle[aria-expanded="true"]) .music-player { visibility: hidden; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-copy { padding-top: clamp(220px, 70vw, 280px); padding-bottom: 28px; }
  .brand-strip { padding-block: 12px; }
  .school { padding-top: 38px; }
  .park { align-items: flex-start; }
  .park-copy { padding: 30px 23px 25px; }
  .park-photo::after {
    background: linear-gradient(180deg, rgba(12, 16, 19, .84), rgba(12, 16, 19, .55) 32%, rgba(12, 16, 19, .12) 60%, rgba(12, 16, 19, .22) 90%, #0c1013);
  }
}

/* Prima schermata (30 ottobre 2026): tre foto di formato diverso, inquadrate una per una sul soggetto. */
.cinema-frame[data-scene="0"] img { object-position: 62% 8%; }
/* Foto verticale: su schermo largo intera (niente ingrandimento sgranato), con la stessa foto sfocata dietro. */
@media (min-width: 761px) {
  .cinema-frame[data-scene="1"]::before { content: ''; position: absolute; inset: -40px; background: url('assets/hero-muro.jpg') center 30% / cover; filter: blur(28px) saturate(.7) brightness(.45); }
  .cinema-frame[data-scene="1"] img { position: relative; object-fit: contain; object-position: 62% center; }
}
.cinema-frame[data-scene="2"] img { object-position: 50% 58%; }
@media (max-width: 760px) {
  .cinema-frame[data-scene="0"] img { object-position: 64% 30%; }
  .cinema-frame[data-scene="1"] img { object-position: 45% 35%; }
  .cinema-frame[data-scene="2"] img { object-position: 40% 60%; }
}
.cinema-frame[data-scene="0"] img { filter: saturate(.9) contrast(1.06) brightness(.92); }

/* Carosello «un trick alla volta» (30 ottobre 2026): inquadratura per foto; le verticali su schermo largo restano intere. */
.skate-stage-image { object-position: var(--pos, 50% 42%); }
@media (min-width: 761px) {
  .skate-stage-frame.is-alta::before { content: ''; position: absolute; inset: -40px; background: var(--foto) center / cover; filter: blur(30px) saturate(.75) brightness(.45); }
  .skate-stage-frame.is-alta .skate-stage-image { object-fit: contain; object-position: 66% center; }
}

/* Scheda Skate (30 ottobre 2026): foto nuove più grandi. Il riquadro è più alto e le foto occupano la metà destra
   (meno ingrandite, quindi più nitide); su telefono riempiono tutta la testata. */
.course-skate .course-head { min-height: 460px; }
.course-skate .course-head-photos img:nth-child(1) { object-position: 50% 42%; }
.course-skate .course-head-photos img:nth-child(2) { object-position: 30% 35%; }
.course-skate .course-head-photos img:nth-child(3) { object-position: 45% 35%; }
.course-skate .course-head-photos img:nth-child(4) { object-position: 50% 30%; }
@media (min-width: 761px) {
  .course-skate .course-head-photos img { width: 56%; }
  .course-skate .course-head-photos::after { background: linear-gradient(90deg,#101a1d 0%,#101a1d 44%,rgba(16,26,29,.55) 52%,rgba(12,22,25,.08) 70%,rgba(12,22,25,0) 100%),linear-gradient(0deg,rgba(7,15,18,.35),transparent 45%); }
}

/* Scheda BMX / Mountain bike (30 ottobre 2026): cinque foto nuove, una ogni 3 secondi, stesso riquadro grande della scheda Skate. */
@keyframes bici-cinque { 0%,16% { opacity: 1; } 20%,96% { opacity: 0; } 100% { opacity: 1; } }
.course-bike .course-head { min-height: 460px; }
.course-bike .course-head-photos img { animation-name: bici-cinque; animation-duration: 15s; animation-delay: 0s; }
.course-bike .course-head-photos img:nth-child(1) { object-position: 50% 40%; }
.course-bike .course-head-photos img:nth-child(2) { animation-delay: -12s; object-position: 70% 45%; }
.course-bike .course-head-photos img:nth-child(3) { animation-delay: -9s; object-position: 45% 40%; }
.course-bike .course-head-photos img:nth-child(4) { animation-delay: -6s; object-position: 50% 30%; }
.course-bike .course-head-photos img:nth-child(5) { animation-delay: -3s; object-position: 65% 45%; }
@media (min-width: 761px) {
  .course-bike .course-head-photos img { width: 56%; }
  .course-bike .course-head-photos::after { background: linear-gradient(90deg,#101a1d 0%,#101a1d 44%,rgba(16,26,29,.55) 52%,rgba(12,22,25,.08) 70%,rgba(12,22,25,0) 100%),linear-gradient(0deg,rgba(7,15,18,.35),transparent 45%); }
}

/* Sezione «Un park. Tante storie.» (30 ottobre 2026): la crew BMX / MTB come sfondo. */
.park-photo img { object-position: 50% 84%; }
@media (max-width: 760px) { .park-photo img { object-position: 100% center; } }
/* Foto del gazebo (30 ottobre 2026): si vede tutta la fila di skateboard, quindi scuro solo dietro al testo. */
@media (min-width: 761px) {
  .park-photo img { filter: saturate(.95) brightness(.95); }
  .park-photo::after {
    background: linear-gradient(180deg, rgba(12,16,19,.72), rgba(12,16,19,.5) 34%, transparent 58%, transparent 90%, rgba(12,16,19,.7)),
                linear-gradient(90deg, rgba(12,16,19,.05), rgba(12,16,19,.3) 55%, rgba(12,16,19,.4));
  }
}
@media (max-width: 760px) {
  .park-photo img { filter: saturate(.95) brightness(.95); }
  .park-photo::after { background: linear-gradient(180deg, rgba(12,16,19,.84), rgba(12,16,19,.55) 32%, rgba(12,16,19,.05) 58%, rgba(12,16,19,.05) 88%, rgba(12,16,19,.7)); }
}

/* Galleria (30 ottobre 2026): ogni riquadro fa scorrere le sue foto, una ogni 3 secondi; un tocco apre l'album. */
.gallery-scorre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0; animation: 21s ease-in-out infinite; }
.gallery-scorre img:first-of-type { opacity: 1; }
.gallery-tredici img { animation-name: galleria-13; animation-duration: 39s; }
@keyframes galleria-13 { 0%,6.54% { opacity: 1; } 7.69%,98.85% { opacity: 0; } 100% { opacity: 1; } }
.gallery-tredici img:nth-of-type(2) { animation-delay: -36s; }
.gallery-tredici img:nth-of-type(3) { animation-delay: -33s; }
.gallery-tredici img:nth-of-type(4) { animation-delay: -30s; }
.gallery-tredici img:nth-of-type(5) { animation-delay: -27s; }
.gallery-tredici img:nth-of-type(6) { animation-delay: -24s; }
.gallery-tredici img:nth-of-type(7) { animation-delay: -21s; }
.gallery-tredici img:nth-of-type(8) { animation-delay: -18s; }
.gallery-tredici img:nth-of-type(9) { animation-delay: -15s; }
.gallery-tredici img:nth-of-type(10) { animation-delay: -12s; }
.gallery-tredici img:nth-of-type(11) { animation-delay: -9s; }
.gallery-tredici img:nth-of-type(12) { animation-delay: -6s; }
.gallery-tredici img:nth-of-type(13) { animation-delay: -3s; }
.gallery-sette img { animation-name: galleria-7; animation-duration: 21s; }
@keyframes galleria-7 { 0%,12.14% { opacity: 1; } 14.29%,97.86% { opacity: 0; } 100% { opacity: 1; } }
.gallery-sette img:nth-of-type(2) { animation-delay: -18s; }
.gallery-sette img:nth-of-type(3) { animation-delay: -15s; }
.gallery-sette img:nth-of-type(4) { animation-delay: -12s; }
.gallery-sette img:nth-of-type(5) { animation-delay: -9s; }
.gallery-sette img:nth-of-type(6) { animation-delay: -6s; }
.gallery-sette img:nth-of-type(7) { animation-delay: -3s; }
.gallery-tredici img:nth-of-type(1) { object-position: center 55%; }
.gallery-sette img:nth-of-type(1) { object-position: center 60%; }
@media (prefers-reduced-motion: reduce) { .gallery-scorre img { animation: none; } }
.background-paused .gallery-scorre img { animation-play-state: paused; }
/* Le foto sono quasi tutte verticali: su schermo largo i due riquadri sono uguali e più alti, così non si tagliano le teste. */
@media (min-width: 761px) { .gallery-scorre, .gallery-scorre.gallery-wide { grid-column: span 6; aspect-ratio: .82; } }
.gallery-scorre img { object-position: center 25%; }
