/* ------------------------------------------- */
/* MENU DESKTOP */
/* ------------------------------------------ */
#menu-desktop {
  position: relative;
  background-color: #ffffff;
}

#menu-desktop .logo {
  height: 60px;
}

#menu-desktop .contacts a {
  text-decoration: none;
  color: var(--dark);
}

#menu-desktop .contacts a i {
  font-size: 20px;
}

#menu-desktop ul {
  margin: 0;
  padding: 0;
  height: 100%;
  left: 0;
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#menu-desktop ul li {
  position: relative;
  margin-right: 25px;
  height: 100%;
  display: flex;
  align-items: center;
}

#menu-desktop ul li:last-child {
  margin-right: 0;
}

#menu-desktop ul .menu-item-has-children a::after {
  content: "\f107";
  font-family: "Font Awesome 6 Pro";
  font-weight: 500;
  font-size: 12px;
  display: flex;
  align-items: center;
  margin-left: 4px;
  margin-top: 2px;
}

#menu-desktop ul li a {
  font-size: 16px;
  text-decoration: none;
  color: var(--dark);
  font-weight: bold;
  display: flex;
  align-items: center;
}

#menu-desktop ul .menu-item-has-children .sub-menu {
  visibility: hidden;
  opacity: 0;
  transition: 0.1s ease-in-out;
  min-width: 250px;
  height: auto;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 70%;
  left: 0;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
  display: block;
  background-color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
}

#menu-desktop ul .menu-item-has-children:hover>.sub-menu {
  visibility: visible;
  opacity: 1;
}

#menu-desktop ul .menu-item-has-children .sub-menu li {
  position: unset;
  margin: 0;
  height: auto;
}

#menu-desktop ul .menu-item-has-children .sub-menu li a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 7px 15px;
  font-weight: 400;
  font-size: 15px;
  transition: 0.1s ease-in-out;
}

#menu-desktop ul .menu-item-has-children .sub-menu li a:after {
  display: none;
}

#menu-desktop ul .menu-item-has-children .sub-menu li a:hover {
  background-color: var(--light-grey);
}

#menu-desktop #menu-item-197,
#menu-desktop #menu-item-198xx {
  position: unset !important;
}

#menu-desktop #menu-item-197 .sub-menu,
#menu-desktop #menu-item-198xx .sub-menu {
  position: fixed !important;
  top: 92px !important;
  left: 50% !important;
  transform: translateX(-50%);
  padding: 10px 30px !important;
  width: auto !important;
  max-width: 100vw !important;
  display: flex !important;
  justify-content: unset !important;
  /* flex-wrap: wrap !important; */
  align-items: center;
  background-color: #ffffff !important;
  border-top-right-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

#menu-desktop #menu-item-197 .sub-menu li,
#menu-desktop #menu-item-198xx .sub-menu li {
  border-right: 1px solid #989898 !important;
  margin: 20px 0 !important;
}

#menu-desktop #menu-item-197 .sub-menu li:last-child,
#menu-desktop #menu-item-198xx .sub-menu li:last-child {
  border-right: 0 !important;
}

#menu-desktop #menu-item-197 .sub-menu li a,
#menu-desktop #menu-item-198xx .sub-menu li a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 0 20px !important;
  font-weight: bold !important;
  text-align: center;
}

#menu-desktop #menu-item-197 .img-menu,
#menu-desktop #menu-item-198xx .img-menu {
  width: 160px;
  transition: 0.25s ease-in-out;
}

#menu-desktop #menu-item-197 .sub-menu li a:hover,
#menu-desktop #menu-item-198xx .sub-menu li a:hover {
  background-color: inherit !important;
}

#menu-desktop #menu-item-197 .sub-menu li a:hover .img-menu,
#menu-desktop #menu-item-198xx .sub-menu li a:hover .img-menu {
  transform: scale(1.07);
}

.wpml-select {
  cursor: pointer;
}

.wpml-ls-legacy-dropdown {
  width: auto;
  max-width: 100%;
}

.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:before {
  content: "\f0ac";
  font-family: "Font Awesome 6 Pro";
  font-weight: 300;
  color: var(--dark);
  font-size: 24px;
  margin-right: 8px;
}

.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:after {
  content: "\f078";
  font-family: "Font Awesome 6 Pro";
  font-size: 14px;
  font-weight: 300;
  position: absolute;
  right: 10px;
  top: 53%;
  transform: translateY(-50%);
  border: none !important;
}

.wpml-ls-legacy-dropdown a {
  border: none !important;
}

.wpml-ls-legacy-dropdown .wpml-ls-current-language:hover>a,
.wpml-ls-legacy-dropdown a:focus,
.wpml-ls-legacy-dropdown a:hover {
  border-bottom: none !important;
  color: #000;
  background: #ffffff;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
  border: none !important;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
  background-color: #ffffff !important;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu li {
  width: 100%;
}

.wpml-ls-sub-menu li a {
  width: 100%;
  display: block;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------- */
/* BARRA DI RICERCA - DESKTOP */
/* ------------------------------------------ */

#buttonSearch {
  background-color: unset;
  border: unset;
  padding: 0;
  height: 60px;
  width: 60px;
  border-radius: 50px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  transition: 0.1s ease-in-out;
}

/* #buttonSearch.clicked {
  background-color: var(--dark);
} */

/* #buttonSearch.clicked i {
  color: #ffffff;
} */

#buttonSearch i {
  font-size: 23px;
}

#searchBar {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: auto;
}

#searchBar.open {
  display: block !important;
}

#searchBar input {
  width: 100%;
  padding: 10px 20px;
  border: 1px solid #d9d9d9;
  border-radius: 50px;
  background-color: #ffffff;
}

#searchBar #searchsubmit {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  border: none;
  background-color: transparent;
  font-size: 20px;
}

#searchBar #searchformClose {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  width: 30px;
  background-color: #000;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
  line-height: auto;
}

/* ------------------------------------------- */
/* BARRA DI RICERCA - MOBILE */
/* ------------------------------------------ */

#menu-mobile #buttonSearch {
  border: none;
  background-color: transparent;
  padding: 0;
}

#menu-mobile #buttonSearch i {
  font-size: 22px;
  color: #000 !important;
}

#searchBar.mobile {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  padding: 0;
}

#searchBar.mobile input {
  font-size: 14px;
}

/* ------------------------------------------- */
/* MENU MOBILE */
/* ------------------------------------------ */

#menu-mobile {
  height: 90px;
  width: 100%;
  z-index: 10000;
  background-color: #ffffff;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

#menu-mobile .logo img {
  width: 180px;
}

#menu-mobile .hamburger {
  position: relative;
  transition: transform 0.3s;
  width: 45px;
  height: 35px;
  background-color: var(--primary-color);
  padding: 8px;
}

.#menu-mobile .hamburger .boxed {
}

#menu-mobile .hamburger__line {
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background-color: #ffffff;
  transition: 0.2s;
  position: absolute;
  z-index: 100000;
}

#menu-mobile .hamburger__line:nth-child(1) {
  top: 0;
  left: 0;
}

#menu-mobile .hamburger__line:nth-child(2) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

#menu-mobile .hamburger__line:nth-child(3) {
  bottom: 0;
  left: 0;
}

#menu-mobile .opened .hamburger__line:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
}

#menu-mobile .opened .hamburger__line:nth-child(2) {
  opacity: 0;
}

#menu-mobile .opened .hamburger__line:nth-child(3) {
  transform: rotate(-45deg);
  top: 50%;
}

#menu-mobile .mobile-menu {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  height: calc(100% - 80px);
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  padding: 30px 0;
  list-style-type: none;
  z-index: 1000000000000;
}

#menu-mobile .open {
  left: 0 !important;
}

#menu-mobile .mobile-menu li {
  padding: 9px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #e5e5e5;
}

#menu-mobile .mobile-menu li:last-child {
  border-bottom: none !important;
}

#menu-mobile .mobile-menu li a {
  text-decoration: none;
  color: var(--third-color);
  font-weight: bold;
  height: 100%;
  padding: 0 12px;
}

#menu-mobile .menu-item-has-children:after {
  display: none;
}

#menu-mobile .mobile-menu li a img {
  display: none;
}

#menu-mobile .mobile-menu li ul {
  /* display: none; */
  background-color: #ffffff;
  position: fixed;
  z-index: 1000000;
  margin: 0;
  padding: 20px 0 30px 56px;
  top: 80px;
  left: 100%;
  width: 100%;
  transition: 0.2s ease-in-out;
  height: calc(100vh - 80px);
  overflow: auto;
}

#menu-mobile .go-back {
  color: #ffffff;
  position: absolute;
  z-index: 100000000;
  top: 0;
  left: 100%;
  width: 55px;
  height: calc(100vh - 80px);
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  font-size: 25px;
  transition: 0.2s ease-in-out;
}

#menu-mobile .fixed {
  position: fixed !important;
}

#menu-mobile .openMenu {
  left: 0 !important;
}

#menu-mobile .sub-menu-arrow {
    border: none !important;
    color: #ffffff;
    height: 18px;
    width: 18px;
    border-radius: 50px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

#menu-mobile .wpml-ls-legacy-list-horizontal {
  padding: 0 10px;
}

#menu-mobile .wpml-ls-legacy-list-horizontal a {
    display: block;
    text-decoration: none;
    padding: 0;
    line-height: 1;
}

#menu-mobile .wpml-ls-legacy-list-horizontal ul li:first-child a {
  padding-right: 5px;
}

/* ------------------------------------------- */
/* MOBILE BAR */
/* ------------------------------------------ */

#mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
}

#mobile-bar .mobile-bar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  width: 100%;
  height: 100%;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 16px;
  padding: 20px 0;
}

#mobile-bar .widget {
  text-decoration: none;
}

#mobile-bar .widget i {
  color: #989898;
  font-size: 20px;
}