/* Back to Top Button Fix - FORÇADO PARA FICAR FIXO */
#back-to-top {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 56px !important;
  height: 56px !important;
  background: linear-gradient(135deg, #22704a, #1a5838) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  font-weight: bold !important;
  box-shadow: 0 4px 20px rgba(34, 112, 74, 0.5) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 9998 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(100px) !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  /* Garantir que não seja afetado por transforms do body */
  will-change: transform, opacity;
  backface-visibility: hidden;
}

#back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

#back-to-top:hover {
  background: linear-gradient(135deg, #1a5838, #22704a) !important;
  transform: translateY(-4px) scale(1.1) !important;
  box-shadow: 0 8px 30px rgba(34, 112, 74, 0.7) !important;
}

#back-to-top:active {
  transform: translateY(-2px) scale(1.05) !important;
}

#back-to-top i {
  color: #ffffff !important;
  font-size: 18px !important;
  pointer-events: none;
}

/* Responsivo */
@media (max-width: 768px) {
  #back-to-top {
    bottom: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }

  #back-to-top i {
    font-size: 16px !important;
  }
}