/* =========================================================
   HOME - NOTÍCIAS
   MODELO TROPICAL
========================================================= */

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: 55px 0 70px;

    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
========================================================= */

.home-noticias .wrapper {
    width: 80%;
    max-width: 1450px;

    margin: 0 auto;

    box-sizing: border-box;
}


/* =========================================================
   NOTÍCIA PRINCIPAL
   IMAGEM ESQUERDA + TEXTO DIREITA
========================================================= */

.home-noticia-destaque {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 55px;

    align-items: stretch;

    margin: 0;

    background: #ffffff;

    overflow: hidden;

    box-sizing: border-box;
}

.home-noticia-destaque-imagem {
    grid-column: span 2;
}

.home-noticia-destaque-conteudo {
    grid-column: span 1;
}


/* =========================================================
   IMAGEM PRINCIPAL
========================================================= */

.home-noticia-destaque-imagem {
    position: relative;

    width: 100%;
    height: 330px;

    overflow: hidden;
}

.home-noticia-destaque-imagem img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    margin: 0;
}


/* REMOVE QUALQUER DEGRADÊ ANTIGO */

.home-noticia-destaque::after {
    display: none;
}


/* =========================================================
   TEXTO PRINCIPAL
========================================================= */

.home-noticia-destaque-conteudo {
    position: static;

    width: 100%;

    padding: 25px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    background: #ffffff;
}


/* TÍTULO */

.home-noticia-destaque-conteudo h2 {
    width: 100%;
    max-width: 100%;

    margin: 0 0 22px;

    color: #161616;

    font-size: 31px;
    line-height: 1.15;

    font-weight: 300;

    text-transform: uppercase;

    letter-spacing: 0.2px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;

    overflow: hidden;
}


/* DESCRIÇÃO */

.home-noticia-destaque-conteudo p {
    display: none !important;
}


/* =========================================================
   BOTÃO
========================================================= */

.home-noticia-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: fit-content;

    padding: 12px 16px;

    background: #ff5a00;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 15px;
    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);
}


/* =========================================================
   GRID DAS 6 NOTÍCIAS
========================================================= */

.home-noticias-grid {
    width: 100%;

    margin-top: 35px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 70px 55px;

    box-sizing: border-box;
}


/* =========================================================
   CARD
========================================================= */

.home-noticia-card {
    position: relative;

    width: 100%;

    aspect-ratio: 1.28 / 1;

    min-width: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================================
   DEGRADÊ DO CARD
========================================================= */

.home-noticia-card::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.00) 25%,
        rgba(0, 0, 0, 0.10) 43%,
        rgba(0, 0, 0, 0.68) 76%,
        rgba(0, 0, 0, 0.90) 100%
    );
}


/* =========================================================
   CONTEÚDO DO CARD
========================================================= */

.home-noticia-card-conteudo {
    position: absolute;

    z-index: 2;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 12px 16px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}


/* =========================================================
   TÍTULO DO CARD
========================================================= */

.home-noticia-card-conteudo h3 {
    margin: 0 0 16px;

    color: #ffffff;

    font-size: 31px;
    line-height: 1.13;

    font-weight: 300;

    text-transform: uppercase;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   DESCRIÇÃO DO CARD
========================================================= */

.home-noticia-card-conteudo p {
    margin: 0 0 16px;

    color: #ffffff;

    font-size: 17px;
    line-height: 1.35;

    font-weight: 300;

    display: -webkit-box;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* BOTÃO DOS CARDS */

.home-noticia-card .home-noticia-btn {
    padding: 13px 15px;

    font-size: 15px;
}


/* =========================================================
   NOTEBOOK / DESKTOP MENOR
========================================================= */

@media (min-width: 1025px) and (max-width: 1500px) {

    .home-noticias {
        padding: 45px 0 60px;
    }

    .home-noticias .wrapper {
        width: 84%;
        max-width: 1250px;
    }


    /* DESTAQUE */

    .home-noticia-destaque {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px;
    }

    .home-noticia-destaque-imagem {
        grid-column: span 2;
    }

    .home-noticia-destaque-conteudo {
        grid-column: span 1;
    }

    .home-noticia-destaque-imagem {
        height: 300px;
    }

    .home-noticia-destaque-conteudo {
        padding: 22px 0;
    }

    .home-noticia-destaque-conteudo h2 {
        font-size: 28px;

        margin-bottom: 16px;
    }

    .home-noticia-destaque-conteudo p {
        display: none !important;
    }


    /* GRID */

    .home-noticias-grid {
        margin-top: 30px;

        gap: 55px 40px;
    }

    .home-noticia-card-conteudo {
        padding: 15px 16px;
    }

    .home-noticia-card-conteudo h3 {
        font-size: 25px;

        margin-bottom: 12px;
    }

    .home-noticia-card-conteudo p {
        font-size: 14px;

        margin-bottom: 14px;
    }

    .home-noticia-card .home-noticia-btn {
        padding: 11px 13px;

        font-size: 12px;
    }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .home-noticias {
        padding: 40px 0 50px;
    }

    .home-noticias .wrapper {
        width: 90%;
    }

    .home-noticia-destaque {
        grid-template-columns:
            minmax(0, 1.6fr)
            minmax(260px, 1fr);
    }

    .home-noticia-destaque-imagem {
        height: 290px;
    }

    .home-noticia-destaque-conteudo {
        padding: 22px 0;
    }

    .home-noticia-destaque-conteudo h2 {
        font-size: 25px;
        margin-bottom: 14px;
    }

    .home-noticia-destaque-conteudo p {
        display: none !important;
    }

    .home-noticias-grid {
        margin-top: 32px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 24px;
    }

    .home-noticia-card {
        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;
    }
}

/* =========================================================
   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-noticia-destaque-conteudo p {
        display: none !important;
    }

    .home-noticias-grid {
        margin-top: 28px;

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .home-noticia-card {
        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;
    }
}

/* =========================================================
   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;
    }
}

/* DEGRADÊ ESCURO EM TODO O CARD 
.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%
    );
} */