.header_clan_2 {
  position: relative;
  padding-top: 60px; /* distanza ancora più ridotta */
  padding-bottom: 150px;
  background-color: #EAEAEA;
}

.header_clan_3 {
  position: relative;
  width: 100%;
  height: 100%;
  
}

.header_clan_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_clan_ul li {
  position: relative;
  padding: 10px;
  cursor: pointer;
  top: 10px;
  
}

.header_clan_ul li.active_clan::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  bottom: -2px;
  height: 2px;
  background-color: #EAEAEA;
  z-index: 4;
  pointer-events: none;
}

.header_clan_ul li.active_clan {
  position: relative;
  background-color: #EAEAEA;
}

.header_clan_1_li, .header_clan_2_li, .header_clan_3_li, .header_clan_4_li, .header_clan_5_li {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: orange;
  background-color: white;
  border: none;
}

.header_clan_1_li.active_clan, 
.header_clan_2_li.active_clan, 
.header_clan_3_li.active_clan, 
.header_clan_4_li.active_clan,
.header_clan_5_li.active_clan {
  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_clan {
  display: none;
  position: relative;
  top: auto;
  left: -15px;
  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_clan.attiva_clan {
  display: block; 
  
}

footer {
  position: relative;
  z-index: 20; /* Maggiore rispetto alle schede */
  background: #f5f5f5;
  padding: 20px;
  text-align: center;
}

/* 🔸 Wrapper per la voce MESSAGGI (per posizione relativa) */
.messaggi-wrapper {
    position: relative;
    display: inline-block;
}

/* 🔸 Pallino notifica accanto alla scritta MESSAGGI */
.messaggi-wrapper .pallino-notifica {
    position: absolute;
    top: -3px;
    right: -10px;
    width: 8px;
    height: 8px;
    background-color: orange;
    border-radius: 50%;
}

:root{
  --larghezza_menu_tabs_clan_px: 360px;
}

.header_clan_ul li{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.etichetta_tab_clan{
  display: inline-flex;
  align-items: center;
}

.btn_filtro_tab_clan{
  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_clan_ul li.active_clan .btn_filtro_tab_clan{
  display: inline-flex;
}

.btn_filtro_tab_clan:hover{
  background: rgba(108, 137, 198, 0.14);
}

.btn_filtro_tab_clan_attivo{
  background: #6C89C6 !important;
  color: #ffffff !important;
}

.icona_filtro_tab_clan{
  position: relative;
  display: block;
  width: 12px;
  height: 8px;
}

.icona_filtro_tab_clan::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_clan::after{
  content: none;
}

.btn_filtro_tab_clan_aperto .icona_filtro_tab_clan::before{
  border-bottom: 0;
  border-top: 8px solid currentColor;
}

.pannello_filtro_clan{
  width: min(calc(100% - 20px), 360px);
  max-width: 360px;
  margin: 10px auto 18px auto;
  background: #EAEAEA;
  box-sizing: border-box;
}

.pannello_filtro_clan_interno{
  border: 1px solid #FF9900;
  border-radius: 5px;
  background: #f6f6f6;
  padding: 14px;
  box-sizing: border-box;
}

.pannello_filtro_clan_testa{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pannello_filtro_clan_titolo{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #6C89C6;
}

.btn_chiudi_filtro_clan{
  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_clan:hover{
  background: #eef3ff;
}

.griglia_filtro_clan{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.campo_filtro_clan{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.etichetta_campo_filtro_clan{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: orange;
}

.input_filtro_clan,
.select_filtro_clan{
  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_clan:focus,
.select_filtro_clan:focus{
  border-color: #6C89C6;
  background: #f9fbff;
}

.azioni_filtro_clan{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.btn_filtro_clan{
  height: 32px;
  padding: 0 12px;
  border-radius: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.btn_filtro_clan_secondario{
  border: 1px solid #6C89C6;
  background: #ffffff;
  color: #6C89C6;
}

.btn_filtro_clan_secondario:hover{
  background: #eef3ff;
}

.btn_filtro_clan_primario{
  border: 1px solid #6C89C6;
  background: #FF9900;
  color: #ffffff;
}

.btn_filtro_clan_primario:hover{
  background: #FFAD33;
}