/* =========================================================
   NOTÍCIAS — HOME
   ========================================================= */

.home-news {
    width: 100%;

    background: #ffffff;

    padding: 30px 0 34px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.home-news-container {
    width: min(
        1380px,
        calc(100% - 80px)
    );

    margin: 0 auto;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.home-section-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 12px;

    border-bottom: 1px solid #e4e4e4;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.home-section-title h2 {
    position: relative;

    margin: 0;

    padding-bottom: 9px;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size: 15px;

    line-height: 1;

    font-weight: 800;

    color: #222222;
}


/* =========================================================
   LINHA VERMELHA
   ========================================================= */

.home-section-line {
    display: block;

    width: 43px;

    height: 2px;

    background: #d20b16;
}


/* =========================================================
   VER TODAS
   ========================================================= */

.home-section-more {
    display: flex;

    align-items: center;

    gap: 5px;

    margin-top: 1px;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 800;

    color: #b0000c;

    text-decoration: none;

    text-transform: uppercase;

    transition:
        opacity .2s ease;
}


.home-section-more:hover {
    opacity: .65;
}


.home-section-more span {
    font-size: 12px;

    line-height: 1;
}


/* =========================================================
   GRID
   ========================================================= */

.home-news-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}


/* =========================================================
   CARD
   ========================================================= */

.home-news-card {
    display: flex;

    flex-direction: column;

    background: #ffffff;

    border:
        1px solid #e5e5e5;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.home-news-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, .07);
}


/* =========================================================
   IMAGEM
   ========================================================= */

/*
   A área mantém a mesma altura nos três cartões.
   A imagem fica inteira e não é cortada.
*/

.home-news-image {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 165px;

    overflow: hidden;

    background: #ffffff;
}


/* =========================================================
   IMAGEM — SEM CORTE
   ========================================================= */

.home-news-image img {
    display: block;

    width: 100%;

    height: 100%;

    max-width: 100%;

    object-fit: contain;

    object-position: center;

    transition:
        transform .45s ease;
}


/* =========================================================
   HOVER DA IMAGEM
   ========================================================= */

.home-news-card:hover
.home-news-image img {
    transform: scale(1.02);
}


/* =========================================================
   SEM IMAGEM
   ========================================================= */

.home-news-no-image {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 165px;

    background:
        linear-gradient(
            135deg,
            #720000,
            #a40000
        );
}


/* =========================================================
   CONTEÚDO
   ========================================================= */

.home-news-content {
    padding:
        11px 12px 13px;

    background: #ffffff;
}


/* =========================================================
   DATA
   ========================================================= */

.home-news-content time {
    display: block;

    margin-bottom: 7px;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size: 8px;

    line-height: 1;

    font-weight: 700;

    color: #888888;

    text-transform: uppercase;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.home-news-content h3 {
    margin: 0;

    min-height: 46px;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size: 11px;

    line-height: 1.45;

    font-weight: 700;

    color: #222222;
}


.home-news-content h3 a {
    color: inherit;

    text-decoration: none;

    transition:
        color .2s ease;
}


.home-news-content h3 a:hover {
    color: #b0000c;
}


/* =========================================================
   LER MAIS
   ========================================================= */

.home-news-read {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-top: 7px;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size: 8px;

    line-height: 1;

    font-weight: 800;

    color: #b0000c;

    text-decoration: none;

    text-transform: uppercase;
}


.home-news-read span {
    font-size: 12px;

    line-height: 1;

    transition:
        transform .2s ease;
}


.home-news-read:hover span {
    transform:
        translateX(3px);
}


/* =========================================================
   EMPTY
   ========================================================= */

.home-news-empty {
    grid-column: 1 / -1;

    padding: 50px 20px;

    text-align: center;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size: 12px;

    color: #777777;

    border:
        1px solid #e5e5e5;

    background: #ffffff;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .home-news-container {
        width:
            calc(100% - 50px);
    }


    .home-news-grid {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 10px;
    }


    .home-news-image,
    .home-news-no-image {
        height: 145px;
    }


    .home-news-content {
        padding:
            10px 11px 12px;
    }

}


/* =========================================================
   RESPONSIVE — TABLET PEQUENO
   ========================================================= */

@media (max-width: 750px) {

    .home-news-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .home-news-image,
    .home-news-no-image {
        height: 160px;
    }

}


/* =========================================================
   RESPONSIVE — TELEMÓVEL
   ========================================================= */

@media (max-width: 520px) {

    .home-news {

        padding:
            25px 0 30px;

    }


    .home-news-container {

        width:
            calc(100% - 30px);

    }


    .home-news-grid {

        grid-template-columns: 1fr;

    }


    .home-news-image,
    .home-news-no-image {

        height: 210px;

    }


    .home-news-content {

        padding:
            12px 14px 15px;

    }


    .home-news-content h3 {

        min-height: auto;

        font-size: 12px;

    }


    .home-news-content time {

        font-size: 8px;

    }


    .home-news-read {

        font-size: 8px;

    }

}