/* ══════════════════════════════════════════════════
   TRANKILITI FC - STYLESHEET
   ══════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bg: #09080a;
  --s1: #111008;
  --s2: #181508;
  --s3: #201c0a;
  --border: #2a2415;
  --border2: #3a3218;
  --gold: #e8c119;
  --gold2: #f5d020;
  --goldbg: rgba(232, 193, 25, 0.12);
  --goldbg2: rgba(232, 193, 25, 0.06);
  --text: #f0ead8;
  --text2: #9a8e6a;
  --text3: #5a5238;
  --red: #e84040;
  --green: #2ed573;
  --fd: 'Bebas Neue', sans-serif;
  --fc: 'Barlow Condensed', sans-serif;
  --fb: 'Barlow', sans-serif;
}

/* ── RESET ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 8, 10, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  padding: 2px;
}

.nav-logo-text {
  font-family: var(--fd);
  font-size: 20px;
  color: var(--text);
  letter-spacing: 2px;
}

.nav-logo-text em {
  font-style: normal;
  font-family: var(--fc);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1px;
  margin-left: 6px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--fc);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--goldbg2);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  margin: 4px 0;
  border-radius: 1px;
  transition: all 0.2s;
}

@media (max-width: 599px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    background: rgba(9, 8, 10, 0.98);
    flex-direction: column;
    padding: 16px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: block;
    margin-left: auto;
  }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px clamp(20px, 5vw, 80px) 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(232, 193, 25, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 20%, rgba(232, 193, 25, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(232, 193, 25, 0.08) 0%, transparent 50%);
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(232, 193, 25, 0.03) 0px, rgba(232, 193, 25, 0.03) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, rgba(232, 193, 25, 0.03) 0px, rgba(232, 193, 25, 0.03) 1px, transparent 1px, transparent 80px);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 5vw, 80px);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-right {
  flex-shrink: 0;
  width: clamp(200px, 32vw, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-crest {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 60px rgba(232, 193, 25, 0.4));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-crest-ring,
.hero-crest-ring2 {
  position: absolute;
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-crest-ring {
  inset: -10%;
  border: 1px solid rgba(232, 193, 25, 0.15);
}

.hero-crest-ring2 {
  inset: -22%;
  border: 1px solid rgba(232, 193, 25, 0.08);
  animation-delay: 0.5s;
}

@keyframes ringPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 80px 20px 40px;
    text-align: center;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: center;
    gap: 24px;
  }

  .hero-right {
    width: clamp(140px, 40vw, 200px);
  }

  .hero-left {
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 599px) {
  .hero {
    min-height: auto;
    padding: 80px 16px 32px;
  }

  .hero-inner {
    gap: 20px;
  }

  .hero-right {
    width: clamp(130px, 38vw, 170px);
  }
}

.hero-title {
  font-family: var(--fd);
  font-size: clamp(40px, 11vw, 110px);
  line-height: 0.85;
  color: var(--gold);
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
  margin: 0;
  text-shadow: 0 0 30px rgba(232, 193, 25, 0.3);
}

.hero-title span {
  color: var(--text);
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  margin: 4px 0;
}

@media (max-width: 768px) {
  .hero-divider {
    margin: 4px auto;
  }
}

.hero-motto {
  font-family: var(--fc);
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 4px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ── SECTIONS ── */
.section {
  padding: clamp(80px, 10vw, 100px) clamp(16px, 4vw, 40px);
}

.section-tag {
  font-family: var(--fc);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: clamp(24px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.section-title {
  font-family: var(--fd);
  font-size: clamp(36px, 8vw, 58px);
  color: var(--gold);
  line-height: 0.92;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.max-w {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── NEXT MATCH BANNER ── */
.next-match {
  background: linear-gradient(135deg, var(--s2), var(--s3));
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 32px);
  margin-bottom: clamp(24px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.next-match::before {
  content: 'NEXT';
  position: absolute;
  right: -10px;
  top: -10px;
  font-family: var(--fd);
  font-size: 120px;
  color: rgba(232, 193, 25, 0.04);
  line-height: 1;
  pointer-events: none;
}

.nm-badge {
  font-family: var(--fc);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nm-badge::before {
  content: '●';
  animation: bl 1.4s infinite;
  font-size: 8px;
}

@keyframes bl {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.nm-teams {
  font-family: var(--fd);
  font-size: clamp(22px, 5vw, 36px);
  color: var(--text);
  line-height: 1;
}

.nm-teams span {
  color: var(--gold);
}

.nm-info {
  display: flex;
  gap: clamp(12px, 3vw, 24px);
  flex-wrap: wrap;
  margin-top: 8px;
}

.nm-info-item {
  font-family: var(--fc);
  font-size: 13px;
  color: var(--text2);
  display: flex;
  gap: 5px;
  align-items: center;
}

.cd-wrap {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.cd-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  min-width: 56px;
}

.cd-n {
  font-family: var(--fd);
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 12px rgba(232, 193, 25, 0.3);
}

.cd-l {
  font-family: var(--fc);
  font-size: 9px;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── ROSA GRID ── */
.rosa-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.rosa-filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--fc);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
}

.rosa-filter-btn:hover,
.rosa-filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--goldbg2);
}

.rosa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 45vw), 1fr));
  gap: clamp(10px, 2vw, 16px);
}

.player-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.player-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(232, 193, 25, 0.15);
  transform: translateY(-4px);
}

.player-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--s2), var(--s3));
  overflow: hidden;
}

.player-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-card-init {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: 28px;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(232, 193, 25, 0.2);
}

.player-card-num {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--fd);
  font-size: 32px;
  font-weight: bold;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(232, 193, 25, 0.5);
  line-height: 1;
  background: rgba(9, 8, 10, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
}

.player-card-role-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--fc);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  background: rgba(232, 193, 25, 0.2);
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.player-card-info {
  padding: clamp(10px, 2vw, 16px);
}

.player-card-name {
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
  line-height: 1.2;
}

.player-card-fullname {
  font-family: var(--fb);
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 8px;
}

.player-card-stats {
  display: flex;
  justify-content: space-around;
  gap: 4px;
}

.pc-stat {
  flex: 1;
  text-align: center;
}

.pc-stat-val {
  font-family: var(--fd);
  font-size: 16px;
  color: var(--gold);
  line-height: 1;
}

.pc-stat-lbl {
  font-family: var(--fc);
  font-size: 8px;
  color: var(--text3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text3);
  font-style: italic;
}

/* ── RISULTATI ── */
.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-row {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.result-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 50px;
}

.result-day {
  font-family: var(--fd);
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}

.result-mon {
  font-family: var(--fc);
  font-size: 10px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-div {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.result-info {
  flex: 1;
  min-width: 150px;
}

.result-teams {
  font-family: var(--fc);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.result-comp {
  font-family: var(--fb);
  font-size: 12px;
  color: var(--text3);
}

.result-score {
  font-family: var(--fd);
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  min-width: 50px;
  text-align: center;
}

.result-score.w {
  color: var(--green);
}

.result-score.l {
  color: var(--red);
}

.result-score.d {
  color: var(--text2);
}

.result-badge {
  font-family: var(--fc);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-w {
  background: rgba(46, 213, 115, 0.15);
  color: var(--green);
}

.badge-l {
  background: rgba(232, 64, 64, 0.15);
  color: var(--red);
}

.badge-d {
  background: var(--goldbg2);
  color: var(--gold);
}

/* ── TOP STATS ── */
.top-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.stat-title {
  font-family: var(--fc);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.stat-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-card-rank {
  font-family: var(--fd);
  font-size: 20px;
  color: var(--text2);
  line-height: 1;
  min-width: 32px;
  text-align: center;
}

.stat-card-rank.r1 {
  color: var(--gold);
  font-size: 28px;
}

.stat-card-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s2), var(--s3));
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-card-info {
  flex: 1;
  min-width: 0;
}

.stat-card-name {
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-card-role {
  font-family: var(--fb);
  font-size: 11px;
  color: var(--text3);
}

.stat-card-val {
  font-family: var(--fd);
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
}

.stat-card-lbl {
  font-family: var(--fc);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── CLASSIFICA ── */
.standings-wrapper {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.standings-table th {
  background: var(--s2);
  font-family: var(--fc);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
}

.standings-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--fb);
  font-size: 13px;
  color: var(--text);
}

.standings-table tbody tr:last-child td {
  border-bottom: none;
}

.standings-table tbody tr.us {
  background: var(--goldbg2);
  border-left: 3px solid var(--gold);
}

.st-pos {
  font-family: var(--fd);
  font-size: 16px;
  color: var(--gold);
  text-align: center;
  font-weight: bold;
}

.st-pos.top {
  background: rgba(46, 213, 115, 0.1);
}

.st-name {
  font-family: var(--fc);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.st-pts {
  font-family: var(--fd);
  font-size: 14px;
  color: var(--gold);
  font-weight: bold;
  text-align: center;
}

.fd {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0 1px;
}

.fd-w {
  background: var(--green);
}

.fd-d {
  background: var(--gold);
}

.fd-l {
  background: var(--red);
}

/* ── NEWS ── */
.news-pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 90vw), 1fr));
  gap: clamp(16px, 3vw, 24px);
}

.news-pub-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.news-pub-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(232, 193, 25, 0.15);
  transform: translateY(-4px);
}

.news-pub-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, var(--s2), var(--s3));
  overflow: hidden;
}

.news-pub-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-pub-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: 36px;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(232, 193, 25, 0.2);
}

.news-pub-card-body {
  padding: clamp(12px, 3vw, 20px);
}

.news-pub-card-date {
  font-family: var(--fc);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.news-pub-card-title {
  font-family: var(--fd);
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
}

.news-pub-card-text {
  font-family: var(--fb);
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── LOADER ── */
.loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 200;
  transition: opacity 0.6s, visibility 0.6s;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── UTILITIES ── */
main {
  margin-top: 58px;
}

a {
  color: inherit;
}

/* ── FOOTER ── */
.footer {
  background: linear-gradient(180deg, var(--s1) 0%, var(--bg) 100%);
  border-top: 2px solid var(--gold);
  padding: clamp(50px, 7vw, 70px) clamp(20px, 4vw, 40px) clamp(24px, 4vw, 32px);
  margin-top: clamp(40px, 8vw, 80px);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(32px, 5vw, 60px);
  margin-bottom: clamp(32px, 5vw, 40px);
  align-items: start;
}

.footer-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  align-items: flex-start;
  gap: 16px;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(232, 193, 25, 0.5));
}

.footer-title {
  font-family: var(--fd);
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 3px;
  line-height: 1;
  margin: 0;
  text-shadow: 0 0 15px rgba(232, 193, 25, 0.3);
}

.footer-tagline {
  font-family: var(--fc);
  font-size: 13px;
  color: var(--text2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.footer-subtitle {
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 8px 0;
  position: relative;
  padding-bottom: 10px;
}

.footer-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: var(--fb);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.2);
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  transition: all 0.25s ease;
}

.social-link span {
  flex: 1;
  letter-spacing: 0.3px;
}

.social-link:hover {
  border-color: var(--gold);
  background: var(--goldbg2);
  transform: translateX(4px);
}

.social-link:hover svg {
  transform: scale(1.15);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.footer-links li {
  list-style: none;
}

.footer-links a {
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text2);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.footer-links a::before {
  content: '›';
  color: var(--gold);
  margin-right: 8px;
  transition: all 0.2s ease;
  font-size: 16px;
  font-weight: bold;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: clamp(20px, 4vw, 28px);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-family: var(--fb);
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 0.5px;
  margin: 0;
}

@media (max-width: 768px) {
  .footer {
    padding: 32px 20px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 20px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }

  .footer-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .footer-brand-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .footer-title {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .footer-tagline {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .footer-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-section {
    align-items: flex-start;
    gap: 10px;
  }
  
  .footer-subtitle {
    text-align: left;
    font-size: 11px;
    margin-bottom: 4px;
    padding-bottom: 8px;
  }

  .footer-subtitle::after {
    left: 0;
    transform: none;
  }

  .social-links {
    width: 100%;
    gap: 8px;
  }

  .social-link {
    padding: 8px 10px;
    font-size: 12px;
    gap: 10px;
  }

  .social-link span {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .social-link svg {
    width: 16px;
    height: 16px;
  }

  .footer-links {
    gap: 8px;
    align-items: flex-start;
  }

  .footer-links a {
    font-size: 12px;
    letter-spacing: 0.8px;
  }

  .footer-bottom {
    padding-top: 16px;
  }

  .footer-bottom p {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .footer-brand {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-section {
    align-items: center;
  }

  .footer-subtitle {
    text-align: center;
  }

  .footer-subtitle::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links {
    align-items: center;
  }
}


/* ── CLASSIFICA: stemmi + ultimi risultati (aggiunto) ── */
.st-team {
  display: flex;
  align-items: center;
  gap: 9px;
}
.st-crest {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  background: #000;
  border: 1px solid var(--border);
}
.st-crest-ph {
  display: grid;
  place-items: center;
  font-family: var(--fd);
  color: var(--gold);
  font-size: 14px;
}
.st-team-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.st-form {
  display: flex;
  align-items: center;
  gap: 3px;
}


/* ── NEWS: card cliccabile + articolo (aggiunto) ── */
.news-pub-card {
  cursor: pointer;
}
.news-pub-card-more {
  font-family: var(--fc);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: var(--gold);
  margin-top: 10px;
}
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.news-modal.open {
  display: flex;
}
.news-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.news-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.news-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(9, 8, 10, 0.7);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: 0.15s;
}
.news-modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.news-modal-img img {
  width: 100%;
  display: block;
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.news-modal-text {
  padding: 26px 28px 32px;
}
.news-modal-date {
  font-family: var(--fc);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-size: 12px;
  margin-bottom: 10px;
}
.news-modal-title {
  font-family: var(--fd);
  font-size: 34px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 18px;
}
.news-modal-body {
  font-family: var(--fb);
  color: var(--text2);
  line-height: 1.7;
  font-size: 15px;
  white-space: pre-wrap;
}


/* ── PROSSIMA PARTITA: loghi + spaziatura (aggiunto) ── */
.nm-team-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nm-crest {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: none;
}
#next-match-section {
  padding-top: clamp(12px, 2vw, 24px);
  padding-bottom: 0;
}
#rosa {
  padding-top: clamp(28px, 5vw, 48px);
}


/* ── MOBILE: rosa 2 colonne fisse + prossima partita ordinata (aggiunto) ── */
@media (max-width: 600px) {
  .rosa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .next-match {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
  }
  .nm-team-row {
    justify-content: center;
  }
  .nm-info {
    justify-content: center;
    width: 100%;
    margin-top: 0;
  }
  .cd-wrap {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 360px) {
  .rosa-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}


/* ── PROFILO GIOCATORE (modal) ── */
.player-card { cursor: pointer; }
#player-modal .news-modal-box { max-width: 440px; }
.pm-hero {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--s2), var(--s3));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 16px 16px 0 0;
}
.pm-hero img { width: 100%; height: 100%; object-fit: cover; }
.pm-initials { font-family: var(--fd); font-size: 90px; color: var(--gold); opacity: 0.85; }
.pm-num {
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--fd); font-size: 64px; line-height: 1; color: #fff;
  text-shadow: 0 3px 14px rgba(0,0,0,0.6);
}
.pm-role {
  position: absolute; right: 16px; top: 16px;
  background: var(--gold); color: #1a1500;
  font-family: var(--fc); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 12px; padding: 6px 12px; border-radius: 7px;
}
.pm-body { padding: 22px 26px 28px; }
.pm-name {
  font-family: var(--fd); font-size: 34px; color: var(--text);
  line-height: 1.05; margin-bottom: 18px;
}
.pm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pm-stat {
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 8px; text-align: center;
}
.pm-stat-val { font-family: var(--fd); font-size: 38px; color: var(--gold); line-height: 1; }
.pm-stat-lbl {
  font-family: var(--fc); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 11px; color: var(--text2); margin-top: 6px;
}

/* ── CALENDARIO ── */
.cal-list { display: flex; flex-direction: column; gap: 8px; }
.cal-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px;
}
.cal-row.upcoming { border-left: 3px solid var(--gold); }
.cal-date {
  flex: none; width: 64px;
  font-family: var(--fc); font-weight: 700; font-size: 14px;
  color: var(--text2); letter-spacing: 0.04em;
}
.cal-teams {
  flex: 1; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.cal-team {
  font-family: var(--fc); font-weight: 600; font-size: 15px; color: var(--text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-teams .cal-team:first-child { text-align: right; }
.cal-team.me { color: var(--text); font-weight: 700; }
.cal-score {
  font-family: var(--fd); font-size: 22px; padding: 2px 12px; border-radius: 7px;
  background: var(--s3); color: var(--text); white-space: nowrap;
}
.cal-score.cal-w { color: var(--green); }
.cal-score.cal-l { color: var(--red); }
.cal-score.cal-d { color: var(--gold); }
.cal-time {
  font-family: var(--fc); font-weight: 700; font-size: 14px;
  color: var(--gold); white-space: nowrap;
  background: var(--goldbg); padding: 5px 12px; border-radius: 7px;
}
@media (max-width: 600px) {
  .cal-row { gap: 10px; padding: 12px 12px; }
  .cal-date { width: 48px; font-size: 12px; }
  .cal-team { font-size: 13px; }
  .cal-teams { gap: 8px; }
}
