.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(247, 248, 243, 0.94);
  border-bottom: 1px solid rgba(16, 23, 19, 0.1);
  color: #101713;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  backdrop-filter: blur(14px);
}

.site-header .nav {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: min(1120px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-header .brand,
.site-header .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: #101713;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 850;
  text-decoration: none;
}

.site-header .brand img,
.site-header .nav-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-header .nav-links {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  list-style: none;
  color: #65716b;
  font-size: 0.9rem;
  font-weight: 760;
  scrollbar-width: none;
}

.site-header .nav-links::-webkit-scrollbar {
  display: none;
}

.site-header .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: inherit;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.2s;
}

.site-header .nav-links a:hover,
.site-header .nav-links a:focus-visible,
.site-header .nav-links a.active {
  color: #17633c;
}

.nav-links a.nav-ha::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2318BCF2' d='M22.939 10.627 13.061.749a1.505 1.505 0 0 0-2.121 0l-9.879 9.878C.478 11.21 0 12.363 0 13.187v9c0 .826.675 1.5 1.5 1.5h9.227l-4.063-4.062a2.034 2.034 0 0 1-.664.113c-1.13 0-2.05-.92-2.05-2.05s.92-2.05 2.05-2.05 2.05.92 2.05 2.05c0 .233-.041.456-.113.665l3.163 3.163V9.928a2.05 2.05 0 0 1-1.15-1.84c0-1.13.92-2.05 2.05-2.05s2.05.92 2.05 2.05a2.05 2.05 0 0 1-1.15 1.84v8.127l3.146-3.146A2.051 2.051 0 0 1 18 12.239c1.13 0 2.05.92 2.05 2.05s-.92 2.05-2.05 2.05c-.25 0-.488-.047-.709-.13L12.9 20.602v3.088h9.6c.825 0 1.5-.675 1.5-1.5v-9c0-.825-.477-1.977-1.061-2.561z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-header .header-tools {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.language-menu {
  position: relative;
}

.language-menu-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(16, 23, 19, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #101713;
  box-shadow: 0 10px 24px rgba(16, 23, 19, 0.08);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.language-menu-button:hover,
.language-menu-button:focus-visible {
  border-color: rgba(23, 99, 60, 0.42);
  color: #17633c;
}

.language-flag {
  width: 21px;
  height: 14px;
  flex: 0 0 auto;
  display: inline-block;
  overflow: hidden;
  border-radius: 2px;
  background: #d8ded8;
  box-shadow: inset 0 0 0 1px rgba(16, 23, 19, 0.2), 0 1px 2px rgba(16, 23, 19, 0.12);
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.language-flag.flag-de {
  background: linear-gradient(to bottom, #000 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666% 100%);
}

.language-flag.flag-es {
  background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.language-flag.flag-fr {
  background: linear-gradient(to right, #0055a4 0 33.333%, #fff 33.333% 66.666%, #ef4135 66.666% 100%);
}

.language-flag.flag-gb {
  background:
    linear-gradient(146deg, transparent 0 41%, #fff 41% 46%, #c8102e 46% 50%, #fff 50% 55%, transparent 55% 100%),
    linear-gradient(34deg, transparent 0 41%, #fff 41% 46%, #c8102e 46% 50%, #fff 50% 55%, transparent 55% 100%),
    linear-gradient(to bottom, transparent 0 34%, #fff 34% 44%, #c8102e 44% 56%, #fff 56% 66%, transparent 66% 100%),
    linear-gradient(to right, transparent 0 37%, #fff 37% 45%, #c8102e 45% 55%, #fff 55% 63%, transparent 63% 100%),
    #012169;
}

.language-flag.flag-it {
  background: linear-gradient(to right, #009246 0 33.333%, #fff 33.333% 66.666%, #ce2b37 66.666% 100%);
}

.language-flag.flag-lt {
  background: linear-gradient(to bottom, #fdb913 0 33.333%, #006a44 33.333% 66.666%, #c1272d 66.666% 100%);
}

.language-code {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.language-caret {
  color: #65716b;
  font-size: 0.7rem;
}

.language-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  padding: 6px;
  display: none;
  border: 1px solid rgba(16, 23, 19, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(16, 23, 19, 0.16);
}

.language-menu.is-open .language-menu-list {
  display: grid;
  gap: 2px;
}

.language-menu-list a,
.language-menu-list .language-option {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 6px;
  color: #334039;
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.language-menu-list a:hover,
.language-menu-list a:focus-visible {
  background: #eef4ea;
  color: #17633c;
}

.language-menu-list .is-current {
  background: #f2f5ef;
  color: #17633c;
}

@media (max-width: 760px) {
  .site-header .nav {
    width: min(100% - 20px, 1120px);
    min-height: 62px;
    padding: 8px 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .site-header .brand,
  .site-header .nav-logo {
    order: 1;
    font-size: 0.92rem;
    gap: 8px;
  }

  .site-header .brand img,
  .site-header .nav-logo img {
    width: 28px;
    height: 28px;
  }

  .site-header .nav-links {
    order: 3;
    width: 100%;
    flex: 1 0 100%;
    gap: 14px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.82rem;
  }

  .site-header .header-tools {
    order: 2;
    margin-left: auto;
  }

  .language-menu-button {
    min-height: 38px;
    padding: 0 9px;
  }

  .site-header + main .hero:first-child .hero-inner {
    padding-top: max(112px, calc(112px + env(safe-area-inset-top, 0px)));
  }
}

@media (max-width: 520px) {
  .site-header .brand span,
  .site-header .nav-logo span {
    display: none;
  }
}
