.menuheaderf1 {
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 1026px;
  height: 86px;
  margin: auto;
  padding: 0px 18px 0px 32px;
  position: relative;
  margin-bottom: 20px;
}

.menuheaderf1.f1 {
  padding: 0px 18px 0px 29px;
}

.menuheaderf1.fe {
  padding: 0px 18px 0px 29px;
}

.menu-line {
  height: 3px;
  width: 100%;
  position: absolute;
  left: 0;
  z-index: 1;
  display: none;
}

.menuheaderf1.f1 .menu-line {
  background-color: #ba0e13;
  display: block;
}

.menuheaderf1.fe .menu-line {
  background-color: #0951a3;
  display: block;
}

.menu-textContainer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 11px;
  flex: 1;
  padding-right: 24px;
}

.menu-name {
  font-size: 28px;
  text-transform: uppercase;
  font-weight: bold;
  color: #d20b10;
  line-height: 37px;
  letter-spacing: 0px;
}

.menu-text {
  font-size: 18px;
  text-transform: uppercase;
  font-weight: bold;
  color: #707070;
  line-height: 24px;
  letter-spacing: 0px;
  margin-bottom: 3px;
}

.menu-icons {
  display: flex;
  gap: 11px;
}

.menu-icons img {
  cursor: pointer;
}

.menu-one,
.menu-two,
.menu-three {
  display: flex;
  opacity: 1;
  position: absolute;
  left: 32px;
  right: 18px;
  z-index: 1;
  justify-content: space-around;
}

.menu-one.hidden,
.menu-two.hidden,
.menu-three.hidden {
  opacity: 0;
  z-index: 0;
}

.menuheaderf1.f1 .menu-two.hidden,
.menuheaderf1.fe .menu-three.hidden {
  left: 29px;
}

.menu-name.small {
  font-size: 16px;
  color: #333333;
  line-height: 21px;
}

.menu-two .menu-textContainer,
.menu-three .menu-textContainer {
  flex: none;
  padding-right: 16px;
}

.menu-links {
  display: flex;
  align-self: flex-end;
  padding-bottom: 11px;
  padding-left: 16px;
  padding-right: 15px;
  gap: 12px;
}

.menu-links a {
  text-decoration: none;
  font-size: 15px;
  color: #333333;
  line-height: 21px;
  font-weight: bold;
  opacity: 0.7;
}

#menu_m a.active {
  opacity: 1;
}

.menu-links .menu-links-inner {
  display: flex;
  gap: 4px;
}

.specialfe,
.specialf1 {
  cursor: pointer;
}

.specialfe__mobile {
  display: none;
}

.specialf1__mobile {
  display: none;
}

.menu-links__arrow {
  display: none;
}

.menu-icons a {
  height: 57px;
}

@media screen and (min-width: 768px) {

  .menu-two .link,
  .menu-three .link {
      height: 57px;
  }
}

@media screen and (max-width: 1240px) {
 
}

@media screen and (max-width: 1110px) {
  .menu-links {
      flex-wrap: wrap;
      padding-bottom: 5px;
      gap: 6px;
  }
}

@media screen and (max-width: 880px) {
  .menu-links {
      position: absolute;
      background: white;
      bottom: -50px;
      left: -32px;
      right: -18px;
      height: 50px;
      padding-bottom: 0px;
      padding-left: 12px;
      padding-bottom: 10px;
      align-items: flex-end;
      box-sizing: border-box;
      gap: 14px;
      overflow-x: scroll;
      flex-wrap: nowrap;
      -ms-overflow-style: none;
      scrollbar-width: none;
  }

  .menu-links__arrow {
    background: transparent linear-gradient(270deg, #ffffff 60%, #ffffff00 100%) 0% 0% no-repeat padding-box;
    position: absolute;
    right: -18px;
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 57px;
    padding-top: 5px;
    box-sizing: border-box;}

  .menuheaderf1.f1 .menu-links a.active {
      border-bottom: 4px solid #bb0e12;
      position: relative;
      top: 3px;
  }

  .menuheaderf1.fe .menu-links a.active {
      border-bottom: 4px solid #0951a3;
      position: relative;
      top: 3px;
  }

  .menu-links::-webkit-scrollbar {
      display: none;
  }

  .specialfe,
  .specialf1 {
      margin-left: auto;
  }
}

@media screen and (max-width: 768px) {
  .menu-text {
      display: none;
      padding-top: 10px;
     
  }

  .menu-icons a {
      width: 50%;
  }

  .menu-icons img {
      width: 100%;
      height: 100%;
  }
  

}

@media screen and (max-width: 568px) {
  .menuheaderf1 {
      height: 77px;
      padding: 0px 16px 0px 16px;
  }

  .menu-textContainer {
      padding-right: 16px;
  }

  .menu-text {
      display: none;
  }

  .menu-name {
      font-size: 18px;
      line-height: 24px;
  }
  .live div{
    width: 90px;
  }
  .piloti_scuderie div{
    width: 83px;
  }
  .menu-icons {
      gap: 0px;
      width: 80%;
  }
  .menu-links a{
    font-size: 13px;
     }
  .menu-one,
  .menu-two,
  .menu-three {
      left: 16px;
      right: 16px;
  }

  .menuheaderf1.f1 .menu-two.hidden,
  .menuheaderf1.fe .menu-three.hidden {
      left: 16px;
  }

  .menu-two .menu-textContainer,
  .menu-three .menu-textContainer {
      display: none;
  }

  .specialfe,
  .specialf1 {
      display: none;
  }

  .specialfe__mobile,
  .specialf1__mobile {
      display: block;
  }

  .menu-links {
      left: -16px;
      right: -16px;
  }

  .menu-links__arrow {
      top:61px;
      padding-right: 16px;
  }

  .menuheaderf1.fe,
  .menuheaderf1.f1 {
    padding-bottom: 50px;    
    margin-top: 30px;    
    height: 125px;   
  }
 
}

@media screen and (max-width: 374px) {
  .menu-icons img {
      width: 100%;
      height: 100%;
  }

  .menu-name {
      font-size: 12px;
      line-height: 14px;
  }

  .menu-one,
  .menu-two,
  .menu-three {
      left: 8px;
      right: 8px;
  }

  .menuheaderf1.f1 .menu-two.hidden,
  .menuheaderf1.fe .menu-three.hidden {
      left: 8px;
  }
}
