:root {
  --blue-950: #062746;
  --blue-900: #073f7c;
  --blue-700: #0669b4;
  --crest-blue: #075f91;
  --crest-blue-dark: #03466f;
  --sky-500: #11a7e8;
  --sky-200: #d8f3ff;
  --white: #ffffff;
  --ink: #0c1726;
  --muted: #5f6f82;
  --line: #d7e8f3;
  --field: #f4fbff;
  --grass: #1a7b57;
  --sun: #f2c84b;
  --shadow-soft: 0 22px 55px rgba(6, 39, 70, .1);
  --shadow-strong: 0 26px 70px rgba(3, 70, 111, .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,251,255,.96)),
    repeating-linear-gradient(135deg, rgba(7,95,145,.045) 0 1px, transparent 1px 18px);
  color: var(--ink);
}

body.intro-pending {
  overflow: hidden;
}

.falco-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #03172d;
  color: var(--white);
  opacity: 1;
  isolation: isolate;
  transition: opacity .65s ease, visibility .65s ease;
}

.falco-intro.is-leaving {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.falco-intro[hidden] {
  display: none;
}

#falcoConstellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.falco-intro::after {
  content: "";
  position: absolute;
  inset: auto 8vw 10vh;
  height: 1px;
  background: rgba(255, 255, 255, .16);
}

.falco-intro-center {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 20px;
  width: min(82vw, 520px);
  text-align: center;
}

.falco-intro-crest {
  width: clamp(150px, 70vw, 360px);
  max-height: 58vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(.72);
  filter: drop-shadow(0 0 34px rgba(17, 167, 232, .38));
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}

.falco-intro.is-crest .falco-intro-crest {
  opacity: 1;
  transform: scale(1);
}

.falco-intro-copy {
  display: grid;
  gap: 7px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease .18s, transform .55s ease .18s;
}

.falco-intro.is-crest .falco-intro-copy {
  opacity: 1;
  transform: translateY(0);
}

.falco-intro-copy strong {
  font-size: clamp(1.25rem, 4vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.falco-intro-copy span {
  color: #9cdfff;
  font-size: clamp(.78rem, 2.4vw, .96rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.falco-intro-skip {
  position: absolute;
  z-index: 3;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  min-width: 68px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 6px;
  background: rgba(3, 39, 70, .64);
  color: var(--white);
  cursor: pointer;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.falco-intro-skip:hover,
.falco-intro-skip:focus-visible {
  border-color: #9cdfff;
  background: #075f91;
}

@media (prefers-reduced-motion: reduce) {
  .falco-intro,
  .falco-intro-crest,
  .falco-intro-copy {
    transition-duration: .2s;
  }
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.club-topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(16px, 4vw, 56px);
  background: var(--blue-950);
  color: var(--white);
  font-size: .86rem;
  font-weight: 850;
}

.club-topbar nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.club-topbar a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.club-topbar a:hover {
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(6, 105, 180, .16);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(6, 39, 70, .08);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--crest-blue-dark), var(--sky-500), var(--white), var(--crest-blue));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 210px;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(3, 70, 111, .18));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  color: var(--blue-700);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 26px);
  flex-wrap: wrap;
  color: var(--blue-950);
}

.main-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 800;
  font-size: .92rem;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: var(--sky-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.ghost-button,
.primary-button,
.secondary-button,
.upload-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.primary-button {
  background: linear-gradient(135deg, var(--crest-blue-dark), var(--blue-700));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(7, 63, 124, .22);
}

.secondary-button,
.upload-button {
  background: var(--sky-200);
  color: var(--blue-950);
}

.ghost-button {
  color: var(--blue-900);
  background: transparent;
  border: 1px solid var(--line);
}

.primary-button,
.secondary-button,
.ghost-button,
.upload-button,
.filter-button,
.score-button {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.upload-button:hover,
.filter-button:hover,
.score-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(3, 70, 111, .16);
}

.motion-enabled .hero-media {
  animation: stadium-pan 18s ease-in-out infinite alternate;
}

.motion-enabled .hero-copy {
  animation: hero-rise .78s ease both;
}

.motion-enabled .hero-board article {
  animation: hero-rise .72s ease both;
}

.motion-enabled .hero-board article:nth-child(2) {
  animation-delay: .12s;
}

.motion-enabled .match-strip {
  animation: match-glow 2.8s ease-in-out infinite;
}

.motion-enabled .hero-logo,
.motion-enabled .brand img {
  animation: crest-float 5.8s ease-in-out infinite;
}

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .55s ease var(--reveal-delay, 0ms),
    transform .55s ease var(--reveal-delay, 0ms),
    box-shadow .18s ease,
    border-color .18s ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.article-card:hover,
.person-card:hover,
.product-card:hover,
.sponsor-card:hover,
.photo-tile:hover,
.results-card:hover,
.history-copy:hover,
.identity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 167, 232, .5);
  box-shadow: var(--shadow-strong);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes crest-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

@keyframes stadium-pan {
  from {
    transform: scale(1);
    background-position: center;
  }
  to {
    transform: scale(1.035);
    background-position: center top;
  }
}

@keyframes match-glow {
  0%,
  100% {
    box-shadow: 0 18px 46px rgba(6, 39, 70, .16);
  }
  50% {
    box-shadow: 0 22px 58px rgba(17, 167, 232, .32);
  }
}

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

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(22px, 4vw, 54px);
  align-items: end;
  padding: clamp(24px, 5vw, 72px);
  overflow: hidden;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(-16px, 2vw, 38px);
  top: clamp(58px, 10vw, 120px);
  width: clamp(220px, 30vw, 450px);
  aspect-ratio: 1;
  background: url("assets/foligno-calcio-1928-trasparente.png") center / contain no-repeat;
  opacity: .34;
  pointer-events: none;
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, .82))
    drop-shadow(0 22px 38px rgba(0, 0, 0, .42));
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 32, 56, .94), rgba(6, 95, 145, .32) 56%, rgba(3, 32, 56, .9)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 86px),
    url("assets/images/home-tifosi-foligno-20260703.jpg");
  background-color: var(--blue-900);
  background-size: cover;
  background-position: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-bottom: clamp(80px, 11vh, 130px);
}

.hero-copy::before {
  content: "";
  display: block;
  width: 110px;
  height: 6px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--white), var(--sky-500), var(--sun));
}

.hero-logo {
  width: clamp(86px, 12vw, 150px);
  height: clamp(86px, 12vw, 150px);
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .32));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sky-500);
  font-weight: 950;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--sky-200);
}

h1,
h2 {
  margin: 0;
  line-height: .98;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 9vw, 7.6rem);
  text-shadow: 0 18px 46px rgba(0, 0, 0, .32);
}

h2 {
  color: var(--blue-950);
  font-size: clamp(2rem, 5vw, 4.8rem);
}

.hero-copy p:not(.eyebrow),
.section-intro,
.shop-panel p,
.sources p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.hero-copy p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, .9);
}

.hero-motto {
  cursor: default;
  user-select: none;
  touch-action: manipulation;
}

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

.hero .secondary-button {
  background: var(--white);
}

.hero-board {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding-bottom: clamp(80px, 11vh, 130px);
}

.hero-board article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
}

.hero-board span {
  color: var(--sky-200);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-board strong {
  font-size: 1.18rem;
  line-height: 1.1;
}

.hero-board p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.4;
}

.hero-board a {
  color: var(--white);
  font-weight: 950;
  text-decoration-color: rgba(255, 255, 255, .42);
}

.match-strip {
  position: absolute;
  left: clamp(16px, 4vw, 56px);
  right: clamp(16px, 4vw, 56px);
  bottom: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(3, 70, 111, .38);
  backdrop-filter: blur(14px);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .22);
}

.match-strip span,
.match-strip small {
  color: rgba(255, 255, 255, .82);
}

.match-strip strong {
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.facts article {
  position: relative;
  min-height: 138px;
  padding: 26px clamp(18px, 3vw, 36px);
  background: var(--white);
  overflow: hidden;
}

.facts article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--crest-blue), var(--sky-500));
}

.facts span,
.facts strong {
  display: block;
}

.facts span {
  color: var(--muted);
  margin-bottom: 12px;
}

.facts strong {
  color: var(--blue-900);
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 1;
}

.section-grid,
.content-band,
.squad-section,
.stats-section,
.access-section,
.official-hub,
.history-section,
.results-section,
.falchetto-section,
.ecommerce-section,
.sponsors-section,
.documents-section,
.shop-social,
.redazione-section,
.service-strip,
.sources {
  padding: clamp(44px, 7vw, 92px) clamp(16px, 4vw, 56px);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--blue-950);
}

.service-strip a {
  min-height: 168px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: clamp(20px, 3vw, 34px);
  color: var(--white);
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(7, 95, 145, .9), rgba(6, 39, 70, .98));
  transition: transform .16s ease, background .16s ease;
}

.service-strip a:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(145deg, rgba(17, 167, 232, .9), rgba(7, 63, 124, .98));
}

.service-strip span {
  color: var(--sky-200);
  font-weight: 950;
  font-size: .8rem;
}

.service-strip strong {
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.service-strip small {
  color: rgba(255, 255, 255, .76);
  line-height: 1.35;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.official-hub {
  background:
    linear-gradient(180deg, var(--white), rgba(216, 243, 255, .3));
}

.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, .85fr));
  gap: 14px;
}

.hub-card {
  min-height: 220px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .96)),
    url("assets/images/foligno-torres-1982-83.jpg") center / cover;
  color: var(--blue-950);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 167, 232, .48);
  box-shadow: var(--shadow-strong);
}

.hub-card-large {
  grid-row: span 2;
  min-height: 454px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6, 39, 70, .08), rgba(6, 39, 70, .9)),
    url("assets/images/foligno-torres-1982-83.jpg") center / cover;
}

.hub-card span {
  width: max-content;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--blue-900);
  color: var(--white);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hub-card strong {
  max-width: 520px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.hub-card small {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 750;
}

.hub-card-large small {
  color: rgba(255, 255, 255, .78);
}

.history-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(216, 243, 255, .72)),
    linear-gradient(90deg, rgba(7, 95, 145, .08) 0 1px, transparent 1px 84px);
}

.history-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.history-copy,
.identity-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-soft);
}

.history-copy {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(18px, 2.5vw, 28px);
}

.history-copy h3,
.identity-card h3 {
  color: var(--blue-950);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.history-copy p {
  margin: 0;
  color: var(--text);
  line-height: 1.62;
}

.history-highlight {
  background:
    linear-gradient(150deg, rgba(6, 39, 70, .95), rgba(7, 95, 145, .92)),
    url("assets/foligno-calcio-1928-trasparente.png") right -40px bottom -70px / 220px no-repeat;
  color: var(--white);
}

.history-highlight h3,
.history-highlight p {
  color: var(--white);
}

.history-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.history-archive-card {
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(7, 95, 145, .16);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(216, 243, 255, .82));
  box-shadow: var(--shadow-soft);
}

.history-archive-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 167, 232, .34);
  box-shadow: var(--shadow-strong);
}

.history-archive-grid span {
  color: var(--blue-700);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.history-archive-grid strong {
  color: var(--blue-950);
  font-size: 1.08rem;
  line-height: 1.15;
}

.history-archive-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.history-archive-card details {
  margin-top: 6px;
  border-top: 1px solid rgba(7, 95, 145, .14);
  padding-top: 10px;
}

.history-archive-card summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-900);
  cursor: pointer;
  font-weight: 950;
}

.history-archive-card summary::after {
  content: "+";
  margin-left: auto;
  color: var(--sky-500);
  font-size: 1.1rem;
  font-weight: 950;
}

.history-archive-card details[open] summary::after {
  content: "-";
}

.history-archive-card ul {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.42;
}

.history-archive-card a {
  width: fit-content;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--blue-900);
  color: var(--white);
  padding: 10px 12px;
  font-weight: 900;
  text-decoration: none;
}

.history-archive-card a:hover {
  background: var(--crest-blue);
}

.history-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
  margin-top: 18px;
}

.club-timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.club-timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-left: 5px solid var(--sky-500);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.club-timeline time {
  color: var(--blue-700);
  font-weight: 950;
}

.club-timeline span {
  color: var(--blue-950);
  line-height: 1.4;
}

.identity-card {
  padding: clamp(18px, 2.5vw, 28px);
}

.identity-card dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.identity-card div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.identity-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.identity-card dt {
  color: var(--muted);
  font-weight: 900;
}

.identity-card dd {
  margin: 0;
  color: var(--blue-950);
  font-weight: 850;
}

.live-section {
  background:
    linear-gradient(135deg, rgba(216, 243, 255, .9), rgba(255, 255, 255, .98)),
    repeating-linear-gradient(90deg, rgba(26, 123, 87, .08) 0 2px, transparent 2px 90px);
}

.scoreboard,
.article-editor,
.person-editor,
.login-panel,
.user-editor,
.sponsor-editor,
.document-panel,
.email-panel,
.product-editor,
.shop-panel,
.social-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.scoreboard {
  position: relative;
  padding: clamp(18px, 3vw, 32px);
  overflow: hidden;
}

.scoreboard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--crest-blue-dark), var(--sky-500), var(--sun));
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.teams > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  justify-items: center;
}

.team-name {
  width: 100%;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--blue-950);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.teams input,
.live-controls input,
.live-controls select,
.event-form input,
.article-editor input,
.article-editor textarea,
.person-editor input,
.person-editor select,
.login-panel input,
.login-panel select,
.user-editor input,
.sponsor-editor input,
.document-panel input,
.email-panel input,
.email-panel textarea,
.payment-box select,
.size-select,
.product-editor input,
.product-editor select,
.checkout-form input,
.checkout-form textarea,
.social-editor input,
.customer-login-panel textarea,
.customer-login-panel input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdff;
  color: var(--ink);
}

.teams strong {
  text-align: center;
  font-size: 3rem;
  line-height: 1;
  color: var(--blue-950);
}

.live-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.live-meta span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--blue-950);
  color: var(--white);
  font-size: .84rem;
  font-weight: 900;
}

.roster-empty,
.sponsor-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbfe;
  color: var(--muted);
  font-weight: 750;
}

.sponsor-empty {
  grid-column: 1 / -1;
}

.sponsor-marquee-empty {
  min-width: min(360px, 80vw);
  justify-content: center;
}

.sponsor-track.is-empty {
  justify-content: center;
  animation: none;
}

.score-button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-900);
  color: var(--white);
  font-weight: 950;
  cursor: pointer;
}

.versus {
  color: var(--muted);
  font-weight: 900;
}

.live-controls,
.event-form,
.social-editor {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.live-controls {
  grid-template-columns: 1fr 1fr;
}

.live-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.event-form {
  grid-template-columns: 88px 1fr auto;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.timeline li {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-left: 5px solid var(--sky-500);
  border-radius: 8px;
  background: var(--field);
  color: var(--blue-950);
}

.timeline time {
  font-weight: 950;
  color: var(--blue-700);
}

.delete-event {
  border: 0;
  background: transparent;
  color: #9d1e35;
  cursor: pointer;
  font-weight: 900;
}

.results-section {
  background:
    linear-gradient(135deg, var(--white), rgba(216, 243, 255, .62)),
    repeating-linear-gradient(90deg, rgba(7, 95, 145, .045) 0 2px, transparent 2px 86px);
}

.results-card {
  min-height: 340px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(17, 167, 232, .34);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.results-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.results-card span {
  color: var(--blue-700);
  font-weight: 950;
  text-transform: uppercase;
  font-size: .78rem;
}

.results-card h3 {
  margin: 8px 0 10px;
  color: var(--blue-950);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1;
}

.results-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.results-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.falchetto-section {
  background:
    linear-gradient(135deg, var(--night), #0a315f),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 1px, transparent 1px 24px);
  color: var(--paper);
}

.falchetto-section h2 {
  color: var(--paper);
}

.falchetto-section .section-intro {
  max-width: 760px;
  color: rgba(255, 255, 255, .78);
}

.chat-panel {
  display: grid;
  gap: 14px;
  max-width: 980px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 26px);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.chat-log {
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 4px;
}

.quick-questions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-questions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(216, 243, 255, .36);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.quick-questions button:hover {
  transform: translateY(-1px);
  border-color: var(--sky-200);
  background: rgba(255, 255, 255, .2);
}

.chat-message {
  max-width: min(680px, 100%);
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--night);
  line-height: 1.45;
  animation: chat-pop .24s ease both;
}

.chat-message.is-user {
  justify-self: end;
  background: rgba(0, 159, 227, .18);
}

.chat-message strong {
  display: block;
  margin-bottom: 4px;
}

.falchetto-answer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 159, 227, .12);
  color: var(--night);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.chat-message small {
  display: block;
  margin-top: 8px;
  color: rgba(7, 27, 58, .68);
  font-weight: 800;
}

.chat-message a {
  color: var(--primary);
  font-weight: 950;
}

@keyframes chat-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.chat-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
}

.content-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6, 39, 70, .98), rgba(3, 70, 111, .94)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 1px, transparent 1px 24px);
  color: var(--white);
}

.content-band::after {
  content: "";
  position: absolute;
  right: clamp(-90px, -4vw, -32px);
  bottom: -140px;
  width: clamp(260px, 34vw, 520px);
  aspect-ratio: 1;
  background: url("assets/foligno-calcio-1928-trasparente.png") center / contain no-repeat;
  opacity: .12;
  pointer-events: none;
}

.content-band > * {
  position: relative;
  z-index: 1;
}

.content-band h2 {
  color: var(--white);
}

.section-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 28px;
}

.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 96px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--crest-blue), var(--sky-500), var(--sun));
}

.article-editor {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
}

.squad-section {
  background:
    linear-gradient(180deg, var(--white), rgba(216, 243, 255, .28)),
    repeating-linear-gradient(135deg, rgba(7, 95, 145, .04) 0 1px, transparent 1px 22px);
}

.person-editor {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(160px, 1fr) minmax(160px, 1fr) 120px auto;
  gap: 10px;
  margin-bottom: 26px;
  padding: 16px;
  align-items: center;
}

.person-editor strong {
  color: var(--blue-950);
  line-height: 1.2;
}

.mini-upload {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sky-200);
  color: var(--blue-950);
  cursor: pointer;
  font-weight: 900;
}

.mini-upload input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.people-layout {
  display: block;
}

.roster-section {
  margin-top: 38px;
}

.roster-section:first-child {
  margin-top: 0;
}

.roster-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 4px solid var(--blue-900);
  border-bottom: 1px solid var(--line);
}

.roster-section-head h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.roster-section-head span {
  color: var(--blue-700);
  font-weight: 950;
}

.people-group {
  margin-top: 26px;
}

.people-group:first-child {
  margin-top: 0;
}

.people-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.people-group-head h4 {
  margin: 0 0 14px;
  color: var(--blue-950);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
}

.people-group-head h4 {
  margin: 0;
}

.people-group-head span {
  color: var(--blue-700);
  font-weight: 950;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.person-card {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  box-shadow: 0 14px 34px rgba(6, 39, 70, .07);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.person-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 167, 232, .55);
  box-shadow: var(--shadow-soft);
}

.person-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(216,243,255,.72));
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-photo.is-logo img {
  object-fit: contain;
  padding: 18px;
}

.person-copy {
  min-width: 0;
}

.person-number {
  color: var(--blue-700);
  font-weight: 950;
  font-size: .86rem;
}

.person-card h4 {
  margin: 5px 0 5px;
  color: var(--blue-950);
  font-size: 1.08rem;
  line-height: 1.08;
}

.person-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.person-card > button {
  width: 100%;
}

.stats-section {
  background:
    linear-gradient(180deg, rgba(244, 247, 251, .96), var(--white)),
    repeating-linear-gradient(135deg, rgba(0, 159, 227, .05) 0 1px, transparent 1px 24px);
}

.stats-last-match {
  margin: 0 0 22px;
  color: var(--blue-700);
  font-weight: 900;
}

.stats-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stats-card-grid article,
.stats-leader-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(6, 39, 70, .07);
}

.stats-card-grid article {
  padding: 16px;
}

.stats-card-grid span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-card-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--blue-950);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: .95;
}

.stats-leaders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stats-leader-card {
  padding: 18px;
}

.stats-leader-card h3 {
  margin: 0 0 12px;
  color: var(--blue-950);
}

.stats-leader-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats-leader-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

.stats-leader-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stats-leader-card p {
  margin: 0;
  color: var(--muted);
}

.stats-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(6, 39, 70, .07);
}

.stats-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.stats-table th {
  color: var(--blue-900);
  font-size: .78rem;
  text-transform: uppercase;
}

.stats-table td {
  color: var(--blue-950);
  font-weight: 800;
}

.access-section {
  background:
    linear-gradient(180deg, var(--field), var(--white));
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.login-panel,
.user-editor {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.logged-in .login-panel {
  display: none;
}

.login-panel h3,
.user-panel h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: 1.35rem;
}

.login-panel p {
  min-height: 24px;
  margin: 0;
  color: var(--blue-700);
  font-weight: 850;
}

.login-panel .panel-note {
  min-height: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.user-panel {
  display: grid;
  gap: 14px;
}

.user-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.user-panel-head span,
.user-card span {
  color: var(--blue-700);
  font-weight: 950;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.user-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.user-card h4 {
  margin: 0;
  color: var(--blue-950);
  font-size: 1.08rem;
  line-height: 1.1;
}

.user-card p,
.user-card small {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.user-card > button {
  width: 100%;
}

.user-editor {
  background: var(--field);
}

.user-editor strong {
  color: var(--blue-950);
}

.publish-panel {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-top: 22px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(17, 167, 232, .32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--blue-950), var(--crest-blue-dark)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.1) 0 1px, transparent 1px 22px);
  color: var(--white);
  box-shadow: var(--shadow-strong);
}

.publish-panel h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1;
}

.publish-panel p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
}

.online-status {
  display: inline-flex;
  max-width: none !important;
  margin: 6px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: var(--white) !important;
  font-weight: 850;
}

.publish-checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.publish-checklist li {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.publish-checklist strong,
.publish-checklist span {
  display: block;
}

.publish-checklist span {
  color: rgba(255, 255, 255, .75);
  line-height: 1.35;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  position: relative;
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 20px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .13);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--sky-500), var(--white), var(--sun));
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 66px rgba(0, 0, 0, .18);
}

.article-card span {
  color: var(--blue-700);
  font-weight: 950;
  text-transform: uppercase;
  font-size: .76rem;
}

.article-card h3 {
  margin: 8px 0 12px;
  color: var(--blue-950);
  font-size: 1.55rem;
  line-height: 1.05;
}

.article-card p {
  color: var(--muted);
  line-height: 1.5;
}

.card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.photo-tile {
  position: relative;
  min-height: 210px;
  aspect-ratio: 1.35;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-900);
  box-shadow: 0 18px 42px rgba(6, 39, 70, .16);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.photo-tile:hover img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.photo-tile.is-logo img {
  object-fit: contain;
  padding: 22px;
  background: var(--white);
}

.photo-tile span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(6, 39, 70, .7);
  color: var(--white);
  font-weight: 850;
}

.photo-tile.is-placeholder {
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 167, 232, .85), rgba(7, 63, 124, .95)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.15) 0 2px, transparent 2px 14px);
}

.photo-tile.is-placeholder strong {
  max-width: 240px;
  font-size: 1.35rem;
  line-height: 1.08;
}

.fans-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 76px);
  color: var(--paper);
  background: var(--night);
}

.fans-section .section-head {
  margin-bottom: 28px;
}

.fans-section h2,
.fans-section .section-intro {
  color: var(--paper);
}

.fans-section .section-intro {
  max-width: 760px;
  opacity: .78;
}

.fans-section .secondary-button {
  border-color: rgba(255, 255, 255, .42);
  color: var(--paper);
  background: transparent;
}

.fan-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fan-photo-card {
  position: relative;
  min-width: 0;
  min-height: 230px;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: #071b3a;
}

.fan-photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .3s ease;
}

.fan-photo-card:hover img {
  transform: scale(1.035);
}

.fan-photo-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 14px 13px;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(3, 23, 45, .92));
  font-weight: 850;
}

.fan-gallery-empty {
  grid-column: 1 / -1;
  min-height: 210px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, .34);
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, .04);
}

.fan-gallery-empty strong {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.fan-gallery-empty span {
  color: rgba(255, 255, 255, .7);
}

.upload-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.ecommerce-section {
  background:
    linear-gradient(180deg, var(--white), var(--field)),
    repeating-linear-gradient(90deg, rgba(7, 95, 145, .04) 0 2px, transparent 2px 92px);
}

.product-editor {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px 130px minmax(180px, 1fr) auto;
  gap: 10px;
  margin-bottom: 22px;
  padding: 16px;
}

.commerce-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  gap: 18px;
  align-items: start;
}

.shop-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-950);
  cursor: pointer;
  font-weight: 900;
}

.filter-button.is-active {
  background: var(--blue-900);
  color: var(--white);
  border-color: var(--blue-900);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card,
.cart-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.product-card {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-rows: 118px 1fr auto;
  gap: 18px;
  padding: 14px;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 167, 232, .5);
  box-shadow: var(--shadow-strong);
}

.product-visual {
  display: grid;
  place-items: center;
  border-radius: 8px;
  min-height: 118px;
  background:
    linear-gradient(135deg, rgba(6, 105, 180, .95), rgba(17, 167, 232, .78)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 6px, transparent 6px 16px);
  box-shadow: inset 0 -24px 42px rgba(3, 70, 111, .24);
  overflow: hidden;
}

.product-visual.has-image {
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(7, 27, 58, .08);
}

.product-visual img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
}

.product-card-biglietti .product-visual {
  background:
    linear-gradient(135deg, rgba(26, 123, 87, .92), rgba(17, 167, 232, .72)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 3px, transparent 3px 15px);
}

.product-card-abbonamenti .product-visual {
  background:
    linear-gradient(135deg, rgba(7, 63, 124, .95), rgba(242, 200, 75, .82)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.2) 0 4px, transparent 4px 18px);
}

.product-visual span {
  min-width: 78px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, .7);
  padding: 0 12px;
  border-radius: 6px;
  color: var(--white);
  font-size: .86rem;
  font-weight: 950;
}

.shop-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shop-status span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-900);
  background: var(--white);
  font-size: .78rem;
  font-weight: 900;
}

.product-category {
  color: var(--blue-700);
  font-weight: 950;
  text-transform: uppercase;
  font-size: .74rem;
}

.product-card h3,
.cart-panel h3 {
  margin: 8px 0 8px;
  color: var(--blue-950);
  font-size: 1.35rem;
  line-height: 1.08;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
}

.product-actions strong {
  color: var(--blue-950);
  font-size: 1.15rem;
}

.cart-panel {
  position: sticky;
  top: 98px;
  padding: 22px;
  background:
    linear-gradient(180deg, var(--white), rgba(216, 243, 255, .42));
}

.cart-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: var(--field);
}

.cart-row strong,
.cart-row span {
  display: block;
}

.cart-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .9rem;
}

.quantity-controls {
  display: grid;
  grid-template-columns: 32px 30px 32px;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.quantity-controls button {
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-900);
  color: var(--white);
  cursor: pointer;
  font-weight: 950;
}

.quantity-controls span {
  margin: 0;
  color: var(--blue-950);
  font-weight: 950;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cart-total span {
  color: var(--muted);
  font-weight: 900;
}

.cart-total strong {
  color: var(--blue-950);
  font-size: 1.6rem;
}

.cart-panel .primary-button,
.cart-panel .secondary-button,
.cart-panel .ghost-button {
  width: 100%;
  margin-top: 10px;
}

.checkout-form {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.payment-data {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(244,251,255,.96));
}

.payment-data strong {
  color: var(--blue-950);
}

.payment-data small {
  color: var(--muted);
  line-height: 1.35;
}

.payment-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-box {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.payment-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 850;
}

.checkout-message {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--blue-700);
  font-weight: 850;
  line-height: 1.35;
}

.security-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(26, 123, 87, .1);
  color: var(--blue-950);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.35;
}

.sponsors-section {
  background:
    linear-gradient(180deg, var(--white), rgba(216, 243, 255, .35));
  overflow: hidden;
}

.sponsor-marquee {
  overflow: hidden;
  margin: 18px 0 24px;
  border: 1px solid rgba(17, 167, 232, .36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--blue-950), var(--crest-blue));
  box-shadow: var(--shadow-soft);
}

.sponsor-track {
  min-height: 112px;
  display: flex;
  gap: 14px;
  align-items: center;
  width: max-content;
  padding: 14px;
  animation: sponsor-scroll 36s linear infinite;
}

.sponsor-marquee:hover .sponsor-track {
  animation-play-state: paused;
}

.sponsor-marquee-item {
  min-width: 220px;
  height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-950);
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.sponsor-marquee-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

@keyframes sponsor-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.sponsor-editor {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr) minmax(220px, 1.2fr) 120px minmax(170px, auto) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
}

.sponsor-editor strong {
  color: var(--blue-950);
}

.check-row {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-950);
  font-weight: 900;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.sponsor-card {
  position: relative;
  min-height: 280px;
  display: grid;
  grid-template-rows: 120px 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  box-shadow: 0 14px 34px rgba(6, 39, 70, .07);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.sponsor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 167, 232, .5);
  box-shadow: var(--shadow-soft);
}

.sponsor-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--white), rgba(216, 243, 255, .62));
}

.sponsor-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.sponsor-card span {
  color: var(--blue-700);
  font-weight: 950;
  font-size: .78rem;
}

.sponsor-card h3 {
  margin: 7px 0;
  color: var(--blue-950);
  font-size: 1.08rem;
  line-height: 1.1;
}

.sponsor-card p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.sponsor-actions {
  display: grid;
  gap: 8px;
}

.documents-section {
  background:
    linear-gradient(180deg, var(--soft), var(--paper)),
    repeating-linear-gradient(135deg, rgba(26, 123, 87, .055) 0 2px, transparent 2px 88px);
}

.documents-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 18px;
  align-items: start;
}

.document-panel,
.email-panel {
  padding: 18px;
}

.document-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.document-login-hint {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--white), rgba(216, 243, 255, .62));
}

.document-login-hint strong {
  color: var(--blue-950);
  font-size: 1.08rem;
}

.document-login-hint p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.document-upload-zone {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px dashed var(--blue-700);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--white), rgba(216, 243, 255, .7));
}

.document-upload-zone strong {
  color: var(--blue-950);
  font-size: 1.08rem;
}

.document-upload-zone p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.document-upload-message {
  min-height: 22px;
  color: var(--blue-700) !important;
  font-weight: 850;
}

.document-panel h3,
.email-panel h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: 1.35rem;
}

.document-list,
.email-panel {
  display: grid;
  gap: 10px;
}

.document-empty,
.email-panel p {
  margin: 0;
  color: var(--muted);
}

.document-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--field);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.document-row:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 167, 232, .42);
  box-shadow: 0 14px 28px rgba(6, 39, 70, .08);
}

.document-row strong,
.document-row span {
  display: block;
}

.document-row span {
  margin-top: 4px;
  color: var(--muted);
}

.document-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-social {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: var(--white);
}

.shop-panel,
.social-panel {
  padding: clamp(22px, 4vw, 38px);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--blue-950);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.social-links a > svg {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 7px;
  border-radius: 50%;
  color: var(--blue-700);
  background: var(--white);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-links a > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin-right: auto;
}

.social-links a strong,
.social-links a small {
  display: block;
}

.social-links a small {
  overflow: hidden;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-profile-facebook > svg {
  color: #1877f2 !important;
  fill: currentColor !important;
  stroke: none !important;
}

.social-profile-instagram > svg {
  color: #c13584 !important;
}

.social-profile-tiktok > svg {
  color: #111111 !important;
}

.social-profile-youtube > svg {
  color: #ff0000 !important;
}

.social-profile-youtube > svg path {
  fill: currentColor;
  stroke: none;
}

.auth-provider-status {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}

.social-login-button.is-unavailable {
  opacity: .72;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 167, 232, .48);
  box-shadow: 0 14px 28px rgba(6, 39, 70, .08);
}

.social-links a::after {
  content: "↗";
  color: var(--blue-700);
}

.sources {
  background: var(--field);
}

.sources h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.sources div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.sources a {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-900);
  padding: 11px 14px;
  font-weight: 850;
  text-decoration: none;
}

.redazione-section {
  background:
    linear-gradient(135deg, rgba(7, 27, 58, .98), rgba(10, 49, 95, .94)),
    radial-gradient(circle at 84% 12%, rgba(0, 159, 227, .26), transparent 32%);
  color: var(--paper);
}

.redazione-section .section-head h2,
.redazione-section .section-intro,
.redazione-section .eyebrow {
  color: var(--paper);
}

.redazione-section .section-intro {
  max-width: 760px;
  color: rgba(255, 255, 255, .78);
}

.redazione-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.redazione-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
}

.redazione-card span {
  color: #9cdfff;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.redazione-card strong {
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  line-height: 1.08;
}

.redazione-card p {
  color: rgba(255, 255, 255, .78);
  margin: 0;
}

.redazione-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--white);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(16px, 4vw, 56px);
  background:
    linear-gradient(135deg, var(--blue-950), var(--crest-blue-dark));
  color: var(--white);
}

.site-footer span {
  display: block;
  color: rgba(255, 255, 255, .74);
}

body:not(.admin-mode) .admin-only {
  display: none !important;
}

.admin-mode .document-login-hint {
  display: none;
}

.admin-mode .ghost-button {
  background: var(--blue-900);
  color: var(--white);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .hero-board {
    padding-bottom: clamp(96px, 14vh, 150px);
  }

  .facts,
  .cards,
  .access-layout,
  .commerce-layout,
  .documents-layout,
  .people-layout,
  .publish-panel,
  .product-grid,
  .product-editor,
  .person-editor,
  .sponsor-editor,
  .shop-social,
  .redazione-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .cart-panel {
    position: static;
  }

  .hero {
    min-height: 760px;
  }

  .hub-card-large {
    grid-row: auto;
    min-height: 320px;
  }

  .history-layout,
  .history-bottom {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .club-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    display: none;
  }

  .main-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 700px;
    padding-bottom: 168px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.7rem);
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-board {
    padding-bottom: 0;
  }

  .hero-board article {
    padding: 14px;
  }

  .hub-card,
  .hub-card-large {
    min-height: 240px;
  }

  .match-strip {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .service-strip {
    grid-template-columns: 1fr;
  }

  .service-strip a {
    min-height: 138px;
  }

  .results-card,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .results-card img {
    width: 86px;
    height: 86px;
  }

  .teams,
  .teams > div,
  .event-form,
  .live-controls,
  .gallery-grid,
  .fan-gallery-grid,
  .history-archive-grid,
  .people-grid,
  .sponsor-grid,
  .users-grid,
  .product-actions,
  .payment-fields,
  .cart-row,
  .document-row,
  .social-links {
    grid-template-columns: 1fr;
  }

  .teams strong {
    font-size: 2.4rem;
  }

  .versus {
    text-align: center;
  }

  .section-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .club-timeline li,
  .identity-card div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.falchetto-runner {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 15, 34, .78);
  backdrop-filter: blur(8px);
}

.falchetto-runner-card {
  position: relative;
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(121, 192, 244, .96) 0 47%, rgba(233, 247, 255, .98) 47% 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
  color: var(--blue-950);
}

.falchetto-runner-card::before {
  content: "";
  position: absolute;
  inset: 22px 24px auto auto;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: -160px 28px 0 -24px rgba(255, 255, 255, .52), -90px 8px 0 -30px rgba(255, 255, 255, .5);
}

.falchetto-runner-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 27, 58, .86);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.falchetto-runner-head,
.falchetto-runner-score,
.falchetto-runner-card > p {
  position: relative;
  z-index: 2;
}

.falchetto-runner-head {
  display: grid;
  gap: 2px;
  padding: 24px 72px 8px 24px;
}

.falchetto-runner-head strong {
  font-size: clamp(1.45rem, 4vw, 2.7rem);
  line-height: 1;
  color: var(--blue-950);
}

.falchetto-runner-head span,
.falchetto-runner-card > p {
  color: rgba(7, 27, 58, .72);
  font-weight: 800;
}

.falchetto-runner-score {
  margin: 0 24px 10px;
  font-weight: 950;
}

.falchetto-runner-track {
  position: relative;
  height: min(330px, 46vh);
  margin: 0 20px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 0 64%, rgba(6, 111, 159, .18) 64% 100%),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255, 255, 255, .32) 80px 82px);
  touch-action: manipulation;
  cursor: pointer;
}

.falchetto-runner-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-950), var(--sky-500), var(--sun));
}

.falchetto-runner-player {
  position: absolute;
  left: clamp(36px, 9vw, 78px);
  bottom: 51px;
  width: clamp(58px, 12vw, 88px);
  height: clamp(58px, 12vw, 88px);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 34px rgba(7, 27, 58, .22);
  display: grid;
  place-items: center;
  will-change: transform;
}

.falchetto-runner-player img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.falchetto-runner-obstacle {
  position: absolute;
  left: 0;
  bottom: 51px;
  width: clamp(28px, 6vw, 44px);
  height: clamp(46px, 9vw, 72px);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #071b3a, #075f91);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .18);
  will-change: transform;
}

.falchetto-runner.is-game-over .falchetto-runner-track {
  box-shadow: inset 0 0 0 3px rgba(231, 76, 60, .45);
}

.falchetto-runner-card > p {
  margin: 10px 24px 22px;
  font-size: .92rem;
}

@media (max-width: 900px) {
  .stats-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .stats-card-grid,
  .stats-leaders {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-card-grid article {
    padding: 14px;
  }
}
