.header_2 {
  position: relative;
  padding-top: 70px; /* spazio reale sotto il menu fisso */
  padding-bottom: 150px;
  background-color: #EAEAEA;
}

.header_3 {
  position: relative;
  width: 100%;
  height: 100%;
  
}

.header_ul {
  position: fixed;
  top: 33px;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  list-style-type: none;
  border-bottom: 2px solid rgba(204, 204, 204, var(--border-opacity, 1));
  z-index: 20;
}

.header_ul li {
  position: relative;
  padding: 10px;
  cursor: pointer;
  top: 10px;
  
}

.header_ul li.active::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  bottom: -2px;
  height: 2px;
  background-color: #EAEAEA;
  z-index: 4;
  pointer-events: none;
}

.header_ul li.active {
  position: relative;
  background-color: #EAEAEA;
}

.header_1_li, .header_2_li, .header_3_li, .header_4_li {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: orange;
  background-color: white;
  border: none;
}

.header_1_li.active, 
.header_2_li.active, 
.header_3_li.active, 
.header_4_li.active {
  color: #6C89C6;
  border: 2px solid #ccc;
  border-bottom: 2px solid #EAEAEA !important;
  background-color: #EAEAEA;
  position: relative;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  z-index: 3;
  margin-bottom: -2px;
}

.contenuto_scheda {
  display: none;
  position: relative;
  top: auto;
  left: -20px;
  transform: none;
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
  background-color: #EAEAEA;
  padding: 20px;
  text-align: center;
  min-height: 200px;
  overflow: visible;
  box-sizing: border-box;
  z-index: 1;
}

.contenuto_scheda.attiva {
  display: block; 
  
}

footer {
  position: relative;
  z-index: 20; /* Maggiore rispetto alle schede */
  background: #f5f5f5;
  padding: 20px;
  text-align: center;
}


.header_ul li{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.etichetta_tab_tornei{
  display: inline-flex;
  align-items: center;
}

.btn_filtro_tab{
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6C89C6;
  cursor: pointer;
  border-radius: 4px;
}

.header_ul li.active .btn_filtro_tab{
  display: inline-flex;
}

.btn_filtro_tab:hover{
  background: rgba(108, 137, 198, 0.14);
}

.btn_filtro_tab_attivo{
  background: #6C89C6 !important;
  color: #ffffff !important;
}

.icona_filtro_tab{
  position: relative;
  display: block;
  width: 12px;
  height: 8px;
}

.icona_filtro_tab::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid currentColor;
}

.icona_filtro_tab::after{
  content: none;
}

.btn_filtro_tab_aperto .icona_filtro_tab::before{
  border-bottom: 0;
  border-top: 8px solid currentColor;
}

.pannello_filtro_tornei{
  width: min(calc(100% - 20px), var(--larghezza_menu_tabs_tornei_px, 360px));
  max-width: var(--larghezza_menu_tabs_tornei_px, 360px);
  margin: 10px auto 18px auto;
  background: #EAEAEA;
  box-sizing: border-box;
}

.pannello_filtro_tornei_interno{
  border: 1px solid #FF9900;
  border-radius: 5px;
  background: #f6f6f6;
  padding: 14px;
  box-sizing: border-box;
}

.pannello_filtro_tornei_testa{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pannello_filtro_tornei_titolo{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #6C89C6;
}

.btn_chiudi_filtro_tornei{
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #6C89C6;
  border-radius: 5px;
  background: #ffffff;
  color: #6C89C6;
  font-size: 18px;
  line-height: 18px;
  cursor: pointer;
}

.btn_chiudi_filtro_tornei:hover{
  background: #eef3ff;
}

.griglia_filtro_tornei{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.campo_filtro_tornei{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.etichetta_campo_filtro_tornei{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: orange;
}

.input_filtro_tornei,
.select_filtro_tornei{
  width: 100%;
  height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid #6C89C6;
  border-radius: 5px;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #000000;
  outline: none;
}

.input_filtro_tornei:focus,
.select_filtro_tornei:focus{
  border-color: #6C89C6;
  background: #f9fbff;
}

.azioni_filtro_tornei{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.btn_filtro_tornei{
  height: 32px;
  padding: 0 12px;
  border-radius: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.btn_filtro_tornei_secondario{
  border: 1px solid #6C89C6;
  background: #ffffff;
  color: #6C89C6;
}

.btn_filtro_tornei_secondario:hover{
  background: #eef3ff;
}

.btn_filtro_tornei_primario{
  border: 1px solid #6C89C6;
  background: #FF9900;
  color: #ffffff;
}

.btn_filtro_tornei_primario:hover{
  background: #FFAD33;
}

:root{
  --larghezza_menu_tabs_tornei_px: 360px;
}