.header {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: auto;
  padding: 10px;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 1200;
}
.menu_container {
  display: flex;
  flex-direction: row;
  width: 50%;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
}
.menu_btn {
  display: none;
}
.menu_list_mobile {
  display: none;
}
.menu_list {
  display: flex;
  flex-direction: row;
  width: 50%;
  height: auto;
  align-items: center;
  justify-content: flex-start;
}
.menu_list a {
  display: flex;
  width: auto;
  height: auto;
  text-decoration: none;
}
.vocemenu {
  display: flex;
  flex-direction: row;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  margin: 0 2px;
  font-size: 20px;
  font-variant: small-caps;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  position: relative;
}

/* ===== REDIRECT BTN DESKTOP ===== */
.menu_list .redirect_btn {
  background-color: transparent;
  padding: 4px 12px;
  margin: 0 2px;
  border-radius: 8px;
  color: white;
  font-size: 20px;
  font-family: "Poppins", sans-serif;
  display: inline-flex;
  width: auto;
  height: 36px;
  align-items: center;
  gap: 0.4rem;
  outline: 1px solid white;
  text-decoration: none;
  overflow: visible;
  flex-shrink: 0;
}

.menu_list .redirect_btn:hover {
  background-color: white;
  color: #d24b1b;
  transition: 0.3s ease;
}

.btn-text {
  display: inline-block;
  position: relative;
  height: 24px;
  overflow: hidden;
  min-width: 0;
}

.txt-default,
.txt-hover {
  display: block;
  position: relative;
  height: 24px;
  line-height: 24px;
  white-space: nowrap;
  color: white;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.txt-hover {
  margin-top: -24px;
  opacity: 0;
  transform: translateY(100%);
}

.txt-default {
  opacity: 1;
  transform: translateY(0);
}

.menu_list .redirect_btn:hover .txt-default {
  opacity: 0;
  transform: translateY(-100%);
}

.menu_list .redirect_btn:hover .txt-hover {
  opacity: 1;
  transform: translateY(0);
}

.menu_list .redirect_btn:hover .txt-default,
.menu_list .redirect_btn:hover .txt-hover {
  color: #d24b1b;
}
/* ===== FINE REDIRECT BTN DESKTOP ===== */

/* ===== REDIRECT BTN MOBILE ===== */
.redirect_btn_mobile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 90%;
  margin: 16px auto 0 auto;
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 20px;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}
/* ===== FINE REDIRECT BTN MOBILE ===== */

.vocemenu::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 2px;
  width: 0;
  left: 0;
  background-color: #ffffff;
  transition: all ease-in 0.3s;
  mix-blend-mode: difference;
}
.vocemenu:hover::after {
  width: 100%;
}
.attuale::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 2px;
  width: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all ease-in 0.3s;
}
.attuale:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 2px;
  width: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 1);
  transition: all ease-in 0.3s;
}
.link_lang {
  display: flex;
  flex-direction: row;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: flex-end;
}
.link_lang a {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  width: auto;
  height: auto;
  margin: 0 5px;
}
.social {
  display: flex;
  flex-direction: row;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
}
.social img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.contatti_rapidi {
  display: flex;
  flex-direction: row;
  width: auto;
  height: auto;
  margin-left: 30px;
}
.contatti_rapidi img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.header.dark {
  background-color: rgba(8, 51, 119, 0.9);
  transition: background-color 0.3s ease;
}
@media screen and (max-width: 1024px) {
  .menu_btn {
    width: 30px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 0;
    z-index: 10;
  }

  .menu_btn span {
    height: 2px;
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin: 2px 4px;
  }

  .menu_btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(13px);
    width: 120%;
  }

  .menu_btn.active span:nth-child(2) {
    opacity: 0;
    width: 120%;
  }

  .menu_btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-13px);
    width: 120%;
  }
  .menu_list {
    display: none;
  }
  .menu_list_mobile {
    display: block;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
      max-height 0.4s ease,
      opacity 0.3s ease;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a5e96;
    z-index: 900;
    padding-top: 130px;
  }
  .menu_list_mobile.active {
    max-height: 100vh;
    opacity: 1;
    z-index: 900;
  }
  .menu_list_mobile a {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    background-color: transparent;
    text-decoration: none;
  }

  .vocemenu {
    width: 90%;
    padding: 10px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    text-align: center;
    margin: 0 auto;
    font-size: 24px;
  }

  .vocemenu:hover {
    background-color: #005f9f;
  }

  /* su mobile il redirect_btn desktop non appare */
  .redirect_btn {
    display: none;
  }
}
