/* ============================================
   ESTILOS DOS BLOCOS - VERSÃO SIMPLIFICADA
   ============================================ */

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Classe para animação */
.animate {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate.fadeInUp { animation-name: fadeInUp; }
.animate.fadeInLeft { animation-name: fadeInLeft; }
.animate.fadeInRight { animation-name: fadeInRight; }

/* Bloco Hero */
.bloco-hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primaria) 0%, #0a0a0a 100%);
}

.bloco-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--secundaria);
}

.bloco-hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.bloco-hero .btn-hero {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secundaria);
    color: var(--primaria);
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.bloco-hero .btn-hero:hover {
    transform: scale(1.05);
}

/* Bloco Texto */
.bloco-texto {
    padding: 60px 20px;
    background: var(--card);
    border-radius: 12px;
    margin: 20px;
}

/* Bloco Imagem */
.bloco-imagem {
    padding: 60px 20px;
    text-align: center;
}

.bloco-imagem img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.bloco-imagem img:hover {
    transform: scale(1.02);
}

/* Bloco Imagem + Texto */
.bloco-imagem-texto {
    padding: 60px 20px;
    background: var(--card);
    border-radius: 16px;
    margin: 20px;
}

/* Bloco Vídeo */
.bloco-video {
    padding: 60px 20px;
    text-align: center;
}

.bloco-video .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.bloco-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Bloco Contato */
.bloco-contato {
    padding: 60px 20px;
    background: var(--card);
    border-radius: 16px;
    margin: 20px;
}

.bloco-contato input,
.bloco-contato textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: var(--fundo);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--texto);
}

.bloco-contato button {
    width: 100%;
    padding: 12px;
    background: var(--secundaria);
    color: var(--primaria);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* Responsivo */
@media (max-width: 768px) {
    .bloco-hero h1 { font-size: 32px; }
    .bloco-hero p { font-size: 16px; }
    .bloco-imagem-texto .grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   ANIMAÇÕES REVEAL AO SCROLL
   ============================================ */

/* Estado inicial - escondido */
.reveal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up {
    transform: translateY(50px);
}

/* Estado visível */
.reveal.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transform: translateY(0);
}

/* Delay para elementos filhos */
.reveal-item {
    transition: all 0.6s ease;
    opacity: 0;
    transform: translateY(30px);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays sequenciais */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================
   BLOCO HERO - REVEAL
   ============================================ */
.bloco-hero h1 {
    transition: all 0.6s ease;
}

.bloco-hero p {
    transition: all 0.6s ease 0.2s;
}

.bloco-hero .btn-hero {
    transition: all 0.6s ease 0.4s;
}

/* ============================================
   BLOCO IMAGEM + TEXTO - REVEAL
   ============================================ */
.bloco-imagem-texto .image-side {
    transition: all 0.6s ease;
}

.bloco-imagem-texto .content-side {
    transition: all 0.6s ease 0.3s;
}

/* ============================================
   BLOCO TEXTO - REVEAL
   ============================================ */
.bloco-texto .texto-conteudo > * {
    transition: all 0.5s ease;
}

/* ============================================
   BLOCO IMAGEM - REVEAL
   ============================================ */
.bloco-imagem .image-wrapper {
    transition: all 0.6s ease;
}

/* ============================================
   BLOCO VÍDEO - REVEAL
   ============================================ */
.bloco-video h2 {
    transition: all 0.5s ease;
}

.bloco-video .video-wrapper {
    transition: all 0.6s ease 0.3s;
}

/* ============================================
   BLOCO CONTATO - REVEAL
   ============================================ */
.bloco-contato h2 {
    transition: all 0.5s ease;
}

.bloco-contato form {
    transition: all 0.6s ease 0.3s;
}

/* Efeito hover nos cards */
.card-item-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Botão hero */
.btn-hero {
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
}

/* ============================================
   ANIMAÇÕES (Reveal)
   ============================================ */
.animated {
    animation-duration: var(--duracao, 0.5s);
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fadeInUp { animation-name: fadeInUp; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fadeInDown { animation-name: fadeInDown; }

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
.fadeInLeft { animation-name: fadeInLeft; }

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
.fadeInRight { animation-name: fadeInRight; }

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.zoomIn { animation-name: zoomIn; }

@keyframes zoomOut {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}
.zoomOut { animation-name: zoomOut; }

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.bounceIn { animation-name: bounceIn; }

@keyframes flipInX {
    from { opacity: 0; transform: perspective(400px) rotateX(90deg); }
    to { opacity: 1; transform: perspective(400px) rotateX(0deg); }
}
.flipInX { animation-name: flipInX; backface-visibility: visible; }

@keyframes flipInY {
    from { opacity: 0; transform: perspective(400px) rotateY(90deg); }
    to { opacity: 1; transform: perspective(400px) rotateY(0deg); }
}
.flipInY { animation-name: flipInY; backface-visibility: visible; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}
.slideInLeft { animation-name: slideInLeft; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
.slideInRight { animation-name: slideInRight; }

/* Delays */
.delay-0s { animation-delay: 0s; }
.delay-0-2s { animation-delay: 0.2s; }
.delay-0-4s { animation-delay: 0.4s; }
.delay-0-6s { animation-delay: 0.6s; }
.delay-0-8s { animation-delay: 0.8s; }
.delay-1s { animation-delay: 1s; }
.delay-1-5s { animation-delay: 1.5s; }
.delay-2s { animation-delay: 2s; }