.site-header {
  background: #cfef70;
  color: var(--brand-strong);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.12);
  border-bottom: 1px solid rgba(15, 59, 122, 0.12);
  overflow: visible;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
  line-height: 0;
}

/* Largura/altura automáticas preservam a proporção do PNG.
   Evita o reset global `img { max-width: 100% }` dentro do flex, que encolhia o logo. */
.logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: clamp(40px, 12vw, 56px);
  max-width: min(420px, calc(100vw - 9rem));
  object-fit: contain;
}

.menu {
  display: flex;
  gap: 1rem;
}

.menu a {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-weight: 500;
}

.menu a:hover,
.menu a.is-active {
  background: rgba(15, 59, 122, 0.12);
  color: var(--brand-strong);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(15, 59, 122, 0.35);
  background: rgba(255, 255, 255, 0.45);
  color: var(--brand-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

.lang-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(15, 59, 122, 0.3);
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
}

.lang-btn.is-active {
  background: #0f3b7a;
  color: #fff;
  border-color: #0f3b7a;
}

.hero {
  padding: 2.6rem 0 2rem;
}

.footer {
  margin-top: 3rem;
  background: #081a36;
  color: #d2d8e2;
  padding: 2.1rem 0;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 820px) {
  .site-header {
    z-index: 300;
  }

  .logo {
    position: relative;
    z-index: 1;
    min-width: 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 40;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .lang-switcher {
    margin-left: 0;
  }

  .menu {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    left: auto;
    min-width: min(280px, calc(100vw - 1.5rem));
    padding: 0.5rem;
    border-radius: 12px;
    background: #0b2e60;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    z-index: 35;
    color: #f8fafc;
  }

  .menu.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .menu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
  }

  .menu a:hover,
  .menu a.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
