/*
Theme Name: Valli & Motori Upload Safe
Author: Valli & Motori
Description: Tema one-page ultra leggero per Valli & Motori, con struttura pronta e media da caricare da WordPress.
Version: 1.3.0
Text Domain: valli-motori
*/

:root {
  --red: #a80718;
  --red-deep: #760512;
  --ink: #151312;
  --graphite: #242323;
  --cream: #f4ead9;
  --paper: #fff9ef;
  --sand: #cdb7a7;
  --steel: #9aa5a5;
  --olive: #38443b;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(21, 19, 18, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

section {
  scroll-margin-top: 84px;
}

body.admin-bar .site-header {
  top: 32px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(21, 19, 18, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.brand span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

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

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.04);
}

.hero-visual {
  background:
    linear-gradient(125deg, rgba(21, 19, 18, 0.96), rgba(21, 19, 18, 0.3)),
    radial-gradient(circle at 78% 25%, rgba(168, 7, 24, 0.48), transparent 30%),
    radial-gradient(circle at 66% 68%, rgba(244, 234, 217, 0.26), transparent 34%),
    linear-gradient(135deg, #151312 0%, #38443b 54%, #760512 100%);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.hero-visual::before {
  right: clamp(30px, 9vw, 150px);
  bottom: clamp(120px, 18vw, 250px);
  width: min(460px, 58vw);
  height: min(170px, 22vw);
  border: 3px solid rgba(244, 234, 217, 0.28);
  box-shadow: inset 0 -34px 0 rgba(168, 7, 24, 0.38);
  transform: skewX(-14deg);
}

.hero-visual::after {
  right: clamp(80px, 14vw, 240px);
  bottom: clamp(82px, 12vw, 170px);
  width: min(300px, 44vw);
  height: min(76px, 14vw);
  border-top: 10px solid rgba(244, 234, 217, 0.32);
  border-bottom: 10px solid rgba(244, 234, 217, 0.2);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.88) 0%, rgba(12, 10, 9, 0.54) 44%, rgba(12, 10, 9, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 10, 9, 0.92) 0%, rgba(12, 10, 9, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(54px, 10vh, 110px) clamp(18px, 6vw, 86px);
  padding-top: 120px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 12vw, 10.4rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--red);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hero-badge {
  position: absolute;
  right: clamp(18px, 5vw, 76px);
  bottom: clamp(26px, 8vh, 86px);
  z-index: 3;
  width: min(270px, calc(100% - 36px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(21, 19, 18, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-badge span,
.hero-badge small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-transform: uppercase;
}

.hero-badge strong {
  display: block;
  margin: 5px 0;
  color: var(--cream);
  font-size: 1.85rem;
  line-height: 1;
}

.opening-strip {
  overflow: hidden;
  padding: 18px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(244, 234, 217, 0.08) 0 1px, transparent 1px 100%),
    #151312;
  background-size: 72px 72px, auto;
}

.opening-track {
  display: flex;
  width: max-content;
  animation: opening-scroll 58s linear infinite;
}

.opening-strip:hover .opening-track,
.opening-strip:focus-within .opening-track {
  animation-play-state: paused;
}

.opening-group {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 28vw, 380px);
  gap: 14px;
  padding-right: 14px;
}

.opening-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 234, 217, 0.18);
  border-radius: 8px;
  background: #090807;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.opening-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opening-slot {
  background:
    radial-gradient(circle at 20% 18%, rgba(244, 234, 217, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(168, 7, 24, 0.34), rgba(56, 68, 59, 0.58)),
    #151312;
}

.opening-slot::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(244, 234, 217, 0.18);
  border-radius: 6px;
}

.photo-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 52px;
  color: rgba(255, 249, 239, 0.74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.photo-slot span {
  position: relative;
  z-index: 1;
}

.opening-photo figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: block;
  min-height: 34px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(21, 19, 18, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

@keyframes opening-scroll {
  to {
    transform: translateX(-50%);
  }
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--red);
  color: var(--white);
}

.stat {
  min-height: 154px;
  padding: clamp(22px, 4vw, 44px);
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.stat:last-child {
  border-right: 0;
}

.stat-number {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.85rem);
  font-weight: 900;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.stat-label {
  display: block;
  max-width: 240px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
  text-transform: uppercase;
}

.intro-section,
.media-section,
.partners-section,
.contact-section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 6vw, 86px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  line-height: 1.05;
}

.intro-copy {
  color: rgba(21, 19, 18, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.intro-copy p,
.charity-copy p,
.showcase-panel p,
.contact-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 22px;
}

.media-section {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(244, 234, 217, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #171412 0%, #262321 100%);
  background-size: 86px 86px, auto;
  overflow: hidden;
}

.media-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: clamp(26px, 6vw, 82px);
  align-items: end;
}

.media-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

.media-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  margin-top: clamp(36px, 6vw, 72px);
}

.feature-video-shell,
.dialog-video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #090807;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.feature-video-shell {
  width: min(410px, 100%);
  justify-self: center;
  aspect-ratio: 9 / 16;
}

.feature-video,
.dialog-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feature-placeholder,
.media-card-visual {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 24% 22%, rgba(244, 234, 217, 0.24), transparent 28%),
    linear-gradient(145deg, rgba(168, 7, 24, 0.42), rgba(56, 68, 59, 0.74)),
    #151312;
  color: rgba(255, 249, 239, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-placeholder span {
  max-width: 7ch;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 0.95;
  text-align: center;
}

.feature-copy {
  max-width: 760px;
}

.feature-copy span,
.dialog-caption span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--sand);
  font-weight: 900;
  text-transform: uppercase;
}

.feature-copy h3 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 6.2rem);
  line-height: 0.92;
}

.feature-copy p {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
}

.media-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 280px);
  gap: 14px;
  margin-top: clamp(34px, 6vw, 70px);
  padding-bottom: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--red) rgba(255, 255, 255, 0.12);
}

.media-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  text-align: left;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 220ms ease, filter 220ms ease;
}

.media-card-visual {
  position: absolute;
  inset: 0;
  transition: transform 220ms ease, filter 220ms ease;
}

.media-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.78) 100%);
}

.media-card:hover img,
.media-card:focus-visible img,
.media-card:hover .media-card-visual,
.media-card:focus-visible .media-card-visual {
  filter: saturate(1.04) contrast(1.08);
  transform: scale(1.035);
}

.play-mark {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  background: rgba(168, 7, 24, 0.86);
}

.play-mark::before {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  content: "";
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--white);
  transform: translate(-50%, -50%);
}

.media-card-text {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.media-dialog {
  width: min(940px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(14px, 2vw, 22px);
  color: var(--white);
  background: rgba(17, 14, 12, 0.96);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55);
}

.media-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.dialog-close::before,
.dialog-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  content: "";
  background: var(--white);
}

.dialog-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.dialog-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dialog-video-shell {
  width: min(420px, 100%);
  max-height: calc(100svh - 180px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
}

.dialog-caption {
  margin-top: 16px;
}

.dialog-caption h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
}

.showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-panel {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 52px);
}

.showcase-panel span {
  margin-bottom: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.showcase-panel h3 {
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.showcase-panel p {
  max-width: 360px;
  margin-top: 22px;
  font-weight: 650;
}

.showcase-dark {
  color: var(--cream);
  background: var(--graphite);
}

.showcase-red {
  color: var(--white);
  background: var(--red-deep);
}

.showcase-cream {
  color: var(--ink);
  background: var(--cream);
}

.charity-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  padding: clamp(70px, 10vw, 128px) clamp(18px, 6vw, 86px);
  background: var(--olive);
  color: var(--white);
}

.charity-media {
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.charity-media img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.charity-copy {
  max-width: 780px;
}

.charity-copy p,
.contact-copy p {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
}

.partners-section {
  background:
    linear-gradient(90deg, rgba(168, 7, 24, 0.08) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 72px 72px;
}

.partners-heading {
  max-width: 880px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(34px, 5vw, 60px);
}

.partner-card {
  min-height: 258px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(21, 19, 18, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.partner-logo-wrap {
  min-height: 130px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid rgba(21, 19, 18, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.partner-logo-wrap img {
  width: 100%;
  max-width: 210px;
  max-height: 102px;
  object-fit: contain;
}

.logo-placeholder {
  display: grid;
  place-items: center;
  width: min(142px, 100%);
  aspect-ratio: 1;
  border: 2px solid rgba(168, 7, 24, 0.28);
  border-radius: 50%;
  color: var(--red);
  background:
    radial-gradient(circle, rgba(168, 7, 24, 0.09), transparent 68%),
    rgba(255, 249, 239, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.9vw, 1.55rem);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.partner-card span {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.partner-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.sponsors-section {
  margin-top: clamp(54px, 8vw, 92px);
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(21, 19, 18, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(244, 234, 217, 0.9)),
    var(--paper);
  box-shadow: 0 26px 70px rgba(21, 19, 18, 0.14);
}

.sponsors-section .section-kicker {
  color: var(--red);
}

.sponsors-board {
  margin-top: 14px;
  padding: clamp(14px, 4vw, 30px);
  border: 1px solid rgba(21, 19, 18, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.sponsors-board img {
  width: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.sponsor-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: clamp(22px, 5vw, 54px);
  border: 1px dashed rgba(168, 7, 24, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(168, 7, 24, 0.07) 0 1px, transparent 1px 100%),
    rgba(255, 249, 239, 0.72);
  background-size: 36px 36px;
  text-align: center;
}

.sponsor-placeholder span {
  display: block;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.sponsor-placeholder p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(21, 19, 18, 0.68);
  font-weight: 750;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.7fr);
  gap: clamp(30px, 7vw, 92px);
  color: var(--white);
  background: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 6vw, 86px);
  color: rgba(255, 255, 255, 0.72);
  background: #0d0c0b;
  font-size: 0.9rem;
  font-weight: 750;
}

@media (prefers-reduced-motion: reduce) {
  .opening-strip {
    overflow-x: auto;
  }

  .opening-track {
    animation: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: 860px;
  }

  .hero-badge {
    left: clamp(18px, 6vw, 86px);
    right: auto;
    bottom: 28px;
  }

  .stats-band,
  .showcase,
  .charity-section,
  .contact-section,
  .intro-grid,
  .media-heading,
  .media-feature {
    grid-template-columns: 1fr;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    display: block;
    padding: 14px 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand span {
    font-size: 0.88rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
    font-size: 0.64rem;
  }

  .site-nav a {
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 178px;
  }

  .hero h1 {
    max-width: 8ch;
    font-size: clamp(3.35rem, 17vw, 5.2rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-badge {
    left: 16px;
    right: 16px;
    bottom: 24px;
    width: auto;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .opening-group {
    grid-auto-columns: minmax(238px, 78vw);
  }

  .stat {
    min-height: 136px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .showcase-panel {
    min-height: 320px;
  }

  .media-rail {
    grid-auto-columns: minmax(190px, 74vw);
  }

  .media-card {
    min-height: 330px;
  }

  .charity-section {
    padding-top: 54px;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    min-height: 132px;
  }

  .site-footer {
    display: grid;
  }
}
