/* ===================================================================
   OROROSA — Design System
   Palette: nero, bianco, oro, rosa — ispirata a divisa da gara e tabellone
   segnapunti. Font display condensato + mono da scoreboard per dati/punteggi.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Colore */
  --black: #0A0A0C;
  --black-soft: #17171B;
  --black-card: #1D1D22;
  --white: #FAF9F6;
  --white-dim: #E7E5E0;
  --gold: #C9A24B;
  --gold-bright: #E4C876;
  --pink: #E0447E;
  --pink-deep: #A32C5B;
  --primary: #F400A1;
  --gray: #8C8B92;
  --line: rgba(250, 249, 246, 0.10);

  /* Tipografia */
  --f-display: 'Anton', sans-serif;
  --f-body: 'Manrope', sans-serif;
  --f-mono: 'Space Mono', monospace;


  /* Layout */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0 0 1em;
  color: var(--white-dim);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Jersey-stripe divider: firma visiva ricorrente ---------- */
.stripe-divider {
  position: relative;
  height: 26px;
  overflow: hidden;
  background: var(--black);
}

.stripe-divider::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 300%;
  height: 200%;
  background: repeating-linear-gradient(-32deg,
      var(--gold) 0,
      var(--primary) 30px,
      var(--white) 60px,
      var(--gold) 90px);

  opacity: 0.9;
}

/* ---------- Header / Navigazione ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

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

.brand .rosa {
  color: var(--primary);
}

.brand .oro {
  color: var(--white);
}

.main-nav {
  display: flex;
  gap: clamp(14px, 2vw, 34px);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--white-dim);
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  transition: right 0.25s ease;
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  right: 0;
}

.main-nav a[aria-current="page"] {
  color: var(--white);
}

/* ---------- Dropdown menu ---------- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.dropdown-trigger .arrow {
  font-size: 0.6rem;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-trigger .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--black-card);
  min-width: 150px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  border-top: 2px solid var(--pink);
  z-index: 10;
  padding: 6px 0;
}

.dropdown-menu a {
  display: block !important;
  padding: 10px 16px !important;
  font-size: 0.72rem !important;
  color: var(--white-dim) !important;
  text-align: center !important;
  border: none !important;
  text-transform: uppercase;
}

.dropdown-menu a::after {
  display: none !important;
}

.dropdown-menu a:hover {
  background-color: var(--black-soft);
  color: var(--white) !important;
}

.dropdown-menu a[aria-current="page"] {
  color: var(--gold-bright) !important;
  font-weight: 700;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown:has(a[aria-current="page"]) .dropdown-trigger {
  color: var(--white);
}

.dropdown:has(a[aria-current="page"]) .dropdown-trigger::after {
  right: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--black-soft);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    /* Altezza disponibile sotto l'header: se le voci non ci stanno si scorre */
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .main-nav a {
    padding: 16px var(--pad);
    border-top: 1px solid var(--line);
  }

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

  /* Mobile Dropdown: chiuso di default, si apre al tap sulla voce principale */
  .dropdown {
    display: block;
    width: 100%;
  }

  .dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px var(--pad);
    border-top: 1px solid var(--line);
    box-sizing: border-box;
    /* evita il lampo grigio al tap su iOS e la selezione del testo */
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
  }

  .dropdown-trigger .arrow {
    float: none;
    margin-top: 0;
    margin-left: 8px;
    transition: transform 0.25s ease;
  }

  /* su mobile l'hover non esiste: conta solo lo stato .open */
  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown:hover .dropdown-trigger .arrow {
    transform: none;
  }

  .dropdown.open .dropdown-trigger .arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    display: none;
    position: static;
    transform: none;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border-top: none;
    padding: 0;
    min-width: 100%;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    display: block !important;
    padding: 14px var(--pad) !important;
    padding-left: calc(var(--pad) + 20px) !important;
    font-size: 0.78rem !important;
    text-align: left !important;
    border-top: 1px solid rgba(250, 249, 246, 0.05) !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 12vw, 130px) var(--pad) clamp(56px, 8vw, 96px);
  overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 85% -10%, rgba(224, 68, 126, 0.20), transparent 60%),
    radial-gradient(ellipse 50% 40% at -5% 110%, rgba(201, 162, 75, 0.16), transparent 60%),
    var(--black);
}

.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 7.2rem);
  color: var(--white);
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-sub {
  max-width: 46ch;
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--white-dim);
  text-align: justify;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  max-width: 600px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary));
  color: var(--black);
  border-color: transparent;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  border-color: var(--white);
  color: var(--white);
}

/* Garantisce che i pulsanti dentro ai testi (.prose) mantengano
   il proprio colore invece di ereditare lo stile dei link generici */
.prose .btn-primary,
.prose .btn-primary:link,
.prose .btn-primary:visited {
  color: var(--black);
  text-decoration: none;
}

.prose .btn-primary:hover {
  color: var(--white);
}

.btn-ghost {
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }
}

/* ---------- Scoreboard tag: firma visiva sui contenuti ---------- */
.scoreboard-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  background: var(--black);
  border: 1px solid var(--line);
  padding: 6px 12px;
  color: var(--gold-bright);
}

.scoreboard-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 50%;
}

.scoreboard-tag .score {
  color: var(--white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Sezioni generiche ---------- */
section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.section-head .see-all {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--gold-bright);
  padding-bottom: 2px;
}

/* ---------- Card articolo ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.article-card {
  /*background: var(--black-card);*/
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.article-card .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--black-soft), #26262c);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-align: center;
  padding: 10px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease;
}

.article-card:hover .thumb {
  transform: scale(1.04);
  border-color: var(--gold);
}

.article-card .thumb--foto {
  border: none;
  padding: 0;
}

.article-card .thumb--foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-top: 4px;
}

.article-card .meta {

  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-card .excerpt {
  color: var(--black);
  font-size: 0.94rem;
  margin: 0;
}

.article-card .read-more {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Galleria ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
}

.gallery-item .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--white-dim);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .ph {
  transform: scale(1.05);
}

.gallery-item .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* ---------- Galleria a cartelle (album) ---------- */
.gallery-folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.gallery-folder-card {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-folder-card:hover,
.gallery-folder-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  outline: none;
}

.folder-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px dashed var(--line);
  background: linear-gradient(135deg, var(--black-soft), #26262c);
}

.folder-mosaic-cell {
  position: relative;
  overflow: hidden;
}

.folder-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-folder-card:hover .folder-mosaic-cell img {
  transform: scale(1.05);
}

.folder-mosaic-empty {
  grid-column: span 2;
}

.folder-mosaic-more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.1rem;
}

.folder-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.folder-title {
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}

.folder-count {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--black);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-bright, var(--gold));
  background: none;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-back-btn:hover {
  background: rgba(250, 249, 246, 0.06);
  border-color: var(--gold);
}

.gallery-photos-title {
  margin-bottom: 20px;
}

/* ---------- Sponsor ---------- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.sponsor-card {
  aspect-ratio: 16/10;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s ease;
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.sponsor-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sponsor-card .sponsor-ph {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  letter-spacing: 0.02em;
}

.sponsor-card .sponsor-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sponsor-card:hover .sponsor-name {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 900px;
  width: 92vw;
  background: var(--black-card);
  border-top: 3px solid var(--pink);
  padding: 30px;
  text-align: center;
}

.lightbox-photo {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---------- Modale articolo completo ---------- */
.article-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 8, 0.92);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 200;
  padding: 40px 20px;
  overflow-y: auto;
}

.article-modal.open {
  display: flex;
}

.article-modal-inner {
  position: relative;
  max-width: 760px;
  width: 100%;
  background: var(--black-card);
  border-top: 3px solid var(--pink);
  padding: 44px clamp(24px, 5vw, 56px);
  margin-top: 30px;
}

.article-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---------- Contenuti testuali lunghi (pagine Club) ---------- */
.prose {
  max-width: 780px;
}

.prose h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--white);
  margin: 48px 0 18px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.05rem;
  color: var(--primary);
  text-transform: none;
  letter-spacing: 0;
  margin: 32px 0 14px;
}

.prose p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--white-dim);
  margin-bottom: 1.1em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 22px;
  color: var(--white-dim);
}

.prose li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.prose li::marker {
  color: var(--primary);
}

.prose strong {
  color: var(--white);
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--gold-bright);
}

.info-box {
  background: var(--black-card);
  border-left: 3px solid var(--primary);
  padding: 22px 26px;
  margin: 24px 0;
}

.info-box p {
  margin-bottom: 0.5em;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.club-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}

.club-list li {
  background: var(--black-card);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--white);
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--black-card);
  border: 1px solid var(--line);
  padding: 20px 24px;
  margin: 20px 0;
}

.download-card .label {
  font-size: 0.95rem;
  color: var(--white);
}

.download-card .label span {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.council-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
  margin: 20px 0 1.4em;
}

.council-grid .role {
  background: var(--black-card);
  padding: 14px 18px;
  border-left: 3px solid var(--line);
}

.council-grid .role .title {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 4px;
}

.council-grid .role .name {
  color: var(--white);
  font-size: 0.98rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--black);
  border-color: var(--primary);
}

/* ---------- Tabella calendario / risultati ---------- */
.match-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-row {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--black-card);
  border-left: 3px solid var(--line);
}

.match-row .match-badge {
  font-size: 0.62rem;
  padding: 3px 9px;
}

@media (max-width: 760px) {
  .match-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date result"
      "teams teams"
      "badge badge";
    row-gap: 10px;
  }

  .match-row .date {
    grid-area: date;
  }

  .match-row .teams {
    grid-area: teams;
  }

  .match-row .result {
    grid-area: result;
    text-align: right;
  }

  .match-row .match-badge {
    grid-area: badge;
    justify-self: start;
  }
}

.match-row.win {
  border-left-color: var(--gold);
}

.match-row.loss {
  border-left-color: var(--pink-deep);
}

.match-row.next {
  border-left-color: var(--pink);
}

.match-row .date {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--gray);
}

.match-row .teams {
  font-size: 1rem;
}

.match-row .teams b {
  color: var(--white);
}

.match-row .result {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

/* ---------- Roster ---------- */
.roster-tabs {
  display: inline-flex;
  gap: 6px;
  background: var(--black-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 32px;
}

.roster-tab-btn {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-dim);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 10px 26px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.roster-tab-btn:hover {
  color: var(--white);
}

.roster-tab-btn.active {
  background: var(--pink);
  color: var(--white);
  font-weight: 700;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.roster-grid[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Card giocatrice (roster): niente foto, solo numero / nome / ruolo-anno */
.player-card {
  position: relative;
  background: var(--black-card);
  padding: 22px 20px;
  border-top: 3px solid transparent;
  transition: transform 0.2s ease, border-top-color 0.2s ease, box-shadow 0.2s ease;
}

.player-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--pink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.player-card .number {
  font-family: var(--f-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
}

.player-card .name {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.player-card .role {
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Card staff (con foto) ---------- */
.staff-card {
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
}

.staff-card:hover {
  transform: none;
  box-shadow: none;
}

.staff-card.no-photo {
  background: linear-gradient(160deg, var(--black-card) 60%, rgba(255, 90, 160, 0.12));
}

.staff-card .player-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1);
  transition: transform 0.5s ease;
  z-index: 1;
}

.staff-card:hover .player-photo {
  transform: scale(1.06);
}

.staff-card .player-info {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.staff-card .player-badge {
  background: var(--pink);
  padding: 12px 22px;
  border-radius: 10px;
  max-width: 88%;
  box-shadow: 0 10px 28px rgba(224, 68, 126, 0.5), 0 6px 14px rgba(0, 0, 0, 0.4);
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.staff-card:hover .player-badge,
.staff-card:focus-visible .player-badge,
.staff-card.no-photo .player-badge {
  opacity: 1;
  transform: scale(1);
}

.staff-card .name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.staff-card .role {
  margin-top: 5px;
  font-family: var(--f-mono);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sui dispositivi touch (telefoni e tablet) l'hover non esiste:
   il nome dello staff resta sempre visibile, altrimenti non si leggerebbe mai. */
@media (hover: none) {
  .staff-card .player-badge {
    opacity: 1;
    transform: scale(1);
  }
}

/* Su schermi stretti la "pillola" centrata occuperebbe troppo spazio:
   diventa una fascia compatta appoggiata in basso alla card. */
@media (max-width: 520px) {
  .staff-card .player-info {
    padding: 0;
  }

  .staff-card .player-badge {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 8px 10px;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45);
  }

  .staff-card .name {
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .staff-card .role {
    font-size: 0.62rem;
    margin-top: 2px;
  }
}

/* ---------- Form contatti ---------- */
.form-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.form-field input,
.form-field textarea {
  background: var(--black-card);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 12px 14px;
  font-family: var(--f-body);
  font-size: 0.95rem;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--gray);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--white-dim);
}

.site-footer a:hover {
  color: var(--pink);
}

/* ---------- Utilità ---------- */
.empty-state {
  padding: 40px;
  text-align: center;
  border: 1px dashed var(--line);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--gray);
}

.page-hero {
  padding: clamp(48px, 8vw, 80px) 0 20px;
}

.page-hero .hero-eyebrow {
  margin-bottom: 10px;
}

/* ---------- Foto di squadra accanto al testo hero (pagina squadra) ---------- */
.squad-hero-flex {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}

.squad-hero-text {
  flex: 1 1 320px;
  min-width: 280px;
}

.squad-hero-photo {
  flex: 1 1 380px;
  min-width: 280px;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1D1D22, #2a2a30);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.squad-hero-photo.ph-fallback::after {
  content: 'Foto squadra in arrivo';
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
}

@media (max-width: 760px) {
  .wrap[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- Squad badge sugli articoli ---------- */
.article-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 28px;
}

.squad-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid var(--black);
  padding: 4px 10px;
  border-radius: 2px;
  /*background: rgba(201, 162, 75, 0.08);*/
  background: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  z-index: 2;
  position: relative;
}

.squad-badge:hover {
  background: var(--primary);
  color: var(--black);
  border-color: var(--black);
}

.squad-badge--modal {
  font-size: 0.78rem;
  padding: 6px 14px;
}

/* ---------- Sezione articoli nelle pagine squadra ---------- */
.squad-articles-section {
  margin-top: 20px;
}

/* ---------- Contatti (Chi Siamo) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 760px;
}

.contact-card {
  display: block;
  background: var(--black-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  background: linear-gradient(160deg, var(--black-card) 60%, rgba(224, 68, 126, 0.12));
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(224, 68, 126, 0.15);
  color: var(--pink);
  margin-bottom: 16px;
}

.contact-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 6px;
}

.contact-value {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}