﻿:root {
  --blue: #0077c8;
  --water: #00b6d9;
  --sun: #ffb000;
  --coral: #f03d3e;
  --park: #00a86b;
  --ink: #101114;
  --white: #ffffff;
  --mist: #f3f4f6;
  --muted: #626876;
  --line: rgba(16, 17, 20, 0.14);
  --font-title: "Anton", "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-quote: Georgia, "Times New Roman", serif;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --radius: 8px;
  --radius-soft: 24px;
  --shadow: 0 24px 70px rgba(16, 17, 20, 0.14);
  --max: 1180px;
  --header-height: 76px;
  --hero-height: calc(100svh - var(--header-height));
  --hero-pad-top: clamp(1.4rem, 4.5svh, 4rem);
  --hero-pad-bottom: clamp(1rem, 3svh, 2.4rem);
  --hero-gap: clamp(0.65rem, 1.7svh, 1.15rem);
  --hero-title-size: clamp(2.9rem, min(9.5vw, 13svh), 8rem);
  --hero-lead-size: clamp(0.95rem, min(1.45vw, 2.2svh), 1.22rem);
  --home-hero-position: center center;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.btn:focus-visible,
.site-nav a:focus-visible,
.menu-toggle:focus-visible,
.mobile-cta .btn:focus-visible,
.mobile-inline-cta .btn:focus-visible,
.participation-option:focus-visible,
.filter-btn:focus-visible,
.gallery-open:focus-visible,
.rail-photo:focus-visible,
.partner-card a:focus-visible,
.card-link:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(255, 176, 0, 0.24);
}

.hero .btn:focus-visible,
.page-hero .btn:focus-visible,
.registration-hero .btn:focus-visible,
.partner-hero .btn:focus-visible,
.impact-hero .btn:focus-visible,
.gallery-showcase-hero .btn:focus-visible,
.section-dark .btn:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.26);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
  overflow: clip;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-mist {
  background: var(--mist);
}

.section-blue {
  background: var(--blue);
  color: var(--white);
}

.section-sun {
  background: var(--sun);
  color: var(--ink);
}

.label {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.label::before {
  content: "";
  width: 34px;
  height: 4px;
  background: currentColor;
  border-radius: 99px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.section-dark .eyebrow,
.section-blue .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4rem, 12vw, 9.5rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  max-width: 12ch;
}

h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.45;
  max-width: 760px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.section-heading h2 {
  max-width: 11ch;
}

.section-cta {
  margin-top: 1.4rem;
}

.note {
  max-width: 760px;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.text-muted {
  color: var(--muted);
}

.section-dark .text-muted,
.section-blue .text-muted {
  color: rgba(255, 255, 255, 0.76);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(16, 17, 20, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: max-content;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand img {
  width: 52px;
  height: 52px;
}

.brand span {
  max-width: 160px;
  line-height: 1.05;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.92rem;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  padding: 0.42rem 0.1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
}

.site-nav a[aria-current="page"] {
  background: rgba(0, 119, 200, 0.1);
  box-shadow: 0 0 0 8px rgba(0, 119, 200, 0.1);
}

.header-actions .btn[aria-current="page"] {
  box-shadow:
    inset 0 0 0 2px currentColor,
    0 0 0 5px rgba(255, 176, 0, 0.24);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.86rem 1.1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sun);
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-outline {
  border-color: currentColor;
  background: transparent;
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.mobile-cta {
  display: none;
}

.mobile-inline-cta {
  display: none;
}

:is(.hero, .page-hero, .registration-hero, .partner-hero, .impact-hero, .gallery-showcase-hero) {
  min-height: 0;
  isolation: isolate;
}

:is(.hero, .registration-hero, .partner-hero, .impact-hero, .gallery-showcase-hero) {
  height: min(var(--hero-height), 820px);
  overflow: hidden;
}

:is(.hero, .registration-hero, .partner-hero, .impact-hero, .gallery-showcase-hero) > .container,
.gallery-showcase-hero .container {
  max-height: 100%;
  min-height: 0;
}

:is(.hero, .page-hero, .registration-hero, .partner-hero, .impact-hero, .gallery-showcase-hero) h1,
:is(.hero, .page-hero, .registration-hero, .partner-hero, .impact-hero, .gallery-showcase-hero) .lead,
:is(.hero, .page-hero, .registration-hero, .partner-hero, .impact-hero, .gallery-showcase-hero) .label {
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.5);
}

:is(.hero, .page-hero, .registration-hero, .partner-hero, .impact-hero, .gallery-showcase-hero) h1 {
  font-size: var(--hero-title-size);
  line-height: 0.9;
}

:is(.hero, .page-hero, .registration-hero, .partner-hero, .impact-hero, .gallery-showcase-hero) .lead {
  font-size: var(--hero-lead-size);
  line-height: 1.34;
}

:is(.hero, .page-hero, .registration-hero, .partner-hero, .impact-hero, .gallery-showcase-hero) .label {
  margin-bottom: clamp(0.35rem, 1.2svh, 0.85rem);
  font-size: clamp(0.66rem, 1.35svh, 0.78rem);
}

:is(.hero, .page-hero, .registration-hero, .partner-hero, .impact-hero, .gallery-showcase-hero) .btn {
  min-height: clamp(38px, 5.6svh, 46px);
  padding: clamp(0.62rem, 1.25svh, 0.86rem) clamp(0.85rem, 1.8vw, 1.1rem);
}

.hero {
  height: min(var(--hero-height), 820px);
  min-height: 0;
  max-height: 820px;
  overflow: hidden;
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.92), rgba(16, 17, 20, 0.62) 48%, rgba(16, 17, 20, 0.22)),
    var(--hero-image, url("../assets/photos/hero/home/hero-segrino.jpg")) var(--home-hero-position) / cover no-repeat;
}

.hero .container {
  padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(1rem, min(4vw, 4svh), 3rem);
  align-items: end;
}

.hero-copy {
  display: grid;
  gap: var(--hero-gap);
}

.hero-copy .lead {
  max-width: 710px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.cta-row {
  display: flex;
  gap: clamp(0.5rem, 1.4svh, 0.8rem);
  flex-wrap: wrap;
  align-items: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 1.2svh, 0.65rem);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: clamp(30px, 4.8svh, 36px);
  padding: clamp(0.32rem, 0.95svh, 0.45rem) clamp(0.55rem, 1.4vw, 0.75rem);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.countdown {
  display: grid;
  gap: clamp(0.4rem, 1.2svh, 0.75rem);
  padding: clamp(0.55rem, 1.5svh, 0.85rem);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(16, 17, 20, 0.42);
  box-shadow: 0 18px 50px rgba(16, 17, 20, 0.2);
  backdrop-filter: blur(14px);
}

.countdown-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(0.66rem, 1.25svh, 0.76rem);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.3rem, 1svh, 0.5rem);
}

.countdown-item {
  padding: clamp(0.34rem, 1.1svh, 0.55rem) 0.3rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  text-align: center;
}

.countdown-number {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.45rem, min(3.4vw, 5.2svh), 3rem);
  line-height: 0.95;
}

.countdown-label {
  font-size: clamp(0.56rem, 1.05svh, 0.68rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.home-manifesto {
  background: var(--white);
}

.event-story-heading {
  align-items: start;
}

.event-story-grid {
  display: grid;
  gap: clamp(1rem, 2.6vw, 1.6rem);
}

.event-story-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  padding: clamp(0.7rem, 1.6vw, 1rem);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow:
    inset 0 0 0 1px rgba(16, 17, 20, 0.1),
    0 22px 50px rgba(16, 17, 20, 0.08);
}

.event-story-card-reverse {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  background: var(--ink);
  color: var(--white);
}

.event-story-card-reverse .lead,
.event-story-card-reverse p,
.event-story-card-reverse .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.event-story-card-split {
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  background: var(--sun);
}

.event-story-media {
  position: relative;
  min-height: clamp(280px, 36vw, 520px);
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background:
    repeating-linear-gradient(135deg, rgba(0, 119, 200, 0.12) 0 12px, rgba(0, 119, 200, 0.04) 12px 24px),
    var(--mist);
}

.event-story-media::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 1rem;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(16, 17, 20, 0.32);
  border-radius: calc(var(--radius) - 6px);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.event-story-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.event-story-media.has-image::before {
  display: none;
}

.event-story-media.is-missing img {
  display: none;
}

.event-story-media-tall {
  min-height: clamp(360px, 46vw, 620px);
  border-radius: 8px 28px 8px 28px;
}

.event-story-media-wide {
  min-height: clamp(260px, 28vw, 420px);
}

.event-story-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(0.7rem, 2vw, 2rem);
}

.event-story-copy h3 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 5.2vw, 5.8rem);
}

.event-story-copy p:not(.eyebrow) {
  max-width: 58ch;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: var(--muted);
}

.event-story-callout {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 2.4rem);
}

.event-story-callout strong {
  font-family: var(--font-title);
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: 0.92;
}

.event-story-callout p {
  max-width: 44ch;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 750;
}

.mini-manifesto {
  background: var(--ink);
  color: var(--white);
}

.mini-manifesto-text {
  max-width: 980px;
  font-size: clamp(1.25rem, 2.4vw, 2.15rem);
  line-height: 1.22;
  font-weight: 850;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.principles span {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 24px 8px 24px 8px;
  background: var(--mist);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.quote-box {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 280px;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-quote);
  font-size: 1.45rem;
  line-height: 1.15;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(16, 17, 20, 0.08);
}

.stat-card:nth-child(2),
.stat-card:nth-child(6) {
  background: var(--water);
}

.stat-card:nth-child(3),
.stat-card:nth-child(7) {
  background: var(--sun);
}

.stat-card:nth-child(4) {
  background: var(--coral);
  color: var(--white);
}

.stat-card:nth-child(5) {
  background: var(--park);
  color: var(--white);
}

.stat-number {
  font-family: var(--font-title);
  font-size: clamp(3.8rem, 7vw, 7rem);
  line-height: 0.9;
}

.stat-label {
  max-width: 18ch;
  font-weight: 850;
}

.event-info-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid rgba(16, 17, 20, 0.16);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 54px rgba(16, 17, 20, 0.14);
  overflow: hidden;
}

.event-info-banner article {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: #ffffff;
}

.event-info-banner article + article {
  border-left: 2px solid rgba(16, 17, 20, 0.16);
}

.event-info-banner span {
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-info-banner strong {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 400;
  line-height: 0.96;
}

.event-info-banner article:nth-child(2) {
  background: #fff2c7;
}

.event-info-banner article:nth-child(3) {
  background: #d8f4f8;
}

.registration-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.2rem, 4vw, 2rem);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow:
    inset 0 0 0 1px rgba(16, 17, 20, 0.1),
    0 22px 50px rgba(16, 17, 20, 0.1);
}

.registration-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.participation-option {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(16, 17, 20, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.participation-option:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(16, 17, 20, 0.18),
    0 14px 28px rgba(16, 17, 20, 0.14);
}

.participation-option span {
  max-width: 15ch;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 900;
  line-height: 1;
}

.participation-option small {
  max-width: 24ch;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.participation-athlete {
  background: var(--sun);
}

.participation-volunteer {
  background: #3a96cf;
  color: var(--white);
}

.participation-partner {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}

.participation-course {
  background: var(--coral);
  color: var(--white);
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.quick-info-grid article {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.quick-info-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-info-grid strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.registration-note {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 5px solid var(--sun);
  border-radius: var(--radius);
  background: rgba(255, 176, 0, 0.12);
  color: var(--ink);
  font-weight: 750;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-card,
.distance-card,
.partner-card,
.gallery-card,
.impact-card {
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px rgba(16, 17, 20, 0.1),
    0 16px 34px rgba(16, 17, 20, 0.08);
  overflow: hidden;
}

.distance-card {
  min-height: 250px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.distance-card strong {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(4.4rem, 8vw, 7.4rem);
  line-height: 0.9;
}

.distance-card:nth-child(1) {
  background: var(--white);
  border-top: 8px solid var(--water);
}

.distance-card:nth-child(2) {
  background: var(--white);
  border-top: 8px solid var(--ink);
  color: var(--ink);
}

.program-intro {
  display: grid;
  gap: 1rem;
  align-content: end;
  justify-items: start;
}

.program-intro .lead {
  max-width: 58ch;
}

.program-panel {
  display: grid;
  max-height: 1200px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 340ms ease,
    opacity 220ms ease,
    margin-top 220ms ease;
}

.program-panel.is-collapsed {
  max-height: 0;
  margin-top: -0.5rem;
  opacity: 0;
}

.timeline {
  display: grid;
  gap: 0.55rem;
  margin-top: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 104px 60px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.82rem 0.95rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(16, 17, 20, 0.08);
}

.timeline-time {
  font-family: var(--font-title);
  font-size: 1.9rem;
  line-height: 1;
}

.timeline-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eef8fb;
  color: var(--ink);
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.feature-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 180px;
}

.feature-card img,
.impact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card-content,
.impact-card-content {
  padding: 1.25rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
  margin-top: 0;
}

.impact-card {
  min-height: 310px;
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
}

.impact-card img {
  height: 100%;
  min-height: 220px;
}

.impact-card-contain img {
  object-fit: contain;
  background: var(--mist);
}

.impact-card-content {
  min-height: 74px;
  display: flex;
  align-items: center;
}

.impact-card-content h3 {
  max-width: 9.5ch;
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  line-height: 0.95;
}

.impact-video-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  margin-top: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(16, 17, 20, 0.16);
}

.impact-video-frame {
  position: relative;
  min-height: clamp(320px, 42vw, 560px);
  margin: 0;
  background: var(--ink);
  overflow: hidden;
}

.impact-video-frame video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.impact-video-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.impact-video-copy h3 {
  max-width: 8ch;
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 4.8vw, 5rem);
  font-weight: 400;
  line-height: 0.9;
}

.impact-video-copy p:not(.eyebrow),
.impact-video-list li {
  color: rgba(255, 255, 255, 0.82);
}

.impact-video-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.impact-video-list li {
  position: relative;
  padding-left: 1.2rem;
}

.impact-video-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--sun);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.marquee {
  margin-top: 2rem;
  overflow: hidden;
  border-block: 1px solid rgba(16, 17, 20, 0.12);
  background: var(--white);
}

.impact-overview,
.partner-band {
  background: var(--white);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.logo-pill {
  width: 210px;
  height: 104px;
  display: grid;
  place-items: center;
  padding: 1rem;
  filter: grayscale(1);
  opacity: 0.74;
  transition: filter 180ms ease, opacity 180ms ease;
}

.logo-pill:hover {
  filter: grayscale(0);
  opacity: 1;
}

.logo-pill img {
  max-height: 62px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.location-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.map-placeholder {
  min-height: 360px;
  border-radius: var(--radius);
  background: var(--mist);
  border: 1px solid rgba(16, 17, 20, 0.14);
  overflow: hidden;
}

.map-placeholder iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}

.faq-list details {
  border: 1px solid rgba(16, 17, 20, 0.12);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 900;
}

.faq-list p {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
}

.site-footer {
  padding: 4rem 0 2rem;
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  margin-top: 0.35rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.page-hero {
  padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
  background: var(--ink);
  color: var(--white);
}

.page-hero h1 {
  max-width: 11ch;
}

.page-hero .lead {
  margin-top: clamp(0.6rem, 1.6svh, 1.1rem);
}

.registration-hero {
  height: min(var(--hero-height), 760px);
  min-height: 0;
  max-height: 760px;
  overflow: hidden;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.9), rgba(16, 17, 20, 0.56) 50%, rgba(16, 17, 20, 0.18)),
    linear-gradient(0deg, rgba(16, 17, 20, 0.62), transparent 48%),
    url("../assets/photos/optimized/static/prima-edizione/fraa.ph-172.jpg.webp") center 35% / cover no-repeat;
}

.partner-hero {
  height: min(var(--hero-height), 780px);
  min-height: 0;
  max-height: 780px;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.92), rgba(16, 17, 20, 0.6) 48%, rgba(16, 17, 20, 0.16)),
    url("../assets/photos/optimized/static/prima-edizione/fraa.ph-213.jpg.webp") center 34% / cover no-repeat;
  color: var(--white);
}

.partner-hero h1 {
  max-width: 10ch;
}

.partner-hero .lead {
  margin-top: clamp(0.6rem, 1.6svh, 1.05rem);
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
}

.impact-hero {
  position: relative;
  overflow: hidden;
  height: min(var(--hero-height), 740px);
  min-height: 0;
  max-height: 740px;
  display: grid;
  align-items: end;
  padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.78), rgba(16, 17, 20, 0.28)),
    url("../assets/photos/optimized/static/corso-bagnini/IMG_5593.JPG.webp") center / cover no-repeat,
    var(--ink);
  color: var(--white);
}

.impact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.92), rgba(16, 17, 20, 0.62) 48%, rgba(16, 17, 20, 0.32)),
    linear-gradient(0deg, rgba(16, 17, 20, 0.64), transparent 52%);
  pointer-events: none;
}

.impact-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.impact-hero .container {
  position: relative;
  z-index: 2;
}

.impact-hero h1 {
  max-width: 10ch;
}

.impact-hero .lead {
  margin-top: clamp(0.6rem, 1.6svh, 1.05rem);
  color: rgba(255, 255, 255, 0.86);
}

.impact-intro {
  background: var(--white);
}

.impact-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.impact-summary a {
  display: grid;
  gap: 1.4rem;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}


.impact-summary a::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 0.7rem;
  height: 0.7rem;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: opacity 180ms ease, transform 180ms ease;
}

.impact-summary a:hover,
.impact-summary a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(16, 17, 20, 0.12);
}

.impact-summary a:hover::after,
.impact-summary a:focus-visible::after {
  opacity: 1;
  transform: translateX(3px) rotate(45deg);
}

.impact-summary a:hover span,
.impact-summary a:focus-visible span {
  color: var(--sun);
}
.impact-summary span {
  color: var(--blue);
  font-family: var(--font-title);
  font-size: 2.4rem;
  line-height: 1;
}

.impact-summary strong {
  align-self: end;
  font-size: 1rem;
  line-height: 1.2;
}

.impact-anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.impact-anchor-list a {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.impact-anchor-list a:hover {
  border-color: var(--blue);
  color: var(--blue);
}


.why-narrative {
  background: var(--ink);
  color: var(--white);
}

.why-narrative .split {
  align-items: start;
}

.why-narrative .eyebrow,
.why-narrative .lead,
.why-narrative p {
  color: rgba(255, 255, 255, 0.82);
}

.why-narrative h2 {
  max-width: 10ch;
}

.why-narrative-copy {
  display: grid;
  gap: 1rem;
}

.why-narrative-copy p:not(.lead) {
  max-width: 62ch;
  font-weight: 750;
  line-height: 1.55;
}
.impact-story {
  padding: 0 0 clamp(4rem, 8vw, 7rem);
  background: var(--white);
}

.impact-story .container {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
}

.impact-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.impact-chapter-reverse figure {
  order: 2;
}

.impact-chapter figure {
  margin: 0;
  min-height: clamp(420px, 54vw, 680px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
}

.impact-chapter img,
.impact-chapter video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.impact-chapter .impact-figure-contain {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.impact-figure-contain img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  border-radius: 8px;
}

.impact-chapter video {
  background: var(--ink);
}

.impact-copy {
  display: grid;
  gap: 1.1rem;
}

.impact-copy h2 {
  max-width: 10ch;
}

.impact-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.impact-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}

.impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blue);
}

.chapter-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.chapter-photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.chapter-photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chapter-photo-grid img {
  min-height: 118px;
}

.gallery-showcase-hero {
  position: relative;
  height: min(var(--hero-height), 820px);
  min-height: 0;
  max-height: 820px;
  padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
  background: var(--ink);
  color: var(--white);
  overflow: clip;
}

.gallery-showcase-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.94), rgba(16, 17, 20, 0.66) 46%, rgba(16, 17, 20, 0.32)),
    linear-gradient(0deg, rgba(16, 17, 20, 0.74), transparent 46%);
  pointer-events: none;
}

.showcase-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.68;
}

.showcase-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 5200ms linear;
}

.showcase-hero-bg img.is-active {
  opacity: 1;
  transform: scale(1.09);
}

.gallery-showcase-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  height: 100%;
  align-items: end;
}

.gallery-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: end;
  width: 100%;
}

.gallery-showcase-copy {
  display: grid;
  gap: var(--hero-gap);
}

.gallery-showcase-copy h1 {
  max-width: 9ch;
}

.showcase-category {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-quote);
  font-size: clamp(1.4rem, 2.3vw, 2.2rem);
  line-height: 1;
}

.showcase-card-stage {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 1rem;
  align-items: end;
  min-height: clamp(330px, 34vw, 460px);
  overflow: visible;
}

.showcase-card-rail {
  position: relative;
  min-height: clamp(300px, 31vw, 430px);
  overflow: visible;
}

.showcase-category-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(180px, 18vw, 260px);
  height: clamp(250px, 27vw, 370px);
  display: grid;
  align-content: end;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  transition:
    opacity 320ms ease,
    transform 260ms ease,
    border-color 180ms ease,
    filter 260ms ease;
  transform:
    translateX(calc(-50% + (var(--card-offset) * clamp(150px, 16vw, 230px))))
    translateY(1rem)
    scale(0.82);
  opacity: 0;
  filter: saturate(0.78) brightness(0.78);
  pointer-events: none;
}

.showcase-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(16, 17, 20, 0.08), rgba(16, 17, 20, 0.82)),
    linear-gradient(90deg, rgba(16, 17, 20, 0.24), transparent);
}

.showcase-category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 460ms ease;
}

.showcase-category-card span,
.showcase-category-card strong,
.showcase-category-card small {
  position: relative;
  z-index: 2;
}

.showcase-category-card span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
}

.showcase-category-card strong {
  font-family: var(--font-title);
  font-size: clamp(1.65rem, 2.3vw, 2.5rem);
  line-height: 0.95;
}

.showcase-category-card small {
  max-width: 18ch;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
  line-height: 1.22;
}

.showcase-category-card.is-active {
  border-color: rgba(255, 176, 0, 0.86);
  transform: translateX(-50%) translateY(-0.25rem) scale(1);
  opacity: 1;
  z-index: 5;
  filter: none;
  pointer-events: auto;
}

.showcase-category-card.is-before,
.showcase-category-card.is-after {
  opacity: 0.92;
  pointer-events: auto;
}

.showcase-category-card.is-before {
  z-index: 3;
}

.showcase-category-card.is-after {
  z-index: 4;
}

.showcase-category-card[style*="--card-offset: -2"],
.showcase-category-card[style*="--card-offset: 2"] {
  opacity: 0.36;
  transform:
    translateX(calc(-50% + (var(--card-offset) * clamp(134px, 14vw, 198px))))
    translateY(2.2rem)
    scale(0.66);
}

.showcase-category-card[style*="--card-offset: -3"],
.showcase-category-card[style*="--card-offset: 3"] {
  opacity: 0;
  pointer-events: none;
}

.showcase-category-card.is-active img,
.showcase-category-card:hover img {
  transform: scale(1.07);
}

.showcase-progress {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.showcase-progress span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 180ms ease, background 180ms ease;
}

.showcase-progress span.is-active {
  width: 34px;
  background: var(--sun);
}

.rail-photo {
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--mist);
  cursor: zoom-in;
  overflow: hidden;
}

.rail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.rail-photo:hover img {
  transform: scale(1.04);
}

.showcase-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(0.9rem, min(3vw, 3svh), 2rem);
  align-items: end;
}

.showcase-rail {
  display: flex;
  gap: 0.8rem;
  margin-top: clamp(0.75rem, 2svh, 1.3rem);
  padding: 0 1rem clamp(0.35rem, 1svh, 0.8rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.rail-photo {
  flex: 0 0 min(42vw, 420px);
  height: clamp(150px, min(24vw, 34svh), 310px);
  scroll-snap-align: start;
}

.rail-photo:nth-child(3n + 2) {
  flex-basis: min(34vw, 330px);
}

.rail-photo:nth-child(3n) {
  flex-basis: min(48vw, 480px);
}

.gallery-archive[hidden] {
  display: none;
}

.pinterest-gallery {
  background: var(--mist);
}

.gallery-archive.is-open {
  animation: archiveIn 280ms ease both;
}

.photo-presentation {
  background: var(--white);
}

.random-photo-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(110px, 12vw, 190px);
  gap: clamp(0.55rem, 1.2vw, 0.9rem);
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}

.random-photo {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--mist);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 16px 36px rgba(16, 17, 20, 0.1);
}

.random-photo.is-large {
  grid-column: span 3;
  grid-row: span 3;
}

.random-photo.is-wide {
  grid-column: span 4;
  grid-row: span 2;
}

.random-photo.is-tall {
  grid-column: span 2;
  grid-row: span 3;
}

.random-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.random-photo:hover img {
  transform: scale(1.04);
}

@keyframes archiveIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.partner-section {
  margin-top: 3rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.partner-card {
  min-height: 230px;
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.partner-card img {
  width: 100%;
  height: 82px;
  object-fit: contain;
  justify-self: start;
}

.partner-status {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 0.65rem 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.gallery-grid {
  display: block;
  column-count: 4;
  column-gap: 1rem;
}

.gallery-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  break-inside: avoid;
  overflow: hidden;
  vertical-align: top;
}

.gallery-open {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
}

.gallery-open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-card-landscape .gallery-open {
  aspect-ratio: 4 / 3;
}

.gallery-card-portrait .gallery-open {
  aspect-ratio: 3 / 4;
}

.gallery-open:hover img {
  transform: scale(1.04);
}

.gallery-load-more {
  margin: 2rem auto 0;
}

.gallery-load-more.is-auto-loading {
  display: none;
}

code {
  padding: 0.12rem 0.28rem;
  border-radius: 4px;
  background: rgba(16, 17, 20, 0.08);
  font-size: 0.92em;
}

.gallery-sentinel {
  width: 100%;
  height: 1px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(16, 17, 20, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  width: min(100%, 1180px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-download {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 2;
  transform: translateX(-50%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.wave-bg::after {
  content: "";
  position: absolute;
  inset: auto -10% -80px -10%;
  height: 180px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(0, 182, 217, 0.18), transparent 62%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(0, 119, 200, 0.08) 34px 38px);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .marquee-track {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
  }
}

/* Iscrizione: UX mobile e differenza tra azioni e informazioni */
.registration-hero-content {
  display: grid;
  gap: clamp(0.65rem, 1.6svh, 1rem);
  align-content: end;
}

.registration-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.participation-option {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.participation-option::after {
  content: ">";
  position: absolute;
  right: 0.95rem;
  bottom: 0.85rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

.participation-option:hover::after,
.participation-option:focus-visible::after {
  transform: translateX(3px);
  background: var(--white);
}

.participation-option b,
.participation-option em {
  position: relative;
  z-index: 2;
  width: fit-content;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.participation-option b {
  padding: 0.34rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.participation-option em {
  padding-right: 2.3rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.participation-option span,
.participation-option small {
  position: relative;
  z-index: 2;
}

.participation-volunteer b,
.participation-course b {
  background: rgba(255, 255, 255, 0.9);
}

.participation-partner b {
  background: var(--ink);
  color: var(--white);
}

.quick-info-grid-passive {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.quick-info-grid-passive article {
  border: 1px solid rgba(16, 17, 20, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: none;
}

.quick-info-grid-passive span {
  color: var(--muted);
}

.quick-info-grid-passive strong {
  color: var(--ink);
}

/* Partner page: layout istituzionale e loghi */
.page-partner .partner-hero {
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.92), rgba(16, 17, 20, 0.62) 46%, rgba(16, 17, 20, 0.18)),
    linear-gradient(0deg, rgba(16, 17, 20, 0.72), rgba(16, 17, 20, 0.08) 52%),
    url("../assets/photos/optimized/static/prima-edizione/fraa.ph-213.jpg.webp") center 34% / cover no-repeat;
}

.partner-hero-inner {
  display: grid;
  align-content: end;
  gap: clamp(0.65rem, 1.6svh, 1rem);
}

.partner-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.partner-directory {
  background:
    linear-gradient(180deg, var(--white), var(--mist));
}

.partner-directory-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1rem, 2.4vw, 1.6rem);
}

.partner-directory-head .lead {
  max-width: 44rem;
}

.partner-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
  margin: 1.4rem 0 2.2rem;
}

.partner-summary article {
  min-height: 108px;
  display: grid;
  align-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(16, 17, 20, 0.06);
}

.partner-summary span,
.partner-section-heading span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-summary strong {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 0.9;
}

.partner-section {
  margin-top: clamp(2.1rem, 4vw, 3.6rem);
  padding-top: clamp(1.2rem, 2vw, 1.8rem);
  border-top: 1px solid rgba(16, 17, 20, 0.12);
}

.partner-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.partner-section-heading .eyebrow {
  margin: 0;
}

.partner-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1rem);
  margin-top: 0;
}

.partner-card {
  min-height: 190px;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  gap: 0.9rem;
  padding: 0.9rem;
  border: 1px solid rgba(16, 17, 20, 0.1);
  box-shadow: 0 16px 34px rgba(16, 17, 20, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.partner-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 119, 200, 0.28);
  box-shadow: 0 20px 46px rgba(16, 17, 20, 0.12);
}

.partner-card img {
  width: 100%;
  height: 104px;
  padding: 0.75rem;
  border: 1px solid rgba(16, 17, 20, 0.08);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  object-fit: contain;
  justify-self: stretch;
}

.partner-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  font-weight: 900;
  line-height: 1.08;
}

.partner-card .text-muted {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  line-height: 1.35;
}

.partner-card a {
  width: fit-content;
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.support-section {
  background: var(--ink);
  color: var(--white);
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: stretch;
}

.support-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.support-copy .eyebrow,
.support-copy .lead {
  color: rgba(255, 255, 255, 0.78);
}

.support-copy h2 {
  max-width: 9ch;
}

.support-points {
  display: grid;
  gap: 0.75rem;
}

.support-points article {
  display: grid;
  grid-template-columns: 4rem minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.support-points span {
  font-family: var(--font-title);
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--sun);
}

.support-points strong {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 0.9;
}

.support-points p {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
  line-height: 1.35;
}

/* Partner logo balancing */
.partner-logo-frame {
  width: 100%;
  height: clamp(104px, 9vw, 126px);
  display: grid;
  place-items: center;
  padding: clamp(0.55rem, 1vw, 0.85rem);
  border: 1px solid rgba(16, 17, 20, 0.08);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
}

.partner-card .partner-logo-frame img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 76%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center;
  justify-self: center;
}

.partner-card-organizzatori .partner-logo-frame {
  height: clamp(116px, 10vw, 140px);
}

.partner-card-organizzatori .partner-logo-frame img {
  max-width: 90%;
  max-height: 82%;
}

.partner-card-patrocini .partner-logo-frame img {
  max-width: 84%;
  max-height: 84%;
}

.partner-card-sponsor .partner-logo-frame img,
.partner-card-sponsor-2025 .partner-logo-frame img,
.partner-card-sponsor-2026 .partner-logo-frame img {
  max-width: 90%;
  max-height: 72%;
}

/* Partner logo final alignment: prevent oversized logos and text overlap */
.partner-card {
  grid-template-rows: auto auto auto;
  align-content: start;
}

.partner-logo-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 0;
}

.partner-card > div:not(.partner-logo-frame) {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 2.4rem;
}

.partner-card .partner-logo-frame img {
  display: block;
  transform: none;
}

.partner-card-organizzatori .partner-logo-frame {
  height: clamp(142px, 11vw, 166px);
  padding: clamp(1.15rem, 1.7vw, 1.6rem);
}

.partner-card-organizzatori .partner-logo-frame img {
  max-width: 86%;
  max-height: 78%;
}

.partner-card-sponsor .partner-logo-frame img,
.partner-card-patrocini .partner-logo-frame img {
  max-width: 82%;
}

/* Partner organizers: balanced logo area after display-logo normalization */
.partner-card-organizzatori {
  gap: 1.05rem;
}

.partner-card-organizzatori .partner-logo-frame {
  height: clamp(148px, 12vw, 176px);
  padding: clamp(1.2rem, 1.8vw, 1.75rem);
  overflow: hidden;
}

.partner-card-organizzatori .partner-logo-frame img {
  max-width: 88%;
  max-height: 80%;
  object-fit: contain;
  object-position: center center;
}

.partner-card-organizzatori h3 {
  margin-top: 0;
  line-height: 1.05;
}

/* Final partner-logo containment: keep logos inside the frame and text clearly below. */
.partner-card .partner-logo-frame > img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.partner-card .partner-logo-frame + div {
  margin-top: 0.1rem;
}

/* Partner page rebuild: editorial masonry board for logos with different proportions */
.page-partner {
  background: #f6f7f8;
}

.page-partner .partner-hero-editorial {
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.9), rgba(16, 17, 20, 0.58) 52%, rgba(16, 17, 20, 0.2)),
    url("../assets/photos/optimized/static/prima-edizione/fraa.ph-213.jpg.webp") center center / cover no-repeat;
}

.partner-hero-editorial h1 {
  max-width: 9ch;
}

.partner-directory-editorial {
  background:
    linear-gradient(180deg, #f6f7f8 0%, #ffffff 42%, #f3f4f6 100%);
}

.partner-directory-head-editorial {
  align-items: end;
  padding-bottom: clamp(1.2rem, 2.6vw, 2rem);
  border-bottom: 1px solid rgba(16, 17, 20, 0.12);
}

.partner-directory-head-editorial h2 {
  max-width: 10ch;
}

.partner-summary-editorial {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: clamp(1rem, 2vw, 1.5rem) 0 clamp(1rem, 3vw, 2rem);
}

.partner-summary-editorial a {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 0.75rem;
  padding: clamp(0.9rem, 1.6vw, 1.15rem);
  border: 1px solid rgba(16, 17, 20, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(16, 17, 20, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.partner-summary-editorial a:nth-child(1) { background: var(--ink); color: var(--white); }
.partner-summary-editorial a:nth-child(2) { background: #eaf8fb; }
.partner-summary-editorial a:nth-child(3) { background: #fff5dc; }
.partner-summary-editorial a:nth-child(4) { background: #eef9f3; }
.partner-summary-editorial a:nth-child(5) { background: #fff0f0; }

.partner-summary-editorial a:hover,
.partner-summary-editorial a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 119, 200, 0.38);
  box-shadow: 0 20px 46px rgba(16, 17, 20, 0.12);
}

.partner-summary-editorial span {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.74;
}

.partner-summary-editorial strong {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.85;
}

.partner-category-nav {
  position: sticky;
  top: calc(var(--header-height) + 0.5rem);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.4rem);
  padding: 0.5rem;
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(16, 17, 20, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

.partner-category-nav::-webkit-scrollbar {
  display: none;
}

.partner-category-nav a {
  flex: 0 0 auto;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.partner-category-nav a:hover,
.partner-category-nav a:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.partner-masonry-section {
  scroll-margin-top: calc(var(--header-height) + 5rem);
  margin-top: clamp(2.5rem, 5vw, 5rem);
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid rgba(16, 17, 20, 0.12);
}

.partner-masonry-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: clamp(1rem, 2.2vw, 1.6rem);
}

.partner-masonry-heading h3 {
  max-width: 44rem;
  margin: 0.35rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 850;
  line-height: 1.25;
}

.partner-masonry-heading > span {
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.partner-masonry {
  column-count: 4;
  column-gap: clamp(0.75rem, 1.5vw, 1.15rem);
}

.partner-masonry-organizzatori {
  column-count: 2;
}

.partner-masonry-patrocini {
  column-count: 3;
}

.partner-tile {
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(0.75rem, 1.5vw, 1.15rem);
  break-inside: avoid;
  padding: clamp(0.75rem, 1.3vw, 1rem);
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(16, 17, 20, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.partner-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 119, 200, 0.32);
  box-shadow: 0 24px 56px rgba(16, 17, 20, 0.13);
}

.partner-tile-logo {
  min-height: clamp(116px, 13vw, 180px);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2vw, 1.6rem);
  border: 1px solid rgba(16, 17, 20, 0.08);
  border-radius: calc(var(--radius) - 2px);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 182, 217, 0.09), transparent 34%),
    #fff;
  overflow: visible;
}

.partner-tile-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(90px, 12vw, 170px);
  object-fit: contain;
  object-position: center;
}

.partner-tile-meta {
  display: grid;
  gap: 0.38rem;
  padding: 0.85rem 0.1rem 0.05rem;
}

.partner-tile-meta span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-tile-meta h4 {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 950;
  line-height: 1.08;
}

.partner-tile-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.partner-tile-meta a {
  width: fit-content;
  color: var(--ink);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.partner-tile-feature {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.partner-tile-feature .partner-tile-logo,
.partner-tile-organizzatori .partner-tile-logo {
  min-height: clamp(180px, 22vw, 280px);
  padding: clamp(1.5rem, 3vw, 2.6rem);
}

.partner-tile-feature .partner-tile-logo img,
.partner-tile-organizzatori .partner-tile-logo img {
  max-height: clamp(135px, 19vw, 235px);
}

.partner-tile-wide .partner-tile-logo {
  min-height: clamp(130px, 16vw, 210px);
}

.partner-tile-tall .partner-tile-logo {
  min-height: clamp(170px, 20vw, 250px);
}

.partner-tile-compact .partner-tile-logo {
  min-height: clamp(96px, 10vw, 145px);
  padding: clamp(0.75rem, 1.5vw, 1.15rem);
}

.partner-tile-compact .partner-tile-logo img {
  max-height: clamp(72px, 9vw, 118px);
}

.partner-section-organizzatori .partner-tile {
  background: var(--ink);
  color: var(--white);
}

.partner-section-organizzatori .partner-tile-meta span,
.partner-section-organizzatori .partner-tile-meta p {
  color: rgba(255, 255, 255, 0.72);
}

.partner-section-patrocini .partner-tile-logo {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 176, 0, 0.12), transparent 36%),
    #fff;
}

.partner-section-sponsor-2025 .partner-tile-logo,
.partner-section-sponsor-2026 .partner-tile-logo {
  background:
    radial-gradient(circle at 0% 100%, rgba(0, 168, 107, 0.1), transparent 36%),
    #fff;
}
/* Partner navigation state and organizer row refinement */
.partner-category-nav {
  --partner-nav-progress: 0%;
  position: sticky;
  isolation: isolate;
}

.partner-category-nav::before,
.partner-category-nav::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.32rem;
  height: 4px;
  border-radius: 999px;
  pointer-events: none;
}

.partner-category-nav::before {
  background: rgba(16, 17, 20, 0.08);
}

.partner-category-nav::after {
  right: auto;
  width: var(--partner-nav-progress, 0%);
  max-width: calc(100% - 1.4rem);
  background: var(--sun);
  box-shadow: 0 0 0 1px rgba(255, 176, 0, 0.16), 0 0 18px rgba(255, 176, 0, 0.38);
  transition: width 260ms ease;
}

.partner-category-nav a {
  position: relative;
  z-index: 1;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.partner-category-nav a.is-active {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: inset 0 -3px 0 var(--sun), 0 10px 24px rgba(16, 17, 20, 0.14);
}

.partner-category-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.45rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--sun);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(255, 176, 0, 0.18);
}

.partner-masonry-organizzatori {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.2rem);
  column-count: initial;
}

.partner-masonry-organizzatori .partner-tile {
  display: grid;
  width: auto;
  margin: 0;
}

.partner-masonry-organizzatori .partner-tile-logo {
  min-height: clamp(190px, 19vw, 260px);
}
.partner-category-nav::after {
  width: var(--partner-nav-progress, 0%);
  max-width: calc(100% - 1.4rem);
}
/* Partner category nav refinement: centered labels and real scroll feedback */
.partner-category-nav {
  justify-content: center;
  align-items: center;
}

.partner-category-nav a {
  text-align: center;
}

.partner-category-nav::after {
  width: var(--partner-nav-progress, 0%);
  max-width: calc(100% - 1.4rem);
}
/* Location photo slideshow */
.location-slideshow {
  position: relative;
  min-height: 360px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 119, 200, 0.16), rgba(0, 168, 107, 0.1)),
    var(--mist);
  border: 1px solid rgba(16, 17, 20, 0.14);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(16, 17, 20, 0.1);
}

.location-slideshow-stage {
  position: absolute;
  inset: 0;
}

.location-slideshow-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 680ms ease, transform 4500ms linear;
}

.location-slideshow-stage img.is-active {
  opacity: 1;
  transform: scale(1.08);
}

.location-slideshow::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(16, 17, 20, 0.34));
  pointer-events: none;
}

.location-slideshow-dots {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.45rem;
}

.location-slideshow-dots span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 1px rgba(16, 17, 20, 0.12);
  transition: width 220ms ease, background-color 220ms ease;
}

.location-slideshow-dots span.is-active {
  width: 1.8rem;
  background: var(--sun);
}

.location-slideshow-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  padding: 1.4rem;
  text-align: center;
  color: var(--ink);
}

.location-slideshow-fallback strong {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 0.9;
}

.location-slideshow-fallback span {
  color: var(--muted);
  font-weight: 850;
}

@media (prefers-reduced-motion: reduce) {
  .location-slideshow-stage img {
    transition: none;
    transform: none;
  }

  .location-slideshow-stage img.is-active {
    transform: none;
  }
}
/* Home event dark card: keep paragraph readable on ink background */
.event-story-card-reverse .event-story-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}
/* Home impact training banner */
.impact-training-banner {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 176, 0, 0.12), transparent 34%),
    var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-training-banner .impact-video-frame {
  min-height: clamp(360px, 38vw, 560px);
  border-radius: 0;
}

.impact-training-banner .impact-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 62%, rgba(16, 17, 20, 0.24));
  pointer-events: none;
}

.impact-training-banner .impact-video-copy {
  align-content: center;
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
  padding: clamp(1.25rem, 3.2vw, 2.8rem);
}

.impact-partner-badge {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.impact-partner-badge span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.impact-partner-badge img {
  width: auto;
  height: clamp(34px, 4vw, 48px);
  max-width: 150px;
  object-fit: contain;
}

.impact-training-banner .impact-video-copy h3 {
  max-width: 9ch;
}

.impact-training-banner .impact-video-copy strong {
  color: var(--white);
}

.impact-video-actions {
  margin-top: 0.25rem;
}

.impact-video-actions .btn {
  width: fit-content;
  box-shadow: 0 14px 32px rgba(255, 176, 0, 0.22);
}
/* Impact banner refinement: black banner with white content box */
.impact-overview {
  background: var(--ink);
  color: var(--white);
}

.impact-overview .section-heading .lead,
.impact-overview .section-heading .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.impact-training-banner {
  background: #050609;
  border-color: rgba(255, 255, 255, 0.14);
}

.impact-training-banner .impact-video-copy {
  align-self: center;
  margin: clamp(0.85rem, 1.8vw, 1.35rem) clamp(0.85rem, 1.8vw, 1.35rem) clamp(0.85rem, 1.8vw, 1.35rem) 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.26);
}

.impact-training-banner .impact-video-copy .eyebrow,
.impact-training-banner .impact-video-copy p:not(.eyebrow),
.impact-training-banner .impact-video-list li {
  color: var(--muted);
}

.impact-training-banner .impact-video-copy h3,
.impact-training-banner .impact-video-copy strong {
  color: var(--ink);
}

.impact-training-banner .impact-partner-badge {
  border: 1px solid rgba(16, 17, 20, 0.1);
  background: #f7f8fa;
  box-shadow: none;
}
/* Final restyle: Impact concrete banner */
.impact-overview {
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 182, 217, 0.14), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(255, 176, 0, 0.13), transparent 34%),
    #050609;
  color: var(--white);
}

.impact-overview .section-heading h2 {
  max-width: 9.5ch;
}

.impact-training-banner {
  position: relative;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: 0;
  padding: clamp(0.55rem, 1.1vw, 0.85rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.impact-training-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 119, 200, 0.14), transparent 36%),
    linear-gradient(135deg, transparent 0 58%, rgba(255, 176, 0, 0.08) 58% 100%);
  pointer-events: none;
}

.impact-training-banner .impact-video-frame {
  z-index: 1;
  min-height: clamp(420px, 42vw, 610px);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.impact-training-banner .impact-video-frame video {
  filter: saturate(1.05) contrast(1.06);
}

.impact-training-banner .impact-video-frame::after {
  background:
    linear-gradient(90deg, transparent 58%, rgba(5, 6, 9, 0.62)),
    linear-gradient(180deg, rgba(5, 6, 9, 0.04), rgba(5, 6, 9, 0.24));
}

.impact-training-card {
  z-index: 2;
  align-self: center;
  gap: clamp(0.82rem, 1.4vw, 1.1rem);
  margin: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2.35vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.32);
}

.impact-brand-lockup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(0.55rem, 1vw, 0.8rem);
  align-items: stretch;
}

.impact-brand-lockup > strong {
  align-self: center;
  color: var(--blue);
  font-family: var(--font-title);
  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}

.impact-brand-logo {
  min-height: clamp(86px, 8.5vw, 118px);
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 0.55rem;
  padding: clamp(0.75rem, 1.2vw, 1rem);
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: calc(var(--radius) - 2px);
  background: #f7f8fa;
}

.impact-brand-logo span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.impact-brand-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.impact-brand-logo-nsf img {
  max-height: 64px;
}

.impact-brand-logo-hsa img {
  max-height: 54px;
}

.impact-training-card .eyebrow {
  margin-top: 0.2rem;
  color: var(--blue);
}

.impact-training-card h3 {
  max-width: 8.4ch;
  color: var(--ink);
  font-size: clamp(2.55rem, 4.2vw, 4.7rem);
}

.impact-training-card p:not(.eyebrow) {
  color: #4b5563;
  font-weight: 750;
  line-height: 1.42;
}

.impact-training-card strong {
  color: var(--ink);
}

.impact-training-points {
  display: grid;
  gap: 0.55rem;
}

.impact-training-points article {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.68rem;
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: 12px;
  background: #ffffff;
}

.impact-training-points span {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sun);
  font-family: var(--font-title);
  font-size: 1.35rem;
  line-height: 1;
}

.impact-training-points p {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.25;
}

.impact-training-card .impact-video-actions {
  margin-top: 0.15rem;
}

.impact-training-card .impact-video-actions .btn {
  min-height: 48px;
  box-shadow: none;
}
/* Impact wallet-style visual block */
.impact-wallet-section {
  background: #ffffff;
  color: var(--ink);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.impact-wallet-banner {
  position: relative;
  min-height: clamp(620px, 62vw, 780px);
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 80px rgba(16, 17, 20, 0.18);
  isolation: isolate;
}

.impact-wallet-media {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--ink);
}

.impact-wallet-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.08) contrast(1.05);
}

.impact-wallet-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.18), transparent 28%, rgba(16, 17, 20, 0.08)),
    linear-gradient(180deg, rgba(16, 17, 20, 0.08), rgba(16, 17, 20, 0.18));
  pointer-events: none;
  z-index: 1;
}

.impact-wallet-brand {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: min(34%, 390px);
  min-width: 280px;
  padding: clamp(1.3rem, 2.7vw, 2.5rem);
  border-bottom-right-radius: clamp(64px, 9vw, 128px);
  background: #ffffff;
  color: var(--ink);
}

.impact-wallet-brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 0.72fr);
  gap: clamp(0.9rem, 2vw, 1.35rem);
  align-items: center;
}

.impact-wallet-brand-row span {
  width: 1px;
  height: 72px;
  background: rgba(16, 17, 20, 0.42);
}

.impact-wallet-brand img {
  width: 100%;
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
}

.impact-wallet-brand p {
  max-width: 28ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.impact-wallet-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: min(58%, 680px);
  padding: clamp(1.6rem, 4.3vw, 4.25rem);
  border-top-left-radius: clamp(72px, 10vw, 140px);
  background: #ffffff;
  color: var(--ink);
}

.impact-wallet-content .eyebrow {
  color: var(--blue);
}

.impact-wallet-content h2 {
  max-width: 11ch;
  margin: 0.2rem 0 1rem;
  font-size: clamp(3.1rem, 6vw, 6.6rem);
  line-height: 0.88;
}

.impact-wallet-content .lead {
  max-width: 50ch;
  color: #2f3744;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 760;
}

.impact-wallet-content p:not(.eyebrow):not(.lead) {
  max-width: 56ch;
  margin-top: 0.9rem;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
}

.impact-wallet-content strong {
  color: var(--ink);
}

.impact-wallet-actions {
  margin-top: clamp(1rem, 2vw, 1.4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.impact-wallet-actions .btn {
  min-height: 48px;
}
.impact-wallet-secondary {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}

.impact-wallet-secondary:hover,
.impact-wallet-secondary:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* SEO image landing pages */
.page-seo-gallery {
  background: var(--color-white);
}

.seo-hero {
  position: relative;
  min-height: min(760px, 92svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-white);
}

.seo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 17, 20, 0.82), rgba(16, 17, 20, 0.45) 48%, rgba(16, 17, 20, 0.18));
  z-index: 1;
}

.seo-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.seo-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-block: clamp(5rem, 12svh, 9rem) clamp(3rem, 8svh, 6rem);
}

.seo-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 9vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.seo-hero p:not(.label) {
  max-width: 660px;
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.seo-gallery-section {
  background: var(--color-gray);
}

.seo-photo-grid {
  columns: 4 250px;
  column-gap: 1rem;
}

.seo-photo-card {
  break-inside: avoid;
  margin: 0 0 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.seo-photo-card a {
  display: block;
}

.seo-photo-card img {
  display: block;
  width: 100%;
  height: auto;
}

.seo-photo-card figcaption {
  padding: 0.85rem 0.95rem 1rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .seo-hero {
    min-height: 86svh;
  }

  .seo-hero::after {
    background: linear-gradient(180deg, rgba(16, 17, 20, 0.25), rgba(16, 17, 20, 0.86));
  }

  .seo-hero-content {
    padding-block: 6rem 2rem;
  }

  .seo-hero h1 {
    font-size: clamp(3.4rem, 16vw, 5.6rem);
  }
}

.photo-theme-links {
  background: var(--color-white);
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.seo-link-grid a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-gray);
  color: var(--color-ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.seo-link-grid a:hover,
.seo-link-grid a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--color-blue);
  background: var(--color-white);
}

.seo-link-grid span {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-link-grid strong {
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 0.9;
}

@media (max-width: 980px) {
  .seo-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .seo-link-grid {
    grid-template-columns: 1fr;
  }

  .seo-link-grid a {
    min-height: 120px;
  }
}

.sport-framework {
  background:
    linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
}

.sport-framework-heading {
  align-items: end;
}

.sport-framework-heading h2 {
  max-width: 12ch;
}

.sport-framework-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sport-framework-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(16, 17, 20, 0.08);
}

.sport-framework-card span {
  color: var(--blue);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sport-framework-card h3 {
  max-width: 9ch;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.sport-framework-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.sport-framework-card-fisdir {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.sport-framework-card-fisdir span,
.sport-framework-card-fisdir p {
  color: rgba(255, 255, 255, 0.82);
}

.sport-framework-logo {
  width: min(180px, 58%);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: var(--white);
}

.sport-framework-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sport-framework-quote {
  margin: 1rem 0 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-left: 8px solid var(--sun);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.sport-framework-quote p {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

@media (max-width: 1080px) {
  .sport-framework-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sport-framework-grid {
    grid-template-columns: 1fr;
  }

  .sport-framework-card {
    min-height: 260px;
  }

  .sport-framework-card h3 {
    max-width: 12ch;
  }
}



