:root {
  --main-yellow: #FFD700;
  --dark-gray: #111218;
  --light-gray: #f4f4f6;
  --black: #000;
  --accent-red: #ff4d4f;
  --accent-green: #10b981;
  --card-bg: #ffffff;
}

/* RESET BASE */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top left, #222 0, #000 35%, #111218 100%);
  color: #f9fafb;
}

/* HEADER / NAV */

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 4px solid yellow;
  backdrop-filter: blur(10px);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;      /* Questo taglia l'immagine se eccede */
  flex-shrink: 0;        /* Impedisce al cerchio di rimpicciolirsi */
  background: #000;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.logo-img {
  width: 100%;           /* Forza l'immagine a stare dentro la larghezza del cerchio */
  height: 100%;          /* Forza l'immagine a stare dentro l'altezza del cerchio */
  object-fit: cover;     /* Mantiene le proporzioni centrando il logo */
  display: block;
}

.league-name {
  color: #9ca3af;
}

.league-cat {
  color: var(--main-yellow);
  font-weight: 700;
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.main-nav a {
  color: #e5e7eb;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: rgba(249, 250, 251, 0.06);
}

.main-nav a.active {
  background: var(--main-yellow);
  color: #111;
}

/* HERO */

.hero {
  padding: 60px 40px 40px;
  background: radial-gradient(circle at top left, #4338ca 0, #111 40%);
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: 3.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9fafb;
  margin-bottom: 8px;
}

.hero p {
  color: #d1d5db;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--main-yellow);
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
  background: #ffed84;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: transparent;
  color: #e5e7eb;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  border: 1px solid rgba(249, 250, 251, 0.3);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(249, 250, 251, 0.06);
  border-color: var(--main-yellow);
  color: var(--main-yellow);
}

/* LAYOUT MAIN */

main {
  padding: 20px 40px 60px;
}

.page-main {
  padding: 40px 40px 60px;
}

/* TITOLI SEZIONE */

.section-title {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  margin: 40px 0 20px 0;
  color: #f9fafb;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 32px;
  background: linear-gradient(to bottom, var(--main-yellow), #fb923c);
  margin-right: 12px;
  border-radius: 4px;
}

.page-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.page-subtitle {
  color: #9ca3af;
  margin-bottom: 20px;
}

/* NEWS CARDS */

.cards {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background-color: rgba(17, 24, 39, 0.92);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-width: 310px;
  text-align: left;
  border: 1px solid rgba(249, 250, 251, 0.08);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 14px 16px 16px;
}

.card-content h3 {
  margin: 4px 0 4px 0;
  font-size: 1.05rem;
  color: #f9fafb;
}

.card-content p {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 10px;
}

.card-content a {
  text-decoration: none;
  color: var(--main-yellow);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* GENERICO BOTTONI LINK */

.btn-link {
  text-decoration: none;
  color: var(--main-yellow);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.text-center {
  text-align: center;
  margin-top: 8px;
}

/* CAROSELLO */

.carousel {
  position: relative;
  overflow: hidden;
  margin: 20px auto;
  max-width: 900px;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.carousel button.prev,
.carousel button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(249, 250, 251, 0.25);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--main-yellow);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.15s;
}

.carousel button.prev { left: 8px; }
.carousel button.next { right: 8px; }

.carousel button:hover {
  background-color: #111827;
  transform: translateY(-50%) scale(1.05);
}

/* CLASSIFICHE / MARCATORI CARDS */

.classifica-card {
  max-width: 900px;
  margin: 0 auto 20px auto;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(249, 250, 251, 0.08);
}

.classifica-title {
  text-align: left;
  padding: 14px 18px 6px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--main-yellow);
}

.marcatori-cards {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.marcatore-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 180px;
  border: 1px solid rgba(249, 250, 251, 0.08);
}

.marcatore-rank {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.marcatore-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.marcatore-team {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

.marcatore-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* TABS / FILTRI */

.tabs {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tabs button {
  padding: 7px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  background-color: transparent;
  color: #e5e7eb;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.2);
  cursor: pointer;
  transition: 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.tabs button.active,
.tabs button:hover {
  background-color: var(--main-yellow);
  color: #111827;
  border-color: transparent;
}

/* TABELLE */

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table thead {
  background: rgba(15, 23, 42, 0.95);
}

.data-table th,
.data-table td {
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
}

.data-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #9ca3af;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(17, 24, 39, 0.8);
}

.data-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.85);
}

.data-table.compact th,
.data-table.compact td {
  padding: 6px 8px;
}

/* BOTTONI ORDINAMENTO HEADER TABELLA */

.th-sort {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 0.7rem;
  cursor: pointer;
  margin-left: 2px;
  padding: 0;
}

.th-sort:hover {
  color: var(--main-yellow);
}

/* INFO MESSAGE */

.info-message {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

/* CHI SIAMO / NEWSLETTER */

.chi-siamo-content {
  max-width: 800px;
  background: rgba(17, 24, 39, 0.96);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(249, 250, 251, 0.08);
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chi-siamo-content p + p {
  margin-top: 8px;
}

.newsletter-card {
  max-width: 800px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(249, 250, 251, 0.1);
}

.newsletter-card p {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 10px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-row {
  display: flex;
  gap: 8px;
}

.newsletter-row input[type="email"] {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(156, 163, 175, 0.8);
  background: #020617;
  color: #f9fafb;
  font-size: 0.85rem;
}

.newsletter-row button {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: var(--main-yellow);
  color: #111827;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.newsletter-row button:hover {
  background: #ffed84;
}

.newsletter-privacy {
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* GALLERIA */

.gallery {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.gallery img {
  width: 250px;
  height: 160px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(249, 250, 251, 0.1);
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6);
}

/* FOOTER */

footer {
  background-color: #020617;
  color: #9ca3af;
  padding: 32px 40px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  margin-top: 30px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 14px;
}

.footer-left {
  max-width: 380px;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer-desc {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-top: 4px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-links-top {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-link-strong {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-link-strong:hover {
  color: var(--main-yellow);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, color 0.2s;
  text-decoration: none;
}

.icon-svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-icon:hover {
  background: var(--main-yellow);
  border-color: transparent;
  color: #111827;
  transform: translateY(-1px) scale(1.08);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(55, 65, 81, 0.8);
  padding-top: 10px;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--main-yellow);
}

.footer-copy {
  font-size: 0.8rem;
}

/* COMMENTI */

.commenti-filters {
  margin-bottom: 16px;
}

.commenti-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.commenti-filter-row input,
.commenti-filter-row select {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(156, 163, 175, 0.8);
  background: #020617;
  color: #f9fafb;
  font-size: 0.85rem;
}

.commenti-filter-row input {
  flex: 2;
  min-width: 200px;
}

.commenti-filter-row select {
  flex: 1;
  min-width: 150px;
}

.commenti-form-card {
  max-width: 900px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(249, 250, 251, 0.1);
  margin-bottom: 20px;
}

.commenti-form-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--main-yellow);
  margin-bottom: 10px;
}

.commenti-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.commenti-form-row input,
.commenti-form-row select,
.commenti-form-row textarea {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(156, 163, 175, 0.8);
  background: #020617;
  color: #f9fafb;
  font-size: 0.85rem;
}

.commenti-form-row textarea {
  border-radius: 12px;
}

.commenti-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.commento-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.commento-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.commento-partita {
  font-size: 0.95rem;
  font-weight: 600;
}

.commento-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

.commento-esito {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 999px;
}

.badge-vittoria-casa {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.badge-vittoria-trasferta {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.badge-equilibrata {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.commento-testo {
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 16px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero {
    padding: 36px 16px 26px;
  }

  main,
  .page-main {
    padding: 20px 16px 40px;
  }

  .cards {
    flex-direction: column;
  }

  .classifica-card {
    border-radius: 14px;
  }

  .carousel button.prev,
  .carousel button.next {
    display: none;
  }

  .newsletter-row {
    flex-direction: column;
  }

  footer {
    padding: 24px 16px 18px;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
  }

  .commenti-filter-row {
    flex-direction: column;
  }
}


