.proin-home { padding-top: 64px; }
.proin-home .proin-hero {
    display: block;
    flex-shrink: 0;
    position: relative;
    isolation: isolate;
    min-height: 560px;
    height: auto;
    padding: 76px 0 100px;
    text-align: left;
    background: #123c70;
    overflow: hidden;
}
.proin-home .proin-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #123c70 2%, rgba(18,60,112,.96) 30%, rgba(18,60,112,.64) 60%, rgba(18,60,112,.12)), url('/img/ProgramaIntegridade/background-social-web-1920X969.png') center right / cover no-repeat;
}
.proin-home .proin-hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 38px;
    background: #fff;
    clip-path: ellipse(65% 100% at 50% 100%);
}
.proin-home .proin-hero__container { width: 100%; }
.proin-hero__content { max-width: 670px; }
.proin-hero__eyebrow, .proin-section-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.6;
}
.proin-hero__eyebrow { color: #d1e6ff; margin-bottom: 22px; }
.proin-home .proin-hero h1 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.12;
    font-weight: 750;
    letter-spacing: -1.5px;
    color: #fff;
    margin: 0 0 24px;
}
.proin-home .proin-hero p { max-width: 590px; font-size: 18px; line-height: 1.75; color: #e2edfa; margin: 0; }
.proin-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.proin-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 50px;
    padding: 13px 22px;
    border: 1px solid #fff;
    border-radius: 7px;
    background: #fff;
    color: #184c89;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.proin-hero__button--outline { background: transparent; color: #fff; border-color: #a3c4e8; }
.proin-hero__button:hover { background: #e3efff; color: #123c70; text-decoration: none; }
.proin-hero__button:focus-visible { outline: 3px solid #ffd46b; outline-offset: 5px; }
.proin-hero__signature { display: block; margin-top: 26px; font-size: 12px; color: #d1e6ff; }
.proin-home .proin__explicacao { padding: 46px 0 28px; margin: 0; }
.proin-section-eyebrow { color: #2f72c6; margin-bottom: 10px; }
.proin-home .proin__explicacao-titulo { color: #17365c; font-size: 30px; line-height: 1.3; margin: 0; padding: 0; }
.proin-home .proin-background__paginas h3,
.proin-home .proin-noticias-titulo,
.proin-home .proin-background__azul > h2,
.proin-home .proin-contato-titulo { font-size: 30px !important; }
.proin-home .proin-cards { margin-top: 0 !important; padding-top: 0 !important; margin-bottom: 60px; }
.proin-home .proin-cards .col-md-4 { margin-bottom: 20px; }
.proin-home .proin-card { padding: 28px; background: #f7faff; border: 1px solid #e0e9f5; border-radius: 12px; text-align: left; }
.proin-home .proin-card h3 { font-size: 20px; line-height: 1.4; margin: 20px 0 12px; }
.proin-home .proin-card p { margin: 0; font-size: 15px; line-height: 1.75; }
.proin-home .proin-card-icone { margin: 0; border-radius: 12px; }

/* A seção precisa crescer quando os cards passam para duas ou uma colunas. */
.proin-home .proin-background__paginas {
    display: flow-root;
    flex: 0 0 auto;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
    padding: 60px 0 80px !important;
}

.proin-home .flip-cards-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    height: auto !important;
    margin: 0 !important;
}

.proin-home .flip-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: none;
}

.proin-home .proin-noticias,
.proin-home .proin-background__azul,
.proin-home .proin-contato,
.proin-home .proin-footer {
    clear: both;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
}

.proin-home .noticia-card img { width: 100%; object-fit: cover; }

@media (max-width: 767px) {
    .proin-home .proin-hero { min-height: 0; padding: 48px 8px 72px; }
    .proin-home .proin-hero::before { background-position: 60% center; opacity: .65; }
    .proin-home .proin-hero p { font-size: 16px; }
    .proin-hero__eyebrow { font-size: 10px; letter-spacing: 1.5px; }
    .proin-hero__actions { flex-direction: column; align-items: stretch; }
    .proin-home .proin__explicacao-titulo,
    .proin-home .proin-background__paginas h3,
    .proin-home .proin-noticias-titulo,
    .proin-home .proin-background__azul > h2,
    .proin-home .proin-contato-titulo { font-size: 25px !important; }
    .proin-home .proin-cards { margin-bottom: 28px; }
}

@media (max-width: 991px) {
    .proin-home .proin-background__paginas { padding: 48px 0 56px !important; }
    .proin-home .flip-cards-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .proin-home .proin-noticias { padding: 56px 0 64px; }
    .proin-home .proin-noticias .col-md-4 { flex: 0 0 100%; max-width: 100%; }
    .proin-home .noticia-card { height: auto; }
    .proin-home .proin-background__azul { min-height: 0; padding: 56px 20px 64px; }
    .proin-home .depoimento-card,
    .proin-home .depoimento-card.grande { height: auto; padding: 32px; }
    .proin-home .proin-contato-row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 576px) {
    .proin-home .proin-background__paginas { padding: 40px 0 48px !important; }
    .proin-home .flip-cards-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .proin-home .flip-card,
    .proin-home .flip-card-inner { min-height: 280px; height: 280px; }
    .proin-home .proin-noticias { padding: 44px 0 52px; }
    .proin-home .noticia-card img { height: auto; aspect-ratio: 16 / 9; }
    .proin-home .proin-background__azul { padding: 44px 12px 52px; }
    .proin-home .depoimento-card,
    .proin-home .depoimento-card.grande { padding: 24px 20px; }
    .proin-home .proin-contato { padding: 48px 0; }
    .proin-home .proin-contato-card { height: auto; padding: 26px 20px; }
    .proin-home .proin-contato-item { gap: 12px; }
    .proin-home .proin-contato-texto { min-width: 0; overflow-wrap: anywhere; }
}
body.alto-contraste .proin-home .proin-hero, .altoContraste .proin-home .proin-hero { background: #000 !important; }
body.alto-contraste .proin-hero::before, .altoContraste .proin-hero::before { display: none; }
body.alto-contraste .proin-home .proin-hero::after,
.altoContraste .proin-home .proin-hero::after { background: #000 !important; }
body.alto-contraste .proin-home .proin-hero *, .altoContraste .proin-home .proin-hero * { color: #fff !important; }
body.alto-contraste .proin-hero__button, .altoContraste .proin-hero__button { background: #000 !important; border-color: #fff; }
