/* Stili di base */
body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #1a1a1a;
    font-family: 'Orbitron', sans-serif;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
    overflow: hidden;
}
body.scrollable {
    overflow: auto;
}

/* Sfondo principale con overlay scuro */
body {
    position: relative;
    background-image:
        linear-gradient(
            rgba(0,0,0,.35),
            rgba(0,0,0,.55)
        ),
        url('./Img/sfondo4k2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay griglia fine per effetto texture */
 body::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            rgba(255,255,255,0.03) 1px,
            transparent 1px
        );
    background-size: 3px 3px;
    pointer-events: none;
    z-index: 0;
} 

/* Assicurati che il contenuto stia sopra l'overlay */
body > * {
    position: relative;
    z-index: 1;
}

/* Monitor QHD/2K con scaling Windows */
@media (min-width: 2100px) {
    body {
        background-image:
            linear-gradient(
                rgba(0,0,0,.35),
                rgba(0,0,0,.55)
            ),
            url('./Img/sfondo4k2.webp');
    }
}

/* Schermi Retina/HiDPI */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    body {
        background-image:
            linear-gradient(
                rgba(0,0,0,.35),
                rgba(0,0,0,.55)
            ),
            url('./Img/sfondo4k2.webp');
    }
}


.regolamento p {
	text-align: justify;
}
.regolamento {
	color: rgb(255, 255, 255);
	width: 90%;
	margin-left: auto;
  	margin-right: auto;
  	display: table;
}

.container {
	height: 100vh; /* 100% dell'altezza della viewport */
	width: 100%;
	display: flex;
	flex-direction: column;
}

.sezione>.container {
	display: flex;
	justify-content: space-between;
	/* Questo assicura che ci sia spazio tra le tabelle */
	flex-direction: row; /* Dispone le tabelle in orizzontale */
	height: auto; /* Assicura che le tabelle occupino tutta l'altezza */
}

.table-container {
	width: 50%;
	padding: 0.5vw;
}

.table-container .partecipanti {
	width: 100%;
	border-collapse: collapse;
}
.partecipanti td {
	height: 3.5vh;
}

.no-border {
	border: none;
}

.form_staff {
	border: none;
	text-align: left;
}

.table_no_border {
	border: none;
	width: 100%;
}

.td_style_red{
	text-align: center; 
	vertical-align: middle;
	color: #AB0210;
}

.table_no_border td, .table_no_border th {
	text-align: left;
	vertical-align: middle; /* opzionale: per centrare verticalmente */
}

.start-button {
	display: block;
	margin: auto;
	padding: 1vh;
	font-size: 3vh;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 1.5vh;
	cursor: pointer;
}

.header {
	display: flex;
	flex: 0.12;
	flex-direction: column;
}

.row_menu {
	display: flex;
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.menu-left {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-left li a {
    text-decoration: none;
}

.menu-right .fixed-link {
   font-family: 'Abril Fatface', serif;
	font-weight: 600;
	text-decoration: none;
	color: rgb(49 216 51);
    -webkit-text-stroke: 0.01vw #000000;
	position: relative;
    margin-right: 3vw;
}



/* Layout delle colonne nella top-row */
.top-row {
	display: flex;
	background-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    border-radius: 8px;

}

.azioni_torneo button {
	line-height: 1;
	height: auto;
	margin-top: 0;
	vertical-align: middle;
	margin-bottom: 0;
	padding: 0;
}
/* Se vuoi uniformare anche gli input number */
.azioni_torneo input {

	padding: 0;
	margin: unset;
	height: auto;
	vertical-align: middle;
}

.azioni_torneo {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1vw;
	margin-right: 2vw;
}

.top-left-column {
	flex: 0.5;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Assicura che la colonna destra occupi il 50% della larghezza */
.top-right-column {
	flex: 1.5;
	display: flex;
	justify-content: center;
	align-items: center;
}

.fase {
	text-align: center;
	font-size: 0.7vw;
    flex: 0 0 11vw;
    min-width: 11vw;
    max-width: 11vw;
    box-sizing: border-box;
  	color: #fff;
  	margin-bottom: 0.15vh;
   background:
    linear-gradient(
      to left,
      #254b98 0%,
      #0d0f14 45%,
      #0b1c49 100%
    );

  border: 0.10vw solid #7b808a;
  border-radius: 0.3vw;
    
  box-shadow:
    inset 0 0.12vw 0.3vw rgba(255,255,255,0.5),
    inset 0 0 0.5vw rgba(120,140,180,0.18),
    0 0 0 0.05vw #111,
    0 0.1vw 0.1vw rgba(255,255,255,0.35),
    0 0.1vw 0.1vw rgba(0,0,0,0.9),
    0 0.1vw 0.1vw rgba(170,190,255,0.22);
}

.linea-inferiore{
	font-size: 0.6vw;
}

.fase_corrente {
	text-align: center;
	font-size: 0.7vw;
    flex: 0 0 11vw;
    min-width: 11vw;
    max-width: 11vw;
    box-sizing: border-box;
	color:rgb(255, 255, 255);
  	border-style: groove;
	  background:
    linear-gradient(
      to left,
      #254b98 0%,
      #0d0f14 45%,
      #0b1c49 100%
    );

  border: 0.1vw solid #b11a1a;
  border-radius: 0.3vw;

  outline: 0.1vw solid rgba(255,255,255,0.18);
  outline-offset: -0.01vw;

  box-shadow:
    inset 0 0.12vw 0.3vw rgba(255,255,255,0.5),
    inset 0 0 0.5vw rgba(120,140,180,0.18),
    0 0 0 0.05vw #111,
    0 0.1vw 0.1vw rgba(255,255,255,0.35),
    0 0.1vw 0.1vw rgba(0,0,0,0.9),
    0 0.1vw 0.1vw rgba(170,190,255,0.22);
}

.tabella-fasi {
	display: flex;
	flex-wrap: wrap;
	justify-content: start;
	gap: 0.1vw;
}

/* Immagine di intestazione */
.intestazione {
	width: 100%;
	height: 10vh;
	object-fit: contain;
}

.intestazione_giudici {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 30%;
	height: auto;
	object-fit: contain;
}

.corpo {
	display: flex;
	flex-direction: column;
	flex: 0.88;
}

.corpo-pagina-giudice {
	display: flex;
	flex-direction: column;
}

.sopra {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 0.7;
	align-items: center;
	min-height: max-content;
	max-height: 100%;
}

.cartello {
	display: flex;
	flex-direction: column;
	flex: 0.7;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.sopra_qualifica {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	flex: 0.7;
	align-items: center;
	min-height: 70%;
	max-height: 70%;
}

.container_gruppi {
    display: flex;
    flex-direction: row;      /* Dispone i box in orizzontale */
    flex-wrap: wrap;          /* Permette di andare a capo sulla seconda riga */
    justify-content: center;   /* Centra i box sulla riga se avanzano (es. l'ultima riga da 2) */
    gap: 1.2vw;               /* Spazio uniforme tra i box */
    width: 100%;
    max-width: 95vw;          /* Impedisce al container di toccare i bordi dello schermo */
    margin: 0 auto;           /* Centra l'intero blocco dei gruppi nella pagina */
    padding: 1vh 1vw;
    box-sizing: border-box;
}

.container_gruppi > div {
    /* flex: grow(0) shrink(1) basis(20% meno lo spazio del gap) */
    flex: 0 1 calc(20% - 1.2vw); 
    
    /* Limiti fluidi proporzionati */
    min-width: 14vw;  
    max-width: 18vw;  
    
    box-sizing: border-box;
}
/*
.container_gruppi {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.2vh;
	width: stretch;
	width: -webkit-fill-available;
    width: -moz-available;         
	max-width: 92vw;
	margin: 0 auto;
	padding-left: 2vw;
	padding-right: 2vw;
}*/

.table_gruppi-container_small {
	width: 100%;
	box-sizing: border-box;
}

.table_gruppi-container_small table {
	width: 100%;
	border-collapse: collapse;
}

.table_gruppi-container_small th,
.table_gruppi-container_small td {
	white-space: normal;
	text-align: center;
}

.form_cartello {
	display: flex;
  	justify-content: center; /* centro orizzontale */
  	margin: 0 auto;
}


.table_gruppi-container {
	position: relative;
	overflow: hidden;
	border-radius: 1vh;
	border: 0.25vh solid rgba(255,255,255,0.25);
	box-shadow:
		inset 0 0.15vh 0.3vh rgba(255,255,255,0.35),
		0 0 1vh rgba(0,0,0,0.45);
	color: white;
}

/* riflesso superiore */
.table_gruppi-container::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 38%;
	background: linear-gradient(
		to bottom,
		rgba(255,255,255,0.35),
		rgba(255,255,255,0.08),
		transparent
	);

	pointer-events: none;
	z-index: 1;
}

/* contenuto sopra il riflesso */
.table_gruppi-container table {
	position: relative;
	z-index: 2;
	width: 100%;
	border-collapse: collapse;
}

.table_gruppi-container th {
	position: relative;
	padding-bottom: 1.2vh;
	height: 2.5vh;
	vertical-align: middle;
	padding: 0.5vh;
	font-size: 2.4vh;
	color: white;
	text-shadow:
		0 0 0.4vh rgba(255,255,255,0.8),
		0 0 0.2vh rgba(0,0,0,0.9);
}

.table_gruppi-container th::after {
	content: "";
	position: absolute;
	left: 6%;
	bottom: 0;
	width: 88%;
	height: 0.18vh;
	border-radius: 999px;
	background:
		linear-gradient(
			to bottom,
			rgba(255,255,255,0.95),
			rgba(255,255,255,0.15)
		);
	box-shadow:
		0 0 0.35vh rgba(255,255,255,0.7),
		0 0 0.6vh rgba(255,255,255,0.35);
}

.table_gruppi-container td {
	padding: 0.25vh 0.25vw;
	text-align: center;
	text-shadow:
		0 0 0.25vh rgba(255,255,255,0.35),
		0 0 0.25vh rgba(0,0,0,0.9);
}
.gruppo1 h4, .gruppo1 th,
.gruppo2 h4, .gruppo2 th,
.gruppo3 h4, .gruppo3 th,
.gruppo4 h4, .gruppo4 th,
.gruppo5 h4, .gruppo5 th,
.gruppo6 h4, .gruppo6 th,
.gruppo7 h4, .gruppo7 th,
.gruppo8 h4, .gruppo8 th,
.gruppo9 h4, .gruppo9 th,
.gruppo10 h4, .gruppo10 th {
	color: #ffffff;
	text-shadow: 0 0.15vh 0.3vh rgba(0,0,0,0.9);
}

.gruppo1 .table_gruppi-container,
.gruppo2 .table_gruppi-container,
.gruppo3 .table_gruppi-container,
.gruppo4 .table_gruppi-container,
.gruppo5 .table_gruppi-container,
.gruppo6 .table_gruppi-container,
.gruppo7 .table_gruppi-container,
.gruppo8 .table_gruppi-container,
.gruppo9 .table_gruppi-container,
.gruppo10 .table_gruppi-container {
	font-size: 1.8vh;
	font-weight: 600;
	color: #ffffff;
	text-shadow: 0 0.15vh 0.3vh rgba(0,0,0,0.9);

	box-shadow:
		inset 0 0.15vh 0.3vh rgba(255,255,255,0.18),
		inset 0 -0.2vh 0.4vh rgba(0,0,0,0.8),
		0 0 0.6vh rgba(255,255,255,0.18);
}

/* GRUPPO 1 - Rosso */
.gruppo1 .table_gruppi-container {
	background: linear-gradient(
		to bottom,
		#b71c1c 0%,
		#7f1010 18%,
		#450707 55%,
		#1a0000 100%
	);
}

/* GRUPPO 2 - Ciano */
.gruppo2 .table_gruppi-container {
	background: linear-gradient(
		to bottom,
		#1f6d8a 0%,
		#124f66 18%,
		#0a2f4d 55%,
		#04182b 100%
	);
}

/* GRUPPO 3 - Blu */
.gruppo3 .table_gruppi-container {
	background: linear-gradient(
		to bottom,
		#2456b8 0%,
		#183b85 18%,
		#0c2357 55%,
		#05122e 100%
	);
}

/* GRUPPO 4 - Viola */
.gruppo4 .table_gruppi-container {
	background: linear-gradient(
		to bottom,
		#7b2cbf 0%,
		#5a189a 18%,
		#3c096c 55%,
		#190028 100%
	);
}

/* GRUPPO 5 - Grigio */
.gruppo5 .table_gruppi-container {
	background: linear-gradient(
		to bottom,
		#5a5a5a 0%,
		#3f3f3f 18%,
		#242424 55%,
		#0d0d0d 100%
	);
}

/* GRUPPO 6 - Arancio */
.gruppo6 .table_gruppi-container {
	background: linear-gradient(
		to bottom,
		#c96a12 0%,
		#994d00 18%,
		#663000 55%,
		#2b1400 100%
	);
}

/* GRUPPO 7 - Porpora */
.gruppo7 .table_gruppi-container {
	background: linear-gradient(
		to bottom,
		#8b1e8b 0%,
		#661466 18%,
		#420842 55%,
		#1d001d 100%
	);
}

/* GRUPPO 8 - Oliva */
.gruppo8 .table_gruppi-container {
	background: linear-gradient(
		to bottom,
		#8a8a1f 0%,
		#666614 18%,
		#424208 55%,
		#1d1d00 100%
	);
}

/* GRUPPO 9 - Verde */
.gruppo9 .table_gruppi-container {
	background: linear-gradient(
		to bottom,
		#1f8a3d 0%,
		#14662d 18%,
		#0a421b 55%,
		#031c0b 100%
	);
}

/* GRUPPO 10 - Azzurro */
.gruppo10 .table_gruppi-container {
	background: linear-gradient(
		to bottom,
		#1d7ca3 0%,
		#145c7a 18%,
		#09384d 55%,
		#031b26 100%
	);
}



.gruppo1 .table_gruppi-container_small,
.gruppo2 .table_gruppi-container_small,
.gruppo3 .table_gruppi-container_small,
.gruppo4 .table_gruppi-container_small,
.gruppo5 .table_gruppi-container_small,
.gruppo6 .table_gruppi-container_small,
.gruppo7 .table_gruppi-container_small,
.gruppo8 .table_gruppi-container_small,
.gruppo9 .table_gruppi-container_small,
.gruppo10 .table_gruppi-container_small {
	border: 0.25vh groove #a69b9b;
	border-radius: 1vh;
	margin-bottom: 1vh;
	font-size: 1.5vh;
	color: #ffffff;
	text-shadow: 0 0.12vh 0.25vh rgba(0,0,0,0.9);
	box-shadow:
		inset 0 0.12vh 0.25vh rgba(255,255,255,0.18),
		inset 0 -0.16vh 0.35vh rgba(0,0,0,0.8),
		0 0 0.45vh rgba(255,255,255,0.16);
}

/* GRUPPO 1 - Rosso */
.gruppo1 .table_gruppi-container_small {
	background: linear-gradient(
		to bottom,
		#b71c1c 0%,
		#7f1010 18%,
		#450707 55%,
		#1a0000 100%
	);
}

/* GRUPPO 2 - Ciano */
.gruppo2 .table_gruppi-container_small {
	background: linear-gradient(
		to bottom,
		#1f6d8a 0%,
		#124f66 18%,
		#0a2f4d 55%,
		#04182b 100%
	);
}

/* GRUPPO 3 - Blu */
.gruppo3 .table_gruppi-container_small {
	background: linear-gradient(
		to bottom,
		#2456b8 0%,
		#183b85 18%,
		#0c2357 55%,
		#05122e 100%
	);
}

/* GRUPPO 4 - Viola */
.gruppo4 .table_gruppi-container_small {
	background: linear-gradient(
		to bottom,
		#7b2cbf 0%,
		#5a189a 18%,
		#3c096c 55%,
		#190028 100%
	);
}

/* GRUPPO 5 - Grigio */
.gruppo5 .table_gruppi-container_small {
	background: linear-gradient(
		to bottom,
		#5a5a5a 0%,
		#3f3f3f 18%,
		#242424 55%,
		#0d0d0d 100%
	);
}

/* GRUPPO 6 - Arancio */
.gruppo6 .table_gruppi-container_small {
	background: linear-gradient(
		to bottom,
		#c96a12 0%,
		#994d00 18%,
		#663000 55%,
		#2b1400 100%
	);
}

/* GRUPPO 7 - Porpora */
.gruppo7 .table_gruppi-container_small {
	background: linear-gradient(
		to bottom,
		#8b1e8b 0%,
		#661466 18%,
		#420842 55%,
		#1d001d 100%
	);
}

/* GRUPPO 8 - Oliva */
.gruppo8 .table_gruppi-container_small {
	background: linear-gradient(
		to bottom,
		#8a8a1f 0%,
		#666614 18%,
		#424208 55%,
		#1d1d00 100%
	);
}

/* GRUPPO 9 - Verde */
.gruppo9 .table_gruppi-container_small {
	background: linear-gradient(
		to bottom,
		#1f8a3d 0%,
		#14662d 18%,
		#0a421b 55%,
		#031c0b 100%
	);
}

/* GRUPPO 10 - Azzurro */
.gruppo10 .table_gruppi-container_small {
	background: linear-gradient(
		to bottom,
		#1d7ca3 0%,
		#145c7a 18%,
		#09384d 55%,
		#031b26 100%
	);
}


.table_gruppi-container_small {
	border: 0.25vh;
	border-radius: 1vh;
	border-color: #a69b9b;
	border-style: groove;
	margin-bottom: 1vh;
	font-size: 1.8vh;
}

.table_gruppi-container_small th {
    position: relative;
    padding-bottom: 1.2vh;
    padding: 0.5vh;
    font-size: 1.8vh;
    vertical-align: middle;
}

.table_gruppi-container_small th::after {
    content: "";
    position: absolute;
    left: 6%;
    bottom: 0;
    width: 88%;
    height: 0.18vh;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.95),
        rgba(255,255,255,0.15)
    );
    box-shadow:
        0 0 0.35vh rgba(255,255,255,0.7),
        0 0 0.6vh rgba(255,255,255,0.35);
}

.sotto {
	display: flex; /* Usa Flexbox per centrare il contenuto */
	justify-content: center; /* Centra il contenuto orizzontalmente */
	align-items: center; /* Centra gli elementi */
	flex: 0.3;
	/*border-top-style: solid;*/
	min-height: 29%;
}

.sotto_tabellone {
	display: flex; /* Usa Flexbox per centrare il contenuto */
	justify-content: center; /* Centra il contenuto orizzontalmente */
	align-items: center; /* Centra il contenuto verticalmente */
	flex: 0.1;
}

/* Stile per la tabella delle fasi */
.table-wrapper table {
	width: 100%;
	table-layout: auto;
}

/* Stili per le celle della tabella */
.table-wrapper td {
	
}

/* Stili per le righe della tabella */
.table-wrapper tr {
	width: 100%;
}

/* Assicura il wrapping delle righe */
.table-wrapper {
	display: flex;
	/*flex-wrap: wrap;*/
}

.arrow-cell {
	background-image: url("./Img/freccia.png");
	background-size: 63% 48%;
	background-repeat: no-repeat;
	background-position: center;
	min-width: 5vh;
}

/* Resto dei tuoi stili... */

/* Navigazione */
.topnav {
	overflow: hidden;
	/*background-image: linear-gradient(to right, #030A05, #AB0210);*/
	position: relative;
	flex: 1;
	background: rgba(0, 0, 0, 0.25); /* nero traslucido */
  backdrop-filter: blur(0.3vh);      /* effetto satinato */
  -webkit-backdrop-filter: blur(0.3vh); /* compatibilità Safari */
  box-shadow:
    inset 0 0.3vh 0.6vh rgba(255,255,255,0.15),
    0 0.6vh 1.2vh rgba(0,0,0,0.6);
}
.topnav::before,
.topnav::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 0.1vh; /* spessore bordo */
}

.topnav::before {
    top: 0;
    background: linear-gradient(to right, #072af8 70%, #AB0210);
	filter: drop-shadow(0 0 0.6vh currentColor);

}

.topnav::after {
    bottom: 0;
    background: linear-gradient(to right, #072af8 70%, #AB0210);
    filter: drop-shadow(0 0 0.6vh currentColor);
}

.topnav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.topnav ul li {
	display: inline-block;
	margin-left: 3vw;
}

.topnav ul li a {
	font-family: 'Abril Fatface', serif;
	font-weight: 600;
	text-decoration: none;
	color: rgb(49 216 51);
    -webkit-text-stroke: 0.01vw #000000;
    text-shadow: 0 0.3vw 0.6vw rgba(0,0,0,0.8);
	position: relative;
}

.topnav ul li a::after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	bottom: -5px;
	width: 0%;
	height: 2px;
	background-color: rgb(255, 255, 255);
	transition: width 300ms;
}

.topnav ul li a:hover::after {
	width: 100%;
}

/*rgb(255, 255, 255)*/
/* Titoli */
h2, h3, h1 {
	text-align: center;
	color: rgb(255, 255, 255);
}

h3.medio {
	font-size: 3vh;
	margin-bottom: 1vh;
	margin-top: 1vh;
}

h3.grande {
	font-size: 5vh;
	margin-bottom: 1vh;
	margin-top: 1vh;
	-webkit-text-stroke: 0.05vw #000000;
	text-shadow: 0 0.3vw 0.6vw rgba(0,0,0,0.8);
}

.racing-tech {
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  font-size: 5vw;
  padding: 2vw 5vw;
  border-radius: 1vw;
  text-align: center;
  margin: 2vw auto;
  max-width: 90vw;
  width: fit-content;
  transform: skewX(-11deg);
  position: relative;

  color: #f5ffd8;
  -webkit-text-stroke: 0.05vw #000000;
  background: linear-gradient(180deg, #2c2c3336, #08090c);
  overflow: visible;

  box-shadow:
    inset 0 0 1vw rgba(255,255,255,0.18),
    inset 0 0 2vw rgba(0,0,0,0.8),
    0 0 1.5vw rgba(0,0,0,0.9);
}

.racing-tech::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.18vw;

  background: linear-gradient(
    90deg,
    #4267ff 68%,
    rgb(255, 255, 255) 78%,
    rgb(213, 21, 0) 80%
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  box-shadow:
    0 0 0.7vw #4267ff,
    0 0 1.2vw rgb(219, 0, 16),
    inset 0 0 0.7vw rgba(255,255,255,0.9);

  pointer-events: none;
}

.racing-tech::after {
  content: "";
  position: absolute;
  inset: -0.6vw;
  border-radius: inherit;
  background:
    radial-gradient(circle at left bottom, rgba(60,90,255,0.9), transparent 4%),
    radial-gradient(circle at right top, rgba(255,55,35,0.9), transparent 4%);
  filter: blur(0.8vw);
  z-index: -1;
}

.racing-tech strong {
	display: inline-block;
	font-size: 6vw;
	color: rgb(255, 255, 255);
	text-shadow: 0 0 0px rgb(255, 255, 255), 0.1vw 0px 0px rgb(255, 255, 255), -0.1vw 0.1vw 0px
		#25305a, -0.2vw 0.4vw 0px #000000;
	transform: translateZ(0.3vw);
	font-weight: 900;
	letter-spacing: 0.1vw;
}

.racing-tech strong.name-medium {
  font-size: 5.3vw;
}

.racing-tech strong.name-long {
  font-size: 4.8vw;
}

.racing-tech strong.name-extra-long {
  font-size: 4.2vw;
}

.racing-subtext {
	display: block;
	margin-top: 2vw;
	font-size: 4.4vw;
	color: rgb(255, 255, 255);
	text-shadow: 0.1vw 0.1vw 0.1vw #000000;
	transform: translateZ(0.1vw);
}
.best_result{
    font-size: 4vw;
    font-weight: 600;
    -webkit-text-stroke: 0.05vw #000000;
       color: rgb(255, 255, 255);
       text-shadow: 0.1vw 0.1vw 0.1vw #000000;
       transform: translateZ(0.1vw);
   }
   
.best_result_previous{
    font-size: 2.8vw;
    -webkit-text-stroke: 0.05vw #000000;
       color: rgb(255, 255, 255);
       text-shadow: 0.1vw 0.1vw 0.1vw #000000;
       transform: translateZ(0.1vw);
   }
   
.pilota_sfidante {
	font-family: 'Orbitron', sans-serif;
	font-size: 3.5vw;
	font-weight: bold;
	-webkit-text-stroke: 0.05vw #000000;
	text-shadow: 0 0 0px rgb(255, 255, 255), 0.1vw 0px 0px rgb(255, 255, 255), -0.05vw 0.05vw 0px
			rgb(0, 0, 0), -0.2vw 0.4vw 0px #000000;
	color: rgb(255, 255, 255);
	text-align: center;
	margin: 0.5vw;
}

.pilota_sfidante_ongoing {
	font-family: 'Orbitron', sans-serif;
	font-size: 3.5vw;
	font-weight: bold;
	-webkit-text-stroke: 0.05vw #000000;
	text-shadow: 0 0 0px rgb(255, 255, 255), 0.1vw 0px 0px rgb(255, 255, 255), -0.05vw 0.05vw 0px
			rgb(0, 0, 0), -0.2vw 0.4vw 0px #000000;
	color: rgb(255, 255, 255);
	text-align: center;
	margin: 0.1vw;
}

.qualifying-message {
	font-size: 6vw;
	color: rgb(255, 255, 255);
	border-radius: 1vw;
	box-shadow: 0 0.5vw 1vw rgba(0, 0, 0, 0.6);
	-webkit-text-stroke: 0.05vw #000000;
	text-align: center;
	margin: 4vw auto;
	max-width: 90vw;
	position: relative;
	overflow: hidden;
}

.qualifying-message::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.18vw;

  background-color: rgb(0, 0, 0);

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  box-shadow: inset 0 0 0.7vw rgba(255,255,255,0.9);

  pointer-events: none;
}


.qualifying-message span {
	position: relative;
	z-index: 1;
	display: block;
	text-shadow: 0.1vw 0.1vw 0.1vw #000;
	letter-spacing: 0.05em;
}

.table_driver_stand_container {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%; /* Si adatta alla dimensione del contenitore */
}

.piloti-container {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 70vh; /* Occupa tutta l'altezza della viewport */
	width: 100vw; /* Occupa tutta la larghezza della viewport */
	overflow: hidden;
	/* Nasconde eventuali elementi fuori dalla viewport */
}

.annuncio {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 60vh; /* Occupa tutta l'altezza della viewport */
	width: 100vw; /* Occupa tutta la larghezza della viewport */
}
.annuncio_con_classifica {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh; /* Occupa tutta l'altezza della viewport */
    width: 100vw; /* Occupa tutta la larghezza della viewport */
}
.singolo_pilota {
	display: flex;
	flex-wrap: wrap; /* Gli elementi vanno a capo automaticamente */
	justify-content: center; /* Allinea gli elementi orizzontalmente */
	gap: 3vh; /* Spazio tra gli elementi */
	list-style: none; /* Rimuove i bullet delle liste */
	padding: 0;
	margin: 0;
	width: 95%; /* Margine dal bordo */
}

.singolo_pilota li {
	flex: 1 1 calc(50%);
	/* Ogni elemento occupa il 25% dello spazio disponibile */
	text-align: center;
	background-color: #f0f0f0;
	border: 0.25vh solid #ccc;
	border-radius: 1vh;
	padding: 2vh;
	box-sizing: border-box;
	font-size: 4vh; /* Adatta il font */
}

.piloti-timer {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 53vh; /* Occupa tutta l'altezza della viewport */
	padding-right: 15vw;
}

.lista-piloti {
	display: flex;
	flex-wrap: wrap; /* Gli elementi vanno a capo automaticamente */
	justify-content: center; /* Allinea gli elementi orizzontalmente */
	gap: 1vw; /* Spazio tra gli elementi */
	list-style: none; /* Rimuove i bullet delle liste */
	padding: 0;
	margin: 0;
	width: 95%; /* Margine dal bordo */
}

.lista-piloti li {
	flex: 0 0 calc(32%); /* 4 box per riga con gap compensato */
	width: calc(25%); /* larghezza fissa */
	height: 10vh; /* altezza fissa per uniformità */
	text-align: center;
	color: rgb(255, 255, 255);
  	background: linear-gradient(180deg, #2c2c3336, #08090c);
  	backdrop-filter: blur(0.1vh);
	border: 0.15vw solid rgb(192, 192, 192);
	border-radius: 1vw;	
	box-sizing: border-box;
	font-size: 1.8vw;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lista-piloti_next_round {
	display: flex;
	flex-wrap: wrap; /* Gli elementi vanno a capo automaticamente */
	justify-content: center; /* Allinea gli elementi orizzontalmente */
	gap: 0.1vw; /* Spazio tra gli elementi */
	list-style: none; /* Rimuove i bullet delle liste */
	padding: 0;
	margin: 0;
	width: 100%; /* Margine dal bordo */
}

.lista-piloti_next_round li {

    position: relative;
    overflow: hidden;
    flex: 1 1 calc(5%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1vh 0.1vw;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    font-size: 0.8vw;
    background:
        linear-gradient(
            to bottom,
            rgba(45,45,55,0.95) 0%,
            rgba(15,15,18,0.98) 45%,
            rgba(5,5,8,1) 100%
        );
    border: 0.15vh solid rgba(255,255,255,0.55);
    border-radius: 1vh;
    box-sizing: border-box;
    text-shadow:
        0 0.15vh 0.25vh rgba(0,0,0,0.95),
        0 0 0.25vh rgba(255,255,255,0.22);
    box-shadow:
        /* glow esterno */
        0 0 0.8vh rgba(255,255,255,0.22),
        /* glow interno */
        inset 0 0.15vh 0.35vh rgba(255,255,255,0.28),
        inset 0 -0.2vh 0.35vh rgba(0,0,0,0.92),
        /* profondità */
        0 0.3vh 0.6vh rgba(0,0,0,0.65);
}

.lista-piloti_next_round li::before {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 45%;
    height: 220%;
    transform: rotate(25deg);
    background:
        linear-gradient(
            to right,
            rgba(255,255,255,0.22),
            rgba(255,255,255,0.05),
            transparent
        );
    pointer-events: none;
}

.lista-piloti_next_round li:nth-child(odd) {
    border-color: rgba(120,160,255,0.95);
    box-shadow:
        0 0 0.4vw rgba(70,120,255,0.75),
        0 0 0.4vw rgba(70,120,255,0.35),
        inset 0 0.15vw 0.2vw rgba(180,210,255,0.35),
        inset 0 -0.2vw 0.2vw rgba(0,0,0,0.92),
        0 0.3vw 0.6vw rgba(0,0,0,0.65);
}

.lista-piloti_next_round li:nth-child(even) {
    border-color: rgba(255,90,90,0.95);
    box-shadow:
        0 0 0.4vw rgba(255,70,70,0.75),
        0 0 0.4vw rgba(255,70,70,0.35),
        inset 0 0.15vw 0.2vw rgba(255,180,180,0.28),
        inset 0 -0.2vw 0.2vw rgba(0,0,0,0.92),
        0 0.3vw 0.6vw rgba(0,0,0,0.65);
}

.lista-piloti_next_round_battles {
	display: flex;
	flex-wrap: wrap; /* Gli elementi vanno a capo automaticamente */
	justify-content: center; /* Allinea gli elementi orizzontalmente */
	gap: 0.11vw; /* Spazio tra gli elementi */
	list-style: none; /* Rimuove i bullet delle liste */
	padding: 0;
	margin: 0;
	width: 100%; /* Margine dal bordo */
}

.lista-piloti_next_round_battles li {
	display: flex; /* aggiungi questa riga */
	flex-direction: column; /* opzionale, utile se vuoi testo su più righe */
    align-items: center; /* centra orizzontalmente */
    justify-content: center; /* centra verticalmente */
	flex: 0 0 calc(100%/ 6 - 0.11vw);
	height: 6vh; /* altezza fissa per uniformità */
	text-align: center;
	font-size: clamp(0.5vw, 0.7vw, 1.2vw);
	position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    background:
        linear-gradient(
            to bottom,
            rgba(45,45,55,0.95) 0%,
            rgba(15,15,18,0.98) 45%,
            rgba(5,5,8,1) 100%
        );
    border: 0.15vh solid rgba(255,255,255,0.55);
    border-radius: 1vh;
    box-sizing: border-box;
    text-shadow:
        0 0.15vh 0.25vh rgba(0,0,0,0.95),
        0 0 0.25vh rgba(255,255,255,0.22);
    box-shadow:
        /* glow esterno */
        0 0 0.8vh rgba(255,255,255,0.22),
        /* glow interno */
        inset 0 0.15vh 0.35vh rgba(255,255,255,0.28),
        inset 0 -0.2vh 0.35vh rgba(0,0,0,0.92),
        /* profondità */
        0 0.3vh 0.6vh rgba(0,0,0,0.65);
}
.lista-piloti_next_round_battles li::before {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 45%;
    height: 220%;
    transform: rotate(25deg);
    background:
        linear-gradient(
            to right,
            rgba(255,255,255,0.22),
            rgba(255,255,255,0.05),
            transparent
        );
    pointer-events: none;
}


.lista-piloti_next_round_battles li:nth-child(odd) {
    border-color: rgba(120,160,255,0.95);
    box-shadow:
        0 0 0.4vw rgba(70,120,255,0.75),
        0 0 0.4vw rgba(70,120,255,0.35),
        inset 0 0.15vw 0.2vw rgba(180,210,255,0.35),
        inset 0 -0.2vw 0.2vw rgba(0,0,0,0.92),
        0 0.3vw 0.6vw rgba(0,0,0,0.65);
}

.lista-piloti_next_round_battles li:nth-child(even) {
    border-color: rgba(255,90,90,0.95);
    box-shadow:
        0 0 0.4vw rgba(255,70,70,0.75),
        0 0 0.4vw rgba(255,70,70,0.35),
        inset 0 0.15vw 0.2vw rgba(255,180,180,0.28),
        inset 0 -0.2vw 0.2vw rgba(0,0,0,0.92),
        0 0.3vw 0.6vw rgba(0,0,0,0.65);
}

.timer_container {
	display: flex;
	text-align: center;
	font-size: 17vw;
	margin: 6vh;
	color: rgb(255, 255, 255);
	-webkit-text-stroke: 0.05vw #000000;
	font-weight: 600;
	text-shadow: 0 0.3vw 0.6vw rgba(0,0,0,0.8);
	min-width: 4ch; /* blocca la larghezza minima a 4 caratteri (MM:SS) */
    justify-content: center;
     width: 55vw;
    min-width: 55vw;
    max-width: 55vw;
    text-align: center;
    flex-shrink: 0; 
}

.timer-danger {
    color: rgb(193, 0, 0);
    -webkit-text-stroke: 0.05vw #000000;
    text-shadow: 0 0.3vw 0.6vw rgba(193, 0, 0, 0.8);
}


.next_step {
	text-align: center;
	vertical-align: middle;
}

.next_step_singolo {
	text-align: center;
	vertical-align: middle;
}

.lista_orizzontale {
	list-style-type: square;
	display: flex;
	flex-wrap: wrap; /* Permette agli elementi di andare a capo */
	gap: 3vw; /* Spazio tra gli elementi */
}

.rank_container {
	display: flex;
	justify-content: space-evenly;
	align-items: flex-start;
	width: 100%;
	margin: 0.5vh 3vw 0 3vw;
}

.table-classifica {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5vh;
	height: fit-content;
	font-size: 1.8vh;

	color: #ffffff;
	background:
		linear-gradient(
			to bottom,
			#2b2f38 0%,
			#11141b 35%,
			#05070b 70%,
			#141824 100%
		);

	border: 0.22vh solid #7f8794;
	border-radius: 1vh;
	border-collapse: collapse;
	overflow: hidden;

	box-shadow:
		inset 0 0.15vh 0.35vh rgba(255,255,255,0.35),
		inset 0 -0.25vh 0.6vh rgba(0,0,0,0.95),
		inset 0 0 1.2vh rgba(120,150,255,0.16),
		0 0 0 0.12vh #111,
		0 0.35vh 0.9vh rgba(0,0,0,0.85),
		0 0 1.1vh rgba(120,150,255,0.22);
}

.table-classifica tr {
	position: relative;
	background:
		linear-gradient(
			to right,
			rgba(255,255,255,0.08),
			rgba(255,255,255,0.02),
			rgba(0,0,0,0.18)
		);

	box-shadow:
		inset 0 -0.1vh 0 rgba(255,255,255,0.08),
		0 0.15vh 0.25vh rgba(0,0,0,0.45);
}

.table-classifica tr:nth-child(even) {
	background:
		linear-gradient(
			to right,
			rgba(80,120,255,0.12),
			rgba(255,255,255,0.03),
			rgba(0,0,0,0.22)
		);
}

.table-classifica td,
.table-classifica th {
	color: #ffffff;
	text-shadow: 0 0.15vh 0.3vh rgba(0,0,0,0.9);
	white-space: nowrap;
}

.table-classifica th {
	font-weight: 600;
	background:
		linear-gradient(
			to bottom,
			rgba(255,255,255,0.22),
			rgba(255,255,255,0.05)
		);

	box-shadow:
		inset 0 -0.15vh 0 rgba(255,255,255,0.18);
}
.table-classifica tr.non-qualificato td {
    color: #ff1b2d;
    text-shadow: 0 0 0.4vh #000;
}

.table-classifica tr:hover {
	background:
		linear-gradient(
			to right,
			rgba(255,255,255,0.18),
			rgba(120,150,255,0.16),
			rgba(0,0,0,0.2)
		);

	box-shadow:
		inset 0 0 0.5vh rgba(255,255,255,0.22),
		0 0 0.7vh rgba(120,150,255,0.45);
}



.posizione {
	text-align: center;
}

.driver {
	text-align: center;
}
.driver-ripescato {
	color: #ffffff !important;
	text-align: center;
}

.score {
	text-align: right;
}

.button-container {
	text-align: center;
	justify-content: center;
	align-items: center;
}

.button-menu {
	display: block;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 1vh;
	cursor: pointer;
}

.tabellone_schermo_intero {
	flex: 1;
	width: 100%;
	max-height: 100%; /* Assicura che non superi l'altezza disponibile */
	border-collapse: collapse;
	margin: auto; /* Centra il tabellone orizzontalmente */
	table-layout: fixed; /* Le celle avranno dimensioni uniformi */
}

.tabellone_schermo_intero th, .tabellone_schermo_intero td {
	font-size: calc(65.5vh/ ( var(--numero-righe)*2));
	line-height: 1;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
}

.intestazione-finale {
	font-size: 1.8vw;
	color: rgb(255, 255, 255);
}


/* .tabellone {
	flex: 1;
	width: 100%;
	max-height: 100%; Assicura che non superi l'altezza disponibile
	border-collapse: collapse;
	table-layout: fixed; Le celle avranno dimensioni uniformi
}

.tabellone th, .tabellone td {
	font-size: calc(65.5vh/ ( var(--numero-righe)*2));
	line-height: 1;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
} */
.tabellone {
    width: 100%;
    height: 68.5vh;
    max-height: 68.5vh;
    border-collapse: collapse;
    table-layout: fixed;
}

.tabellone tr {
    height: calc(65.5vh / var(--numero-righe));
}

.tabellone th,
.tabellone td {
    height: calc(65.5vh / var(--numero-righe));
    padding: 0;
    line-height: 1;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}
.tabellone td {
	padding: 0 0.1vw;
	border-radius: 0.35vw;
}

.tabellone .sfidante1,
.tabellone .sfidante2,
.tabellone .finalista1,
.tabellone .finalista2 {
    height: 50%;
    line-height: calc((65.5vh / var(--numero-righe)) / 1.725);
    font-size: calc((65.5vh / var(--numero-righe)) / 1.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    
}
.sfidante1,
.sfidante2,
.finalista1,
.finalista2 {
    display: flex;
    justify-content: center;   /* centra orizzontalmente */
    align-items: center;       /* centra verticalmente */
    text-align: center;        /* sicurezza per eventuali multilinea */
}

.next_step_sotto_tabellone h3.medio { 
    margin-top: 0;
    margin-bottom: 0;
}



.spaziatura {
	min-height: calc(65.5vh/ ( var(--numero-righe)*2));
	line-height: 1;
	text-align: center;
	overflow: hidden;
}

.battles {
	display: flex;
	flex-direction: row;
	/*align-items: center;*/
	width: 100vw;
	min-height: 100%;
}

.destra {
	width: 35vw;
}

.destra_centrata {
	display: flex;
	flex-direction: column;
	width: 40vw;
	height: 100%;
	justify-content: center;
	align-items: center;
}

.next_step_singolo_battles_centrato {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 40vw;
	width: 100%;
	height: 100%;
}

.next_step_lista_battles {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-left: 1vw;
	margin-right: 1vw;
}
.next_step_lista_battles h3.medio {
    margin-top: 0.1vh;
    margin-bottom: 0.1vh;
    font-size: 2.5vh;
}

.Play-in-end {
    margin-top: 6vh;
    color: #636288;
    font-size: 4vw;
	font-weight: 900;
    -webkit-text-stroke: 0.02vw #000000;
    text-transform: uppercase;
    letter-spacing: 0.15vw;
	text-shadow: 0 0.15vw 0.25vw rgb(135 30 26 / 21%), 0 0 0.2vw rgb(51 51 51 / 46%), -0.12vw -0.12vw 0 rgb(89 81 81 / 45%), 0 -0.05vw 0 rgb(45 41 41), 0.15vw 0.15vw 0 rgba(0, 0, 0, 0.95), 0 0.35vw 0.45vw rgb(0 0 0 / 84%);
}

.destra_spezzata {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 40vw;
	height: 100%;
}

.destra_sopra {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: auto;
}

.destra_sotto {
	display: flex;
	flex: 1;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	margin: auto;
}

.sinistra {
	display: flex;
	width: 65vw;
	height: 100%;
	justify-content: center;
}

.fase_battles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1vw;
    width: 100%;
    margin: 0;
    padding: 0.35vh 0 0.8vh;
    position: relative;
    font-size: 3vw;
    font-style: italic;
    font-weight: 900;
    -webkit-text-stroke: 0.02vw #000000;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(255, 255, 255);
}


.fase_battles::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 52%;
    height: 0.16vh;

    background: linear-gradient(
        90deg,
        transparent 0%,
        #315dff 18%,
        #ffffff 50%,
        #d83428 82%,
        transparent 100%
    );

    box-shadow:
        0 0 0.4vw rgba(49,93,255,0.9),
        0 0 0.4vw rgba(216,52,40,0.9);
}

/* linea luminosa sotto */
.fase_battles::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 60%;
    height: 0.18vh;

    background:
        linear-gradient(
            90deg,
            #2f6fff 0%,
            #ffffff 50%,
            #d61f1f 100%
        );

    box-shadow:
        0 0 0.5vw #2f6fff,
        0 0 0.5vw #d61f1f;
}

.titolo_ongoing {
    font-size: 3vw;
    font-style: italic;
    text-align: center;
    color: #871e1a;
    margin: 0vh;
    letter-spacing: 0.15vw;
    text-shadow: 0 0.15vw 0.25vw rgb(135 30 26 / 21%), 0 0 0.2vw rgb(226 33 26 / 46%), -0.12vw -0.12vw 0 rgb(243 125 125 / 45%), 0 -0.05vw 0 rgb(245 0 0), 0.15vw 0.15vw 0 rgba(0, 0, 0, 0.95), 0 0.35vw 0.45vw rgb(0 0 0 / 84%);
}


.finals_title {
	font-size: 3.3vw;
	font-style: italic;
	text-align: center;
	color: #871e1a;
	margin: 0vh;
	letter-spacing: 0.15vw;
	text-shadow: 0 0.15vw 0.25vw rgb(135 30 26 / 21%), 0 0 0.2vw rgb(226 33 26 / 46%), -0.12vw -0.12vw 0 rgb(243 125 125 / 45%), 0 -0.05vw 0 rgb(245 0 0), 0.15vw 0.15vw 0 rgba(0, 0, 0, 0.95), 0 0.35vw 0.45vw rgb(0 0 0 / 84%);
}

.titolo_next_battle {
	font-size: 2.8vw;
	font-style: italic;
	text-align: center;
	color: #636288;
}

.battle_in_corso {
	font-size: 4.5vh;
	text-align: center;
	color: #AB0210;
}

.next_step_singolo_battles {
	font-size: 4vh;
	text-align: center;
	color: rgb(255, 255, 255);
	margin: 0vh;
}

.next_step_singolo_battles_centrato {
	font-size: 4vh;
	text-align: center;
	color: rgb(255, 255, 255);
	margin: 0vh;
}

/* .vs-image {
	width: 22vw; 
	height: auto; 
	display: block;
	margin: 0 auto;
} */

.vs-image {
  width: 22vw;
  height: auto;
  display: block;
  margin: 0 auto;
  filter:
    drop-shadow(0 0 0.05vw #00ff55)
    drop-shadow(0 0 0.5vw rgba(0,255,85,0.6));
    
 
}

@keyframes pulseGlow {
  from {
    filter:
      drop-shadow(0 0 0.3vw #00ff55)
      drop-shadow(0 0 0.6vw rgba(0,255,85,0.4));
  }
  to {
    filter:
      drop-shadow(0 0 0.5vw #00ff55)
      drop-shadow(0 0 1vw rgba(0,255,85,0.7));
  }
}


.presentazione_finale {
	display: flex;
	flex-direction: row;
	background-image: url("Img/vs_verde.png");
	background-repeat: no-repeat;
	background-position: center;
	background-position-x: 46%;
	background-size: 70%;
	font-size: 4.5vh;
	text-align: center;
	color: rgb(255, 255, 255);
	width: 100%;
	height: 35vh;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	filter:
    drop-shadow(0 0 0.05vw #00ff55)
    drop-shadow(0 0 0.5vw rgba(0,255,85,0.6));
}

.vs-image_finals {
	width: 66vw; /* o 80px, 60px... scegli tu */
	height: auto; /* mantiene le proporzioni */
	display: block;
	margin: 0 auto; /* centra l'immagine */
	

}

.finalista_sfidante_1 {
	font-family: 'Orbitron', sans-serif;
	font-size: 3.5vw;
	font-weight: bold;
	text-shadow: 0 0 0px rgb(255, 255, 255), 0.1vw 0px 0px rgb(255, 255, 255), -0.1vw 0.1vw 0px
		rgb(0, 0, 0), -0.15vw 0.3vw 0px #000000;
	color: rgb(255, 255, 255);
	text-align: right;
	width: 40vw;
}

.blocco_separatore_vuoto {
	width: 18vw;
}

.finalista_sfidante_2 {
	font-family: 'Orbitron', sans-serif;
	font-size: 3.5vw;
	font-weight: bold;
	text-shadow: 0 0 0px rgb(255, 255, 255), 0.1vw 0px 0px rgb(255, 255, 255), -0.1vw 0.1vw 0px
		rgb(0, 0, 0), -0.15vw 0.3vw 0px #000000;
	color: rgb(255, 255, 255);
	text-align: left;
	width: 40vw;
}

.presentazione_finale_ongoing {
	display: flex;
	flex-direction: row;
	background-image: url("Img/vs_verde.png");
	background-repeat: no-repeat;
	background-position: center;
	background-position-x: 46%;
	background-size: 70%;
	margin-bottom: 10vh;
	font-size: 4.5vh;
	text-align: center;
	color: rgb(255, 255, 255);
	width: 100%;
	height: 35vh;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
}

.vs-image_finals_ongoing {
	width: 22vw; /* o 80px, 60px... scegli tu */
	height: auto; /* mantiene le proporzioni */
	display: block;
	margin: 0 auto; /* centra l'immagine */
}

.tabellone_wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
}

.tabellone_parziale {
	height: auto; /* Non occupa 100% verticalmente */
	margin: auto; /* Centra il tabellone orizzontalmente */
	border-collapse: collapse;
	table-layout: fixed;
	width: 60vw; /* Larghezza fissa per il tabellone parziale */
	max-height: 100%; /* Assicura che non superi l'altezza disponibile */
}

.tabellone_parziale th, .tabellone_parziale td {
	height: 100%; /* Altezza proporzionale */
	text-align: center;
	text-overflow: ellipsis;
	/* Visualizza "..." per il testo troppo lungo */
	white-space: nowrap; /* Mantiene tutto il testo su una singola linea */
	font-size: clamp(1vh, 3vh, calc(72vh/ ( var(--numero-righe)*2)));
	border-radius: 0.5vw;
	line-height: 1;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.titolo-finale-tabellone {
	font-size: clamp(1vh, 3vh, calc(72vh/ ( var(--numero-righe)*2)));
	font-weight: 700;
    margin-bottom: 0vh;
    margin-top: 0vh;
    color: rgb(255, 255, 255);
    text-align: center;
    }

.sfidante1,
.finalista1 {
	position: relative;
    border-radius: 0.5vw 0.5vw 0 0;
    color: #ffffff;
    font-weight: 600;
    box-shadow:
        0 0 1vw rgb(255, 255, 255);
	background-color: rgba(0,0,0); 
}

.sfidante1::before,.finalista1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2%;
  width: 96%;
  height: 0.02vw;
  background: linear-gradient(to right, #072af8 , rgb(255, 255, 255,0.5)); /* glow superiore */
}

.sfidante1::after,
.finalista1::after {
  content: "";
  position: absolute;
  bottom: 0; /* posizione centrale tra i due box */
  left: 10%;
  width: 80%;
  height: 0.08vw;
  background: linear-gradient(to right, #AB0210 30%, #072af8 70% );
}

.sfidante2,
.finalista2 {
	position: relative;
	border-radius: 0 0 0.5vw 0.5vw;
    color: #ffffff;
    font-weight: 600;
	background-color: rgba(0,0,0);
	box-shadow: 0 0.01vw 0.045vw rgb(255, 255, 255);
}

.sfidante2::after,.finalista2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2%;
  width: 96%;
  height: 0.04vw;
  background: linear-gradient(to right,  rgb(255, 255, 255,0.5), #AB0210);
}

.vuoto {
	
}

.finale {
	margin-bottom: 10%;
}

.podio {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 4vh;
	height: 66vh;
}

.posto {
	width: 20vw;
	text-align: center;
	padding: 3vw;
	background-color: gold;
	border-radius: 2vh 2vh 0 0;
	font-weight: bold;
	box-shadow: 0vw 0.5vw 0.7vw rgba(0, 0, 0.4, 0.4)
	
}
.posto {
    box-shadow:
        inset 0 0.5vh 1vh rgba(255, 255, 255, 0.3), /* luce interna */
        0 1vh 2vh rgba(0, 0, 0, 0.3); /* ombra esterna */
}


/* Contenitore per ogni podio */
.container_posto {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}
.container_posto {
    transform: perspective(1000px) rotateX(5deg);
}

.posto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    border-radius: 2vh 2vh 0 0;
    pointer-events: none;
}


/* Nome del pilota sopra il podio */
.nome_pilota {
	font-size: 2vw; /* Aumenta la grandezza del nome */
	font-weight: bold;
	position: absolute;
	top: -5vh; /* Sposta il nome sopra il podio */
	color: rgb(255, 255, 255);
	opacity: 0; /* Partono invisibili */
	animation: fadeInName 2s ease-in-out forwards;
}

.primo {
	height: 30vh;
	background: linear-gradient(to bottom, gold, #ffcc00);
	font-size: 3vh;
	margin-top: 2vh;
	color: crimson;
}

.secondo {
	height: 20vh;
	background: linear-gradient(to bottom, silver, #b3b3b3);
	font-size: 3vh;
	margin-top: 2vh;
	color: rgb(128, 0, 255);
}

.terzo {
	height: 15vh;
	background: linear-gradient(to bottom, #cd7f32, #8b5a2b);
	font-size: 3vh;
	margin-top: 2vh;
	color: burlywood;
}

.podio .posto {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {from { opacity:0;
	transform: translateY(20px);
}

to {
	opacity: 1;
	transform: translateY(0);
}

}

/* Ritardi per la comparsa */
.terzo_posto .nome_pilota {
	animation-delay: 2s; /* Il terzo appare subito */
}

.secondo_posto .nome_pilota {
	animation-delay: 4s; /* Il secondo dopo 1.5 secondi */
}

.primo_posto .nome_pilota {
	animation-delay: 6s; /* Il primo dopo 3 secondi */
}

/* Animazione fade-in */
@keyframes fadeInName {from { opacity:0;
	
}

to {
	opacity: 1;
}

}
.riga-rossa {
	height: 1.5vh;
	width: 92%;
	background: rgb(153, 3, 15);
	border-radius: 5vh;
	margin-top: 1vh;
	animation: fadeIn 1s ease-in-out forwards;
	margin: 2vw auto 0;
}

.modern-podium{
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2vw;
    height: 65vh;
    padding: 3vh 4vw;
}

.podium-card{
    position: relative;
    width: 20vw;
    border-radius: 1.5vw;
    padding: 2vh 2vw;
    backdrop-filter: blur(12px);
 	position: relative;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
    align-items: center;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.16),
        rgba(255,255,255,0.05)
    );

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        0 0 2vw rgba(0,0,0,0.45),
        inset 0 0 1vw rgba(255,255,255,0.08);

    overflow: hidden;
    color: #f2f2f2;
}

.first{
    height: 38vh;
    border-color: rgba(255,215,0,.45);
    box-shadow:
        0 0 2vw rgba(255,215,0,.18),
        inset 0 0 1vw rgba(255,215,0,.08);
    animation: pulseGlow 2s infinite alternate;
}

.second{
    height: 30vh;
    border-color: rgba(200,200,220,.35);
}

.third{
    height: 26vh;
    border-color: rgba(205,127,50,.35);
}

.rank-bg{
	font-size: 0.9vw;
    opacity: .55;
    letter-spacing: .1em;
}

.medal{
    font-size: 1.9vw;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 7vh;
    text-shadow: 0 0 8px rgba(255,255,255,.35);
}

.driver-name{
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255,255,255,.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 21%;
    margin-top: 2vh;
}

.numero{
    font-size: 1.8vw;
    font-weight: 900;
    opacity: .92;
    text-shadow: 0 0 4px rgba(255,255,255,.35);
}

.nome{
    font-size: 2.6vw;
    font-weight: 800;
    line-height: 1.1;
}

.modern-podium::after{
    content: "";
    position: absolute;
    bottom: 2vh;
    width: 80%;
    height: 0.3vh;

    background: linear-gradient(
        90deg,
        #315dff,
        #ffffff,
        #d83428
    );

    box-shadow:
        0 0 12px #315dff,
        0 0 12px #d83428;
}

@keyframes pulseGlow{
    0%{
        box-shadow:
            0 0 1vw rgba(255,215,0,.15),
            inset 0 0 1vw rgba(255,215,0,.08);
    }
    100%{
        box-shadow:
            0 0 2vw rgba(255,215,0,.35),
            inset 0 0 1vw rgba(255,215,0,.08);
    }
}

.classifica {
	overflow-x: auto;
	width: 90%;
	border-collapse: collapse;
	border: solid;
	border-color: black;
	margin-left: 5%;
}

.th_style {
	text-align: center;
	vertical-align: middle;
	border: solid;
	border-color: black;
}

.td_style_black {
	text-align: center;
	vertical-align: middle;
	color: #030A05;
	border: solid;
	border-color: black;
}

.td_azione {
	text-align: center;
	vertical-align: middle;
	color: #030A05;
	border: solid;
	border-color: black;
}

.lista_tornei_td_azione {
	text-align: center;
	vertical-align: middle;
}

.lista_tornei_contenitore_bottoni {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 3vw;
	justify-content: center;
	align-items: center;
}

.spazio-tra-tornei td {
	border: none !important;
	background-color: transparent;
	padding: 0;
}

.bottone_amministrazione {
	width: 100%;
	box-sizing: border-box;
}

.form_bottoni_lista_tornei {
	margin-block-end: 0;
}

.form_style {
	text-align: center;
}

.step_manager_container{
	display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}


.bottoni_azione_container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.bottoni_azione {
	padding: 1vh 2vw;
	font-size: 1.5vh;
	background-color: rgb(255, 255, 255);
	color: #fff;
	border: none;
	border-radius: 1vh;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.3s, transform 0.2s;
	box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.15);
	margin: 1vh 1.5vh 0 1.5vh;
}


.voti_giudici {
	overflow-x: auto;
	width: 90%;
	border-collapse: collapse;
	border: solid;
	border-color: black;
	margin-left: 5%;
}

.step_table {
	overflow-x: auto;
	width: 90%;
	border-collapse: collapse;
	border: solid;
	border-color: black;
}

.step_table td, .step_table th {
	word-break: break-word;
	white-space: normal;
	max-width: 20vw; /* Adjust as needed */
}

.judge-form-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.judge-form-input {
	display: flex;
	justify-content: space-around;
}

.judge-form-input:has(.left-judge-form-group:only-child) {
	justify-content: center;
}

.judge-form-buttons {
	width: 100%;
	flex: 1;
	justify-content: center;
}

.left-judge-form-group {
	flex: 1;
	max-width: 50vw;;
	background: #f0f0f0;
	border: 0.25vh solid #a69b9b;
	border-radius: 1vh;
	font-size: 2vh;
	box-shadow: none;
	margin-right: 1vw;
	margin-left: 1vw;
	text-align: center;
}

.right-judge-form-group {
	flex: 1;
	max-width: 50vw;
	background: #f0f0f0;
	border: 0.25vh solid #a69b9b;
	border-radius: 1vh;
	font-size: 2vh;
	box-shadow: none;
	margin-left: 1vw;
	margin-right: 1vw;
	text-align: center;
}

.judge-form-container label {
	font-weight: bold;
	color: #030A05;
	font-size: auto;
}

.judge-form-container input[type="number"] {
	width: 100%;
	border: 0.25vh solid #ccc;
	border-radius: 1vh;
	font-size: 2vh;
	background: #fff;
	box-sizing: border-box;
}

.judge-form-container button[type="submit"] {
	display: block;
	margin: 1vh auto 0 auto;
	padding: 1vh 4vw;
	background: rgb(255, 255, 255);
	color: #fff;
	border: none;
	border-radius: 1vh;
	font-size: 1.5vh;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.2s;
	box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.10);
}

.judge-form-container button[type="submit"]:hover {
	background: #067c28;
}

.descrizione-step-in-corso {
	font-size: 2vh;
	text-align: center;
	margin-bottom: 1vh;
	color: #030A05;
}

/* Stile base per il contenitore A4 */
.container_A4 {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 210mm; /* Larghezza A4 */
	height: 297mm; /* Altezza A4 */
	margin: 30px auto; /* Centra nel viewport */
	padding: 10mm;
	box-sizing: border-box;
	background-color: #ffffff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	font-family: Arial, sans-serif;
	overflow: hidden;
}

/* Logo principale */
.intestazione_promo {
	width: 100%; /* larghezza massima possibile */;
	max-height: 60mm; /* un quarto della pagina A4 */
	object-fit: contain; /* conserva le proporzioni */
	margin-bottom: 2mm;
}

/* Titolo e link */
.header_promo h1 {
	font-size: 1.8em;
	text-align: center;
	margin-bottom: 1mm;
	margin-top: 1mm;
}

.header_promo p, .header_promo {
	text-align: center;
	font-size: 1em;
	color: #333;
	word-break: break-word;
}
.thanks_to {
    margin-top: 1mm;
    margin-bottom: 1mm;
    padding: 0;
    line-height: 1.1em;
  }

/* Griglia sponsor */
/* Default: fallback fluido */
.sponsor-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5mm;
	padding-top: 1px;
	padding-bottom: 1px;
	border-top: 1px solid #000;
  	border-bottom: 1px solid #000;
  	min-height: 100mm; /* altezza minima per la sezione sponsor */
}

/* Due sponsor: affiancati */
.sponsor-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

/* Tre sponsor: una riga */
.sponsor-3 .sponsor-logo:nth-child(n+4) {
	grid-column: span 2;
}

/* Quattro sponsor: due righe da 2 */
.sponsor-4 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.sponsor-5 .sponsor-logo:nth-child(n+4) {
	grid-column: span 2;
}

/* Sei sponsor: 3 e 3 */
.sponsor-6 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

/* Immagini */
.sponsor-logo {
	height: auto;
	margin: 0 auto;
}

.sponsor-1 .sponsor-logo {
	max-width: 240mm;
	max-height: 50mm;
}

.sponsor-2 .sponsor-logo {
	max-width: 120mm;
	max-height: 50mm;
}

.sponsor-3 .sponsor-logo {
	max-width: 120mm;
	max-height: 45mm;
}

.sponsor-4 .sponsor-logo {
	max-width: 80mm;
	max-height: 55mm;
}

.sponsor-5 .sponsor-logo {
	max-width: 80mm;
	max-height: 55mm;
}

.sponsor-6 .sponsor-logo {
	max-width: 60mm;
	max-height: 55mm;
}

/* QR Code */
.qr-code {
	text-align: center;
}

.qr-code img {
	max-width: 200px;
	height: auto;
}
.footer_promo {
    display: flex;
    justify-content: center;   /* centra l'intero blocco */
    align-items: center;       /* centra verticalmente QR e testo */
    width: 100%;
    gap: 2vw;                  /* spazio tra QR e testo */
}

.footer_text {
    text-align: center;
    line-height: 1.1;
    font-size: 1.5vh;
    width: 10vh;
    height: 10vh;
}

.footer_paypal_logo {
    height: 3vh;
    width: auto;
}

.footer_qr_box {
    display: flex;
    justify-content: right; /* allinea il QR a destra */
    align-items: center;
    width: 10vh;
    height: 10vh;
}

.footer_qr {
    height: 10vh;
    width: auto;
}

.sponsor-logos_podio {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 1vw;
	backdrop-color: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
}

.sponsor_podio-1 .sponsor-logo_podio {
	max-width: 94vw;
	max-height: 15vh;
}

.sponsor_podio-2 .sponsor-logo_podio {
	max-width: 47vw;
	max-height: 15vh;
}

.sponsor_podio-3 .sponsor-logo_podio {
	max-width: 31vw;
	max-height: 15vh;
}

.sponsor_podio-4 .sponsor-logo_podio {
	max-width: 23vw;
	max-height: 15vh;
}

.sponsor_podio-5 .sponsor-logo_podio {
	max-width: 18vw;
	max-height: 15vh;
}

.sponsor_podio-6 .sponsor-logo_podio {
	max-width: 16vw;
	max-height: 15vh;
}

/* Wrapper generale */
.tabella-wrapper {
	overflow-x: auto;
	margin-bottom: 4vh;
}

/* Tabella */
.lista_tornei {
	width: 95%;
	margin-left: 2.5%;
	border-collapse: collapse;
	background-color: #fff;
	box-shadow: 0 0 1vh rgba(0, 0, 0, 0.05);
}

/* Intestazioni */
.lista_tornei_th_style {
	background-color: #f5f5f5;
	color: #333;
	font-weight: 600;
	text-align: center;
	border-bottom: 0.3vh solid #ddd;
}

/* Celle dati */
.lista_tornei_td {
	border-bottom: none;
	border-top: 0.2vh solid #eee;
	vertical-align: middle;
	font-size: 2vh;
	white-space: normal;
}

/* Cella ID con rowspan */
.lista_tornei_td[rowspan="2"] {
	vertical-align: middle;
	text-align: center;
	font-weight: bold;
}

/* Riga dei bottoni */
.td_azione {
	border-bottom: 0.2vh solid #eee;
	border-left: none;
	border-right: none;
	border-top: none;
	text-align: center;
}

/* Contenitore bottoni */
.contenitore_bottoni {
	display: flex;
	justify-content: center;
	gap: 3vw;
	flex-wrap: wrap;
}

/* Bottoni */
.bottone_amministrazione {
	background-color: rgb(255, 255, 255);
	color: white;
	border: none;
	padding: 1vh 2vw;
	border: none;
	border-radius: 1vh;
	font-size: 1.5vh;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.3s, transform 0.2s;
	box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.15);
}

/* Form bottoni */
.form_bottoni_lista_tornei {
	display: inline-block;
}

/* Riga vuota tra tornei */
.spazio-tra-tornei td {
	border: none !important;
	background-color: #EDEDED;
	padding: 0;
	height: 3vh;
}


/*sezione calendario tornei*/
.calendar-container {
    width: 90vw;
    margin: 2vh auto;
    padding: 2vh;
    text-align: center;
}

.calendar-title {
    font-size: 3vh;
    margin-bottom: 3vh;
    color: #333;
}

.calendar-day {
    margin-bottom: 4vh;
}

.calendar-date {
    font-size: 2.2vh;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 1.5vh;
    border-bottom: 0.3vh solid #ccc;
}

.calendar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendar-item {
    width: 80vw;
    min-height: 2.5vh;
    border-left: 1vw solid #ac0016;
    border-radius: 1vw;
    margin-bottom: 1.5vh;
    padding: 0vh 2vw;
    box-shadow: 0 0.1vh 0.5vh rgb(192, 192, 192);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s ease;
}

.calendar-item:hover {
    transform: scale(1.02);
}

.calendar-line {
    display: flex;
    color: #fff;
    justify-content: space-between;
    align-items: center;
    gap: 1vw;
    width: 100%;
    font-size: 2vh;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-time {
    flex: 0 0 auto;
    color: #fff;
    font-weight: bold;
}

.calendar-name {
    flex: 1 1 auto;
    text-align: center;
    color: #fff;
}

.calendar-duration {
    flex: 0 0 auto;
    color: #666;
}


.riga-ora-attuale {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: limegreen;
    z-index: 10;
}
.calendar-day {
    position: relative;
}





/*fine sezione calendario tornei*/

/* --- Stile dedicato alla tabella delle votazioni qualifiche --- */
.table-votazioni-qualifiche {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    font-size: clamp(0.85rem, 1.6vh, 1rem);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.table-votazioni-qualifiche thead {
    background: rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table-votazioni-qualifiche th,
.table-votazioni-qualifiche td {
    padding: 1.2vh 1vw;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.table-votazioni-qualifiche th:first-child,
.table-votazioni-qualifiche td:first-child {
    text-align: left;
    font-weight: 600;
}

.table-votazioni-qualifiche tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

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

.table-votazioni-qualifiche td:last-child {
    font-weight: 700;
    font-size: 1.05em;
}

/* ============================
   MENU MOBILE / RESPONSIVE
   ============================ */

/* HAMBURGER ICON (solo mobile) */
.menu-hamburger {
    display: none;
    font-size: 2vh;
    color: rgb(111 183 65);
    padding: 0 2vw;
    border-left: 0.2vh solid rgb(43 68 33);
    border-right: 0.2vh solid rgb(43 68 33);
    border-radius: 1vh;
    background-color: rgb(43 68 33);
    cursor: pointer;
    user-select: none;
}

/* MENU MOBILE A SCOMPARSA */
.menu-mobile {
    display: none;
    background-image: linear-gradient(to right, #030A05, #AB0210);
    margin-left:3vw;  
    width: 100%;
}

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

.menu-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-mobile ul li {
    margin: 2vh 0;
}

.menu-mobile ul li a {
    font-family: 'Abril Fatface', serif;
    font-weight: 600;
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 2vh;
}


@media ( max-width : 764px) {	
	body, html {
		font-size: 2vh; /* Riduce la dimensione del testo su schermi piccoli */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
		min-height: 100vh !important;
	}
	
	.azioni_torneo button {
	line-height: 0.8vh;
	height: auto;
	margin-top: 0;
	vertical-align: middle;
	margin-bottom: 0;
	padding: 0;
	}
	/* Se vuoi uniformare anche gli input number */
	.azioni_torneo input {
		font-size: 3.2vw;
		padding: 0;
		margin: unset;
		height: auto;
		vertical-align: middle;
	}
	
	.azioni_torneo {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 1vw;
		margin-right: 2vw;
	}
	.container {
		height: auto;
		width: 100%;
		display: flex;
		flex-direction: column;
	}
	.top-left-column, .top-right-column {
		flex: 1; /* Rende le colonne uguali su schermi piccoli */
	}
	.fase_corrente {
		font-size: 4vw;
		text-align: center;
	    min-width: 48vw;
	    max-width: 48vw;
	    box-sizing: border-box;
		color:rgb(255, 255, 255);
	  	border-style: groove;
		  background:
	    linear-gradient(
	      to left,
	      #254b98 0%,
	      #0d0f14 45%,
	      #0b1c49 100%
	    );
	
	  border: 0.1vw solid #b11a1a;
	  border-radius: 1vw;
	
	  outline: 0.1vw solid rgba(255,255,255,0.18);
	  outline-offset: -0.01vw;
	
	  box-shadow:
	    inset 0 0.12vw 0.3vw rgba(255,255,255,0.5),
	    inset 0 0 0.5vw rgba(120,140,180,0.18),
	    0 0 0 0.05vw #111,
	    0 0.1vw 0.1vw rgba(255,255,255,0.35),
	    0 0.1vw 0.1vw rgba(0,0,0,0.9),
	    0 0.1vw 0.1vw rgba(170,190,255,0.22);
	}
	.linea-inferiore {
	font-size: 3vw;
	}
	.fase {
		display: none;
	}
	.arrow-cell {
	    display: none;
    }

	
	.table_gruppi-container {
		font-size: 2vh;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	
	.lista-piloti_next_round {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5vh;
        margin-left:0.2vw;
        margin-right:0.2vw;
    }

    .lista-piloti_next_round li {
        font-size: 3vw !important;
        padding: 0.5vh 0.2vw !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }
	 
    
	.singolo_pilota li {
		font-size: 3vh;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	.timer_container {
		font-size: 13vh; /* Riduce la dimensione del timer su schermi piccoli */
		margin: 0;
	}
	.sopra {
		flex-direction: column;
		/* Cambia la direzione in colonna per schermi piccoli */
		align-items: center; /* Centra gli elementi */
		justify-content: flex-start; /* Centra gli elementi verticalmente */
	}
	.sotto {
		flex-direction: column;
		/* Cambia la direzione in colonna per schermi piccoli */
		align-items: center; /* Centra gli elementi */
		border-top-style: none;
		/* Rimuove il bordo superiore per schermi piccoli */
		border-top: none; /* Rimuove il bordo superiore per schermi piccoli */
	}
	.piloti-timer {
		display: flex;
		flex-direction: column-reverse;
		justify-content: fkex-end;
		align-items: center;
		padding: 0;
		height: auto; /* Permette di adattarsi al contenuto */
	}
	.battles {
		flex-direction: column-reverse;
		justify-content: flex-end;
		width: 100vw;
		height: auto; /* Permette di adattarsi al contenuto */
	}
	.destra_centrata, .destra_sopra, .destra_sotto {
		width: 100vw; /* Occupa tutta la larghezza disponibile */
		height: auto; /* Permette di adattarsi al contenuto */
		justify-content: center;
		align-items: center;
	}
	.next_step_singolo_battles_centrato, .next_step_singolo_battles {
		width: 100vw; /* Occupa tutta la larghezza disponibile */
		font-size: 5vw;
		/* Riduce la dimensione del testo su schermi piccoli */
		height: auto; /* Permette di adattarsi al contenuto */
		justify-content: center;
		align-items: center;
		margin-bottom: 2vh;
	}
	.sinistra {
		width: 100vw; /* Occupa tutta la larghezza disponibile */
		height: auto; /* Permette di adattarsi al contenuto */
		justify-content: center;
	}
	.tabellone_wrapper {
		width: 100%; /* Occupa tutta la larghezza disponibile */
		overflow-x: auto;
		/* Permette lo scorrimento orizzontale se necessario */
	}
	.tabellone_parziale {
		width: 100%; /* Occupa tutta la larghezza disponibile */
		max-height: 100vh; /* Limita l'altezza massima per evitare overflow */
	}
	.tabellone_parziale th, .tabellone_parziale td {
		font-size: 1vh;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	.tabellone_schermo_intero th, .tabellone_schermo_intero td {
	font-size: calc(20.5vh/ ( var(--numero-righe)*2));
	line-height: 1;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
}
	.titolo_ongoing {
		font-size: 5vw;
		/* Riduce la dimensione del testo su schermi piccoli */
		margin:1vh;
	}
	.titolo_next_battle {
		font-size: 5vw;
		margin:1vh;
	}
	
	.battle_in_corso {
		font-size: 3vw;
		/* Riduce la dimensione del testo su schermi piccoli */
	}

	.container_gruppi {
        flex-direction: column !important;  /* uno sotto l’altro */
        flex-wrap: nowrap !important;       /* evita affiancamenti */
        width: 100% !important;             /* usa tutta la larghezza */
        gap: 0.1vh;                            /* spazio verticale */
        align-items: center;                 /* centra i box */
    }

    .container_gruppi > div {
        min-width: 90% !important;          /* ogni box quasi a tutta larghezza */
        max-width: 90% !important;
    }
	
	.container_gruppi table {
		width: 100%; /* Occupa tutta la larghezza disponibile */
	}
	.piloti-container {
		flex-direction: column;
		/* Cambia la direzione in colonna per schermi piccoli */
		align-items: center; /* Centra i piloti */
		height: auto; /* Permette di adattarsi al contenuto */
	}
	h3.grande {
		font-size: 2.2vh;
	}
	.lista-piloti {
		display: flex;
		flex-wrap: wrap; /* Gli elementi vanno a capo automaticamente */
		justify-content: center; /* Allinea gli elementi orizzontalmente */
		gap: 2vw; /* Spazio tra gli elementi */
		list-style: none; /* Rimuove i bullet delle liste */
		padding: 0;
		margin: 0;
		width: 95%; /* Margine dal bordo */
	}
	.lista-piloti li {
		flex: 0 0 calc(45%); /* 4 box per riga con gap compensato */
		width: calc(33%); /* larghezza fissa */
		height: 10vh; /* altezza fissa per uniformità */
		text-align: center;
		background-color: #f0f0f0;
		border: 0.15vw solid #ccc;
		border-radius: 1vw;
		padding: 1vw;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: center;
		text-overflow: ellipsis;
		white-space: normal !important;   /* permette l’andare a capo */
        overflow: visible !important;     /* mostra tutto il testo */
        text-overflow: unset !important;  /* rimuove i puntini */
        font-size: 4vw !important;        /* leggibile su mobile */
        line-height: 1.2 !important;      /* migliore leggibilità */
	}
	
	.lista-piloti li {
	flex: 0 0 calc(32%); /* 4 box per riga con gap compensato */
	width: 25%; /* larghezza fissa */
	height: 10vh; /* altezza fissa per uniformità */
	text-align: center;
	color: rgb(255, 255, 255);
  	background: linear-gradient(180deg, #2c2c3336, #08090c);
  	backdrop-filter: blur(0.1vh);
	border: 0.15vw solid rgb(192, 192, 192);
	border-radius: 1vw;	
	box-sizing: border-box;
	font-size: 1.8vw;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	}
	.gruppo1 .table_gruppi-container {
		font-size: 3vw;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	.gruppo2 .table_gruppi-container {
		font-size: 3vw;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	.gruppo3 .table_gruppi-container {
		font-size: 3vw;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	.gruppo4 .table_gruppi-container {
		font-size: 3vw;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	.gruppo5 .table_gruppi-container {
		font-size: 3vw;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	.gruppo6 .table_gruppi-container {
		font-size: 3vw;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	.gruppo7 .table_gruppi-container {
		font-size: 3vw;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	.gruppo8 .table_gruppi-container {
		font-size: 3vw;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	.gruppo9 .table_gruppi-container {
		font-size: 3vw;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	.gruppo10 .table_gruppi-container {
		font-size: 3vw;
		/* Riduce la dimensione del testo su schermi piccoli */
	}
	.next_step_lista_battles h3.medio {
        font-size: 2.2vh;
        margin: 1vh;        /* Riduce la dimensione del testo su schermi piccoli */
    }
    .lista-piloti_next_round_battles {
    margin-bottom: 1vh;
    }
	.lista-piloti_next_round_battles li
	{
	    font-size: 3vw !important;
	    flex: 0 0 calc(100% / 4 - 0.11vw);
    }
	.sotto_tabellone {
		flex-direction: column;
		/* Cambia la direzione in colonna per schermi piccoli */
		align-items: center; /* Centra gli elementi */
		border-top-style: none;
		/* Rimuove il bordo superiore per schermi piccoli */
		border-top: none; /* Rimuove il bordo superiore per schermi piccoli */
	}
	.cartello {
		flex-direction: column;
		/* Cambia la direzione in colonna per schermi piccoli */
		align-items: center; /* Centra gli elementi */
		justify-content: center; /* Centra gli elementi verticalmente */
		height: auto;
		margin-top: 50%; /* Permette di adattarsi al contenuto */
	}
	.rank_container {
		flex-direction: column;
		/* Cambia la direzione in colonna per schermi piccoli */
		align-items: stretch; /* Centra gli elementi */
		width: auto; /* Occupa tutta la larghezza disponibile */
	}
	.rank_container .table-classifica {
		display: table; /* Usa il layout a tabella */
		flex: none; /* Non si adatta più alla larghezza */
		width: 100%; /* Occupa tutta la larghezza disponibile */
		border-collapse: unset; /* Rimuove gli spazi tra le celle */
	}
	.table-classifica tbody {
		width: 100%; /* Occupa tutta la larghezza disponibile */
	}
	.tabellone {
		margin-left: auto;
		width: auto; /* Occupa tutta la larghezza disponibile */
	}	
	.driver-name{
	    font-size: 7vw;
        /* Riduce la dimensione del testo su schermi piccoli */
		margin-top: 0;
    }
	.intestazione-finale {
		font-size: 1.5vh;
	}
	.best_result_previous {
	    font-size: 4.5vw;
    }

	/* ========= Contenitori generali ========= */
	.container_posto {
		display: flex;
		flex-direction: column;
		align-items: center;
		position: relative;
	}
	.posto {
		width: 26vw;
		text-align: center;
		padding: 3vw;
		background-color: gold;
		border-radius: 2vh 2vh 0 0;
		font-weight: bold;
		box-shadow: 0vw 0.5vw 0.7vw rgba(0, 0, 0.4, 0.4)
	}
	/* ========= Nome del pilota sopra il podio ========= */
	.nome_pilota {
		position: absolute;
		top: -4.2em;
		left: 50%;
		transform: translateX(-50%);
		font-size: clamp(1.2rem, 4vw, 3rem);
		font-weight: bold;
		color: rgb(255, 255, 255);
		opacity: 0;
		animation: fadeInName 2s ease-in-out forwards;
	}

	/* ========= Contenitore podio ========= */
	.podio {
		display: flex;
		width: 100%;
		height: 40vh; /* Altezza del podio */
		justify-content: center;
		align-items: flex-end;
		gap: 2vw;
		position: relative;
		flex-wrap: wrap;
		max-width: 100%;
		box-sizing: border-box;
	}

	/* ========= Blocchi podio ========= */
	.primo, .secondo, .terzo {
		font-size: clamp(1rem, 3vw, 2rem);
		margin-top: 2vh;
		border-radius: 1vh;
		flex-wrap: wrap;
		max-width: 100%;
		box-sizing: border-box;
	}

	/* Altezze realistiche per effetto podio */
	.primo {
		height: 20vh; /* Podio più alto */
		background: linear-gradient(to bottom, gold, #ffcc00);
		color: crimson;
	}
	.secondo {
		height: 15vh; /* Podio intermedio */
		background: linear-gradient(to bottom, silver, #b3b3b3);
		color: rgb(128, 0, 255);
	}
	.terzo {
		height: 12vh; /* Podio più basso */
		background: linear-gradient(to bottom, #cd7f32, #8b5a2b);
		color: burlywood;
	}

	/* ========= Effetti sui nomi e podio ========= */
	.podio .posto {
		opacity: 0;
		transform: translateY(2vh);
		animation: fadeIn 1s ease-in-out forwards;
	}
	.riga-rossa {
		height: 1.5vh;
		width: 92%;
		background: rgb(153, 3, 15);
		border-radius: 5vh;
		margin-top: 2vh;
		animation: fadeIn 1s ease-in-out forwards;
		margin: 2vw auto 0;
	}
	.sponsor-logos_podio {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		align-items: center;
		justify-content: center;
		gap: 1vw;
	}
	.sponsor-2 {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	.sponsor-3 {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	.sponsor-4 {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	.sponsor-5 {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	.sponsor-6 {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	.sponsor_podio-1 .sponsor-logo_podio {
		max-width: 40vw;
		max-height: 15vh;
	}
	.sponsor_podio-2 .sponsor-logo_podio {
		max-width: 40vw;
		max-height: 15vh;
	}
	.sponsor_podio-3 .sponsor-logo_podio {
		max-width: 40vw;
		max-height: 15vh;
	}
	.sponsor_podio-4 .sponsor-logo_podio {
		max-width: 40vw;
		max-height: 15vh;
	}
	.sponsor_podio-5 .sponsor-logo_podio {
		max-width: 40vw;
		max-height: 15vh;
	}
	.sponsor_podio-6 .sponsor-logo_podio {
		max-width: 40vw;
		max-height: 15vh;
	}
	.tabella_wrapper {
		width: 100%;
		overflow-x: auto;
	}
	.classifica {
		border-collapse: collapse;
		border: solid;
		border-color: black;
		margin-left: 0;
		width: 100%;
	}
	.classifica th, .classifica td {
		white-space: normal;
	}
	.td_azione {
		text-align: center;
		vertical-align: middle;
		color: #030A05;
		border: solid;
		border-color: black;
	}
	.contenitore_bottoni {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}
	.bottone_amministrazione {
		width: 100%;
		font-size: 3vw;
		box-sizing: border-box;
	}
	.form_bottoni_lista_tornei {
		margin-block-end: 0;
	}
	.sezione>.container {
		display: flex;
		height: auto; /* Assicura che le tabelle occupino tutta l'altezza */
		flex-direction: column;
	}
	.table-container {
		width: 100%;
		/* font-size: 1.7vw;*/
		padding: 0;
	}
	.table-container .partecipanti {
		width: 100%;
		border-collapse: collapse;
	}
	.no-border {
		border: none;
	}
	.form_staff {
		border: none;
		text-align: left;
	}
	.table_no_border {
		border: none;
		width: 100%;
	}
	.table_no_border td, .table_no_border th {
		font-size: 4vw;
		text-align: left;
		vertical-align: middle; /* opzionale: per centrare verticalmente */
		text-wrap: auto;
	}
	.bottone_uniforme {
		margin: 0;
		width: 6vw;
		display: inline-block;
	}
	.racing-tech {
		font-family: 'Orbitron', sans-serif;
		text-align: center;
		font-size: 5vw;
		padding: 0.5vw;
		border-radius: 1vw;
		text-align: center;
		margin: 2vw auto;
		max-width: 90vw;
		transform: skewX(349deg);
		box-shadow: 0.6vw -0.3vw 0.2vw #821c19e3, 0.5vw -0.2vw 1vw #a32417;
		position: relative;
	}
	.racing-tech strong {
		display: inline-block;
		text-align: center;
		font-size: 8vw;
		color: rgb(255, 255, 255);
		text-shadow: 0 0 0px rgb(255, 255, 255), 0.1vw 0px 0px rgb(255, 255, 255), -0.05vw 0.05vw 0px
			#1ace4d, -0.2vw 0.4vw 0px #000000;
		transform: translateZ(0.3vw);
		font-weight: 900;
		letter-spacing: 0.1vw;
	}
	.racing-subtext {
		display: block;
		margin-top: 2vw;
		font-size: 4.4vw;
		color: rgb(255, 255, 255);
		text-shadow: 0.1vw 0.1vw 0.1vw #000000;
		transform: translateZ(0.1vw);
	}	
	
	.pilota_sfidante {
		font-family: 'Orbitron', sans-serif;
		font-size: 6.5vw;
		font-weight: 600;
		text-shadow: 0 0 0px rgb(255, 255, 255), 0.1vw 0px 0px rgb(255, 255, 255), -0.05vw 0.05vw 0px
			#1ace4d, -0.2vw 0.4vw 0px #000000;
		transform: translateZ(0.3vw);
		color: rgb(255, 255, 255);
		text-align: center;
		margin: 1vh;
	}
	.pilota_sfidante_ongoing {
		font-size: 6.5vw;
	}
	.vs-image {
		width: 80vw; /* o 80px, 60px... scegli tu */
		height: auto; /* mantiene le proporzioni */
		display: block;
		margin: 1vh auto; /* centra l'immagine */
	}
	.finals_title {
		font-size: 7vw;
		font-style: italic;
		text-align: center;
		color: #871e1a;
		margin: 0vh;
	}
	.presentazione_finale {
		display: flex;
		flex-direction: column;
		background-image: url("Img/vs_verde.png");
		background-repeat: no-repeat;
		background-position: center;
		background-position-y: 50%;
		background-size: 90%;
		font-size: 4.5vh;
		text-align: center;
		color: rgb(255, 255, 255);
		width: 100%;
		height: 35vh;
		flex-wrap: nowrap;
		justify-content: center;
	}
	
	.presentazione_finale_ongoing {
		display: flex;
		flex-direction: column;
		background-image: url("Img/vs_verde.png");
		background-repeat: no-repeat;
		background-position: center;
		background-position-y: 50%;
		background-size: 90%;
		font-size: 4.5vh;
		text-align: center;
		color: rgb(255, 255, 255);
		width: 100%;
		height: 35vh;
		flex-wrap: nowrap;
		justify-content: center;
	}

	.vs-image_finals {
		width: 66vw; /* o 80px, 60px... scegli tu */
		height: auto; /* mantiene le proporzioni */
		display: block;
		margin: 0 auto; /* centra l'immagine */
	}
	.vs-image_finals_ongoing {
		width: 22vw; /* o 80px, 60px... scegli tu */
		height: auto; /* mantiene le proporzioni */
		display: block;
		margin: 0 auto; /* centra l'immagine */
	}
	.finalista_sfidante_1 {
		font-family: 'Orbitron', sans-serif;
		font-size: 7vw;
		font-weight: bold;
		text-shadow: 0 0 0px rgb(255, 255, 255), 0.1vw 0px 0px rgb(255, 255, 255), -0.1vw 0.1vw 0px
			#1ace4d, -0.15vw 0.3vw 0px #000000;
		color: rgb(255, 255, 255);
		text-align: center;
		align-content: center;
        width: 95vw;
        height: 20vw;
	}
	.blocco_separatore_vuoto {
		height: 20vw;
		width: 18vw;
	}
	.finalista_sfidante_2 {
		font-family: 'Orbitron', sans-serif;
		font-size: 7vw;
		font-weight: bold;
		text-shadow: 0 0 0px rgb(255, 255, 255), 0.1vw 0px 0px rgb(255, 255, 255), -0.1vw 0.1vw 0px
			#1ace4d, -0.15vw 0.3vw 0px #000000;
		color: rgb(255, 255, 255);
		text-align: center;
		align-content: center;
        width: 95vw;
        height: 20vw;
	}
	
	.step_in_corso_giudici{
	    font-size: 8vw;
        text-align: center;
        margin-top: 1vh;
        color: rgb(255, 255, 255);
	}
	

	.lista_tornei {
		width: 95%;
		margin-left: 2.5%;
		border-collapse: collapse;
		background-color: #fff;
		box-shadow: 0 0 1vh rgba(0, 0, 0, 0.05);
	}
	
	/* Intestazioni */
	.lista_tornei_th_style {
		background-color: #f5f5f5;
		color: #333;
		font-weight: 600;
		text-align: center;
		border-bottom: 0.3vh solid #ddd;
	}
	
	/* Celle dati */
	.lista_tornei_td {
		border-bottom: none;
		border-top: 0.2vh solid #eee;
		vertical-align: middle;
		font-size: 2vh;
		white-space: normal;
	}
	
	/* Cella ID con rowspan */
	.lista_tornei_td[rowspan="2"] {
		vertical-align: middle;
		text-align: center;
		font-weight: bold;
	}
	.lista_tornei_td_azione {
	text-align: center;
	vertical-align: middle;
	}
	
	.lista_tornei_contenitore_bottoni {
		display: inline-flex;
		flex-wrap: wrap;
		gap: 3vw;
		justify-content: center;
		align-items: center;
	}
	.form_bottoni_lista_tornei {
		margin-block-end: 0;
		display: inline-block;
	}
	/*inizio sezione calendario tornei*/
    .calendar-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .calendar-time,
    .calendar-name,
    .calendar-duration {
        margin-bottom: 0;
    }

    .calendar-time {
        width: 60px;
    }

    .calendar-name {
        flex: 1;
        padding: 0 1rem;
    }

    .calendar-duration {
        width: 80px;
        text-align: right;
    }
    /*fine sezione calendario tornei*/
	.table-votazioni-qualifiche {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
        border-collapse: collapse;
        font-size: 1.8vh;
        white-space: normal !important; /* permette l'adattamento */
    }

    /* Contenitore scrollabile SOLO se serve */
    .rank_container {
        width: 100%;
        overflow-x: auto;
        display: block;
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
    }

    .table-votazioni-qualifiche thead {
        display: table-header-group !important;
    }

    .table-votazioni-qualifiche tbody {
        display: table-row-group !important;
    }

    .table-votazioni-qualifiche tr {
        display: table-row !important;
    }

    .table-votazioni-qualifiche th,
    .table-votazioni-qualifiche td {
        display: table-cell !important;
        padding: 1vh 1vw;
        font-size: 3vw;
        white-space: nowrap; /* evita che i voti vadano a capo */
        text-align: center;
    }
    
    .table-votazioni-qualifiche td:last-child {
    font-size: 3vw;
	}
	
    .fase_battles {
		font-size: 2.2vh;
	}
    /* Nasconde il menu desktop */
    .menu-desktop {
        display: none !important;
    }

    /* Mostra hamburger */
    .menu-hamburger {
        display: block !important;
        font-size: 2vh; /* più grande e leggibile */
    }

    /* Contenitore menu */
    .menu-container {
        justify-content: flex-start;
        padding-left: 2vw;
    }

    /* --- LISTA MOBILE IN VERTICALE --- */

    /* Sovrascrive la regola desktop che forza inline-block */
    .topnav ul li,
    .menu-mobile ul li {
        display: block !important;
        margin: 0vh 0 !important;
    }

    /* I link devono occupare tutta la larghezza */
    .menu-mobile ul li a {
        display: block !important;
        width: 100%;
        padding: 0.5vh 0 !important;
        font-size: 2vh !important;
    }

    /* Rimuove margini orizzontali del desktop */
    .topnav ul li {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
        .modern-podium {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
        gap: 2.5vw;
        padding: 3vw 4vw;
    }

    .modern-podium::after {
        display: none;
    }

    .podium-card {
        width: 86vw;
        height: auto !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 2.5vw 4vw;
        border-radius: 3vw;
        gap: 4vw;
    }

    .rank-bg {
        font-size: 12vw;
        opacity: 0.18;
        position: absolute;
        right: 4vw;
        top: 50%;
        transform: translateY(-50%);
        line-height: 1;
    }

    .medal {
        font-size: 3.2vw;
        letter-spacing: 0.06em;
        margin-bottom: 0;
        margin-right: 8vw;
        width: 8vw;
    }

    .driver-name {
        height: auto;
        margin-top: 0;
        align-items: flex-start;
        text-align: left;
        flex: 0.75;
    }

    .numero {
        font-size: 3.5vw;
    }

    .nome {
        font-size: 5.5vw;
        line-height: 1.2;
    }

    /* Ordine visivo: 1° in cima, poi 2°, poi 3° */
    .first  { order: 1; }
    .second { order: 2; }
    .third  { order: 3; }

    /* Accenti colore sul bordo sinistro */
    .first  { border-left: 1.2vw solid rgba(255,215,0,0.9); animation: pulseGlow 2s infinite alternate;
    }
    .second { border-left: 1.2vw solid rgba(200,200,220,0.8); }
    .third  { border-left: 1.2vw solid rgba(205,127,50,0.8);  }

    .podium-lightline {
        width: 80%;
        height: 0.3vh;
        margin: 2vw auto 0;
        background: linear-gradient(90deg, #315dff, #ffffff, #d83428);
        box-shadow: 0 0 12px #315dff, 0 0 12px #d83428;
    }
    
    @keyframes pulseGlow{
    0%{
        box-shadow:
            0 0 1vw rgba(255,215,0,.15),
            inset 0 0 1vw rgba(255,215,0,.08);
    }
    100%{
        box-shadow:
            0 0 2vw rgba(255,215,0,.35),
            inset 0 0 1vw rgba(255,215,0,.08);
    }
}

}

@media  (max-height: 500px) {
	body, html {
	    overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
		min-height: 100vh !important;
	}
	
	.fase_battles {
	font-size: 3vh;
	}
    /* Nasconde il menu desktop */
    .menu-desktop {
        display: none !important;
    }
    .tabellone {
    width: 100%;
    }

    /* Mostra hamburger */
    .menu-hamburger {
        display: block !important;
        font-size: 2vh; /* più grande e leggibile */
    }

    /* Contenitore menu */
    .menu-container {
        justify-content: flex-start;
        padding-left: 2vw;
    }

    /* --- LISTA MOBILE IN VERTICALE --- */

    /* Sovrascrive la regola desktop che forza inline-block */
    .topnav ul li,
    .menu-mobile ul li {
        display: block !important;
        margin: 0vh 0 !important;
    }

    /* I link devono occupare tutta la larghezza */
    .menu-mobile ul li a {
        display: block !important;
        width: 100%;
        padding: 0.5vh 0 !important;
        font-size: 3.5vh !important;
    }

    /* Rimuove margini orizzontali del desktop */
    .topnav ul li {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* === OVERLAY ROTAZIONE TELEFONO === */
.rotate-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3vh;
}

.rotate-overlay__icon {
    font-size: 18vw;
    animation: rotate-phone 1.8s ease-in-out infinite;
    transform-origin: center;
    display: block;
    line-height: 1;
}

.rotate-overlay__text {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-size: 5vw;
    text-align: center;
    -webkit-text-stroke: 0.04vw #000;
    letter-spacing: 0.05em;
    padding: 0 8vw;
}

@keyframes rotate-phone {
    0%   { transform: rotate(0deg);   }
    30%  { transform: rotate(90deg);  }
    70%  { transform: rotate(90deg);  }
    100% { transform: rotate(0deg);   }
}

/* Mostra l'overlay solo su mobile portrait con tabellone */
@media (max-width: 768px) and (orientation: portrait) {
    body.has-tabellone .rotate-overlay {
        display: flex;
    }
}

