/*CSS HANDLER */
#time_menu {
  height: 103px;
}

#time_menu .upper {
  background: transparent !important;
}

#time_slider div {
  cursor: pointer;
}

#time_slider a {
  display: none !important;
}

.nav_hours {
  margin-bottom: 2px;
  display: flex;
  justify-content: space-evenly;
  margin-top: 10px;
}

.nav_hours li {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-main);
  border-radius: 5px;
  height: 20px;
  width: 33px;
  justify-content: center;
  background: var(--table_row);
}

#time_labels li a {
  border-radius: 2px;
  display: block;
  font-size: 14px;
  padding: 5px;
  border: 1px solid var(--border-main);
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  width: auto;
  background: var(--table_row);
  color: var(--bg_text);
}

.slider_label.active {
  background: var(--textColorBg) !important;
  color: var(--textColor4) !important;
}

#time_menu .h1sport {
  display: none;
}

#time_labels li a:hover {
  background: var(--textColorBg);
  transition: 0.5s ease-in-out;
  color: var(--textColor4);
}

#time_labels {
  width: 100% !important;
  margin-left: 0% !important;
  margin-top: 0px !important;
  margin-right: 0px !important;
  margin-bottom: 0px !important;
  position: relative;
  z-index: 1;
}

#time_menu .h1sport {
  display: none;
}

#time_slider {
  display: none;
}

#time_menu .ui-widget-header {
  background: none;
}

#time_slider .ui-slider-handle.ui-state-default.ui-corner-all {
  background: var(--regola_gradiente);
  border-radius: 25px;
  height: 15px;
  width: 15px;
}

#hidden_time_select {
  display: none;
}

#time_menu .upper {
  margin: 0 0 7px 0;
}

#time_menu > ul {
  margin-top: 5px;
}

#time_labels {
  margin: 5px 0;
}

#time_labels > li {
  display: inline-block;
  margin: auto 5px;
  width: calc(20% - 10px);
}

a.slider_label {
  background: var(--colore_principale2_dark);
  border-radius: 2px;
  color: var(--testo_gradiente2);
  display: block;
  font-size: 15px;
  padding: 0 3.9px;
  text-align: center;
  text-decoration: none;
  width: auto;
}

.insTimeMenu {
  position: relative;
  top: -24px;
}

#day_labels {
  margin: 0;
  display: table;
  table-layout: fixed;
  width: 100%;
  height: 30px;
}

#day_labels li {
  background: var(--bg_color);
  display: table-cell;
  text-align: center;
  width: 25%;
  max-width: 35px;
  position: relative;
  padding: 5px;
}

#time_menu #day_labels li a {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-main);
  background: var(--table_row);
  border-radius: 5px;
}

#time_menu #day_labels li a:hover {
  background: var(--textColorBg);
  transition: 0.5s ease-in-out;
  color: var(--textColor4);
}

#day_labels li {
  position: relative;
  margin-right: 10px;
}

#day_labels {
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: space-between;
}

/* General styles for the anchor tags */
#day_labels li a {
  color: var(--testo_gradiente2);
  display: block;
  font-size: 13px !important;
  line-height: 32px;
  height: 35px;
  padding: 0;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-decoration: none;
  position: relative;
}

#day_labels li a {
  color: var(--bg_text);
  display: block;
  font-size: 14px;
  line-height: 32px;
  height: 35px;
  padding: 0;
  position: relative;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
}

.upper {
  height: 40px;
}

.lower {
  top: -20px;
  position: relative;
  height: 50px;
}

div.lower a.active {
  background: var(--textColorBg) !important;
  color: var(--textColor4) !important;
}

.upper {
  height: 40px;
}

/* Sett. and Tutti display: none; */
ul#day_labels li:nth-child(3),
ul#day_labels li:nth-child(4) {
  display: none;
}
/* END */

.time_labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.time_labels li a {
  background: var(--table_row);
  border: 1px solid var(--border-main);
  border-radius: 5px;
  color: var(--bg_text);
  font-size: 14px;
  padding: 5px;
  text-align: center !important;
  width: 45px;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}

/* Hover effect for buttons */
.time_labels li a:hover {
  background: var(--textColorBg);
  color: var(--textColor4);
}

/* Active button style */
.time_labels li a.active {
  background: var(--textColorBg) !important;
  color: var(--textColor4) !important;
}

@media screen and (max-width: 991px) {
  #time_menu {
    margin-top: 75px;
    margin-bottom: 40px;
  }
  .insTimeMenu  ul.time_labels {
    justify-content: space-evenly;
    flex-wrap: nowrap;
  }
   .insTimeMenu  ul.time_labels li{
     width: 24%;
   }
   .insTimeMenu  ul.time_labels li a{
     width: 100%;
    height: 40px;
    align-content: center;
     margin-top: -4px;
   }
  #time_labels li a{
    height: 40px;
    align-content: center;
  }
  #time_menu #day_labels li a {
    align-content: center;
    line-height: 0;
  }
}