/* 
    Created on : 25 lug 2022, 11:21:57
    Author     : Davide Versace
*/

/*body{
    margin-top:20px;
}*/

/*.section {
        padding: 100px 0;
        position: relative;
    height: 500px;
    background: #f9f9ff;
}*/
.section{
    padding-top: 35px;
    padding-bottom: 85px;
    background: #f9f9ff;
    margin-bottom: 55px;
}
#blog .container {
    width: 100%;
    max-width: none;
    padding-left: 35px;
    padding-right: 35px;
}
#blog .row {
    margin-left: 0;
    margin-right: 0;
}
/*@media (min-width: 1200px){
    section .container {
        width: 1170px;
    }
}
@media (min-width: 992px){
    section .container {
        width: 970px;
    }
}

@media (min-width: 768px) {
    section .container {
        width: 750px;
    }
}

@media (min-width: 576px) {
    section .container {
        width: 750px;
    }
}*/



.section .section-title{
    margin-left: 20px;
}
.section .section-title h2{
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 22px;
}
.gray-bg {
    background-color: #ebf4fa;
}
/* Blog 
---------------------*/
#blog .main-carousel {
    width: 100%;
    padding: 0 82px 42px;
    overflow: visible;
}
#blog .main-carousel .cell {
    width: 390px;
    max-width: 390px;
    padding-left: 16px;
    padding-right: 16px;
}
#blog .flickity-viewport {
    min-height: 550px;
}
.blog-grid {
    margin-top: 18px;
    margin-bottom: 24px;
    height: 520px;
    background: #ffffff;
    border: 1px solid #d7e0f2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(31, 45, 61, 0.12);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.blog-grid:hover {
    border-color: #98b5ed;
    box-shadow: 0 16px 36px rgba(31, 99, 216, 0.18);
    transform: translateY(-2px);
}
.blog-grid .blog-img {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
    height: 190px;
    background: #eef4ff;
    box-shadow: none;
}
.blog-grid .blog-img a,
.blog-grid .blog-img img {
    display: block;
    width: 100%;
    height: 100%;
}
.blog-grid .blog-img img {
    object-fit: cover;
}
.blog-grid .news-category {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    box-shadow: 0 5px 14px rgba(31, 45, 61, .18);
}
.blog-grid .news-category-avviso {
    background: #1f63d8;
}
.blog-grid .news-category-novita {
    background: #2a9d55;
}
.blog-grid .news-category-informazione {
    background: #6f4acb;
}
.blog-grid .blog-img .date {
    position: absolute;
    background: #3a3973;
    color: #ffffff;
    padding: 8px 15px;
    left: 0;
    top: 10px;
    font-size: 14px;
}
.blog-grid .blog-info {
    box-shadow: none;
    border-radius: 0;
    background: #ffffff;
    padding: 24px;
    /*    margin: -30px 20px 0;*/
    margin: 0;
    position: relative;
    height: 330px;
}
.blog-grid .blog-info .news-content {
    min-height: 0;
    overflow: visible;
}
.blog-grid .blog-info h5 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.25;
}
.blog-grid .blog-info h5 a {
    color: #3a3973;
}

.blog-grid .btn-bar .date {
    font-size: 1.25rem;
    text-transform: uppercase;
    font-weight: 400;
    color: #999;
}

.blog-grid .blog-info h5 a:hover {
    text-decoration: none;
}

.blog-grid .blog-info p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    text-overflow: ellipsis;
    margin: 0;
    color: #5f6773;
    line-height: 1.45;
    font-size: 15px;
}
.blog-grid .blog-info .btn-bar {
    margin-top: 14px;
    width: 100%;
}

.px-btn-arrow {
    padding: 0 50px 0 0;
    line-height: 20px;
    position: relative;
    display: inline-block;
    color: #fe4f6c;
    -moz-transition: ease all 0.3s;
    -o-transition: ease all 0.3s;
    -webkit-transition: ease all 0.3s;
    transition: ease all 0.3s;
}

.px-btn-arrow:hover {
    text-decoration: none;
}


.px-btn-arrow .arrow {
    width: 13px;
    height: 2px;
    background: currentColor;
    display: inline-block;
    position: absolute;
    top: 0;
    bottom: -6px;
    margin: auto;
    right: 25px;
    -moz-transition: ease right 0.3s;
    -o-transition: ease right 0.3s;
    -webkit-transition: ease right 0.3s;
    transition: ease right 0.3s;
}

.px-btn-arrow .arrow:after {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    content: "";
    position: absolute;
    top: -3px;
    right: 0;
    display: inline-block;
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

#blog .flickity-prev-next-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #1f63d8;
    box-shadow: 0 10px 24px rgba(31, 45, 61, 0.18);
    opacity: 1;
    transition: all .2s ease;
}
#blog .flickity-prev-next-button:hover {
    background: #1f63d8;
    box-shadow: 0 12px 28px rgba(31, 99, 216, 0.30);
}
#blog .flickity-prev-next-button .arrow {
    fill: #1f63d8;
}
#blog .flickity-prev-next-button:hover .arrow {
    fill: #ffffff;
}
#blog .flickity-prev-next-button.previous {
    left: 22px;
}
#blog .flickity-prev-next-button.next {
    right: 22px;
}
#blog .flickity-page-dots {
    bottom: -4px;
}
#blog .flickity-page-dots .dot {
    width: 10px;
    height: 10px;
    background: #1f63d8;
}
#blog .main-carousel.news-carousel-fit {
    padding-left: 0;
    padding-right: 0;
}
#blog .main-carousel.news-carousel-fit .flickity-prev-next-button,
#blog .main-carousel.news-carousel-fit .flickity-page-dots {
    display: none;
}
#blog .main-carousel.news-carousel-fit .flickity-slider {
    display: flex;
    justify-content: center;
    left: 0 !important;
    width: 100%;
    transform: none !important;
}
#blog .main-carousel.news-carousel-fit .cell {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    flex: 0 0 auto;
}

@media (max-width: 991px) {
    #blog .container {
        padding-left: 18px;
        padding-right: 18px;
    }
    #blog .main-carousel {
        padding-left: 55px;
        padding-right: 55px;
    }
    #blog .main-carousel .cell {
        width: 360px;
        max-width: 360px;
    }
}

@media (max-width: 575px) {
    #blog .main-carousel {
        padding-left: 42px;
        padding-right: 42px;
    }
    #blog .main-carousel .cell {
        width: 300px;
        max-width: 300px;
    }
    .blog-grid {
        height: 500px;
    }
    .blog-grid .blog-img {
        height: 155px;
    }
    .blog-grid .blog-info {
        height: 345px;
    }
}
