/* MEDIA QUERIES */

@media not all and (min-width: 1536px) {
  :root {
    --wp--custom--wrapper--px: 40px !important;
  }
}

@media not all and (min-width: 1280px) {

}

@media not all and (min-width: 1024px) {
  :root {
    --wp--custom--wrapper--gap: 60px !important;
    --wp--preset--font-size--60: 44px !important;
    --wp--preset--font-size--44: 36px !important;
    --wp--preset--font-size--32: 28px !important;
  }
}

@media not all and (min-width: 768px) {
  :root {
    --wp--custom--wrapper--px: 20px !important;
    --wp--custom--wrapper--gap: 40px !important;
  }
}

@media not all and (min-width: 640px) {
  :root {
    --wp--preset--font-size--60: 36px !important;
    --wp--preset--font-size--44: 32px !important;
    --wp--preset--font-size--32: 24px !important;
  }
}

@media not all and (min-width: 391px) {
}

/* GENERAL */

html {
  scroll-behavior: smooth;
}

p:empty {
  display: none;
}

:root {
  --black: var(--wp--preset--color--custom-black);
  --white: var(--wp--preset--color--custom-white);
  --dark-blue: var(--wp--preset--color--custom-dark-blue);
  --light-blue: var(--wp--preset--color--custom-light-blue);
  --yellow: var(--wp--preset--color--custom-yellow);
  --px: var(--wp--custom--wrapper--px);
  --py: var(--wp--custom--wrapper--py);
  --gap: var(--wp--custom--wrapper--gap);
}

/* HEADER */

html[data-scroll="0"] .div-header {
  background: transparent;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0);
  transition: all 0.3s ease-out;
}

html:not([data-scroll="0"]) .div-header {
  background: var(--white);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-out;
}

.logo-header {
  fill: var(--dark-blue);
  transition: fill 0.3s ease-out;
}

.logo-header:hover {
  fill: var(--light-blue);
}

.icon-burger {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 24px;
  border: solid 1px var(--dark-blue);
  background: var(--dark-blue);
}

.text-burger {
  position: relative;
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
  height: 27px;
  width: 50px;
  font-weight: 500;
  color: var(--white);
  font-size: var(--wp--preset--font-size--p);
  font-family: var(--wp--preset--font-family--roboto-condensed);
}

.icon-burger .text-burger-wrapper {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  left: 0;
  top: 0;
  width: max-content;
  height: 200%;
  transform: translateY(0%);
  transition: transform 0.4s ease-out;
}

.icon-burger.active .text-burger-wrapper {
  transform: translateY(-50%);
}

.text-burger span {
  height: 100%;
}

.lines-burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 14px;
}

.icon-burger .lines-burger span {
  transform: rotate(0) translateX(0) translateY(0);
  opacity: 1;
  transition: all 0.3s ease-out;
}

.icon-burger.active .lines-burger span:nth-child(1) {
  transform: rotate(45deg) translateX(3.5px) translateY(3.5px);
}

.icon-burger.active .lines-burger span:nth-child(2) {
  opacity: 0;
} 

.icon-burger.active .lines-burger span:nth-child(3) {
  transform: rotate(-45deg) translateX(3.5px) translateY(-3.5px);
}

/* MENU MOBILE */

.menu-mobile {
  position: fixed;
  z-index: 2;
  top: 0;
  right: 0;
  transform: translateX(100%);
  transition: height 0.3s ease-out, transform 0.4s ease-out;
}

.menu-closed {
  transform: translateX(100%);
}

.menu-opened {
  transform: translateX(0%);
}

/* CUSTOM BUTTON */

.btn-contact {
  padding: 12px 24px;
  font-weight: 500;
  border: solid 1px; 
  background: transparent;
  transition: all 0.3s ease-out;
}

html[data-scroll="0"] .btn-contact {
  color: var(--white);
  border-color: var(--white);
}

html:not([data-scroll="0"]) .btn-contact {
  color: var(--dark-blue);
  border-color: var(--dark-blue);
}

html[data-scroll="0"] .btn-contact:hover,
html:not([data-scroll="0"]) .btn-contact:hover {
  background: rgba(249, 248, 255, 0.90);
  color: var(--black);
  border-color: rgba(249, 248, 255, 0.90);
}

/* SLIDER INFINITE */

@keyframes animateSliderInfinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.animate-slider-infinite {
  animation: animateSliderInfinite linear infinite;
  animation-duration: var(--duration);
}