/* ===========================================
   SEÇÃO ATUAÇÃO — "MINHA LUTA POR MINAS"
   Fundo branco texturizado + fotos com parallax
   =========================================== */

.atuacao {
    position: relative;
    width: 100%;
    min-height: 130vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12rem 8vw;
    overflow: hidden;
    isolation: isolate;

    /* Papel off-white com grão sutil (textura via SVG embutido) */
    background-color: #f3efe7;
    background-image:
        radial-gradient(120% 80% at 50% 0%, #faf7f1 0%, #f3efe7 55%, #ece7dd 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-blend-mode: multiply;
    color: #211d17;
}

/* Transição suave a partir do hero escuro */
.atuacao::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.35), transparent);
    pointer-events: none;
    z-index: 3;
}

/* ===========================================
   CONTEÚDO CENTRAL
   =========================================== */
.atuacao-inner {
    position: relative;
    z-index: 2;
    max-width: 620px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

.atuacao-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: #b1682f;
}

.atuacao-eyebrow::before,
.atuacao-eyebrow::after {
    content: '';
    width: 34px;
    height: 1px;
    background: rgba(177, 104, 47, 0.6);
}

.atuacao-title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 300;
    line-height: 1.1;
    color: #1c1813;
}

.atuacao-title em {
    font-style: italic;
    font-weight: 400;
    color: #b1682f;
}

.atuacao-text {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    font-weight: 400;
    line-height: 1.8;
    color: #5b544a;
    max-width: 34rem;
}

.atuacao-cta {
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-decoration: none;
    color: #1c1813;
    padding: 1rem 2.2rem;
    border: 1px solid rgba(28, 24, 19, 0.25);
    transition: background-color 0.45s var(--ease-out-expo),
                color 0.45s var(--ease-out-expo),
                border-color 0.45s var(--ease-out-expo);
}

.atuacao-cta:hover {
    background-color: #1c1813;
    color: #f3efe7;
    border-color: #1c1813;
}

/* Entrada suave do bloco central */
.atuacao-inner > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.atuacao.in-view .atuacao-inner > * {
    opacity: 1;
    transform: translateY(0);
}

.atuacao.in-view .atuacao-eyebrow  { transition-delay: 0.05s; }
.atuacao.in-view .atuacao-title    { transition-delay: 0.15s; }
.atuacao.in-view .atuacao-text     { transition-delay: 0.30s; }
.atuacao.in-view .atuacao-cta      { transition-delay: 0.45s; }

/* ===========================================
   FOTOS LATERAIS (FISCALIZAÇÃO) — PARALLAX
   =========================================== */
.atuacao-photo {
    position: absolute;
    z-index: 1;
    margin: 0;
    width: 17vw;
    max-width: 260px;
    min-width: 150px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #d8d1c4, #c4bcab);
    box-shadow: 0 30px 60px -25px rgba(40, 32, 22, 0.45);
    overflow: hidden;
    will-change: transform;
}

/* Imagem real (quando adicionada) preenche a moldura */
.atuacao-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder visível enquanto não há foto */
.atuacao-photo .ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(60, 50, 38, 0.55);
}

/* Legenda */
.atuacao-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 1rem 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(to top, rgba(20, 16, 12, 0.85), transparent);
    z-index: 2;
}

/* Posições escalonadas — laterais esquerda e direita */
.atuacao-photo--l1 { top: 12%;  left: 4vw;  width: 18vw; }
.atuacao-photo--l2 { bottom: 10%; left: 9vw; width: 14vw; }
.atuacao-photo--r1 { top: 18%;  right: 5vw; width: 15vw; }
.atuacao-photo--r2 { bottom: 8%; right: 8vw; width: 19vw; }

/* ===========================================
   RESPONSIVIDADE
   =========================================== */
@media (max-width: 980px) {
    .atuacao {
        min-height: auto;
        padding: 7rem 1.5rem 8rem;
        flex-direction: column;
        gap: 3rem;
    }

    /* No mobile as fotos deixam de flutuar e viram uma grade abaixo do texto */
    .atuacao-photo {
        position: relative;
        inset: auto;
        width: 42vw !important;
        min-width: 0;
        transform: none !important;
    }

    .atuacao-inner {
        order: -1;
    }

    .atuacao-photos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        width: 100%;
        max-width: 480px;
    }
}

@media (min-width: 981px) {
    /* No desktop o contêiner de fotos não interfere (elas são absolutas) */
    .atuacao-photos { display: contents; }
}

@media (prefers-reduced-motion: reduce) {
    .atuacao-inner > * {
        transition-duration: 0.4s;
    }
    .atuacao-photo {
        transform: none !important;
    }
}
