:root {
  --theme-page-bg: #35475c;
  --theme-bg: #35475c;
  --theme-surface-dark: #1d1f25;
  --theme-text: #ffffff;
  --theme-ink: #0f1115;
}

html {
  background-color: var(--theme-page-bg);
  min-height: 100%;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background-color: var(--theme-page-bg);
  color: var(--theme-text);
  font-family: Lato, sans-serif;
}

body::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: clamp(320px, 48vw, 820px);
  pointer-events: none;
  background-color: var(--theme-page-bg);
  background-image:
    linear-gradient(180deg, var(--theme-page-bg) 0%, rgba(53, 71, 92, 0) 100%),
    url('../images/fundo_geral.webp');
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center bottom;
  background-size: 100% 100%, 100% auto;
}

.theme-container {
  width: min(1300px, 92%);
  margin: 0 auto;
}

.theme-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 31;
  box-sizing: border-box;
  width: 100%;
  max-width: 1920px;
  padding: 22px;
  margin: 0 auto;
  background: transparent;
  pointer-events: none;
}

.theme-header__shell {
  position: relative;
  pointer-events: auto;
  width: 100%;
  background: #00000094;
  border: 1px solid #ffffff;
  border-radius: 8px 8px 0 0;
  padding: 0;
  overflow: visible;
  isolation: isolate;
}

.theme-header__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.theme-header__shell > * {
  position: relative;
  z-index: 1;
}

.theme-header__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
  padding: 0;
}

.theme-logo {
  display: flex;
  align-items: center;
  padding: 20px 0 20px 22px;
}

.theme-header__actions {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  margin-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.85);
}

.theme-header__lang {
  position: relative;
  display: flex;
  align-items: stretch;
  border-right: 1px solid rgba(255, 255, 255, 0.85);
}

.theme-header__lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Lato, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.theme-header__lang-toggle:hover,
.theme-header__lang-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.theme-header__lang-chevron {
  width: 9px;
  height: 6px;
  transition: transform 0.2s ease;
}

.theme-header__lang.is-open .theme-header__lang-chevron {
  transform: rotate(180deg);
}

.theme-header__lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 120px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.theme-header__lang-menu[hidden] {
  display: none;
}

.theme-header__lang-option {
  display: block;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  font-family: Lato, sans-serif;
  font-size: 14px;
  line-height: 1;
}

.theme-header__lang-option:hover,
.theme-header__lang-option:focus-visible,
.theme-header__lang-option.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.theme-header__contact-wrap {
  display: flex;
  align-items: stretch;
}

.theme-header__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  padding: 20px 0;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.theme-header__phone:hover,
.theme-header__phone:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.theme-header__phone svg {
  width: 20px;
  height: 20px;
}

.theme-header__inner > .theme-logo,
.theme-header__inner > .theme-burger,
.theme-header__inner > .mb-nav-overlay {
  align-self: center;
}

.theme-nav__body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.theme-nav__drawer-head {
  display: none;
}

.theme-nav__drawer-label {
  margin: 0;
  font-family: Lato, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.theme-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-nav__close svg {
  width: 18px;
  height: 18px;
}

.theme-nav__close:hover,
.theme-nav__close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--mb-primary);
}

.theme-header .custom-logo-link,
.theme-header .custom-logo-link img,
.theme-header img.custom-logo {
  max-height: 80px;
  max-width: 200px;
  width: auto;
  height: auto;
  display: block;
}

.theme-logo a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.theme-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: Lato, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1;
  width: 100%;
  justify-content: space-around;
}

@media (min-width: 1024px) {
  .mb-nav-overlay {
    display: none !important;
  }

  .theme-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .theme-header__shell {
    grid-column: 1;
    grid-row: 1;
  }

  #mb-primary-navigation.mb-primary-nav {
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    display: flex !important;
    position: relative;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    align-self: stretch;
    gap: 20px;
    padding: 0 0 0 min(240px, 34vw);
    background: transparent;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
    pointer-events: none;
    animation: none;
  }

  #mb-primary-navigation.mb-primary-nav .theme-nav__body,
  #mb-primary-navigation.mb-primary-nav .theme-header__actions {
    pointer-events: auto;
  }

  .theme-header__inner {
    position: relative;
    z-index: 1;
    pointer-events: none;
  }

  .theme-header__inner > .theme-logo,
  .theme-header__inner > .theme-burger {
    pointer-events: auto;
  }

  .theme-nav__body {
    flex: 1 1 auto;
    padding: 20px 0;
  }

  .theme-header__actions {
    margin-left: 0;
  }

  .theme-nav__list {
    flex-wrap: nowrap;
    gap: 80px;
    justify-content: center;
  }

  .theme-nav__list a {
    white-space: nowrap;
  }
}

.theme-nav__list a {
  color: #fff;
  text-decoration: none;
}

.theme-nav__list a:hover,
.theme-nav__list a:focus-visible {
  color: var(--mb-primary);
  opacity: 1;
}

.theme-burger {
  background: transparent;
  color: #fff;
  border: 0;
  display: none;
  position: relative;
  z-index: 32;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
}

.mb-btn-primary,
.mb-btn-secondary,
.mb-btn-tertiary {
  border-radius: 50px !important;
  font-family: Lato, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.theme-footer {
  padding: 22px;
  margin: 0;
  background: transparent;
  color: #fff;
}

.theme-footer__shell {
  width: min(1608px, 100%);
  max-width: 1608px;
  margin: 0 auto;
  background: #000000cc;
  border-radius: 10px;
  padding: 34px 36px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.theme-footer__container {
  width: 100%;
  margin: 0 auto;
}

.theme-footer__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.theme-footer__logo-link {
  display: inline-block;
  line-height: 0;
}

.theme-footer__logo-link--text {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}

.theme-footer__logo .custom-logo-link,
.theme-footer__logo .custom-logo-link img,
.theme-footer__logo img.custom-logo {
  max-width: 280px;
  max-height: 90px;
  width: auto;
  height: auto;
  display: block;
}

.theme-footer__contact-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.theme-footer__contact-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 28px;
  flex-wrap: wrap;
}

.theme-footer__contact-item {
  margin: 0;
  font-family: Lato, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.theme-footer__contact-label {
  font-weight: 700;
  margin-right: 0.35rem;
}

.theme-footer__contact-item a,
.theme-footer__contact-item span {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}

.theme-footer__contact-item a:hover,
.theme-footer__contact-item a:focus-visible {
  color: var(--mb-primary);
}

.theme-footer__social {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  flex-shrink: 0;
}

.theme-footer__social-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.theme-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.theme-footer__social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.theme-footer__social-link:hover,
.theme-footer__social-link:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--mb-primary);
  opacity: 1;
}

.theme-footer__rule {
  margin: 40px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-footer__bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  column-gap: 16px;
  row-gap: 40px;
  padding-top: 40px;
}

.theme-footer__copyright {
  margin: 0;
  font-family: Lato, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  grid-column: 1;
  justify-self: start;
}

.theme-footer__legal-link,
.theme-footer__dev {
  color: #fff;
  text-decoration: none;
  font-family: Lato, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.theme-footer__legal-link--privacy {
  grid-column: 2;
  justify-self: center;
}

.theme-footer__legal-link--terms {
  grid-column: 3;
  justify-self: center;
}

.theme-footer__legal-link:hover,
.theme-footer__legal-link:focus-visible,
.theme-footer__dev:hover,
.theme-footer__dev:focus-visible {
  color: #fff;
  opacity: 0.85;
}

.theme-footer__dev {
  display: inline-flex;
  align-items: center;
  grid-column: 4;
  justify-self: end;
}

.theme-footer__dev img {
  width: 118px;
  height: auto;
  max-width: 118px;
  display: block;
}

#primary {
  min-height: 40vh;
  overflow-x: hidden;
}

@media (max-width: 1023px) {
  body.is-mb-mobile-nav-open {
    overflow: hidden;
  }

  .theme-header {
    padding: 16px;
  }

  .theme-header__inner {
    padding: 0;
  }

  .theme-logo {
    padding: 16px 0 16px 18px;
  }

  .theme-header__shell {
    overflow: visible;
  }

  .theme-burger {
    margin-left: auto;
    display: inline-flex;
    padding: 16px 18px 16px 0;
  }

  #mb-primary-navigation.mb-primary-nav {
    display: none !important;
  }

  #mb-primary-navigation.mb-primary-nav:not(.hidden) {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 30;
    box-sizing: border-box;
    width: min(360px, calc(100vw - 24px));
    max-width: min(360px, calc(100vw - 24px));
    height: 100dvh;
    max-height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(env(safe-area-inset-top, 0px) + 1.5rem) 1.5rem max(1.5rem, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #141821 0%, #090b10 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: -18px 0 60px rgba(0, 0, 0, 0.55);
    animation: mb-theme-nav-drawer-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
  }

  #mb-primary-navigation.mb-primary-nav:not(.hidden) .theme-nav__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  #mb-primary-navigation.mb-primary-nav:not(.hidden) .theme-nav__body {
    flex: 1 1 auto;
    padding: 0;
    justify-content: flex-start;
    align-items: stretch;
  }

  #mb-primary-navigation.mb-primary-nav:not(.hidden) .theme-header__actions {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    margin-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.85);
  }

  #mb-primary-navigation.mb-primary-nav:not(.hidden) .theme-header__lang {
    flex: 1 1 50%;
  }

  #mb-primary-navigation.mb-primary-nav:not(.hidden) .theme-header__contact-wrap {
    display: flex !important;
    flex: 1 1 50%;
  }

  #mb-primary-navigation.mb-primary-nav:not(.hidden) .theme-header__lang-toggle,
  #mb-primary-navigation.mb-primary-nav:not(.hidden) .theme-header__phone {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 16px 0;
  }

  #mb-primary-navigation.mb-primary-nav:not(.hidden) .theme-header__lang-menu {
    top: auto;
    bottom: calc(100% + 8px);
  }

  .mb-nav-overlay:not(.hidden) {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 29;
    cursor: pointer;
    background: rgba(5, 6, 10, 0.52);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    pointer-events: auto;
  }

  @keyframes mb-theme-nav-drawer-in {
    from {
      transform: translateX(103%);
      opacity: 0.96;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .theme-nav__list {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .theme-nav__list > li > a {
    display: block;
    padding: 1rem 0.25rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.2;
  }

  .theme-nav__list > li:last-child > a {
    border-bottom: 0;
  }

  .theme-footer {
    padding: 16px;
  }

  .theme-footer__shell {
    padding: 28px 20px;
  }

  .theme-footer__logo {
    margin-bottom: 40px;
  }

  .theme-footer__contact-row {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    min-height: 0;
  }

  .theme-footer__social {
    position: static;
    top: auto;
    right: auto;
    transform: none;
  }

  .theme-footer__contact-group {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .theme-footer__social-icons {
    justify-content: center;
  }

  .theme-footer__rule {
    margin-top: 40px;
  }

  .theme-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
  }

  .theme-footer__copyright,
  .theme-footer__legal-link,
  .theme-footer__dev {
    grid-column: auto;
    justify-self: auto;
  }
}
