/**************************/
/* visafori HEADER */
/**************************/
#header {
  z-index: 15;
  background-color: var(--c-neutral-0);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 10px #00000012;
  transition: 0.5s ease-out;
}
.nav-up #header {
  transform: translateY(-5rem);
  opacity: 0;
  pointer-events: none;
}
.ws-header {
  display: grid;
  grid-template-columns: min-content min-content minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 0.5rem 0 0;
}

.header--logo {
  justify-self: center;
}

.header-nav--container {
  display: none;
}

/**************************/
/* header-menu__sub */
/**************************/
.header--menu {
  position: relative;
}

.page-template-template-home .header--menu {
  opacity: 0;
}

.header-menu__sub {
  position: absolute;
  width: 15rem;
  left: 0;
  background: #ffff;
  box-shadow: 0 -3px 10px #eaeaea;
  padding: 1rem;
  border-radius: 8px;
  top: 90%;
  /* clip-path: circle(0.5% at 0 0); */
  opacity: 0;
  pointer-events: none;
  transition: 0.3s var(--ease2);
  transform: translateY(1rem);
}

.header--menu:hover .header-menu__sub {
  /* clip-path: circle(140.9% at 0 0); */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/**************************/
/* SubMenu*/
/**************************/
.header-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.header-nav > li > div {
  overflow: hidden;
  position: relative;
  line-height: 1.2;
  color: var(--c-neutral-800);
}

.header-nav > li > div > a {
  display: inline-block;
  position: relative;
}

.header-nav > li {
  padding: 2rem 1rem 2.5rem;
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.header-nav > li > .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 0;
  padding-right: 0;
  margin: 0 2rem;
  padding-top: 9px;
  padding-bottom: 9px;
}

.header-nav > li > .sub-menu li a:hover {
  color: var(--c-primary-500);
}

.header-nav > li > .sub-menu li:first-child {
  margin-top: 1rem;
}

.header-nav > li > .sub-menu li:last-child {
  margin-bottom: 1rem;
}

.header-nav > li ul li ul li:first-child {
  margin-top: 1rem !important;
}

.header-nav > li ul li ul li:last-child {
  margin-bottom: 1rem !important;
}

.header-nav > .menu-item-has-children:after {
  content: "\e901";
  font-family: var(--ff-icon);
  display: inline-block;
  margin-right: 0px;
  font-size: 0.8rem;
  transition: 0.3s;
  position: absolute;
  left: -0.6rem;
  top: 50%;
  transform: translateY(-50%);
}

.header-nav > .menu-item-has-children:hover:after {
  transform: translateY(-50%) rotate(180deg);
  color: var(--c-clay);
}

.header-nav li > .sub-menu {
  box-shadow: 0 4px 24px #0000001a;
}

.header-nav > li > .sub-menu li.menu-item-has-children > a:after {
  content: "\e912";
  margin-right: auto;
  font-family: var(--ff-icon);
  font-size: 1rem;
}

/* .header-nav > li > .sub-menu li:not(:last-child) > a {
  border-bottom: 1px solid #b19aa841;
} */
/* .header-nav > .menu-item-has-children > .sub-menu {
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / 48%);
  -webkit-clip-path: inset(0 -100vmax -100vmax -100vmax);
  clip-path: inset(0 -100vmax -100vmax -100vmax);
} */
.header-nav > li > .sub-menu > li > a {
  transform: translateY(4px);
  transition: 0.4s;
  opacity: 0;
}

.header-nav > li:hover > .sub-menu > li > a {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
  z-index: 9999;
  overflow: visible;
  pointer-events: auto;
  transform: translateY(0px);
  line-height: 1.8;
}

.header-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
  z-index: 9999;
  overflow: visible;
  pointer-events: auto;
}

.menu-item-has-children {
  position: relative;
}

.header-nav .sub-menu {
  width: -webkit-max-content !important;
  width: -moz-max-content !important;
  width: max-content !important;
  min-width: 25rem;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  border-radius: 14px;
  background: #fff;
  pointer-events: none;
  opacity: 0;
  transition-property: opacity;
  transition-duration: 0.3s;
  transition-timing-function: ease-in;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.header-nav > li ul li ul {
  top: 0% !important;
  right: 100% !important;
}
.header-menu__phone {
  border: 1px solid var(--c-neutral-150);
  border-radius: 12px;
  padding: 0.4rem 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--c-secondary-800);
}
.header-menu__phone i {
  transform: rotateY(180deg);
  font-size: 2rem;
}
.header-menu__btn {
  color: var(--c-primary-500);
  font-size: 3rem;
  line-height: 1;
}
/**************************/
/* BELOW 360px */
/**************************/
@media (min-width: 22.5em) {
}

/**************************/
/* BELOW 576px */
/**************************/
@media (min-width: 36em) {
}

/**************************/
/* ABOVE 800px */
/**************************/

@media (max-width: 50em) {
  .ws-header {
    padding: 1rem 0;
  }
  .header--logo {
    justify-self: end;
    max-width: 16rem;
  }
}

@media (min-width: 50em) {
  .header-menu__btn {
    display: none;
  }
  .header-menu__phone {
    order: 1;
  }

  .header-nav--container {
    display: block;
  }

  .ws-header {
    grid-template-columns: 16rem minmax(0, 1fr) -webkit-max-content;
    grid-template-columns: 16rem minmax(0, 1fr) max-content;
  }
}
