/* =========================================================
   HOME - NOTÍCIAS
   100VH + DESTAQUE + 3 CARDS + VER MAIS NOTÍCIAS
========================================================= */

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}


/* =========================================================
   SEÇÃO GERAL
========================================================= */

.home-noticias {
    width: 100%;
    background: #ffffff;
    padding: 0;
    box-sizing: border-box;
}

.home-noticias .wrapper {
    width: 80%;
    max-width: 1450px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* =========================================================
   DESKTOP - MESMO PADRÃO DAS OUTRAS SEÇÕES
========================================================= */

@media (min-width: 1025px) {

    .home-noticias-tela-principal {
        height: 100vh;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 78px 0 34px;

        box-sizing: border-box;
        overflow: hidden;
    }

    .home-noticias-tela-principal .wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}


/* =========================================================
   NOTÍCIA PRINCIPAL
========================================================= */

.home-noticia-destaque {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;

    align-items: stretch;

    margin: 0;

    background: #ffffff;

    overflow: hidden;

    box-sizing: border-box;
}

.home-noticia-destaque-imagem {
    grid-column: span 2;

    position: relative;

    width: 100%;
    height: 270px;

    overflow: hidden;
}

.home-noticia-destaque-imagem img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    margin: 0;
}

.home-noticia-destaque-conteudo {
    grid-column: span 1;

    width: 100%;

    padding: 18px 16px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    background: #ffffff;
}

.home-noticia-destaque::after {
    display: none;
}

.home-noticia-destaque-conteudo h2 {
    width: 100%;

    margin: 0 0 18px;

    color: #161616;

    font-size: 27px;
    line-height: 1.14;

    font-weight: 300;

    text-transform: uppercase;

    letter-spacing: 0.2px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;

    overflow: hidden;
}

.home-noticia-destaque-conteudo p {
    display: none !important;
}


/* =========================================================
   BOTÕES INDIVIDUAIS
========================================================= */

.home-noticia-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: fit-content;

    padding: 11px 14px;

    background: #ff5a00;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 13px;
    line-height: 1;

    font-weight: 400;

    text-transform: uppercase;

    border: none;
    border-radius: 0;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.home-noticia-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}


/* =========================================================
   3 CARDS
========================================================= */

.home-noticias-grid {
    width: 100%;

    margin-top: 40px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 48px;

    box-sizing: border-box;
}

.home-noticia-card {
    position: relative;

    width: 100%;
    height: 215px;

    min-width: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================================
   DEGRADÊ ESCURO NO CARD INTEIRO
========================================================= */

.home-noticia-card::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.32) 0%,
        rgba(0, 0, 0, 0.42) 45%,
        rgba(0, 0, 0, 0.68) 75%,
        rgba(0, 0, 0, 0.88) 100%
    );
}


/* =========================================================
   CONTEÚDO DOS CARDS
========================================================= */

.home-noticia-card-conteudo {
    position: absolute;

    z-index: 2;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 14px 16px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.home-noticia-card-conteudo h3 {
    margin: 0 0 9px;

    color: #ffffff;

    font-size: 21px;
    line-height: 1.12;

    font-weight: 300;

    text-transform: uppercase;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.home-noticia-card-conteudo p {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 12px;
    line-height: 1.3;

    font-weight: 300;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.home-noticia-card .home-noticia-btn {
    padding: 9px 11px;
    font-size: 10px;
}


/* =========================================================
   BOTÃO GERAL - VER MAIS NOTÍCIAS
========================================================= */

.home-noticias-ver-todas {
    width: 100%;

    margin-top: 24px;

    display: flex;
    justify-content: center;
}

.home-noticias-ver-todas-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    background: #ff5a00;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 11px;
    line-height: 1;

    font-weight: 400;

    text-transform: uppercase;

    border: none;
    border-radius: 0;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.home-noticias-ver-todas-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}


/* =========================================================
   NOTEBOOK / DESKTOP MENOR
========================================================= */

@media (min-width: 1025px) and (max-width: 1500px) {

    .home-noticias .wrapper {
        width: 82%;
        max-width: 1220px;
    }

    .home-noticias-tela-principal {
        padding-top: 72px;
        padding-bottom: 28px;
    }

    .home-noticia-destaque {
        gap: 38px;
    }

    .home-noticia-destaque-imagem {
        height: 245px;
    }

    .home-noticia-destaque-conteudo {
        padding: 15px 14px;
    }

    .home-noticia-destaque-conteudo h2 {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .home-noticias-grid {
        margin-top: 30px;
        gap: 38px;
    }

    .home-noticia-card {
        height: 185px;
    }

    .home-noticia-card-conteudo {
        padding: 12px 14px;
    }

    .home-noticia-card-conteudo h3 {
        font-size: 19px;
        margin-bottom: 7px;
    }

    .home-noticia-card-conteudo p {
        font-size: 11px;
        margin-bottom: 9px;
    }

    .home-noticia-card .home-noticia-btn {
        padding: 8px 10px;
        font-size: 10px;
    }

    .home-noticias-ver-todas {
        margin-top: 20px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .home-noticias {
        padding: 40px 0 50px;
    }

    .home-noticias-tela-principal {
        height: auto;

        display: block;

        padding: 0;

        overflow: visible;
    }

    .home-noticias .wrapper {
        width: 90%;
    }

    .home-noticia-destaque {
        grid-template-columns:
            minmax(0, 1.6fr)
            minmax(260px, 1fr);

        gap: 28px;
    }

    .home-noticia-destaque-imagem {
        height: 290px;
    }

    .home-noticia-destaque-conteudo {
        padding: 22px 16px;
    }

    .home-noticia-destaque-conteudo h2 {
        font-size: 25px;
        margin-bottom: 14px;
    }

    .home-noticias-grid {
        margin-top: 32px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 24px;
    }

    .home-noticia-card {
        height: auto;
        aspect-ratio: 1.25 / 1;
    }

    .home-noticia-card-conteudo {
        padding: 14px 16px;
    }

    .home-noticia-card-conteudo h3 {
        font-size: 22px;
        line-height: 1.12;
        margin-bottom: 10px;
    }

    .home-noticia-card-conteudo p {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .home-noticias-ver-todas {
        margin-top: 28px;
    }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 700px) {

    .home-noticias {
        padding: 35px 0 40px;
    }

    .home-noticias .wrapper {
        width: 92%;
    }

    .home-noticia-destaque {
        display: block;
    }

    .home-noticia-destaque-imagem {
        width: 100%;
        height: 235px;
    }

    .home-noticia-destaque-conteudo {
        width: 100%;

        padding: 18px 5px 10px;

        display: block;
    }

    .home-noticia-destaque-conteudo h2 {
        max-width: none;

        margin-bottom: 12px;

        font-size: 23px;
        line-height: 1.15;
    }

    .home-noticias-grid {
        margin-top: 28px;

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .home-noticia-card {
        height: auto;
        aspect-ratio: 1.45 / 1;
    }

    .home-noticia-card-conteudo {
        padding: 14px 16px;
    }

    .home-noticia-card-conteudo h3 {
        margin-bottom: 8px;

        font-size: 21px;
        line-height: 1.1;

        -webkit-line-clamp: 2;
    }

    .home-noticia-card-conteudo p {
        margin-bottom: 10px;

        font-size: 13px;
        line-height: 1.3;

        -webkit-line-clamp: 2;
    }

    .home-noticia-btn,
    .home-noticia-card .home-noticia-btn {
        padding: 9px 12px;
        font-size: 11px;
    }

    .home-noticias-ver-todas {
        margin-top: 24px;
    }
}


/* =========================================================
   CELULAR PEQUENO
========================================================= */

@media (max-width: 400px) {

    .home-noticias {
        padding-top: 30px;
    }

    .home-noticia-destaque-imagem {
        height: 210px;
    }

    .home-noticia-destaque-conteudo h2 {
        font-size: 21px;
    }

    .home-noticia-card {
        aspect-ratio: 1.35 / 1;
    }

    .home-noticia-card-conteudo {
        padding: 12px 13px;
    }

    .home-noticia-card-conteudo h3 {
        font-size: 19px;
    }

    .home-noticia-card-conteudo p {
        font-size: 12px;
    }

    .home-noticias-ver-todas-btn {
        padding: 10px 15px;
        font-size: 10px;
    }
}

/* =========================================================
   AJUSTE DO CLIQUE NO MENU - NOTÍCIAS
========================================================= */

#noticias-home {
    scroll-margin-top: 50px;
}

@media (min-width: 1025px) {

    .home-noticias-tela-principal {
        height: 100vh;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 65px 0 20px;

        box-sizing: border-box;
        overflow: hidden;
    }

    .home-noticia-destaque-imagem {
        height: 235px;
    }

    .home-noticias-grid {
        margin-top: 26px;
    }

    .home-noticia-card {
        height: 175px;
    }

    .home-noticias-ver-todas {
        margin-top: 18px;
    }
}

/* =========================================================
   PADRONIZAÇÃO FINAL DOS ESPAÇAMENTOS - NOTÍCIAS
========================================================= */

@media (min-width: 1025px) {

    .home-noticias {
        --espaco-noticias: 32px;
    }

    /* seção continua com o mesmo padrão de 1 tela */
    .home-noticias-tela-principal {
        height: 100vh;
        padding: var(--espaco-noticias);
        box-sizing: border-box;
        overflow: hidden;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* destaque */
    .home-noticia-destaque {
        gap: var(--espaco-noticias);
        margin: 0;
    }

    /* primeira linha de cards */
    .home-noticias-grid {
        margin-top: var(--espaco-noticias);
        gap: var(--espaco-noticias);
    }

    /* espaço até o botão geral */
    .home-noticias-ver-todas {
        margin-top: var(--espaco-noticias);
    }
}

.home-noticias .home-noticia-btn,
.home-noticias .home-noticias-ver-todas-btn {
    background: #54ae2b !important;
    border-color: #54ae2b !important;
}

.home-noticias .home-noticia-btn:hover,
.home-noticias .home-noticias-ver-todas-btn:hover {
    background: #3a7d1d !important;
    border-color: #3a7d1d !important;
}

/* SETA DA SEÇÃO NOTÍCIAS */
.home-noticias-tela-principal {
    position: relative;
}

/* CORRIGE POSIÇÃO DA SETA DA SEÇÃO NOTÍCIAS */
.home-noticias-tela-principal {
    position: relative !important;
}

.home-noticias-tela-principal > .seta {
    bottom: 45px !important;
}