/* Botão de Voltar ao Topo */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #FF6B35;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    cursor: pointer;
    border: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #e55a2e; /* Tom mais escuro da cor primária */
    transform: translateY(-5px);
}

.scroll-top-btn:active {
    transform: translateY(0);
}

.scroll-top-btn i {
    transition: transform 0.3s ease;
}

.scroll-top-btn:hover i {
    transform: translateY(-3px);
}

.scroll-top-btn.clicked i {
    transform: rotate(360deg);
    transition: transform 0.5s ease;
}

.scroll-top-btn::after {
    content: 'Voltar ao topo';
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #2D2D2D;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.scroll-top-btn:hover::after {
    opacity: 1;
}

/* Responsividade */
@media (max-width: 640px) {
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}

.scroll-top-btn.visible {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}