/* =========================================================
   Impact Page - Hero Section
   ========================================================= */
.impact-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    background-color: #2b1d14; /* Fundo quente fallback */
}

/* --- Background com Efeito "Joyful Glow" --- */
.impact-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center; 
    z-index: 1;
    /* Animação que aumenta suavemente o zoom e o brilho */
    animation: joyfulGlow 25s ease-in-out infinite alternate;
}

@keyframes joyfulGlow {
    0% { transform: scale(1.02); filter: brightness(0.95); }
    100% { transform: scale(1.1); filter: brightness(1.05); }
}

/* --- Máscara (Scrim) Cinematic Vignette --- */
.impact-hero-scrim {
    position: absolute;
    inset: 0;
    /* Mistura de gradiente linear no topo (para o blur escuro do prédio) e radial no centro */
    background: 
        linear-gradient(to bottom, rgba(15, 10, 5, 0.7) 0%, rgba(15, 10, 5, 0) 30%),
        radial-gradient(circle at center, rgba(0,0,0,0) 25%, rgba(0,0,0,0.65) 100%);
    z-index: 2;
}

/* --- Container e Textos --- */
.impact-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.impact-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Eyebrow: "WHO WE ARE" */
.impact-eyebrow {
    display: block;
    font-family: var(--font-display), 'Montreal', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #f1ede6;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Tipografia do Título Central */
.impact-hero-title {
    font-family: var(--font-display), 'Montreal', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8); /* Sombra pesada para recortar do fundo */
}

/* --- Animação "Heartbeat" (Sobe, expande e entra em foco) --- */
.impact-hero-content .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    letter-spacing: -0.02em; /* Começa um pouco comprimido */
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), letter-spacing 1.2s ease-out;
}

.impact-hero-content .reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.impact-hero-title.reveal-on-scroll.revealed {
    letter-spacing: 0; /* Expande para o tamanho natural criando o efeito de batida/respiração */
}

/* =========================================================
   Responsividade (Telas Menores)
   ========================================================= */
@media (max-width: 768px) {
    .impact-hero {
        min-height: 80vh;
        padding-top: 60px; /* Compensa o menu superior transparente */
    }

    .impact-hero-bg {
        background-position: center 30%; /* Ajusta o foco nos rostos no celular */
    }

    .impact-hero-scrim {
        /* No celular, intensifica um pouco o escuro para garantir que o texto não se perca no gramado */
        background: radial-gradient(circle at center, rgba(15, 10, 5, 0.3) 0%, rgba(15, 10, 5, 0.8) 100%);
    }

    .impact-hero-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }

    .impact-hero-title br {
        display: none; /* Permite que o texto quebre naturalmente em telas finas */
    }
}

/* =========================================================
   Impact Page - Identity Section (Sessão 2)
   ========================================================= */
.impact-identity {
    background-color: var(--site-bg, #f8f8f7); /* Fundo claro da arte */
    padding: 120px 20px;
    overflow: hidden;
}

.impact-identity-container {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 120px; /* Espaço generoso entre as duas linhas (zig-zag) */
}

/* --- Layout da Linha (Grid) --- */
.identity-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* --- Textos --- */
.identity-text {
    max-width: 550px;
}

.identity-text h2 {
    font-family: var(--font-display), 'Montreal', sans-serif;
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    color: var(--primary-brown-dark, #412f22);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1.8rem;
    letter-spacing: -0.01em;
}

.identity-text p {
    font-family: var(--font-body), 'Google Sans', sans-serif;
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    color: #4a4a4a;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.identity-text p:last-child {
    margin-bottom: 0;
}

/* --- Visual ROW 1 (Imagem P&B) --- */
.identity-img-bw {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Proporção de retrato */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    /* Transição para o Memory Pan */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease;
}

.identity-img-bw img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* Mantém em P&B */
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.identity-img-bw:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.15);
}

.identity-img-bw:hover img {
    transform: scale(1.06); /* Zoom charmoso */
}

/* --- Visual ROW 2 (Floating Collage / Duas Imagens) --- */
.identity-collage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Cria a área (canvas) onde as duas fotos vão flutuar */
    cursor: pointer;
}

.collage-img {
    position: absolute;
    width: 75%; /* Não ocupa a largura toda para dar espaço ao "degrau" */
    height: 60%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease;
}

.collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Imagem de Cima (Eucaristia) */
.top-img {
    top: 0;
    right: 0;
    z-index: 2;
    /* Borda sólida cor do fundo do site para recortar visualmente a imagem de baixo */
    border: 8px solid var(--site-bg, #f8f8f7); 
}

/* Imagem de Baixo (Leitura) */
.bottom-img {
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* Interação "Fora da Caixinha": Separação Magnética */
.identity-collage:hover .top-img {
    transform: translateY(-15px) translateX(10px);
    box-shadow: -10px 25px 50px rgba(0,0,0,0.2);
}

.identity-collage:hover .bottom-img {
    transform: translateY(15px) translateX(-10px);
    box-shadow: 10px 15px 40px rgba(0,0,0,0.15);
}

.identity-collage:hover img {
    transform: scale(1.05); /* Pequeno zoom nas fotos internamente */
}

/* --- Coreografia de Entrada (Reveal Animations) --- */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   Responsividade (Telas Menores)
   ========================================================= */
@media (max-width: 992px) {
    .identity-row {
        grid-template-columns: 1fr; /* Empilha as colunas */
        gap: 50px;
    }

    .identity-text {
        max-width: 100%;
        text-align: center;
        order: -1; /* Força os textos a aparecerem primeiro no mobile */
    }

    .identity-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Ajuste da Animação para não sacudir horizontalmente no Mobile */
    .reveal-left, .reveal-right {
        transform: translateY(30px);
    }
    .reveal-left.revealed, .reveal-right.revealed {
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .impact-identity {
        padding: 80px 20px;
    }

    .impact-identity-container {
        gap: 80px;
    }

    .collage-img {
        width: 85%; /* No celular, aumenta a área da foto na colagem */
        height: 55%;
    }

    /* Desativa efeitos de hover complexos no celular */
    .identity-collage:hover .top-img,
    .identity-collage:hover .bottom-img {
        transform: none;
    }
    .identity-img-bw:hover {
        transform: none;
    }
}