/* BIOLIRIA: shared responsive banner and navigation, including Elementor. */
.topbar {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 8px clamp(18px, 4vw, 56px);
  line-height: 1.5;
  letter-spacing: .06em;
}
.topbar > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 70ch;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.topbar > span:last-child {
  flex: 0 0 auto;
  font-size: 12px;
  white-space: nowrap;
}
.header .nav {
  min-width: 0;
  max-width: 1340px;
  box-sizing: border-box;
}
  .header .nav > a:first-child {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
}
.header .brand {
  max-width: 100%;
  object-fit: contain !important;
  object-position: left center !important;
}
.header .nav-contact {
  flex: 0 0 auto;
  white-space: nowrap;
}
.header .menu-toggle {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
}
@media (max-width: 1024px) {
  .header .desktop {
    display: none;
  }
  .header .menu-toggle {
    display: flex;
  }
  .header .nav {
    width: calc(100% - 44px);
    height: auto;
    min-height: 76px;
    gap: 16px;
    padding-block: 8px;
  }
  .header .brand {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 60px;
    object-fit: contain !important;
    object-position: left center !important;
  }
  .header .nav > a:first-child {
    flex: 0 0 180px !important;
    width: 180px !important;
    min-width: 180px !important;
    overflow: visible;
  }
  .header .nav-contact {
    display: none !important;
  }
  .header .menu-toggle {
    margin-left: auto;
  }
  .header .mobile-nav {
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overflow-wrap: anywhere;
  }
  .header .mobile-nav:not([hidden]) {
    display: block !important;
  }
}
@media (max-width: 640px) {
  .topbar {
    min-height: 36px;
    justify-content: center;
    padding: 7px 18px;
    text-align: center;
    letter-spacing: .035em;
  }
  .topbar > span:first-child {
    flex-basis: 100%;
    max-width: none;
    font-size: 12px;
    line-height: 1.5;
    text-wrap: balance;
  }
  .topbar > span:last-child {
    display: none;
  }
  .header .nav {
    width: calc(100% - 36px);
    min-height: 70px;
    gap: 10px;
    padding-block: 8px;
  }
  .header .brand {
    width: 100% !important;
    height: auto !important;
  }
}
@media (max-width: 360px) {
  .header .nav > a:first-child {
    flex-basis: 160px !important;
    width: 160px !important;
    min-width: 160px !important;
  }
}
