/* ========================================
   VARIABILI CSS
   ======================================== */
:root {
  --brdr-color: #3c3c3c;
  --grigio-captions: #393939;
  --grigio-box: #222;
  --bordigrigi: rgb(170, 170, 170);
  --rossotlm: #810101;
  --giallogtv: #f5ff3c;
  --giallogtvhover: #bbc22d;
}

/* ========================================
   RESET E STILI BASE
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: f1;
  src: url("font/Formula1-Regular.otf");
}
/* Sostituisci 60px con l'altezza TOTALE della tua navbar/header fisso */
html {
  /* Questo è il trucco: dice al browser dove deve finire la scrollata */
  scroll-padding-top: 800px;

  /* Opzionale, per un'animazione fluida */
  scroll-behavior: smooth;
}
body {
  background-color: #0f0f0f;
  color: #fff;
  font-family: f1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

}

.centered-div {
  display: flex;
  justify-content: center;
}

button {
  background: none;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

/* ========================================
   HEADER
   ======================================== */
header {
  background: linear-gradient(to bottom, transparent 0%, #0f0f0f 100%),
    url("images/carbon.jpg");
  position: sticky;
  top: 0;
  z-index: 1000;
}

header a,
header a:hover,
header a:focus,
header a:active {
  text-decoration: none;
}
@font-face {
  font-family: f1;
  src: url("font/Formula1-Regular.otf");
}
button {
  font-family: inherit;
}
.main-container {
  /* display: block; */
  flex-grow: 1;
  max-width: 1000px;
  margin: 0 auto;

}

#breadcrumb {
  color: black;
  margin: 20px 0px 10px;
  background-color: var(--giallogtv);
  height: 30px;
  align-content: center;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 20px 0px;
}

#breadcrumb a {
  color: rgb(0, 0, 0);
  text-decoration: none;
}

#breadcrumb a:hover {
  text-decoration: underline;
}

#breadcrumb img {
  height: 15px;
}
.simple-footer {
  height: 10px;
  width: 100%;
  /* background-color: transparent; */ /* Puoi metterlo trasparente o dello stesso colore dello sfondo */
}

.title-container {
  display: block;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  font-weight: 500;
  padding: 20px;
  text-decoration: none;
}
.index {
  padding-top: 30px;
}

.sottotitolo {
  color: white;
  text-decoration: none;
}

.logohead {
  width: auto;
  height: 90px;
  margin: auto;
  display: block;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.9));
}

.logoheadcamp {
  width: auto;
  height: 14px;
  margin: auto 0;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.9));
}

.logocamp {
  width: auto;
  height: 100px;
  margin: auto;
  display: block;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.9));
}

/* --- Stili Generali e Posizionamento Fisso --- */

/* Posiziona il contenuto principale sotto il pulsante */
#page-content {
  padding-top: 100px; /* Spazio per il pulsante fisso in alto */
}

/* Pulsante Hamburger (Posizionato fisso in alto a sinistra) */
.hamburger-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001; /* Deve stare sopra tutto */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

/* Icona Hamburger (le tre linee) */
.line {
  display: block;
  width: 50px;
  height: 6px;
  background-color: var(--bordigrigi);
  margin: 10px 0;
  transition: all 0.3s ease;
}

/* --- Menu Laterale (Sidebar) --- */

#sidebar {
  /* Posizionamento fisso per coprire l'intera altezza dello schermo */
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 300px; /* Larghezza del menu */
  background-color: #333; /* Sfondo scuro */
  color: white;
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);

  /* NASCONDE IL MENU: Spostalo fuori dallo schermo a sinistra */
  transform: translateX(-100%);

  /* Animazione fluida (molto importante!) */
  transition: transform 0.4s ease-out;
}

/* MOSTRA IL MENU: Classe aggiunta da JavaScript */
#sidebar.open {
  transform: translateX(0); /* Lo riporta in vista */
}

/* Contenuto del menu */
.sidebar-content {
  padding: 100px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.sidebar-content a {
  color: white;
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid #444;
  font-size: 1.1em;
}

.logo-menu {
  height: 25px;
}

/* Pulsante di chiusura (la 'X') */
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 160%;
  cursor: pointer;
  color: #ffffff;
  padding: 20px;
}
.menu-icon {
  height: 25px;
  margin-left: 5px;
}

@media (max-width: 768px) {
  .main-container {
    background: 
    linear-gradient(to right, #0f0f0f 0%, transparent 25%, transparent 75%, #0f0f0f 100%),
    linear-gradient(to bottom, #0f0f0f 0%, transparent 25%, transparent 75%, #0f0f0f 100%),
    url(images/bg.jpg) no-repeat center top -160px;
      background-size: cover;
  }

  .logohead {
    width: 50%;
    height: auto;
    max-width: 100%;
    display: block;
  }

  .logocamp {
    width: auto;
    height: 70px;
    margin: auto;
    display: block;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.9));
  }
  .main-container {
    max-width: none;
    margin: 0 0;
  }

  /* Icona Hamburger (le tre linee) */
  .line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--bordigrigi);
    margin: 5px 0;
    transition: all 0.3s ease;
  }
  /* Contenuto del menu */
  .sidebar-content {
    padding: 100px 20px 20px 20px;
    display: flex;
    flex-direction: column;
  }
  /* Posiziona il contenuto principale sotto il pulsante */
  #page-content {
    padding-top: 70px; /* Spazio per il pulsante fisso in alto */
  }
}
.section {
  display: none;
  margin-left: auto;
  margin-right: auto;
  width: 800px;
  width: 800px;
}

.titoletto {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: calc(1vw + 16px);
  font-weight: 700;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 5px;
}

.titolettounderlogo {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: calc(1vw + 16px);
  font-weight: 700;
  width: 100%;
  margin-top: -10px;
  margin-bottom: 15px;
}

h1,
h2 {
  text-align: center;
}

.title-container h1 {
  margin: 10px 0;
  font-size: 2em;
}

/* ========================================
   SEZIONI
   ======================================== */
.section {
  display: none;
  margin: 0 auto;
  width: 800px;
  padding: 40px 20px;
}

/* ========================================
   TABELLE
   ======================================== */
table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  margin-bottom: 15px;
}

.table-container {
  position: relative;
  overflow-x: auto;
  white-space: nowrap;
}

td,
th {
  border: 1px solid #0e0e0e;
  background-color: #1a1a1a;
  padding: 5px;
  text-align: center;
}

th {
  background-color: var(--grigio-captions);
  color: var(--giallogtv);
}

td.totale {
  font-weight: 700;
}

th.totalone,
td.totalone {
  font-size: larger;
  font-weight: 700;
}

.flagtrack {
  width: auto;
  height: 15px;
  margin-left: 5px;
}

/* ========================================
   PULSANTI
   ======================================== */
.toggleColumnsButton {
  background-color: #555;
  color: #fff;
  border: none;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 12px;
  margin-bottom: 0;
  margin-top: 5px;
  transition: background-color 0.3s ease;
  border-radius: 3px;
}

.toggleColumnsButton:hover {
  background-color: #666;
}

.pdf-button,
.pen-button {
  background-color: var(--giallogtv);
  color: #000000;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  margin: 5px;
}

.pdf-button:hover,
.pen-button:hover {
  background-color: var(--giallogtvhover);
}

.pdf-button-container {
  text-align: center;
  margin-bottom: 10px;
}

/* ========================================
   ACCORDION
   ======================================== */
.accordion-container {
  margin-bottom: 10px;
}

.accordion {
  color: #fff;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  outline: 0;
  text-align: left;
  transition: 0.4s;
  font-size: 18px;
  margin-bottom: 10px;
}

.accordion > i > svg {
  width: 1rem;
  height: 0.9rem;
  transform: rotate(90deg);
  transition: all 0.3s ease;
  float: right;
}

.accordion.active > i > svg {
  height: 0.9rem;
  width: 1rem;
  transform: rotate(-90deg);
}

.panel {
  padding: 0;
  display: none;
  overflow: hidden;
  margin-bottom: 5px;
}

.panel-content {
  padding: 0;
}
@media (max-width: 768px) {
  .section {
    padding: 10px;
    margin-left: 0;
    margin-right: 0;
    width: auto;
  }
  .accordion {
    font-size: 16px;
    padding: 20px;
    margin-bottom: 0;
  }
  /* .accordion:hover {
    background-color: #0e0e0e;
  } */
  .accordionn {
    font-size: 20px;
    padding: 20px;
    margin-bottom: 0;
  }
  .accordionn:hover {
    background-color: #0e0e0e;
  }
  .pen-button {
    width: -webkit-fill-available;
    box-sizing: border-box;
    padding: 12px;
    margin: 20px;
    font-size: 18px;
  }
  .pdf-button {
    width: -webkit-fill-available;
    box-sizing: border-box;
    padding: 12px;
    margin: 20px;
    font-size: 18px;
  }
}
@media (max-width: 768px) {
  .table-container {
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
  }
  .table-container1 {
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
  }
  td,
  th {
    padding: 4px 5px 4px;
    text-align: center;
  }
  table {
    font-size: 12px;
  }
}
.titolozzo {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}
.titoletto {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: calc(1vw + 16px);
  font-weight: 700;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 5px;
}

.titolettounderlogo {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: calc(1vw + 16px);
  font-weight: 700;
  width: 100%;
  margin-top: -10px;
  margin-bottom: 15px;
}
.countdown-container1 {
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.2)
    ),
    url("images/usa.svg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  opacity: 1;
  border-radius: 15px;
}

.timer {
  font-weight: lighter;
}
.winner {
  font-size: 17px;
  font-weight: 700;
  /* color: #fff7c7; */
  text-shadow: 0 0 5px gold, 0 0 10px gold, 0 0 20px gold, 0 0 40px #ff8c00;
}
.winnerf {
  font-weight: 700;
  color: #fff7c7;
  text-shadow: 0 0 5px gold, 0 0 10px gold, 0 0 20px gold, 0 0 40px #ff8c00,
    0 0 80px #ff8c00, 0 0 90px #ff8c00;
  margin-bottom: 40px;
}
.twitch {
  width: 30px;
  height: auto;
  margin-top: 9px;
}
.youtube {
  width: 30px;
  height: auto;
  margin-top: 11px;
}

.menu-link {
  justify-content: center;
  display: flex;
}
.menu-link.active {
  justify-content: center;
  display: flex;
  background-color: var(--giallogtvhover);
  font-weight: 700;
  color: #000000;
  box-shadow: 0 10px 20px 0 rgba(255, 141, 141, 0.23);
}
.menu-link .home {
  width: calc(0.2vw + 32px);
  /* filter: invert(100%); */
  padding-bottom: 5px;
}
.pentrack {
  background-color: #fff;
  width: -webkit-fill-available;
  max-width: 600px;
  height: auto;
  margin: 10px;
  justify-content: center;
  -webkit-filter: grayscale(1) invert(1);
  filter: grayscale(1) invert(1);
}
.footer-section {
  width: 100%;
  background-color: #1a1a1a;
  padding: 0;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #fff;
  margin-top: 10px;
}
.sponsor-section h2 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 10px;
}
.sponsor-logos img {
  max-height: 40px;
  max-width: 190px;
}
.social-page {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 10px;
  -webkit-filter: grayscale(1) invert(1);
  filter: grayscale(1) invert(1);
}
@media (max-width: 768px) {
  .social-page {
    gap: 20px;
  }
}

/* 2. Stile FONDAMENTALE per i singoli link (li rende verticali) */

.social-page a {
  display: flex;
  flex-direction: column; /* <-- QUESTA è la chiave: forza l'impilamento verticale */
  width: 60px;
  height: auto;
  text-decoration: none;
  text-align: center;
  color: #333;
}
.social-page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.social-page img:hover {
  transform: scale(1.1);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 10px;
  -webkit-filter: grayscale(1) invert(1);
  filter: grayscale(1) invert(1);
  border-bottom: 1px solid #848484;
}
.social-icons a {
  display: inline-block;
  width: 22px;
  height: auto;
}
.social-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.social-icons img:hover {
  transform: scale(1.1);
}

.social-label {
  font-size: 0.75rem; /* Rendi l'etichetta più piccola */
  margin-top: 4px;
}

.box {
  background: linear-gradient(125deg, #333, #111);
  padding: 15px 10px 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 5px;
  border-radius: 15px;
  min-height: 100px;
  text-align: center;
  align-items: center;
  border: 1px solid var(--bordigrigi);
  box-shadow: 0 0 15px rgba(170, 170, 170, 0.3);
}

.box-oro {
  background: linear-gradient(135deg, #333, #111);
  padding: 15px 10px 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 5px;
  border-radius: 15px;
  min-height: 100px;
  text-align: center;
  align-items: center;
  border: 1px solid gold;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* .box-oro span {
  font-size: 1.2em;
  font-weight: bold;
  color: gold;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.6);
} */

.titolino-sx {
  text-align: left;
  padding: 4px 10px;
  font-size: calc(0.5vw + 10px);
}
.titolino-dx {
  text-align: right;
  padding: 4px 10px;
  font-size: calc(0.5vw + 10px);
}

.antibox {
  display: flex;
  justify-content: space-between;
}

.ps-icon {
  width: 16px;
  height: 16px;
}

.glow-box {
  background: linear-gradient(135deg, #333, #111);
  padding: 15px 10px 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 5px;
  border-radius: 15px;
  min-height: 100px;
  text-align: center;
  align-items: center;
  border: 1px solid var(--giallogtv);
  box-shadow: 0 0 1px var(--giallogtvhover), 0 0 6px var(--giallogtvhover),
    0 0 12px var(--giallogtvhover);
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.glow-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.shiny-box {
  background: linear-gradient(135deg, #333, #111);
  padding: 15px 10px 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-radius: 15px;
  /* min-height: 500px; */
  text-align: center;
  align-items: center;
  border: 1px solid var(--giallogtv);
  box-shadow: 0 0 1px var(--giallogtvhover), 0 0 6px var(--giallogtvhover),
    0 0 12px var(--giallogtvhover);
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.shiny-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 230, 230, 0) 0%,
    rgba(255, 230, 230, 0.18) 50%,
    rgba(255, 230, 230, 0) 100%
  );
  transform: skewX(-30deg);
  animation: shiny-move 6s infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes shiny-move {
  0% {
    left: -75%;
    opacity: 0;
  }
  10% {
    left: -125%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  58% {
    left: 170%;
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}

.glow-box > *,
.shiny-box > * {
  position: relative;
  z-index: 2;
}

/* ========================================
   PULSANTI CAMPIONATI
   ======================================== */
.campionati-button {
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--grigio-box), #111);
  border: 2px solid var(--brdr-color);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;

  justify-content: center;
  flex-wrap: wrap;
  display: flex;
  flex-direction: column; /* Mette logo sopra e testo sotto */
  justify-content: center;
  align-items: center;
  gap: 5px;
  text-align: center;
  text-decoration: none;
  color: white;
  min-height: 150px; /* Aumentato per far stare entrambi */
  cursor: pointer;
}

.campionati-button:hover {
  background-color: black;
  border-color: var(--giallogtv);
  transform: scale(1.05);
  background: none;
}

/* Stile per l'immagine del logo */
.button-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.gtec {
  width: 150px;
  height: 100px;
}

.main-campionato-container {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  padding: 0px 20px;
}

.buttons-secondary-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding: 0px 20px;
}

/* ========================================
   SOCIAL MEDIA - PAGINA SOCIAL
   ======================================== */
.social-page {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  filter: grayscale(1) invert(1);
}

.social-page a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease;
}

.social-page a:hover {
  transform: translateY(-5px);
}

.social-page img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  object-fit: contain;
  transition: transform 0.3s;
}

.social-page img:hover {
  transform: scale(1.1);
}

.social-label {
  font-weight: bold;
  font-size: 14px;
}

/* ========================================
   SOCIAL MEDIA - ICONE FOOTER
   ======================================== */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 10px;
  filter: grayscale(1) invert(1);
  border-bottom: 1px solid #848484;
}

.social-icons a {
  display: inline-block;
  width: 22px;
  height: auto;
}

.social-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* ========================================
   INSTAGRAM POSTS
   ======================================== */
.instagram-posts-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.instagram-post {
  flex: 1;
  min-width: 326px;
  max-width: 540px;
  margin-top: 20px;
  justify-content: center;
  display: flex;
}

/* ========================================
   CALENDARIO
   ======================================== */
.circuit-icon {
  width: auto;
  max-width: 300px;
  height: 70px;
  object-fit: contain;
  vertical-align: middle;
}

.nation-flag {
  width: auto;
  height: 30px;
  vertical-align: middle;
}

.calendar td {
  font-size: larger;
  padding-left: calc(50% + 15px);
  padding-top: 1px;
  padding-bottom: 0px;
}

.calendar td[data-label="Gara"] {
  font-weight: bolder;
  background-color: var(--grigio-captions);
  padding: 4px 10px 4px;
}

.calendar td[data-label="Gara"]::before {
  font-weight: bolder;
  display: flex;
}

.calendar td[data-label="Circuito"] {
  padding-left: 0px;
  justify-content: center;
  height: 70px;
  margin-top: 2px;
}

.calendar td[data-label="Circuito"]::before {
  display: none;
}

.calendar td[data-label="Nazione"] {
  padding-left: 0px;
  justify-content: center;
}

.calendar td[data-label="Nazione"]::before {
  display: none;
}

/* ========================================
   UTILITY
   ======================================== */
.hidden {
  display: none;
}

.timer {
  font-weight: lighter;
}

.winner {
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 0 5px gold, 0 0 10px gold, 0 0 20px gold, 0 0 40px #ff8c00;
}

.winnerf {
  font-weight: 700;
  color: #fff7c7;
  text-shadow: 0 0 5px gold, 0 0 10px gold, 0 0 20px gold, 0 0 40px #ff8c00,
    0 0 80px #ff8c00, 0 0 90px #ff8c00;
  margin-bottom: 40px;
}

/* Pilot modal styles */
.pilot-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.pilot-modal.open {
  display: block;
}
.pilot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.pilot-modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--grigio-box), #111);
  color: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  max-width: 760px;
  width: calc(100% - 40px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 18px;
}
.pilot-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #ffffff;
}
.pilot-modal-body {
  margin-top: 6px;
}
.pilot-header {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 8px;
}
.pilot-name {
  font-size: 20px;
  font-weight: 700;
}
.pilot-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--giallogtv);
}
.pilot-info {
  font-size: 13px;
  color: #cccccc;
  margin-bottom: 10px;
}
.pilot-section-title {
  font-size: 14px;
  margin: 10px 0 8px;
  color: #ffffff;
}
.pilot-no-item {
  color: #ffffff;
  font-size: 13px;
}
.pilot-champ-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pilot-champ-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  background: var(--grigio-box);
}
.pilot-champ-logo-left,
.pilot-champ-logo-right {
  width: 60px;
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pilot-champ-logo {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}
.pilot-champ-center {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pilot-champ-name {
  font-weight: 600;
  font-size: 14px;
}
.pilot-champ-category,
.pilot-champ-car-name {
  font-size: 12px;
  color: #aaaaaa;
}
.pilot-brand-logo {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

/* Small screens */
@media (max-width: 520px) {
  .pilot-modal-content {
    width: calc(100% - 24px);
    padding: 12px;
  }
  .pilot-header {
    align-items: flex-start;
  }
}

.pentrack {
  background-color: #fff;
  width: -webkit-fill-available;
  max-width: 600px;
  height: auto;
  margin: 10px;
  justify-content: center;
  filter: grayscale(1) invert(1);
}

.ps-icon {
  width: 16px;
  height: 16px;
}

.comunicato {
  font-size: small;
}

.countdown-container1 {
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.2)
    ),
    url("images/usa.svg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  opacity: 1;
  border-radius: 15px;
}

/* ========================================
   TABELLE MOBILE
   ======================================== */
@media (max-width: 600px) {
  .mobile-table thead {
    display: none;
  }

  .mobile-table,
  .mobile-table tbody,
  .mobile-table tr,
  .mobile-table td {
    display: block;
  }

  .mobile-table tr {
    margin-bottom: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .mobile-table td {
    text-align: right; /* Il valore a destra */
    padding-left: 50%; /* Spazio per la label */
    position: relative;
    border: none;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 10px;
    min-height: 10px; /* Altezza minima per la cella */
    display: flex; /* Usa flexbox per allineare label e valore */
    align-items: center; /* Centra verticalmente */
    justify-content: flex-end; /* Allinea il contenuto a destra */
  }

  .mobile-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: calc(50% - 30px);
    white-space: normal;
    text-align: left;
    font-weight: 600;
    color: var(--giallogtv);
    font-size: 0.95em;
  }

  .mobile-table tfoot {
    display: block;
    margin-top: 20px;
  }

  .mobile-table tfoot tr {
    background-color: #e0e0e0;
    border-radius: 15px;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
  }

  .mobile-table tfoot td {
    font-weight: 700;
    color: var(--giallogtv);
    font-size: 1.1em;
    padding-top: 15px;
    padding-bottom: 15px;
    text-align: right;
    justify-content: flex-end;
  }

  .mobile-table tfoot td::before {
    content: attr(data-label);
    position: absolute;
    width: auto;
    padding-right: 10px;
    font-size: 1.1em;
    color: var(--giallogtv);
  }
}

/* Tabelle sempre in formato mobile */
.alwaysmobile-table thead {
  display: none;
}

.alwaysmobile-table,
.alwaysmobile-table tbody,
.alwaysmobile-table tr,
.alwaysmobile-table td {
  display: block;
}

.alwaysmobile-table tr {
  margin-bottom: 15px;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.alwaysmobile-table td {
  text-align: right;
  padding-left: 50%;
  position: relative;
  border: none;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 10px;
  min-height: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.alwaysmobile-table td::before {
  content: attr(data-label);
  position: absolute;
  left: 10px;
  width: calc(50%);
  white-space: normal;
  text-align: left;
  font-weight: 600;
  color: var(--giallogtv); /* Colore label */
  font-size: 0.9em; /* Leggermente più piccola */
}

.alwaysmobile-table tfoot {
  display: block;
  background-color: var(--grigio-captions);
}

.alwaysmobile-table tfoot tr {
  background-color: #e0e0e0;
  border-radius: 15px;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
}

.alwaysmobile-table tfoot td {
  font-weight: 700;
  color: var(--giallogtv);
  font-size: 1.1em;
  text-align: right;
  justify-content: flex-end;
  text-decoration: none;
}

.alwaysmobile-table tfoot td::before {
  content: attr(data-label);
  position: absolute;
  width: auto;
  padding-right: 10px;
  font-size: 1.1em;
  color: var(--giallogtv);
}

.alwaysmobile-table tfoot a {
  text-decoration: none;
  color: white;
}
/* Stile per l'icona del circuito (PNG/SVG) */
.circuit-icon {
  width: auto; /* Larghezza fissa */
  max-width: 300px;
  height: 70px; /* Altezza fissa */
  object-fit: contain; /* Assicura che l'immagine si adatti senza distorcere */
  vertical-align: middle;
}

/* Stile per l'icona della nazione (Bandiera) */
.nation-flag {
  width: auto; /* Larghezza più piccola per la bandiera */
  height: 30px;

  vertical-align: middle;
}

.calendar td {
  font-size: larger;
  padding-left: calc(50% + 15px);
  padding-top: 1px;
  padding-bottom: 0px;
}

.calendar td[data-label="Circuito"] {
  padding-left: 0px;
  justify-content: center;
  height: 70px;
  margin-top: 2px;
}
.calendar td[data-label="Circuito"]::before {
  display: none;
}
.calendar td[data-label="Nazione"] {
  padding-left: 0px;
  justify-content: center;
}
.calendar td[data-label="Nazione"]::before {
  display: none;
}

.instagram-post {
  width: 100%;
}

.opzioni-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  /* 1. Helvetica Neue è spesso preferito se disponibile */
  font-family: "Helvetica Neue", /* 2. Helvetica (il font classico) */ Helvetica,
    /* 3. Arial (un'alternativa comune di default sui sistemi Windows) */ Arial,
    /* 4. sans-serif (il fallback generico per assicurare che venga usato un font senza grazie) */
      sans-serif;
}
.opzioni-card {
  flex: 1 1 300px;
  border: 2px solid var(--brdr-color);
  padding: 2%;
  border-radius: 5px;
}
.opzioni-card-header {
  padding: 1%;
}
.opzioni-card-body {
  margin-bottom: 0;
  color: var(--giallogtv);
  font-size: 1.1em;
  font-weight: bold;
  padding: 1%;
}

/* ========================================
   LINKTREE STYLES
   ======================================== */
.linktree-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0px 10px;
}

.linktree-container h1 {
  font-size: 2.5em;
  color: var(--giallogtv);
  margin-bottom: 40px;
}

.linktree-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 400px;
}

.linktree-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  padding: 15px 20px;
  background-color: var(--grigio-box);
  border: 2px solid var(--brdr-color);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
}

.linktree-button span {
  flex: 1;
  text-align: center;
}

.additional-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;

}

.additional-logo {
  width: 120px;
  max-height: 120px;
  height: auto;
  object-fit: contain;
}

.linktree-button:hover {
  background-color: black;
  border-color: var(--giallogtv);
  transform: scale(1.05);
  background: none;
}

/* Stili per le card dei piloti */
.piloti-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 0 10px 0;
}

.pilot-card {
  background: linear-gradient(135deg, var(--grigio-box), #111);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 360px;
  min-height: 70px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pilot-card:hover {
  background-color: black;
  border-color: var(--giallogtv);
  transform: scale(1.05);
  background: none;
}

.pilot-left {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pilot-name {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 5px;
}

.pilot-number {
  color: var(--giallogtv);
  font-weight: bold;
  font-size: 26px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.pilot-label {
  background-color: var(--giallogtv);
  font-size: 12px;
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  padding: 0px 10px;
  border-radius: 5px;
}

/* Responsive per mobile */
@media (max-width: 768px) {
  .pilot-card {
    width: 100%;
    max-width: 350px;
  }
  .pilot-name {
    font-size: 18px;
  }
  .pilot-number {
    font-size: 22px;
  }
}

/* Stili per le card degli admin */
.admin-container {
  display: grid;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 15px 0;
}

.admin-card {
  background: linear-gradient(135deg, var(--grigio-box), #111);
  border: 2px solid #e9ecef;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 360px;
  min-height: 80px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-role {
  font-size: 16px;
  font-weight: bold;
  color: var(--giallogtv);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-members {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.4;
}

/* Responsive per mobile */
@media (max-width: 768px) {
  .admin-card {
    width: 100%;
    max-width: 350px;
  }
  .admin-role {
    font-size: 14px;
  }
  .admin-members {
    font-size: 13px;
  }
}

.linktree-icon {
  width: auto;
  height: 40px;
  filter: invert(100%);
  flex-shrink: 0;
}
.gtec-icon {
  filter: invert(0%);
}


.sponsor-section {
  margin-top: 0px;
  padding: 20px;
  background-color: var(--grigio-box);
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.sponsor-section h2 {
  color: var(--giallogtv);

}

.sponsor-section a {
  text-decoration: none;
  color: white;

}

.sponsor-section img {
  max-width: 200px;
  max-height: 70px;
}

.sponsor-section div {
  font-size: 0.9em;
  color: #ccc;
  border-bottom: #333 1px solid;
  padding: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 90px;
}



@media (max-width: 768px) {
  .linktree-container h1 {
    font-size: 2em;
  }

  .linktree-button {
    font-size: 1em;
    padding: 12px 15px;
  }

  .linktree-icon {
    width: auto;
    height: 30px;
    flex-shrink: 0;
  }

  .additional-logos {
    gap: 20px;
    margin: 20px 0;
  }

  .additional-logo {
    width: 90px;
    max-height: 90px;
    height: auto;
    object-fit: contain;
  }
}
.coppaimg {
  width: 30px;
  filter: invert(100%);
}
.coppa {
  margin-top: 10px;
  width: 100%;
}

.active {
  margin-left: 6px;
}
