#glt-translate-trigger, #drift-frame-controller {
  z-index: 1 !important;
}

/* ===== MENU POPUP LAYOUT ===== */
#menu-popup {
  z-index: 665;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  position: fixed;
  overflow: hidden;
  pointer-events: none;
  display: flex;
}
#menu-popup .internal-wrap {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 500ms ease;
}
#menu-popup .internal-wrap .row {
  overflow-y: auto;
}
#menu-popup .background {
  content: "";
  z-index: -1;
  position: absolute;
  background-color: rgb(255, 255, 255);
  border-radius: 10000px;
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transition: width 700ms ease, height 700ms ease;
}
#menu-popup.is-active {
  pointer-events: auto;
}
#menu-popup.is-active .internal-wrap {
  opacity: 1;
  transition-delay: 750ms;
}
#menu-popup.is-active .background {
  width: 10000px;
  height: 10000px;
  background-color: rgb(255, 255, 255);
  transition: width 700ms ease, height 700ms ease, background-color 400ms ease 700ms;
}

/* ===== MENU POPUP STYLE ===== */
#menu-popup .internal-wrap .bg-image {
  position: absolute;
  z-index: -1;
  opacity: 0.4;
  object-fit: cover;
}
#menu-popup .internal-wrap .custom-logo {
  width: 150px;
}
@media (min-width: 768px) {
  #menu-popup .internal-wrap .custom-logo {
    width: 200px;
  }
}
#menu-popup .internal-wrap .contact-menu ul.contact-icons {
  list-style: none;
}
#menu-popup .internal-wrap .contact-menu .icon {
  margin-right: 8px;
}
#menu-popup .internal-wrap .contact-menu a, #menu-popup .internal-wrap .contact-menu p {
  color: #717171;
  text-decoration: none;
}
#menu-popup .menu-wrap ul {
  padding: 0;
  list-style: none;
}
#menu-popup .menu-wrap .sub-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease;
}
#menu-popup .menu-wrap .sub-menu.open {
  max-height: 600px;
}

#menu-popup .menu-wrap {
  padding: 120px 0 0 0;
}
#menu-popup .menu-wrap .menu-item a {
  font-family: "Montserrat", sans-serif;
  display: block;
  text-decoration: none;
  font-weight: 600;
  color: #717171;
  font-size: 1.3em;
  margin: 12px 0;
  letter-spacing: 1px;
  transition: transform 300ms ease, color 300ms ease;
}
@media (min-width: 992px) {
  #menu-popup .menu-wrap .menu-item a {
    font-size: 35px;
    margin: 13px 0;
  }
}
#menu-popup .menu-wrap .menu-item a:hover {
  color: #B27A3A;
  transform: scale(0.98);
}
#menu-popup .menu-wrap .menu-item.current_page_item a {
  color: #B27A3A !important;
}
#menu-popup ul.social {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}
#menu-popup ul.social li.social-item {
  margin-right: 13px;
}
#menu-popup ul.social li.social-item .dashicons {
  font-size: 23px;
  font-family: dashicons !important;
  font-style: normal !important;
  transition: transform 300ms ease;
}
#menu-popup ul.social li.social-item .dashicons:hover {
  transform: scale(1.03);
}
#menu-popup .copyright * {
  font-size: 17px;
  color: white;
}

/* ===== CLOSE BUTTON ANIMATION ===== */
#menu-close-button {
  display: block;
  color: black;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  padding-left: 10px;
  position: absolute;
  cursor: pointer;
  right: 20px;
  top: 15px;
}
@media (min-width: 1400px) {
  #menu-close-button {
    top: 25px;
  }
}
#menu-close-button:before {
  content: "";
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024' fill='currentColor' overflow='hidden'%3E%3Cpath d='M810.66 170.66q18.33 0 30.495 12.165 12.165 12.165 12.165 30.495 0 18.002-12.329 30.331L572.314 511.98l268.677 268.329q12.329 12.329 12.329 30.331 0 18.33-12.165 30.495-12.165 12.165-30.495 12.165-18.002 0-30.331-12.329L512 572.293 243.671 840.97q-12.329 12.329-30.331 12.329-18.33 0-30.495-12.165-12.165-12.165-12.165-30.495 0-18.002 12.329-30.331L451.686 511.98 183.009 243.651q-12.329-12.329-12.329-30.331 0-18.33 12.165-30.495 12.165-12.165 30.495-12.165 18.002 0 30.331 12.329L512 451.666l268.329-268.677q12.329-12.329 30.331-12.329z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  width: 25px;
  height: 25px;
  position: absolute;
  left: -20px;
  top: 2px;
  transition-delay: 100ms;
  transition: transform 300ms ease;
}
#menu-close-button:hover:before {
  transform: rotate(180deg);
  transition: transform 300ms ease;
  transition-delay: 100ms;
}

/* ===== OPEN BUTTON ANIMATION ===== */
#menu-open-button {
  z-index: 666;
  cursor: pointer;
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 25px;
  filter: drop-shadow(0px 0px 3px rgb(122, 122, 122));
}
#menu-open-button p {
  font-weight: 600;
  color: white;
  line-height: 1em;
  letter-spacing: 1px;
  padding-bottom: 1px;
  position: absolute;
  left: -90px;
  top: 54%;
  transform: translateY(-50%);
  max-width: 82px;
  overflow: hidden;
}
#menu-open-button span {
  margin: 0 auto;
  position: absolute;
  top: 12px;
  background-color: white;
}
#menu-open-button span:before, #menu-open-button span:after {
  position: absolute;
  content: "";
}
#menu-open-button span, #menu-open-button span:before, #menu-open-button span:after {
  width: 35px;
  height: 4px;
  display: block;
  border-radius: 5px;
  background-color: white;
  transition: margin 300ms ease, transform 300ms ease, width 300ms ease, background-color 300ms ease;
}
#menu-open-button span:before {
  margin-top: -12px;
}
#menu-open-button span:after {
  margin-top: 12px;
}
#menu-open-button span {
  transition: width 300ms ease, background-color 300ms ease;
}

/* Animazioni per #menu-open-button */
#menu-open-button span {
  transition: background-color 300ms ease;
}
#menu-open-button p {
  transition-property: visibility;
  transition-delay: 200ms;
}

#menu-open-button.open {
  filter: none;
}
#menu-open-button.open span {
  background-color: transparent !important;
}
#menu-open-button.open span:before, #menu-open-button.open span:after {
  margin-top: 0;
  width: 100%;
  background-color: black;
}
#menu-open-button.open span:before {
  transform: rotate(45deg);
}
#menu-open-button.open span:after {
  transform: rotate(-45deg);
}
#menu-open-button.open p {
  visibility: hidden;
  transition-property: visibility;
  transition-delay: 200ms;
}

header.white #menu-open-button {
  filter: none;
}
header.white #menu-open-button span {
  background-color: black;
}
header.white #menu-open-button span:before, header.white #menu-open-button span:after {
  background-color: black;
}