
<a href="#" id="scroll-top" class="scroll-top d-flex align-items-center justify-content-center"><i
        class="bi bi-arrow-up-short"></i></a>

<script>
document.addEventListener("DOMContentLoaded", function () {
  const scrollTopBtn = document.getElementById("scroll-top");

  // Mostrar/esconder botão ao rolar
  window.addEventListener("scroll", function () {
    if (window.scrollY > 200) { // aparece após 200px rolados
      scrollTopBtn.classList.add("active");
    } else {
      scrollTopBtn.classList.remove("active");
    }
  });

  // Rolar para o topo ao clicar
  scrollTopBtn.addEventListener("click", function (e) {
    e.preventDefault();
    window.scrollTo({
      top: 0,
      behavior: "smooth"
    });
  });
});
</script><?php /**PATH /var/www/html/portal/resources/views/layouts/reducaoderiscos/elements/footer.blade.php ENDPATH**/ ?>