/* Seletor de idioma (flags) — estilo isolado para não colidir com o tema */
.lang-switcher {
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
}

.lang-switcher .lang-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 0;
    padding: 6px;
    margin: 0;
    cursor: pointer;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.lang-switcher .lang-code {
    text-transform: uppercase;
}

.lang-switcher .lang-flag {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    flex: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.lang-switcher .lang-caret {
    font-size: 9px;
    opacity: .75;
    transition: transform .2s ease;
}

.lang-switcher.open .lang-caret {
    transform: rotate(180deg);
}

.lang-switcher .lang-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: max-content;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
    padding: 6px;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 2000;
}

.lang-switcher.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher .lang-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}

.lang-switcher .lang-menu .lang-flag {
    width: 15px;
    height: 15px;
    border-radius: 4px;
}

.lang-switcher .lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.lang-switcher .lang-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.lang-switcher .lang-item.is-active {
    color: #1f2937;
    font-weight: 600;
}

/* header com texto branco (hero) */
.header-text-white .lang-switcher .lang-toggle {
    color: #fff;
}
