html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}

.lang-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Baskerville, "Libre Baskerville", "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.35px;
  text-transform: lowercase;
  color: #70757c;
}

.lang-switch .lang-sep {
  display: none;
}

.lang-btn {
  appearance: none;
  border: 1px solid rgba(112, 117, 124, 0.2);
  background: rgba(245, 245, 243, 0.4);
  padding: 0;
  margin: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  position: relative;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.lang-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.lang-btn[data-lang="pt"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%231c9448'/%3E%3Cpolygon points='32,9 56,32 32,55 8,32' fill='%23f2d85a'/%3E%3Ccircle cx='32' cy='32' r='11' fill='%2329428f'/%3E%3C/svg%3E");
}

.lang-btn[data-lang="en"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23ffffff'/%3E%3Cg fill='%23b22234'%3E%3Crect y='0' width='64' height='5'/%3E%3Crect y='10' width='64' height='5'/%3E%3Crect y='20' width='64' height='5'/%3E%3Crect y='30' width='64' height='5'/%3E%3Crect y='40' width='64' height='5'/%3E%3Crect y='50' width='64' height='5'/%3E%3Crect y='60' width='64' height='4'/%3E%3C/g%3E%3Crect width='28' height='28' fill='%233c3b6e'/%3E%3C/svg%3E");
}

.lang-btn:hover,
.lang-btn:focus-visible {
  opacity: 0.98;
  transform: scale(1.05);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
  outline: none;
}

.lang-btn.is-active {
  opacity: 1;
  border-color: rgba(93, 99, 106, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.home-lang {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 8;
}

@media (max-width: 680px) {
  .home-lang {
    top: 14px;
    right: 14px;
  }
}
