header {
  position: sticky;
  top: 0;
  height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  z-index: 21;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
  transition: background-color 0.5s ease;
}
header.opaque {
  background: none;
  background-color: #3A6661;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.25);
}
header.opaque ul .first.active span {
  color: #3A6661;
}
header.opaque ul .first.active div, header.opaque ul .first.active.flags {
  padding: 0 0.5rem 0.5rem 0.5rem;
  border-radius: 0 0 5px 5px;
  background: #3A6661;
}
header ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  padding-inline: 0;
}
header ul .first {
  cursor: pointer;
}
header ul .first.text span {
  font-weight: 600;
  margin: 0.25rem;
  text-transform: uppercase;
}
header ul .first.text span:hover {
  text-decoration: underline;
}
header ul .first img {
  height: 1.5rem;
}
header ul .first.search-button:hover img, header ul .first.contact:hover img {
  scale: 0.9;
}
header ul .first.contact img {
  height: 1.25rem;
}
header ul .first input {
  padding: 1px;
  color: #fff;
  font-weight: 800;
}
header ul .first ::placeholder {
  color: rgba(255, 255, 255, 0.75);
}
header ul .first div {
  display: none;
}
header ul .first.flags {
  display: flex;
  align-items: center;
  justify-content: center;
}
header ul .first.flags a {
  width: 1.5rem;
  height: 1.5rem;
}
header ul .first.flags a:nth-child(1) {
  z-index: 2;
}
header ul .first.flags a:nth-child(2) {
  z-index: 1;
}
header ul .first.flags a:nth-child(3) {
  z-index: 0;
}
header ul .first.flags a.current {
  z-index: 4;
  order: -1;
}
@media (hover: hover) and (pointer: fine) {
  header ul .first.flags:hover a {
    margin-right: -0.25rem;
  }
  header ul .first.flags a {
    margin-right: -0.75rem;
    transition: all 0.25s ease;
  }
  header ul .first.flags a:hover {
    transform: scale(1.1) translateY(-0.25rem);
  }
}
@media (hover: none) and (pointer: coarse) {
  header ul .first.flags {
    flex-direction: column;
    padding: 0 0.5rem 0;
  }
  header ul .first.flags a {
    margin-top: -100%;
    transition: margin-top 0.25s ease;
  }
  header ul .first.flags a.current {
    display: block;
    margin-top: 0;
  }
  header ul .first.flags.active {
    transform: translateY(33.3333333333%);
  }
  header ul .first.flags.active a {
    margin-top: 25%;
    display: block;
  }
}
header ul .first.active {
  position: relative;
}
header ul .first.active span {
  background-color: #fff;
  color: #aecee9;
  margin: 0 !important;
  text-decoration: none !important;
  padding: 0.25rem;
  border-radius: 2.5px;
}
header ul .first.active div {
  min-width: 3rem;
  cursor: default;
  display: block;
  position: absolute;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: -1;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
header ul .first.active div ul {
  align-items: start;
  gap: 0.5rem;
  flex-direction: column;
  margin-left: 0.25rem;
  padding: 0.75rem 0.5rem 0.125rem 0.5rem;
  border-left: solid #fff 1px;
}
header ul .first.active div ul a {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
header button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: none;
  padding: 0;
}
header button svg {
  transform: translateX(-20%);
  width: 3rem;
  height: 3rem;
}
header .line {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  transition: stroke-dasharray 0.5s cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
header .line1 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}
header .line2 {
  stroke-dasharray: 60 60;
  stroke-width: 6;
}
header .line3 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}
header .opened .line1 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}
header .opened .line2 {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
  stroke-width: 6;
}
header .opened .line3 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}
@media (max-width: 1280px) {
  header ul {
    gap: 0.5rem;
  }
}
@media (max-width: 1130px) {
  header {
    padding: 0.75rem 1.5rem;
  }
  header button {
    display: flex;
  }
  header .text {
    display: none;
  }
}
@media (max-width: 640px) {
  header .contact {
    display: none;
  }
}

.responsive-header {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  width: 100%;
  height: 100%;
  z-index: 20;
}
.responsive-header .content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  padding: 2rem;
  position: fixed;
  top: 4.5rem;
  left: 0;
  width: 100%;
  min-height: -webkit-fill-available;
  background: linear-gradient(0deg, rgba(41, 80, 101, 0.5) 0%, rgba(41, 80, 101, 0.5) 100%), url("../../assets/pictures/menu-background.webp") no-repeat center 45%/cover;
  transition: background-position 0.5s ease;
}
.responsive-header .content.active {
  background-position: right !important;
}
.responsive-header .content.active .text {
  transform: translateX(-100vw);
}
.responsive-header .content.active .sub-menu {
  transform: translateX(100vw) !important;
}
.responsive-header .content .text, .responsive-header .content .icons, .responsive-header .content .sub-menu {
  transition: transform 0.5s ease;
}
.responsive-header .content .text {
  list-style: none;
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  color: #ffffff;
  font-family: "Degular", sans-serif;
}
.responsive-header .content .text .first {
  cursor: pointer;
}
.responsive-header .content .text .first .main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.375rem;
}
.responsive-header .content .text .first .main:hover {
  text-decoration: underline;
}
.responsive-header .content .text .first .main img {
  height: 1.5rem;
}
.responsive-header .content .text .first .sub-menu {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  flex-direction: column;
  transform: translateX(200vw);
  transition: transform 0.5s;
}
.responsive-header .content .text .first .sub-menu .close-button {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 500;
  gap: 1ch;
  opacity: 0.85;
}
.responsive-header .content .text .first .sub-menu .close-button img {
  height: 1.5rem;
}
.responsive-header .content .text .first .sub-menu .close-button:hover {
  text-decoration: underline;
}
.responsive-header .content .text .first .sub-menu .title {
  margin-top: 1.5rem;
  padding-left: 0.5rem;
  font-size: 1.625rem;
  font-weight: 800;
}
.responsive-header .content .text .first .sub-menu ul li {
  margin-top: 0.375rem;
  font-size: 1.375rem;
}
.responsive-header .content .text .first .sub-menu ul li a {
  display: block;
}
.responsive-header .content .text .first.active .sub-menu {
  display: flex;
}
.responsive-header .content .icons {
  display: flex;
  gap: 2.5rem;
  flex-direction: column;
}
.responsive-header .content .icons .separation {
  background-color: #ffffff;
  width: 100%;
  height: 0.125rem;
  border-radius: 1rem;
}
.responsive-header .content .icons .icons-list {
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.responsive-header .content .icons .icons-list a div {
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.25);
  width: 4rem;
  height: 4rem;
  transition: padding 0.25s ease;
}
.responsive-header .content .icons .icons-list a div:hover {
  padding: 0.875rem;
}
.responsive-header .content .icons .icons-list a div:active {
  padding: 0.75rem;
}
@media (max-width: 1130px) {
  .responsive-header.active {
    transform: none;
  }
}
.responsive-header .first.contact {
  display: none;
}
@media (max-width: 640px) {
  .responsive-header .first.contact {
    display: block;
  }
}

@media (max-width: 1130px) {
  body:has(.responsive-header.active) {
    overflow: hidden;
  }
}

.search {
  z-index: 25;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(41, 80, 101, 0.625);
  backdrop-filter: blur(10px);
  display: none;
  z-index: 26;
}
.search.active {
  display: inherit;
}
.search .close {
  position: absolute;
  top: 0;
  right: 0;
  margin: 7.5rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  padding: 0;
}
.search .close img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 7px rgba(0, 0, 0, 0.25));
}
.search .close:hover img {
  filter: invert(0.25);
}
.search .bar {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -25%);
  display: flex;
  align-items: center;
  height: 5rem;
  width: 45rem;
  border-radius: 5px;
  box-shadow: 0 0 12.5px 0 rgba(0, 0, 0, 0.25);
}
.search .bar input {
  width: calc(100% - 3.75rem);
  height: 100%;
  padding: 0.5rem 0.125rem 0.5rem 1rem;
  border-radius: 5px 0 0 5px;
  background-color: #fff;
  color: #3A6661;
  font-weight: 700;
}
.search .bar input::placeholder {
  color: #69827F;
}
.search .bar button {
  width: 3.75rem;
  height: 100%;
  background-color: #3A6661;
  padding: 1rem;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  box-shadow: 0 0 12.5px 0 rgba(0, 0, 0, 0.125);
  transition: all 0.25s ease;
}
.search .bar button:hover {
  background-color: #69827F;
}
.search .bar button:active {
  background-color: #3A6661;
}
@media (max-width: 1280px) {
  .search .close {
    margin: 5rem;
  }
}
@media (max-width: 917px) {
  .search .close {
    margin: 3.75rem;
  }
  .search .bar {
    height: 5rem;
    width: 35rem;
  }
}
@media (max-width: 640px) {
  .search .close {
    margin: 2.5rem;
  }
  .search .bar {
    height: 3.75rem;
    width: 25rem;
  }
}
@media (max-width: 448px) {
  .search .close {
    margin: 1.75rem;
  }
  .search .bar {
    height: 3.75rem;
    width: 90vw;
  }
}

body:has(.search.active) {
  overflow: hidden;
}

.home-logo {
  position: absolute;
  top: 0.375rem;
  left: 50%;
  z-index: 25;
  transform: translate(-50%, 25vh) scale(3);
}
.home-logo img {
  height: 3.5rem;
}
.home-logo.sticky {
  position: fixed;
  transform: translateX(-50%) !important;
}

.side-icons {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: 1rem;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  z-index: 3;
}
@media (max-width: 917px) {
  .side-icons {
    display: none;
  }
}
.side-icons.active a {
  opacity: 0;
  animation-name: fade-in;
}
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.side-icons.active a:nth-child(1) {
  animation-delay: 0.125s;
}
.side-icons.active a:nth-child(2) {
  animation-delay: 0.25s;
}
.side-icons.active a:nth-child(3) {
  animation-delay: 0.375s;
}
.side-icons.active a:nth-child(4) {
  animation-delay: 0.5s;
}
.side-icons.disabled a {
  opacity: 1;
  animation-name: fade-out;
}
@keyframes fade-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}
.side-icons.disabled a:nth-child(4) {
  animation-delay: 0.125s;
}
.side-icons.disabled a:nth-child(3) {
  animation-delay: 0.25s;
}
.side-icons.disabled a:nth-child(2) {
  animation-delay: 0.375s;
}
.side-icons.disabled a:nth-child(1) {
  animation-delay: 0.5s;
}
.side-icons a {
  opacity: 0;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}
.side-icons a div {
  padding: 0.625rem;
  border-radius: 50%;
  box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.25);
  width: 3rem;
  height: 3rem;
  transition: padding 0.25s ease;
}
.side-icons a div:hover {
  padding: 0.5rem;
}
.side-icons a div:active {
  padding: 0.375rem;
}