/* CSS (style.css) */

/* Define as fontes principais para o projeto */
body {
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* Animações de entrada */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 1s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0; /* Inicia invisível para a animação funcionar */
}

/* Estilo para animação ao rolar a página */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efeito do header ao rolar */
.header-scrolled {
    background-color: rgba(140, 59, 59, 0.85) !important; 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Efeito de elevação nos cards */
.card-lift {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}


/* Separador de Seção Temático - CORRIGIDO */
.section-divider {
    height: 80px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%; /* O dobro da largura para permitir uma animação suave */
    height: 100%;
    background-repeat: repeat-x;
}

/* Primeira camada da onda */
.section-divider::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3e%3cpath d='M0,50 C250,100 750,0 1000,50 L1000,100 L0,100 Z' fill='%238C3B3B' fill-opacity='0.1'%3e%3c/path%3e%3c/svg%3e");
    background-size: 50% 100%; /* Cada "bloco" da onda tem 50% da largura do elemento */
    animation: wave 18s linear infinite;
    opacity: 0.5;
}

/* Segunda camada da onda */
.section-divider::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3e%3cpath d='M0,60 C350,20 650,100 1000,60 L1000,100 L0,100 Z' fill='%238C3B3B' fill-opacity='0.1'%3e%3c/path%3e%3c/svg%3e");
    background-size: 50% 100%;
    animation: wave 25s linear infinite reverse; /* Velocidade e direção diferentes */
}

@keyframes wave {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* Move pela largura de um "bloco" para um loop perfeito */
}


/* Ornamentos para a seção "Quem Somos" */
.ornament {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3e%3cpath d='M 50,0 A 50,50 0 0 1 100,50 L 50,50 Z' fill='%238C3B3B' fill-opacity='0.08'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
}
.ornament.top-left { top: 0; left: 0; }
.ornament.top-right { top: 0; right: 0; transform: rotate(90deg); }
.ornament.bottom-left { bottom: 0; left: 0; transform: rotate(-90deg); }
.ornament.bottom-right { bottom: 0; right: 0; transform: rotate(180deg); }

/* Textura de Papel Artesanal */
.paper-texture {
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23D9AAB7" fill-opacity="0.04"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

/* Borda Dupla na Imagem */
.double-border {
    padding: 8px;
    background-color: white;
    border: 1px solid #D9AAB7;
    border-radius: 12px;
}
.double-border img {
    border: 1px solid #D9AAB7;
}

/* Estilo do Botão Voltar ao Topo */
#back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #8C3B3B;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-align: center;
    line-height: 48px;
    font-size: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
}

#back-to-top-btn:hover {
    background-color: #A94A4A;
}

#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Efeito de Partículas da Música */
#particle-container {
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: 15px;
    left: 10px;
    font-size: 14px;
    color: currentColor; 
    animation: floatUp 3s ease-out forwards;
    user-select: none;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-80px) scale(0.5);
        opacity: 0;
    }
}
