﻿.ttl_news {
    font-size: 48px;
    padding: 50px 0 50px 0;
    font-weight: bold;
    color: #000;
}

.news_layout_top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

.news_layout_top_lf {
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
    width: 51%;
    overflow: hidden;
}

    .news_layout_top_lf a, .news_layout_top_ri a, .news_bt_itm a {
        text-decoration: none;
        color: #000;
    }

.news_lf_main, .news_ri_main {
    padding: 20px;
    color: #000;
}

.news_lf_ttl {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 25px;
    font-weight: bold;
    line-height: 1.2;
}

.news_lf_date {
    padding-top: 10px;
    font-size: 14px;
}

.news_lf_des, .news_ri_des, .news_bt_des {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    margin: 15px 0 15px 0;
}

.btn {
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    font-size: 15px;
    color: #fff;
    /* border-radius: 100px; */
    padding: 5px 10px;
    cursor: pointer;
    transition: .5s;
}

    .btn:hover {
        opacity: 0.5;
    }

    .btn i {
        font-size: 13px;
        padding-left: 5px;
    }

.news_lf_img {
    margin: 0;
}

.news_layout_top_ri {
    width: 45%;
}

.news_lf_img {
    over
}

.news_ri_itm {
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 30px;
}

    .news_ri_itm:last-child {
        margin: 0;
    }

    .news_ri_itm a, .news_ri_bottom, .news_bt_bottom {
        display: flex
    }

.news_ri_img {
    width: 165px;
    margin: 0;
}

    .news_ri_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news_ri_main {
    width: calc(100% - 165px);
}

.news_ri_ttl, .news_bt_ttl {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-size: 20px;
    font-weight: bold;
}


.news_ri_bottom, .news_bt_bottom {
    justify-content: space-between;
}

.news_bt_itm {
    width: calc(100% / 3 - 10px);
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 15px 0 0;
}

    .news_bt_itm:nth-child(3n) {
        margin-right: 0;
    }

.news_bt_main {
    padding: 15px;
}

.news_bt {
    display: flex;
    flex-wrap: wrap;
}

.news_ri_date, .news_bt_date {
    padding: 5px 0 5px 0px;
    font-size: 14px;
}

.news_lf_date {
    padding-top: 15px;
}

@media only screen and (max-width: 768px) {

    .news_layout_top_ri, .news_layout_top_lf, .news_bt_bottom {
        width: 100%;
    }

    .news_layout_top_lf {
        margin-bottom: 20px;
    }

    .news_bt_itm {
        width: 47%;
        margin: 5px;
    }

    .news_bt_bottom {
        display: flex;
    }
}

@media only screen and (max-width: 460px) {
    .news_lf_ttl {
        font-size: 19px;
    }

    .news_ri_ttl, .news_bt_ttl {
        font-size: 15px;
    }

    .ttl_news {
        font-size: 27px;
        padding: 30px 0 10px 0;
    }

    .news_layout_top_ri, .news_layout_top_lf, .news_bt_bottom {
        width: 100%;
    }

    .news_layout_top_lf {
        margin-bottom: 20px;
    }

    .news_ri_bottom, .news_bt_bottom {
        display: inline-block;
    }

    .btn {
        width: 100%;
    }

    .news_bt {
        display: flex;
    }

    .news_lf_des, .news_ri_des, .news_bt_des {
        margin: 5px 0 5px 0;
        font-size: 12px;
    }

    .news_ri_date, .news_bt_date {
        display: block;
        margin-bottom: 10px;
        font-size: 11px;
    }
}

/* Diego dalla Palma news list */
.news-list-page {
    padding: 30px 0;
}

    .news-list-page .container {
        width: min(1180px, calc(100% - 40px));
        margin: 0 auto;
    }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.news-card {
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

    .news-card:hover {
        transform: translateY(-6px);
        border-color: rgba(0, 0, 0, .18);
        box-shadow: 0 18px 38px rgba(0, 0, 0, .12);
    }

    .news-card a {
        display: flex;
        height: 100%;
        flex-direction: column;
        color: #111;
        text-decoration: none;
    }

.news-image {
    aspect-ratio: 1.32 / 1;
    background: #eee9e5;
    overflow: hidden;
}

    .news-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .36s ease;
    }

.news-card:hover .news-image img {
    transform: scale(1.045);
}

.news-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 22px 22px 24px;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7a716a;
    font-size: 13px;
    line-height: 1.2;
}

    .news-date i {
        font-size: 12px;
    }

.news-content h3 {
    margin: 0;
    min-height: 58px;
    color: #090909;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    margin: 0;
    color: #4d4946;
    font-size: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

    .news-link i {
        transition: transform .24s ease;
    }

.news-card:hover .news-link i {
    transform: translateX(4px);
}

.news-list-page .pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 42px 0 0;
    padding: 0;
    list-style: none;
}

    .news-list-page .pager a,
    .news-list-page .pager span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        border: 1px solid rgba(0, 0, 0, .16);
        background: #fff;
        color: #111;
        text-decoration: none;
        font-weight: 700;
        transition: background .22s ease, color .22s ease, border-color .22s ease;
    }

        .news-list-page .pager a:hover,
        .news-list-page .pager span {
            border-color: #111;
            background: #111;
            color: #fff;
        }

@media only screen and (max-width: 980px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media only screen and (max-width: 640px) {
    .news-list-page {
        padding: 0;
    }

        .news-list-page .container {
            width: 100%;
        }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-content {
        padding: 18px 18px 20px;
    }

        .news-content h3 {
            min-height: auto;
            font-size: 19px;
        }
}
