/* Hero com imagem de fundo e faixa de CTA das páginas institucionais */
.inst-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--muted);
    border-bottom: 1px solid var(--border);

    .bg {
        position: absolute;
        inset: 0;
        z-index: -2;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right;
    }

    &::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(90deg, rgb(249 250 252 / 96%) 0%, rgb(249 250 252 / 88%) 38%, rgb(249 250 252 / 0%) 65%);
    }

    .content {padding: 4.25rem var(--gutter);}

    .texts {
        gap: 1.25rem;
        max-width: 460px;
        align-items: start;

        .h1 {
            font-size: clamp(31px, 3.8vw, 43px);
            line-height: 1.1;
        }

        .lead {
            font-size: 16px;
            line-height: 1.6;
            color: rgb(14 14 16 / 80%);
        }

        .note {
            font-weight: 700;
            line-height: 1.6;
        }

        .btn-cta {margin-top: .5rem;}
    }
}

.inst-cta {
    padding: 3.4rem 0;
    background-color: var(--clr2);

    .content {
        gap: 1.7rem;
        padding: 0 var(--gutter);
    }

    .texts {
        max-width: 640px;

        .h2 {
            font-size: 26px;
            color: var(--white);
        }

        p {
            margin-top: 1rem;
            color: var(--ink-muted);
        }
    }

    .btn-cta {flex-shrink: 0;}
}

/* Títulos de seção */
.section-title {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-width: 680px;

    .h2 {
        font-size: clamp(26px, 2.9vw, 38px);
        line-height: 1.1;
    }

    .sub {
        font-size: 16px;
        line-height: 1.6;
        color: var(--muted-foreground);
    }
}

@media (max-width: 768px) {
    .inst-hero {
        &::after {background: rgb(249 250 252 / 88%);}

        .content {padding: 3rem var(--gutter);}
    }

    .inst-cta .content {
        flex-direction: column;
        align-items: start;
    }

    .section-title .h2 {text-align: start;}
}
