/* === Botão "Voltar ao Topo" (compartilhado entre todas as páginas) === */
.btn-topo {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1090; /* acima do pop-up WhatsApp (1080) */
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease,
        transform .3s ease,
        bottom .35s cubic-bezier(.2, .8, .2, 1);
}

/* Visível após rolar a página */
.btn-topo.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Semitransparente ao chegar no rodapé / fim da página */
.btn-topo.is-faded {
    opacity: .4;
}

.btn-topo.is-faded:hover,
.btn-topo.is-faded:focus-visible {
    opacity: 1;
}

/* Sobe acima do pop-up "Quero conversar" quando ele está aberto */
.btn-topo.is-shifted {
    bottom: var(--btn-topo-shift, 280px);
}

@media (prefers-reduced-motion: reduce) {
    .btn-topo {
        transition: none;
    }
}
