/* === HEADER / LANGUAGE SWITCHER === */
header.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.6rem 1.5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Cada item */
.lang-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.6;
  transition: all 0.2s ease-in-out;
}

.lang-item img {
  width: 2.2vw;       /* Escala proporcional ao ecrã */
  height: auto;
  max-width: 26px;    /* Limite em desktop */
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.lang-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.lang-item.active {
  opacity: 1;
  box-shadow: 0 0 0 0px rgba(255, 255, 255, 0.4);
  transform: translateY(0);
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
  header.topbar {
    padding: 0.4rem 1rem;
  }

  .lang-switcher {
    gap: 8px;
  }

  .lang-item img {
    width: 20px;
    height: 20px;
    max-width: 20px;
    border-radius: 50%; /* Bandeiras circulares — melhor proporção */
  }
}

/*  Evita zoom automático no iPhone */
html {
  -webkit-text-size-adjust: 100%;
}

#footer a:not(.btn):not(.no-footer-css) {
	color: #ffffff;
	transition: all 0.1s ease-in-out;
}

.text-white {
  color: #ffffff;
}

.bg-color-dark, .bg-dark {
    background-color: #131414 !important;
}

.title {
    color: var(--dark);
    font-size: 1.4em;
    font-weight: 600;
    line-height: 27px;
    margin: 0 0 14px 0;
    letter-spacing: -.05em;
    display: block;
    margin-block-end: 1.33em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;    
    unicode-bidi: isolate;
}
#footer .footer-ribbon span {
    color: #ffffff;
    font-size: 1.6em;
    font-family: "Poppins", Arial, sans-serif;
}
