﻿#newsContainer {
    width: 70%;
    margin-bottom: 0;
    display: inline-block;
    padding: 1.25rem;
}

#newsContainerTitle {
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    border-bottom: 2px solid rgba(255,255,255,0.1) !important;
}

#newsContainerSection {
    display: grid;
    grid-auto-flow: row;
    row-gap: 40px;
    margin-bottom: 40px;
}

#newsContainerPagination {
    margin-top: 5px;
    text-align: center;
}

/*.changeNews {
    padding: 5px 10px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    line-height: 1.5;
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
    width: 180px;
    color: #333;
    -webkit-box-shadow: 0 0 3px 1px #ccc;
    box-shadow: 0 0 3px 1px #ccc;
}

    .changeNews:hover {
        text-decoration: none;
        color: #333;
        opacity: 0.7 !important;
        filter: alpha(opacity=70);
    }*/

.singleNewsContainer {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: none;
    grid-template-columns: min-content 1fr;
    grid-template-areas: "card-image card-text";
}

.singleNewsImage {
    width: 230px;
    height: 130px;
    margin-left: 0;
    margin-right: 25px;
    /*overflow: hidden;*/
    position: relative;
    grid-area: card-image;
}

    .singleNewsImage:hover {
        text-decoration: none !important;
    }

    .singleNewsImage img {
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

.singleNewsInfoImg {
    width: 45%;
    position: absolute;
    top: 0;
    right: -0.07rem;
    text-align: right;
    padding: 2px 5px 2px 2px;
    font-size: 11px;
    color: rgba(255,255,255,0.8) !important;
    background-color: rgba(0,0,0,0.6);
    border-radius: 0px 10px 0px 10px;
    text-decoration: none !important;
}

.singleNewsData {
    display: grid;
    grid-area: card-text;
    grid-auto-flow: row;
    align-content: start;
}

.singleNewsTitle {
    font-size: 1.5rem;
    font-weight: 500;
}

.singleNewsCategories span {
    padding: 1px 5px;
    color: rgba(255,255,255,0.8) !important;
    background-color: rgba(128, 128, 128, 0.5);
    border-radius: 3px;
}

.singleNewsSubTitle {
    margin: 6px 0 0 0;
    width: auto;
}

/* IMPOSTAZIONI PER SCHERMI FINO A 500PX */
@media screen and (max-width: 500px) {
    #newsContainer {
        width: 100%;
        padding: 0 0.25rem;
    }

    #newsContainerSection {
        margin-bottom: 20px;
    }

    #newsContainerTitle h1 {
        font-size: 1.5rem;
    }

    .singleNewsImage {
        width: 127px;
        height: 72px;
        margin-right: 10px;
    }

    .singleNewsInfoImg {
        width: 85%;
        font-size: 9px;
        border-radius: 0px 10px 0px 10px;
    }

    .singleNewsTitle {
        font-size: 0.9rem;
        font-weight: bold;
        margin-bottom: 0;
    }

    .singleNewsCategories span {
        font-size: 0.7rem;
    }

    .singleNewsSubTitle {
        display: none;
    }
}

/* IMPOSTAZIONI PER SCHERMI FINO A 750PX */
@media screen and (min-width: 501px) and (max-width: 750px) {
    #newsContainer {
        width: 100%;
        padding: 0 0.25rem;
    }

    #newsContainerTitle h1 {
        font-size: 2rem;
    }
}

/* IMPOSTAZIONI PER SCHERMI FINO A 900PX */
@media screen and (min-width: 751px) and (max-width: 900px) {
    #newsContainer {
        width: 73%;
        padding: 0 0.25rem;
    }

    #newsContainerTitle h1 {
        font-size: 12px;
    }
}










/* IMPOSTAZIONI PER SCHERMI FINO A 560PX */
/*@media screen and (max-width: 560px) {
    .singleNewsContainer {
        width: calc(100% - 8px);
    }
}*/

/* IMPOSTAZIONI PER SCHERMI DA 561PX A 840PX */
/*@media screen and (min-width: 561px) and (max-width: 840px) {
    .singleNewsContainer {
        width: calc(50% - 10px);
    }
}*/

/* IMPOSTAZIONI PER SCHERMI DA 1071PX A 1170PX */
/*@media screen and (min-width: 1071px) and (max-width: 1170px) {
    .singleNewsContainer {
        width: calc(50% - 10px);
    }
}*/
