/* ==================================================
   HERO HOME
================================================== */

.hero-home {
    position: relative;

    width: 100%;
    min-height: 500px;

    margin: 0;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(4, 40, 73, 0.77) 0%,
            rgba(4, 48, 83, 0.52) 45%,
            rgba(4, 48, 83, 0.14) 100%
        ),
        url("../img/banner-gpr.jpg");

    background-size: cover;
    background-position: center;
}


/* ==================================================
   CONTAINER HERO
================================================== */

.hero-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    padding:
        60px 40px
        90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}


/* ==================================================
   TEXTO HERO
================================================== */

.hero-conteudo {
    max-width: 680px;

    padding: 0;

    color: #ffffff;

    text-align: left;
}


.hero-label {
    display: inline-block;

    margin-bottom: 13px;
    padding-bottom: 7px;

    border-bottom: 1px solid rgba(105, 200, 255, 0.65);

    color: #8bd1ff;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.4px;
}


.hero-conteudo h1 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: clamp(38px, 4vw, 57px);
    font-weight: 800;

    line-height: 1.02;

    letter-spacing: -1.2px;

    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.18);
}


.hero-conteudo > p {
    max-width: 550px;

    margin: 0 0 27px;

    color: rgba(255, 255, 255, 0.94);

    font-size: 16px;
    line-height: 1.35;
}


/* ==================================================
   BOTÕES HERO
================================================== */

.hero-botoes {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(125px, 1fr))
        180px;

    gap: 11px;

    width: 850px;
    max-width: 850px;

    margin: 0;
}


.btn-hero {
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px 12px;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.13);

    color: #113c64;

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

    white-space: nowrap;
}

.btn-hero-diario {
    min-width: 180px;
}

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

    box-shadow:
        0 8px 23px rgba(0, 0, 0, 0.2);
}


.btn-hero-icone {
    color: #0067ad;

    font-size: 17px;
}


.btn-hero-seta {
    margin-left: auto;

    color: #0067ad;

    font-size: 17px;
}

.btn-hero-svg {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    fill: none;
    stroke: #0067ad;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==================================================
   QUADRO INSTITUCIONAL
================================================== */

.hero-mensagem {
    width: 250px;

    display: flex;
    gap: 16px;

    padding: 20px 24px;

    background: rgba(9, 36, 68, 0.377);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: #ffffff;

    transform: translateX(90px);
}


.hero-mensagem-linha {
    width: 3px;

    flex-shrink: 0;

    background:
        linear-gradient(
            to bottom,
            #21b2ee,
            #64d8ff
        );

    border-radius: 10px;
}


.hero-mensagem p {
    margin: 0 0 5px;

    font-size: 15px;
    line-height: 1.2;
}


.hero-mensagem span {
    display: block;

    width: 26px;
    height: 2px;

    margin-top: 15px;

    background: #42bcec;
}


/* ==================================================
   ONDA
================================================== */

.onda {
    position: absolute;

    left: -5%;
    right: -5%;
    bottom: -95px;

    height: 130px;

    background: #f4f6f8;

    border-radius:
        50% 50% 0 0;

    z-index: 3;
}


/* ==================================================
   CONTEÚDO HOME
================================================== */

.home-conteudo {
    max-width: 1120px;

    margin: 0 auto;

    padding:
        42px 24px
        70px;
}


/* ==================================================
   TÍTULO DA SEÇÃO
================================================== */

.titulo-secao {
    max-width: 720px;

    margin:
        0 auto
        28px;

    text-align: center;
}


.titulo-secao span,
.cabecalho-noticias span {
    color: #31536f;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.titulo-secao h2 {
    margin: 6px 0 7px;

    color: #0d3459;

    font-size: 25px;
    font-weight: 750;
}


.titulo-secao p {
    max-width: 650px;

    margin: 0 auto;

    color: #6a7b8b;

    font-size: 12px;
    line-height: 1.5;
}


/* ==================================================
   CARDS RESUMO
================================================== */

.cards-resumo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
    margin-bottom: 48px;
}


.card-resumo {
    display: flex;
    align-items: center;
    gap: 16px;

    min-height: 92px;
    padding: 18px;

    background: #ffffff;
    border: 1px solid #e3eaf0;
    border-radius: 13px;

    box-shadow: 0 6px 20px rgba(8, 43, 83, 0.06);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}




.card-resumo:hover {
    transform: translateY(-4px);
    border-color: #cfe0ed;
    box-shadow: 0 12px 28px rgba(8, 43, 83, 0.10);
}


/* ÍCONE */

.card-resumo-icone {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef6fd;
    border-radius: 50%;

    color: #0b6eb8;
}


.card-resumo-icone svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* TEXTO */

.card-resumo-conteudo {
    flex: 1;
}


.card-resumo h3 {
    margin: 0 0 6px;
    color: #123b62;
    font-size: 15px;
    font-weight: 750;
}


.card-resumo p {
    margin: 0;
    color: #6b7c8b;
    font-size: 12px;
    line-height: 1.45;
}


.card-resumo-seta {
    color: #0b6eb8;
    font-size: 22px;
    font-weight: 700;
    margin-left: 8px;
}


/* ==================================================
   ÚLTIMAS NOTÍCIAS
================================================== */

.noticias-home {
    margin-top: 14px;
}


.cabecalho-noticias {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 20px;

    margin-bottom: 17px;
}


.cabecalho-noticias h2 {
    margin: 5px 0 0;

    color: #14395b;

    font-size: 23px;
}


.cabecalho-noticias > a {
    padding: 9px 14px;

    background: #005f9f;

    border-radius: 7px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;

    transition: background 0.2s ease;
}


.cabecalho-noticias > a:hover {
    background: #004f85;
}


/* ==================================================
   CARDS NOTÍCIAS
================================================== */

.lista-noticias {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.noticia-card {
    display: flex;
    align-items: center;
    gap: 16px;

    min-height: 105px;
    padding: 18px;

    background: #ffffff;

    border: 1px solid #e3eaf0;
    border-radius: 13px;

    box-shadow: 0 6px 20px rgba(8, 43, 83, 0.06);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}



.noticia-icone {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eaf5fd;
    border-radius: 50%;

    color: #0067ad;
}

.noticia-icone svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.noticia-conteudo {
    flex: 1;
    min-width: 0;
}

.noticia-conteudo span {
    display: block;

    margin-bottom: 4px;

    color: #0067ad;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.noticia-conteudo h3 {
    margin: 0 0 5px;

    color: #113b61;

    font-size: 13px;
}

.noticia-conteudo p {
    margin: 0;
    color: #6b7c8b;
    font-size: 12px;
    line-height: 1.45;
}

.noticia-seta {
    margin-left: auto;

    color: #0067ad;

    font-size: 19px;
}



.noticia-destaque,
.noticia-menor {
    min-height: 170px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e5ebf0;
    border-radius: 13px;

    box-shadow:
        0 5px 18px rgba(8, 43, 83, 0.055);
}


.tag-noticia {
    display: inline-block;

    margin-bottom: 11px;
    padding: 4px 8px;

    background: #eaf4fb;

    border-radius: 999px;

    color: #28506e;

    font-size: 9px;
    font-weight: 700;
}


.noticia-destaque h3,
.noticia-menor h3 {
    margin: 0 0 8px;

    color: #173b5c;

    font-size: 13px;
}


.noticia-destaque p,
.noticia-menor p {
    margin: 0 0 13px;

    color: #697a89;

    font-size: 11px;
    line-height: 1.5;
}


.noticia-destaque small {
    color: #8b97a2;

    font-size: 9px;
}

/* ==================================================
   HOVER DOS CARDS - LINHA AZUL NO TOPO
================================================== */

.card-resumo,
.noticia-card {
    position: relative;
    overflow: hidden;
}


/* linha azul */

.card-resumo::before,
.noticia-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: #0067ad;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.25s ease;
}


/* aparece no hover */

.card-resumo:hover::before,
.noticia-card:hover::before {
    transform: scaleX(1);
}


/* card continua branco */

.card-resumo:hover,
.noticia-card:hover {
    background: #ffffff;

    border-color: #cbdde9;

    transform: translateY(-3px);

    box-shadow:
        0 10px 26px rgba(8, 43, 83, 0.11);
}


.card-resumo:hover h3 {
    color: #123b62;
}


.card-resumo:hover p {
    color: #6b7c8b;
}


.card-resumo:hover .card-resumo-seta {
    color: #0067ad;
}


.noticia-card:hover span {
    color: #0067ad;
}


.noticia-card:hover h3 {
    color: #113b61;
}


.noticia-card:hover p {
    color: #6b7c8b;
}


.noticia-card:hover .noticia-seta {
    color: #0067ad;
}


/* ícone continua azul claro */

.card-resumo:hover .card-resumo-icone,
.noticia-card:hover .noticia-icone {
    background: #eaf5fd;
    color: #0067ad;
}


/* PORTAL GPR - destaque do título da seção */

.titulo-secao > span {
    display: inline-block;

    margin-bottom: 4px;

    color: #0b5f9f;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 2.2px;
}


/* ==================================================
   RESPONSIVO
================================================== */

@media (max-width: 1000px) {

    .hero-mensagem {
        display: none;
    }

    .hero-container {
        justify-content: center;
    }

    .hero-conteudo {
        width: 100%;
    }

}


@media (max-width: 850px) {

    .hero-botoes {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .cards-resumo {
        grid-template-columns: 1fr;
    }

    .lista-noticias {
        grid-template-columns: 1fr;
    }

}




@media (max-width: 600px) {

    .hero-home {
        min-height: 560px;
    }

    .hero-container {
        padding:
            50px 20px
            90px;
    }

    .hero-conteudo h1 {
        font-size: 38px;
    }

    .hero-conteudo > p {
        font-size: 14px;
    }

    .hero-botoes {
        grid-template-columns: 1fr;
    }

    .home-conteudo {
        padding:
            35px 16px
            50px;
    }

    .titulo-secao h2 {
        font-size: 22px;
    }

    .cabecalho-noticias {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* =========================================
   ACESSIBILIDADE
========================================= */

.btn-hero:focus-visible,
.card-resumo:focus-visible,
.noticia-card:focus-visible,
.cabecalho-noticias a:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}


/* Usuários que preferem menos animação */

@media (prefers-reduced-motion: reduce) {

    .btn-hero,
    .card-resumo,
    .noticia-card {
        transition: none;
    }

    .btn-hero:hover,
    .card-resumo:hover,
    .noticia-card:hover {
        transform: none;
    }

}

/* =========================================================
   HOME - AJUSTE DOS CARDS PRINCIPAIS
   ========================================================= */

.cards-resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 28px;
    margin-bottom: 48px;
}


/* CARD PRINCIPAL */

.card-resumo {
    min-height: 150px;
    padding: 26px 30px;

    display: flex;
    align-items: center;
    gap: 16px;

    border-radius: 18px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.card-resumo:hover {
    transform: translateY(-4px);
}


/* ÍCONE */

.card-resumo-icone {
    flex: 0 0 64px;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.card-resumo-icone svg {
    width: 32px;
    height: 32px;
}


/* CONTEÚDO */

.card-resumo-conteudo {
    flex: 1;
}


.card-resumo-conteudo h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    white-space: nowrap;
}


.card-resumo-conteudo p {
    margin: 0;

    font-size: 0.96rem;
    line-height: 1.6;
}


/* SETA */

.card-resumo-seta {
    flex: 0 0 auto;

    font-size: 1.5rem;

    transition: transform 0.2s ease;
}


.card-resumo:hover .card-resumo-seta {
    transform: translateX(4px);
}


/* =========================================================
   ÚLTIMAS NOTÍCIAS
   ========================================================= */

.lista-noticias {
    margin-top: 24px;
}


.noticia-card {
    min-height: 150px;
    padding: 26px 30px;

    border-radius: 18px;
}


.noticia-icone {
    width: 58px;
    height: 58px;

    flex: 0 0 58px;
}


.noticia-icone svg {
    width: 30px;
    height: 30px;
}


.noticia-conteudo h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    white-space: nowrap;
}


.noticia-conteudo p {
    line-height: 1.6;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 768px) {

    .cards-resumo {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .card-resumo {
        min-height: auto;
        padding: 24px 22px;
    }


    .noticia-card {
        min-height: auto;
        padding: 22px;
    }

}