@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');  

body {
  background-color : #080e14;
  color : white;
  font-family: 'Montserrat', sans-serif;
  font-size : 11px;
  margin-bottom : 0px;
  margin-left : 0px;
  margin-right : 0px;
  margin-top : 0px;
  text-align : center;
  min-width: 300px;
}

/* HEADER (ex menu_logo) */
#header_page {
  background: #080e14;
  width: 100%;
  min-width: 300px;
  max-width: 599px;   
  padding: 0 10px;
  height: 45px;
  margin: 0 auto;
  position: static;
  z-index: 500;
  box-sizing: border-box;
}
#header_page .rightside img {
  margin-left: 8px;
}
#header_page ul {
  list-style: none;
  margin: 0;
  padding: 10px 0 0 0;  /* come nell’originale mobile */
}
#header_page li {
  float: left;
  margin-left: 20px;
  list-style: none;
  background: #080e14;
}
#header_page li.menu {
  float: left;
  margin-right: 50px;
  text-align: left;
}
#header_page li.rightside {
  float: right;
  margin-right: 10px;
  text-align: right;
}
#header_page li.rightsidemenu {
  float: right;
  margin-right: 0;
  margin-left: 40px;
  text-align: right;
}

/* MAIN SHORTCUTS (duplica header_page) */
#main_shortcuts {
  background: #080e14;
  width: 100%;
  min-width: 300px;
  max-width: 599px;   
  padding: 0 20px;
  height: 40px;
  margin: 0 auto;
  position: static;
  z-index: 500;
  box-sizing: border-box;
}
#main_shortcuts ul {
  list-style: none;
  margin: 0;
  padding: 10px 0 0 0;
}
#main_shortcuts li {
  float: left;
  margin-left: 10px;
  list-style: none;
  background: #080e14;
}
#main_shortcuts li.menu {
  float: left;
  margin-right: 50px;
  text-align: left;
}
#main_shortcuts li.rightside {
  float: right;
  margin-right: 10px;
  text-align: right;
}
#main_shortcuts li.rightsidemenu {
  float: right;
  margin-right: 0;
  margin-left: 40px;
  text-align: right;
}

/* MENU USER (ex menu_login) */
#menu_user {
  background: #080e14;
  width: 100%;
  min-width: 300px;
  max-width: 599px;   
  padding: 0 20px;
  height: 30px;
  margin: 0 auto;
  position: static;
  z-index: 500;
  box-sizing: border-box;
}
#menu_user ul {
  list-style: none;
  margin: 0;
  padding: 3px 0 0 0;
}
#menu_user li {
  float: left;
  list-style: none;
  background: #080e14;
}
#menu_user li.menu {
  float: left;
  margin-right: 50px;
  text-align: left;
}
#menu_user li.rightside {
  float: right;
  margin-right: 10px;
  text-align: right;
}
#menu_user li.leftside {
  float: left;
  margin-left: 0;
  text-align: left;
}
#menu_user li.rightsidemenu {
  float: right;
  margin-right: 0;
  margin-left: 40px;
  text-align: right;
}
#menu_user_language ul {
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

/* spacer invisibile che occupa tutto lo spazio restante */
#menu_user_language li.spacer {
  flex: 1;
}

/* A questo punto, tutte le <li class="rightside"> che seguono saranno 
 automaticamente spinte al bordo destro */
#menu_user_language li.rightside {
  margin-left: 10px;  /* piccolo distanziamento orizzontale tra icone */
  margin-right: 0;
}

/* Le altre regole restano uguali a prima... */
#menu_user_language li.leftsideside {
  margin-right: 20px;
}
#menu_user_language .text_12_b {
  font-size: 12px;
  font-weight: bold;
  margin: 0;
}
#menu_user_language .white_12_b {
  color: #FFFFFF;
  text-decoration: none;
}
#menu_user_language li.dropdown {
  position: relative;
}
#menu_user_language li.dropdown .white_12_b {
  display: inline-block;
  cursor: pointer;
  padding: 4px 8px;
  white-space: nowrap;
}
#menu_user_language li.dropdown .caret {
  
  font-size: 0.7em;
  margin-left: 4px;
  color: #FFFFFF;
}
#menu_user_language li.dropdown .dropdown_menu {
  display: none;
  position: absolute;
  top: 100%;
  left: auto;
  right: 10px;
  background-color: #0D1B27;
  list-style: none;
  margin: 4px 0 0 0;
  padding: 4px 0;
  border-radius: 4px;
  min-width: 50px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  z-index: 10;
}
#menu_user_language li.dropdown .dropdown_menu li {
  padding: 6px 12px;
}
#menu_user_language li.dropdown .dropdown_menu li a {
  color: #FFFFFF;
  font-size: 0.9em;
  text-decoration: none;
  display: block;
}
#menu_user_language li.dropdown .dropdown_menu li:hover {
  background-color: #1F3648;
}
#menu_user_language li.dropdown.open .dropdown_menu {
  display: block;
}

/* Sfondo del contenitore */
#menu_user_language {
  background-color: #080e14;
  margin: 0 auto;
position: static;
z-index: 500;
  padding: 8px 20px;
  min-width: 300px;
  max-width: 599px;
  width: 100%;
  box-sizing: border-box;
}

/* SEPARATORE (menu_linea) */
#header_linea {
  background: #393e43;
  width: 100%;
  min-width: 300px;
  max-width: 599px;   
  padding: 0 20px;
  height: 1.5px;
  margin: 0 auto;
  position: static;
  z-index: 500;
  box-sizing: border-box;
}

/* FOOTER */
#footer_page {
  justify-content: center;
  background: #080e14;
  min-width: 300px;
  max-width: 599px;   
  padding: 0 20px;
  height: 70px;
  margin: 0 auto;
  position: static;
  text-align: center;
  z-index: 500;
  box-sizing: border-box;
}

#footer_page img.social {
  margin: 1px 12px 1px 12px;
}

#footer_page p.testo_11_y {
  font-size: 11px;
  font-weight: bold;
  color: #ffc932;
}

#footer_page a.giallo_11_y:link,
#footer_page a.giallo_11_y:visited {
  font-family: 'Montserrat', sans-serif;
  color: #ffc932;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
}

#footer_page a.giallo_11_y:hover {
  font-family: 'Montserrat', sans-serif;
  color: white;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
}

#footer_page a.giallo_11_y:active {
  font-family: 'Montserrat', sans-serif;
  color: #ffc932;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
}
/*ELEMENTI CONTAINER*/
  #main_box {
    width: 100%;
    min-width: 300px;
    max-width: 599px;   
  padding: 0 20px;
    margin: 0 auto;
    text-align: center;
    display: flex;
  flex-direction: column;
  align-items: center;
    box-sizing: border-box;
  }
 /* 1 colonna su mobile */
 #layout_blocks{
  column-count: 1;
  
}

/* “Card”/blocchi dentro alle colonne */
.block_box{
  break-inside: avoid;   /* evita spezzamenti tra colonne */
  margin: 0 0 10px;      /* spazio verticale tra card */
  width: auto;
  max-width: none;
  display: block;        /* evita layout strani se avevi flex */
  box-sizing: border-box;
 
  text-align: center;    /* riprende il tuo text-align */
}
  
  table.generica_black {
    font-family: 'Montserrat', sans-serif;
    font-size : 11px;
    color: #ffc932; /* giallo di default*/
    padding: 0px 0px 0px 0px;
    border: 0;
    background: #101820; /* grigio medio */
  }
  table.generica_black td.vuota1 {
    margin: 0 0 0 0;
    padding: 0 0 0 0;        
    background-color: transparent;
    height: 1px;        
}  
  table.generica_black td.text_white {
    background-color: #101820;/* sfondo pagina scuro */    
    color: white;
    font-size : 12px;
    font-weight: bold;
    height: 30px;   
}    
  table.generica_black td.riga_grigia {
    background-color: #40464d;
    height: 1px;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
  }
  table.generica_black td.riga_intestazione {
    background-color: #1a2836;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    height: 30px;
  }
  table.generica_black td.riga_intestazione_y {
    background-color: #1a2836;
    color: #ffc932;
    font-size: 11px;
    font-weight: bold;
    height: 30px;
  }
  table.generica_black td.intestazione_y {
    background-color: #ffc932;
    color: #101820;
    font-size: 11px;
    font-weight: bold;
    height: 30px;
  }
  table.generica_black td.intestazione_r {
    background-color: #ff2e26;
    color: #101820;
    font-size: 11px;
    font-weight: bold;
    height: 30px;
  }
 table.generica_black td.riga_player {
    background-color: #101820;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    max-height: 35px;
    
  }
  table.generica_black td.riga_scura {
    background-color: #101820;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    height: 35px;
    
    max-width: 100%;
  box-sizing: border-box;
  padding: 4px;
  
  }
  
  table.generica_black td.riga_chiara {
    background-color: #1a2836;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    height: 35px;
    width:auto;
    min-width:60px;
    max-width: 100%;
  box-sizing: border-box;
  padding: 4px;
  text-align: center;
  vertical-align: middle;
  }
  table.generica_black td.riga_chiara_border {
    background-color: #1a2836;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    height: 35px;
    width:auto;
    min-width:60px;
    max-width: 100%;
    border-radius: 6px !important;
  box-sizing: border-box;
  padding: 4px;
  text-align: left;
  vertical-align: middle;
  }
  table.generica_black td.por_low {
    background-color: #101820; /* grigio medio */
    color: #d54051;
    font-size: 11px;
    font-weight: bold;
    height: 20px;
}

table.generica_black td.dif_low {
    background-color: #101820; /* grigio medio */
    color: #fcd67c;
    font-size: 11px;
    font-weight: bold;
    height: 20px;
}

table.generica_black td.med_low {
    background-color: #101820; /* grigio medio */
    color: #8bfa8b;
    font-size: 11px;
    font-weight: bold;
    height: 20px;
}

table.generica_black td.cen_low {
    background-color: #101820; /* grigio medio */
    color: #12af6c;
    font-size: 11px;
    font-weight: bold;
    height: 20px;
}

table.generica_black td.tre_low {
    background-color: #101820; /* grigio medio */
    color: #7be0ff;
    font-size: 11px;
    font-weight: bold;
    height: 20px;
}

table.generica_black td.att_low {
    background-color: #101820; /* grigio medio */
    color: #9481ff;
    font-size: 11px;
    font-weight: bold;
    height: 20px;
}
table.formazioni-precedenti {
  table-layout: auto;
  width: 100%;
}
table.formazioni-precedenti td.riga_intestazione_y {
  background-color: #1a2836;
  color: #ffc932;
  font-size: 11px;
  font-weight: bold;
  height: 30px;
  width:100%;
}
table.formazioni-precedenti > tbody > tr > td.black * {
  font-size: 10px !important;
}

.solo_mobile,
.solo_desktop {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 200px; /* anche qui */
}
table.formazioni-precedenti td.riga_scura {
  font-size: 10px;
  text-align: center;
  padding: 1px;
  white-space: nowrap; /* CONSENTE il wrap */
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 15px;
  max-width: 80px;
  box-sizing: border-box;
  word-break: break-word; /* spezza parole lunghe */
}
/* celle chiare che NON devono andare a capo */
table.formazioni-precedenti td.riga_chiara {
  background-color: #1a2836;
  color: #fff;
  font-size: 10px;
  text-align: center;
  padding: 1px;
  white-space: nowrap; /* vieta il wrap */
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 15px;
  max-width: 80px;
  box-sizing: border-box;
}
  #box_spacer_10 {
    background: transparent;
    margin: 0 auto;        
    position:static;
    min-width: 300px;
    max-width: 599px;   
  padding: 0 20px;    
    height:10px;        
}
  #box_spacer_20 {
    background: transparent;
    margin: 0 auto;        
    position:static;
    min-width: 300px;
    max-width: 599px;   
  padding: 0 20px;   
    height:20px;        
}
  #box_spacer_30 {
    background: transparent;
    margin: 0 auto;        
    position:static;
    min-width: 300px;
    max-width: 599px;   
  padding: 0 20px;    
    height:30px;        
}

.solo_mobile {
  display: inline;
}
.solo_tablet {
  display: none;
}
.solo_desktop {
  display: none;
}

/*STILI ELEMENTI E TESTI*/
.hidden {
  display: none;
}
/* Disegna solo il perimetro esterno della riga evidenziata */
/* Bordo esterno unico */
.highlight td {
  /* azzera eventuali bordi laterali interni messi altrove */
  border-left: 0 !important;
  border-right: 0 !important;

  /* bordo alto/basso su TUTTE le celle */
  border-top: 2px solid #fcd67c;
  border-bottom: 2px solid #fcd67c;

  /* glow continuo anche sulle celle centrali */
  
  transition: filter .3s ease;
}

/* bordo sinistro solo alla prima cella */
.highlight td:first-child {
  border-left: 1px solid #fcd67c !important;
}

/* bordo destro solo all’ultima cella */
.highlight td:last-child {
  border-right: 1px solid #fcd67c !important;
}

/* Wrapper per centratura (sostituisce lo style inline) */
.btn-wrap { text-align: center; margin-top: auto; }

/* Variabili per ritocchi rapidi */
:root{
  --btn-bg-1: #ffd866;   /* luce */
  --btn-bg-2: #f6a21f;   /* ombra */
  --btn-border: #7a4a00; /* bordo scuro */
  --btn-text: #1a1a1a;
  --btn-shadow: rgba(0,0,0,.25);
}

/* Bottone */
.btn-custom{
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--btn-border);
  background: linear-gradient(to bottom, var(--btn-bg-1) 0%, var(--btn-bg-2) 100%);
  color: var(--btn-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 8px;          /* desktop default */
  border-radius: 24px;       /* pill */
  box-shadow:
    0 2px 0 var(--btn-border),           /* bordo “3D” */
    0 6px 12px var(--btn-shadow),        /* ombra esterna */
    inset 0 2px 0 rgba(255,255,255,.35); /* riflesso interno */
  cursor: pointer;
  outline: none;
  transition: transform .06s ease, box-shadow .12s ease, filter .12s ease;
  font-size: 11px;
}

/* Hover / focus */
.btn-custom:hover,
.btn-custom:focus-visible{
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow:
    0 3px 0 var(--btn-border),
    0 10px 16px var(--btn-shadow),
    inset 0 2px 0 rgba(255,255,255,.4);
}

/* Active (pressione) */
.btn-custom:active{
  transform: translateY(0);
  box-shadow:
    0 1px 0 var(--btn-border),
    0 4px 8px var(--btn-shadow),
    inset 0 2px 0 rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.25);
}

/* Accessibilità focus tastiera */
.btn-custom:focus-visible{
  box-shadow:
    0 0 0 3px rgba(0,0,0,.5),
    0 0 0 6px rgba(255,210,80,.55),
    inset 0 2px 0 rgba(255,255,255,.4);
}



/* Righe che contengono il pulsante “Show more” */
.show-more-row {
  background-color: transparent;
}

/* Cella che contiene il pulsante “Show more” */
.show-more-cell {
  text-align: center;
  padding: 8px 0;  /* spazio verticale */
}

/* Stile per il pulsante “Show more” */
.show-more-button {
  background-color: #ffc932;  /* giallo */
  color: #101820;             /* testo scuro */
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 11px;            /* 11px su mobile */
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.show-more-button:hover {
  background-color: #e6b828;  /* leggermente più scuro al passaggio */
}


img.m {
  display: inline;
}
img.d {
  display: none;
} 

input.m { display: inline; }
input.d { display: none; }

.centered-checkbox {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px; /* opzionale: spazio tra testo e checkbox */
}

/* === RUOLI COLORATI in modalità responsive === */
label.dif_low    { color: #fcd67c; }
label.med_low    { color: #8bfa8b; }
label.cen_low    { color: #12af6c; }
label.tre_low    { color: #7be0ff; }
label.att_low    { color: #9481ff; }
label.por_low    { color: #d54051; }

td.por {
  color: #d54051;
}
td.dif {
  color: #fcd67c;
}
td.med {
  color: #8bfa8b;
}
td.cen {
  color: #12af6c;
}
td.tre {
  color: #7be0ff;
}
td.att {
  color: #9481ff;
}
p.text_16_b {
  font-size : 16px;
  font-weight: bold;  
}
p.text_12_b {
  font-size : 12px;
  font-weight: bold;
}   
p.text_normal {
  font-size : 12px;
  font-weight: bold;
  color : white;  
}           
/* Bianco */
a.white_12_b:link,
a.white_12_b:visited,
a.white_12_b:hover ,
a.white_12_b:active {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
} 
  a.white_12_b:hover {
    color: #ffc932;
}

  a.nero_13_b:link,
a.nero_13_b:visited,
a.nero_13_b:hover,
a.nero_13_b:active {
    font-family: 'Montserrat', sans-serif;
    color: #101820;
    font-size: 11px; /* base */
    font-weight: bold;
    text-decoration: none;
}
    .intestazione_y a,
.intestazione_y a:visited,
.intestazione_y a:hover,
.intestazione_y a:active {
    color: inherit;         /* usa il colore del td */
    text-decoration: none;  /* rimuove la sottolineatura */
} 
  p.yellow_11 {
    font-size : 11px;
    font-weight: bold;      
    color: #ffc932; /* giallo sito  */
}
a.yellow_11_b:link,
a.yellow_11_b:visited,
a.yellow_11_b:hover,
a.yellow_11_b:active {
    font-family: 'Montserrat', sans-serif;
    color: #ffc932;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
}
a.yellow_11_b:hover {
  color: white;
}
a.por_13_b:link {
  font-family: 'Montserrat', sans-serif;
  color : #d54051;    
  font-size : 11px;
  font-weight: bold;    
  text-decoration : none;
}
  a.por_13_b:visited {
    font-family: 'Montserrat', sans-serif;
    color : #d54051;    
    font-size : 11px;
    font-weight: bold;          
    text-decoration : none;
  }
  a.por_13_b:hover {
    font-family: 'Montserrat', sans-serif;
    color : white;    
    font-size : 11px;
    font-weight: bold;                
    text-decoration : none;
  }
  a.por_13_b:active {
    font-family: 'Montserrat', sans-serif;
    color : #d54051;    
    font-size : 11px;
    font-weight: bold;                
    text-decoration : none;
  }        
a.dif_13_b:link {
  font-family: 'Montserrat', sans-serif;
  color : #fcd67c;    
  font-size : 11px;
  font-weight: bold;    
  text-decoration : none;
}
  a.dif_13_b:visited {
    font-family: 'Montserrat', sans-serif;
    color : #fcd67c;    
    font-size : 11px;
    font-weight: bold;          
    text-decoration : none;
  }
  a.dif_13_b:hover {
    font-family: 'Montserrat', sans-serif;
    color : white;    
    font-size : 11px;
    font-weight: bold;                
    text-decoration : none;
  }
  a.dif_13_b:active {
    font-family: 'Montserrat', sans-serif;
    color : #fcd67c;    
    font-size : 11px;
    font-weight: bold;                
    text-decoration : none;
  }            
a.med_13_b:link {
  font-family: 'Montserrat', sans-serif;
  color : #8bfa8b;    
  font-size : 11px;
  font-weight: bold;    
  text-decoration : none;
}
  a.med_13_b:visited {
    font-family: 'Montserrat', sans-serif;
    color : #8bfa8b;    
    font-size : 11px;
    font-weight: bold;          
    text-decoration : none;
  }
  a.med_13_b:hover {
    font-family: 'Montserrat', sans-serif;
    color : white;    
    font-size : 11px;
    font-weight: bold;                
    text-decoration : none;
  }
  a.med_13_b:active {
    font-family: 'Montserrat', sans-serif;
    color : #8bfa8b;    
    font-size : 11px;
    font-weight: bold;                
    text-decoration : none;
  }                
a.cen_13_b:link {
  font-family: 'Montserrat', sans-serif;
  color : #12af6c;    
  font-size : 11px;
  font-weight: bold;    
  text-decoration : none;
}
  a.cen_13_b:visited {
    font-family: 'Montserrat', sans-serif;
    color : #12af6c;    
    font-size : 11px;
    font-weight: bold;          
    text-decoration : none;
  }
  a.cen_13_b:hover {
    font-family: 'Montserrat', sans-serif;
    color : white;    
    font-size : 11px;
    font-weight: bold;                
    text-decoration : none;
  }
  a.cen_13_b:active {
    font-family: 'Montserrat', sans-serif;
    color : #12af6c;    
    font-size : 11px;
    font-weight: bold;                
    text-decoration : none;
  }                    
a.tre_13_b:link {
  font-family: 'Montserrat', sans-serif;
  color : #7be0ff;    
  font-size : 11px;
  font-weight: bold;    
  text-decoration : none;
}
  a.tre_13_b:visited {
    font-family: 'Montserrat', sans-serif;
    color : #7be0ff;    
    font-size : 11px;
    font-weight: bold;          
    text-decoration : none;
  }
  a.tre_13_b:hover {
    font-family: 'Montserrat', sans-serif;
    color : white;    
    font-size : 11px;
    font-weight: bold;                
    text-decoration : none;
  }
  a.tre_13_b:active {
    font-family: 'Montserrat', sans-serif;
    color : #7be0ff;    
    font-size : 11px;
    font-weight: bold;                
    text-decoration : none;
  }                        
a.att_13_b:link {
  font-family: 'Montserrat', sans-serif;
  color : #9481ff;    
  font-size : 11px;
  font-weight: bold;    
  text-decoration : none;
}
  a.att_13_b:visited {
    font-family: 'Montserrat', sans-serif;
    color : #9481ff;    
    font-size : 11px;
    font-weight: bold;          
    text-decoration : none;
  }
  a.att_13_b:hover {
    font-family: 'Montserrat', sans-serif;
    color : white;    
    font-size : 11px;
    font-weight: bold;                
    text-decoration : none;
  }
  a.att_13_b:active {
    font-family: 'Montserrat', sans-serif;
    color : #9481ff;    
    font-size : 11px;
    font-weight: bold;                
    text-decoration : none;
  }    
  a.bianco_13_b:link {
    font-family: 'Montserrat', sans-serif;
    color : white;    
    font-size : 11px;
    font-weight: bold;    
    text-decoration : none;
  }
    a.bianco_13_b:visited {
      font-family: 'Montserrat', sans-serif;
      color : white;    
      font-size : 11px;
      font-weight: bold;          
      text-decoration : none;
    }
    a.bianco_13_b:hover {
      font-family: 'Montserrat', sans-serif;
      color : #ffc932;    
      font-size : 11px;
      font-weight: bold;                
      text-decoration : none;
    }
    a.bianco_13_b:active {
      font-family: 'Montserrat', sans-serif;
      color : white;    
      font-size : 11px;
      font-weight: bold;                
      text-decoration : none;
    }
.j_rigori_selez {
  background-color: #101820; /* grigio medio */
  color: white;
  font-size : 11px;
  font-weight: bold;                        
  max-height: 30px;        
  cursor: pointer;                
}   
.btn-move {
  background: transparent;
  border: none;
  padding: 2px;
  margin: 0 2px;
  cursor: pointer;
}

/* PERSONALIZZAZIONE PAGINE*/
/* Base = MOBILE */
.search-overlay[hidden]{ display:none !important; }
.search-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.55); backdrop-filter: blur(1px);
  display:flex; align-items:flex-start; justify-content:center; padding:6vh 12px; z-index:9999;
}
.search-panel{
  width:min(860px, 100%); background:#101820; border:1px solid #2a2a2a; border-radius:16px;
  box-shadow:0 30px 80px rgba(0,0,0,.6); overflow:hidden; color:#eaeaea;
}

/* Head: mobile = elementi a colonna */
.search-head{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:14px 16px; 
  border-bottom:1px solid #FFC932; }

.search-input{
  order: 2;
  flex: 1 1 100%;
  min-width: 0;           /* lascia prendere tutta la riga su mobile */
  height:44px; background:#1a2836; border:1px solid #FFC932; border-radius:10px; color:#FFC932;
  padding:0 12px; font-size:16px; outline:none; transition:border .15s ease, box-shadow .15s ease;
}
.search-input:focus{ border-color:#FFC932; box-shadow:0 0 0 3px rgba(255,201,50,.35); }

.chips{
  order: 3;
  width: 100%;
  margin-top: 8px;
  display:flex; gap:8px; flex-wrap:wrap;
  justify-content: flex-end;   /* chips allineate a destra su mobile */
}
.chip{
  height:30px; padding:0 10px; border-radius:9999px; flex:0 0 auto;
  border:1px solid #2a2a2a; background:#101820; color:#FFF;
  display:inline-flex; align-items:center; cursor:pointer; font-weight:600; font-size:13px;
}
.chip[data-active="true"]{ background:#1a2836; border-color:#FFC932; color:#FFC932; }

.closebtn{
  order: 1;
  margin-left: auto;      /* pulsante chiudi allineato a destra in alto */
  background:transparent; border:0; color:#FFC932; cursor:pointer; padding:4px 10px;
}

.search-body{ max-height:50vh; overflow:auto; }
.search-footer{ display:flex; align-items:center; justify-content:space-between; padding:10px 16px;
   border-top:1px solid #242424; color:#FFC932; font-size:12px; }

/* ENHANCEMENT = DESKTOP/TABLET IN SU */
@media (min-width: 601px){
  .search-input{
    order: 1;
    flex: 1 1 240px;
    min-width: 240px;     /* mantiene una larghezza minima comoda */
  }
  .chips{
    order: 2;
    width: auto;
    margin-top: 0;
    justify-content: flex-start; /* tornano accanto all’input */
  }
  .closebtn{
    order: 3;
    margin-left: 0;
  }
}


  /* ===== Messaggi: Header + Tabs ===== */
  .messaggi {
    width: 100%;
    max-width: 380px;   /* limite mobile */
    margin: 0 auto;     /* lo centro dentro #box_centrale */
    box-sizing: border-box;
    
  }

  .messaggi__header {
    max-width: 380px;
    padding: 0 4px;
  }
  
  /* Tab wrapper */
  .messaggi__header #message_tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 3px;
    overflow: visible;
    height: 40px;
  }
  
  /* Singola tab */
  .messaggi__header .message-tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 2px;
    border: none;
    border-radius: 8px 8px 0 0;
    background-color: #101820;
    color: #fff;
    cursor: pointer;
    text-align: center;
    transition: background-color .2s ease;
    margin-top: 8px;
    overflow: visible;
  }
  
  /* Tab attiva */
  .messaggi__header .message-tab.active {
    background-color: #ffc932;
    color: #000;
    border-radius: 10px 10px 0 0;
  }
  .messaggi__header .filter-info {
    max-width: 380px;
    margin-bottom: 8px;
  }
  /* Badge */
  .messaggi__header .tab-badge {
    background: red;
    color: white;
    border-radius: 50%;
    width: 12px; height: 12px;
    font-size: 9px;
    line-height: 12px;
    padding: 1px 1px;
    position: absolute;
    top: -4px; right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* ===== Messaggi: Contenuto tabella ===== */
  .messaggi__content {
    width: 100%;
  }
  
  .messaggi__content #messaggi_box_inline {
    display: block;
    max-width: 380px;
    margin: 0 auto;
    overflow-x: auto;
    box-sizing: border-box;
  }
  
  .messaggi__content table.generica_black {
    width: 100%;
    
  }
  
  .messaggi__content table.generica_black td.riga_data {
    background-color: #101820;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    height: 35px;
    max-width: 85px;
  }
  
  .messaggi__content table.generica_black td.riga_grigia {
    background-color: #40464d;
    height: 1px;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
  }
  .messaggi__content table.generica_black td.riga_intestazione {
    background-color: #1a2836;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    height: 30px;
  }
  .messaggi__content table.generica_black td.riga_messaggi {
    background-color: #101820;
    
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    height: 30px;
  }

 
  /* message-popup-cloud.css */
.popup-cloud{
  position:absolute;                   /* sarà figlio di <body> */
  background:#1a2836;
  color:#f5f5f5;
  border:2px solid #ffc932;
  border-radius:8px;
  padding:12px;
  box-shadow:0 4px 16px rgb(0 0 0 / .5);
  box-sizing:border-box;
  z-index:1000;

  min-width:200px;                     /* usabilità */
  max-width:450px;                     /* su desktop */
}

.popup-cloud::before{
  content:"";
  position:absolute;
  top:-12px;
  left:var(--arrow-left,50%);
  transform:translateX(-50%);
  border:0 solid transparent;
  border-width:0 12px 12px 12px;
  border-bottom-color:#ffc932;
}

/* header, list, footer stile invariato… */

.popup-cloud .card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.popup-cloud .card-header h3 {
  margin: 0;
  color: #ffc932;
  font-size: 1rem;
}
.popup-cloud .card-header .card-date {
  color: #ccc;
  font-size: 0.85rem;
}

.popup-cloud .message-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}
.popup-cloud .message-list li {
  padding: 6px 0;
  border-bottom: 1px solid #101820;
  font-size: 0.7rem;
}

.popup-cloud .empty {
  text-align: center;
  color: #888;
  padding: 16px 0;
}

.popup-cloud .card-footer {
  text-align: center;
  margin-top: 8px;
}
.popup-cloud .see-all {
  text-decoration: none;
  color: #ffc932;
  font-weight: bold;
}
.popup-cloud .see-all:hover {
  opacity: 0.9;
}
.popup-cloud .message-list::-webkit-scrollbar {
  width: 8px;
}
.popup-cloud .message-list::-webkit-scrollbar-track {
  background: #101820;    /* track scuro */
  border-radius: 4px;
}
.popup-cloud .message-list::-webkit-scrollbar-thumb {
  background-color: #ffc932; /* thumb giallo */
  border-radius: 4px;
  border: 2px solid #1a2836; /* padding interno scuro */
}
.popup-cloud .message-list::-webkit-scrollbar-thumb:hover {
  background-color: #ffda5a;
}

/* Scrollbar “brandizzato” per Firefox */
.popup-cloud .message-list {
  scrollbar-width: thin;
  scrollbar-color: #ffc932 #101820;
}

.tattica-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.tattica-col {
  flex: 1 1 48%;
  min-width: 130px;
  background: #101820;
  border-radius: 6px;
  padding: 6px;
  box-sizing: border-box;
}

.tattica-col:nth-child(3n) {
  flex: 1 1 100%;
}

.tattica-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.tattica-entry label {
  flex: 1;
  font-weight: bold;
  font-size: 11px;
  color: #fff;
  text-align: left;
  padding-right: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* VALORE SPAN / SELECT STILIZZATI */
.tattica-entry span,
.tattica-entry select {
  line-height: 30px !important;
  flex: 1 !important;
  text-align: center !important;
  color: #ffc932 !important;
  font-size: 11px;
  font-weight: bold !important;
  padding: 6px 10px !important;
  background-color: #1a2836 !important;
  border-radius: 4px !important;
  height: 30px !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* SELECT specifico */
.tattica-entry select {
  appearance: none !important;
  border: 1px solid #1a2836 !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23ffc932' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 2px center !important;
  background-size: 16px !important;
}

/* Illuminazione al focus */
.tattica-entry select:focus {
  border-color: #ffc932;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075),
              0 0 8px rgba(255, 201, 50, 0.6);
}
/* Compatibilità con browser Microsoft */
.tattica-entry select::-ms-expand {
  display: none;
  background-color: transparent;
  border: 0;
}

/* Placeholder (non usato ma incluso per sicurezza compatibilità) */
.tattica-entry select::-moz-placeholder {
  color: #999;
  opacity: 1;
}
.tattica-entry select:-ms-input-placeholder {
  color: #999;
}
.tattica-entry select::-webkit-input-placeholder {
  color: #999;
}
span.tattica-valore {
  font-size: 11px;
}
select.tattica-valore{
  font-size: 11px;
}
/* Stile per il filtro competizione */
/* Container per label + select “Competition” */
.filter-competition-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Styling specifico per la select “Competition” */
select.filter-competition-select {
  appearance: none;
  border: 1px solid #1a2836;
  background-color: #1a2836;
  color: #ffc932;
  font-size: 12px;
  font-weight: bold;
  line-height: 30px;
  padding: 0px 36px 2px 10px;           /* padding-top/right/bottom/left */
  background-position: right 12px center;
  border-radius: 4px;
  height: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23ffc932' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  
  background-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.filter-competition-select:focus {
  outline: none;
  border-color: #ffc932;
  box-shadow:
    inset 0 1px 1px rgba(0,0,0,0.075),
    0 0 8px rgba(255,201,50,0.6);
}

select.filter-competition-select::-ms-expand {
  display: none;
}
/* ======== Premium: header rigori =================================== */
#headerContainer         {display:flex;gap:8px;flex-direction:column;align-items: center; justify-content:center;text-align: center;
  width:100%;max-width:1240px; margin: 0 auto; }
@media (min-width:1110px){
           #headerContainer{flex-direction:row-reverse;
  justify-content:space-evenly;align-items:center; }
  #simRow {
    align-self: flex-start;
  }
  #ordinaRow {
    align-self: flex-start;
  }
  #topRow {
    align-self: flex-start;
  }
  #guidaBlock{
    align-self: center;
  }
}

  #box_rigoristi {
    width: 100%;
    min-width: 300px;
    max-width: 599px;   
  
    margin: 0 auto;
    text-align: center;
    display: flex;
  flex-direction: column;
  align-items: center;
    box-sizing: border-box;
  }
  #box_rigoristi > form {
    width: 100%;          /* occuperà il 100 % di #box_rigoristi           */
    max-width: 100%;      /* evita che il form si restringa                 */
    align-self: stretch;  /* in caso di altri item flex, si estende davvero */
  }

#topRow                  {display:flex;justify-content:center;gap:8px;margin-bottom:8px}
#guidaBlock              {display:flex;flex-direction:column;align-items:center;min-width: 200px;max-width:250px;position: relative;flex: 0 0 300px;}
#guidaBtn                {font-size:12px;background:#ffc932;border:none;padding:6px 10px;white-space:nowrap; 
  border-radius:6px;font-weight:bold;cursor:pointer}
#guidaBox                {display:none;background:#ffe98c;padding:6px 8px;font-size:11px;
                          border-radius:6px;margin-top:6px;color:#000;text-align:left;width: 100%; max-width: 100%;box-sizing: border-box; }
                          #guidaBox > div {
                            display: flex !important;      /* confermiamo il flex */
                            flex-wrap: wrap !important;    /* permettiamo ai figli di andare a capo */
                            gap: 16px !important;          /* spazio tra le due colonne */
                          }
#ordinaRow               {display:flex;justify-content:center;align-items:center;gap:6px;margin-bottom:8px;min-width: 295px;max-width:350px;
  width:100%}
#ordinaBtn               {background:#ffc932;color:#000;padding:6px 10px;border-radius:6px;
  border:none;font-weight:bold;cursor:pointer}
#ordinaControls          {display:flex;flex-wrap:wrap;gap:6px;align-items:center}

.skill-toggle            {padding:6px 10px;font-size:12px;border-radius:6px;border:none;
  font-weight:bold;background:#eee;cursor:pointer}
.skill-toggle.active     {background:#ffc932;color:#000}

#simRow                  {display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;min-width: 295px;max-width:335px;}
#simControls             {display:flex;flex-wrap:wrap;gap:8px;justify-content:center;width:100%;margin-bottom:8px}
#startModeBtn            {background:#9E9E9E;color:#fff;padding:6px 12px;border-radius:6px;
  border:none;font-weight:bold;cursor:pointer}
#btnAvvia,#btnReset      {background:#9E9E9E;color:#fff;padding:6px 10px;border-radius:6px;
  border:none;font-weight:bold;cursor:pointer}

#locationButtons         {display:none;flex-wrap:wrap;gap:10px;justify-content:center;width:100%}
.loc-btn                 {color:#fff;border:none;padding:6px 10px;border-radius:6px;
  font-weight:bold;background:#9E9E9E;cursor:pointer}
/* attiva con JS → .selected */
.loc-btn.selected[data-mode="home"]    {background:#4CAF50}
.loc-btn.selected[data-mode="neutral"] {background:#607D8B}
.loc-btn.selected[data-mode="away"]    {background:#D32F2F}

/* riepilogo */
#boxRiepilogoRigori      {background:#1a2836;color:#fff;font-size:11px;line-height:1.2;
  margin:10px auto;padding:10px;border-radius:6px;width:330px;display:none}

/* badge nomi selezionati (erano inline) */
.rigorista-nome-selezionato  {background:#2196F3!important;color:#fff!important;border-radius:4px;padding:2px 4px}
.portiere-nome-selezionato   {background:#FF9800!important;color:#fff!important;border-radius:4px;padding:2px 4px}

/* piccola animazione già nel JS */
@keyframes fadeIn{from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)}}
@keyframes float {from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(2px)}}
.fadeIn{animation:fadeIn .5s ease-out}
 /* Intro gialla “speaker” */
 .intro-text{
  font: 14px/1.3 'Bebas Neue',sans-serif;
  color:#ffc932;
  text-align:center;
  margin:4px 0 2px;
}

/* Esito grande, con animazione punch */
.esito-text{
  font-family:'Bebas Neue',sans-serif;
  font-size:26px;
  letter-spacing:1px;
  text-align:center;
  margin-bottom:4px;
  text-shadow:0 0 6px rgba(0,0,0,.25);
  animation:punch .5s ease-out;
}
.esito-text.goal   { color:#4caf50; }
.esito-text.parata { color:#d32f2f; }
.esito-text.palo   { color:#ffa000; }

@keyframes punch{
  0%  {transform:scale(.8) rotate(-2deg);opacity:0}
  60% {transform:scale(1.15) rotate(3deg)}
  100%{transform:scale(1) rotate(0);opacity:1}
}

/* Commento telecronaca corsivo/grigio */
.comment-text{
  font: italic 15px/1.4 'Bebas Neue',sans-serif;
  color:#c7c7c7;
  text-align:center;
  margin-bottom:10px;
}

/* FadeIn leggermente più marcato */
@keyframes fadeIn{
  from{opacity:0;transform:translateY(-6px)}
  to  {opacity:1;transform:translateY(0)}
}

