.fg-container {
    /**
     * Flex display is the key point to make images grow.
     */
    display: flex;
    flex-wrap: wrap;
}
.fg-container::after {
    /**
     * Creates a blank element after the last image.
     */
    content: '';
    /**
     * Prevents the images in the last row to grow.
     * In case they become too large.
     */
    flex-grow: 99999;
    /**
     * Well... If the left space is less than (screenHeight / 4), make them grow!
     */
    min-width: calc(100vw / 4);
}
.fg-item {
    /**
     * So that the text inside can be positioned absolutely.
     */
    position: relative;
}
.fg-img {
    /**
     * Makes images undraggable.
     */
    user-select: none;
    /**
     * Lets widths of images fit their parents (<a>s)
     */
    width: 100%;
    /**
     * Eliminates paddings images below images.
     */
    /*display: block;*/
    /**
     * Equivalent to "display: block;"
     */
    vertical-align: middle;
}
.fg-text {
    /**
     * Locate the text along with the image.
     */
    position: absolute;
    left: 1em;
    bottom: 1em;
    /**
     * Bring the text to the front.
     */
    z-index: 2;
    /**
     * White texts look good.
     */
    color: white;
}

.view-article article .entry-gallery.carousel.slide {
    float: left;
    margin-right: 25px;
    margin-bottom: 10px;
    width: 40%;
    max-height: 370px;
    min-height: 370px;
    overflow: hidden;
}

@media screen and (max-width: 414px) {
    article .entry-gallery.carousel.slide {
        float: none;
        width: 100%;
    }
}

.side-corner-tag {
    position: relative;
    color: #fff;
    display: inline-block;
    padding: 0px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-weight: 900;
}

.side-corner-tag p {
    display: inline;
}

.side-corner-tag p span {
    position: absolute;
    display: inline-block;
    right: -65px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2), inset 0px 5px 30px rgba(255, 255, 255, 0.2);
    text-align: center;
    text-transform: uppercase;
    top: 32px;
    /* background: #d93131; */
    background: #000;
    width: 260px;
    padding: 3px 10px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
}

.com-sppagebuilder .sj-basic-news .bs-items .bs-item {
    padding-left: 10px;
    padding-right: 10px;
}

div.custom .sj-basic-news div.bs-items div.bs-item.cf .bs-description {
    height: 90px;
    overflow: hidden;
}

div.custom .sj-basic-news div.bs-items div.bs-item.cf {
    height: 480px;
    overflow: hidden
}

div.custom .sj-basic-news div.bs-items div.bs-item.cf .bs-title {
    height: 45px;
    overflow: hidden;
}

div.custom .sj-basic-news div.bs-items div.bs-item.cf .bs-readmore {
    display: none;
}

div.custom .sj-basic-news div.bs-items div.bs-item.cf .bs-cat-date {
    margin-bottom: 5px;
    ;
}

div.custom .sj-basic-news div.bs-items div.bs-item.cf .bs-description {
    margin-top: 0px;
}

.custom .modtitle:after {
    content: none;
}

.custom .modtitle:before {
    content: none;
    display: none;
}

.custom .modtitle {
    margin-bottom: 0px;
    text-align: left;
}


/*aggiunto text-align:left (stefano)*/

.what-do {
    margin-top: 0px;
}

#sp-main-body .counter-wrap .maps .yt-counter-wrapper .yt-counter-desc .yt-counter-number {
    color: #fff;
}

#sp-header .logo {
    margin-top: 0px;
}

#sp-header {
    padding-top: 10px;
    padding-bottom: 10px;
}

.sp-megamenu-parent>li>a,
.sp-megamenu-parent>li>span {
    line-height: 46px;
}

#sp-logo>.sp-column {
    margin-top: -5px;
}

.galleria-footer .sppb-col-md-12 {
    padding: 0;
}

.galleria-footer .sppb-col-md-12 .container-slider {
    margin: 0;
}

.galleria-footer .sppb-col-md-12 .container-slider .page-titleX {
    margin: 0
}

.itemContentSingle .itemContainerSingle .itemSocialBlock {
    display: none !important;
}

#k2Container.k2_single .itemContentSingle .itemContainerSingle .itemBody {
    padding-bottom: 5px;
}

.galleria-footer .sppb-row-container .sppb-row .sppb-col-md-12 .sppb-addon-content .sppb-addon-title {
    padding: 0px 15px;
}

.galleria-footer .sppb-row-container .sppb-row .sppb-col-md-12 .sppb-addon-content .sj-k2-container-slider {
    margin-left: 0px;
    margin-right: 0px;
}

.sp-page-builder .page-content {
    padding-bottom: 0px;
}

#sp-bottom {
    padding-top: 25px !important;
}

#sp-bottom1,
#sp-footer1 {
    padding: 0px;
}

.contact-footer .pre-text,
.contact-footer .sp-module-title {
    text-align: center;
}

.contact-footer .contact-ajax.theme2 .ctajax-wrap .ctajax-element .el-inner .el-info-contact .info-contact {
    width: 50%;
}

.contact-footer .contact-ajax.theme2 .ctajax-wrap .ctajax-element.ctajax-element2,
.contact-ajax .ctajax-element .el-info-contact .info-address,
.contact-ajax .ctajax-element .el-info-contact .info-mobie,
.contact-ajax .ctajax-element .el-info-contact .info-mail,
.contact-footer .contact-ajax.theme2 {
    margin: 0px;
}

.contact-footer .contact-ajax.theme2 .ctajax-wrap .ctajax-element .el-inner .el-ctajax-form #cainput_submit {
    margin: 0
}

.inchiesta .item-title,
.inchiesta .item-title a,
.inchiesta .sppb-addon-title {
    color: #fff;
}

.sj-k2-container-slider {
    margin-left: 0;
    margin-right: 0
}

article.item {
    margin-bottom: 10px;
}

div.blog .item.column-1 p {
    text-align: justify;
}

#sp-breadcrumb {
    padding: 40px 0;
}

.contact-footer .contact-ajax.theme2 .ctajax-wrap .ctajax-element .el-inner .el-info-contact .info-contact i {
    height: 60px;
    width: 60px;
    line-height: 60px;
}

.contact-footer .contact-ajax.theme2 .ctajax-wrap .ctajax-element .el-inner .el-info-contact .info-contact .info-label {
    margin-left: 75px;
    font-size: 20px;
    margin-top: 18px;
}

.contact-footer .contact-ajax.theme2 .ctajax-wrap .ctajax-element .el-inner .el-info-contact .info-contact.info-mail .info-label {
    margin-top: 18px;
}

.com-sppagebuilder .sj-basic-news .bs-items .bs-item .bs-content .bs-cat-date {
    font-size: 16px;
}

.com-sppagebuilder .sj-basic-news .bs-items .bs-item .bs-image {
    margin-bottom: 10px;
    min-height: 340px;
    height: 340px;
    overflow: hidden;
    background-image: url(/images/thumb-background.png);
}

.com-sppagebuilder .sj-basic-news .bs-items .bs-item .bs-content .bs-date {
    color: #525252;
    float: right;
}


/* Altezza minima immagini in blog layout */

.sj-basic-news .bs-items .bs-item .bs-image a img {
    min-height: 310px
}


/* Evitare la ripetizione dell'immagine degli articoli importati */

.view-article #sp-component .blog .item-page .entry-image.full-image {
    display: none;
}


/* Migliorare l'aspetto degli articoli importati */

.view-article #sp-component .blog article.item-page div[itemProp=articleBody] table img {
    float: left;
    max-width: 400px;
    max-height: 300px;
    margin: 5px;
}


/* Migliorata la visualizzazione blog */

.view-category .blog .items-row article.item>p,
.view-category .blog .items-row article.item>div {
    display: none;
}

.view-category .blog .items-row article.item>div.entry-header,
.view-category .blog .items-row article.item>div.entry-thumbnail {
    display: block;
}

.view-category .blog .items-row article.item>div.entry-thumbnail,
.view-category .blog .items-row article.item>div.entry-thumbnail .entry-gallery.carousel.slide {
    height: 480px;
    overflow: hidden;
    margin-bottom: 10px;
}

.entry-image.intro-image img {
    margin-left: auto;
    margin-right: auto;
}

.entry-header.has-post-format h2 {
    text-align: center;
}

.view-category .blog .items-row article.item>div.entry-thumbnail .entry-gallery.carousel.slide img {
    margin: 0 auto;
    max-height: 480px;
}

body {
    background: url(/images/homepage/bg.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}


/* Ribbon Wrapper */

.ribbon-wrapper {
    position: relative;
    z-index: 90;
}

.ribbon-wrapper-blue {
    width: 85px;
    height: 88px;
    overflow: hidden;
    position: absolute;
    top: -3px;
    right: -3px;
}

.ribbon-blue {
    font: bold 15px Sans-Serif;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 1px -1px 3px rgba(0, 0, 0, 0.5);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    position: relative;
    padding: 7px 0;
    left: -5px;
    top: 15px;
    width: 120px;
    background: rgb(153, 0, 0);
    background: -moz-linear-gradient(top, rgba(153, 0, 0, 1) 0%, rgba(255, 58, 58, 1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(153, 0, 0, 1)), color-stop(100%, rgba(255, 58, 58, 1)));
    background: -webkit-linear-gradient(top, rgba(153, 0, 0, 1) 0%, rgba(255, 58, 58, 1) 100%);
    background: -o-linear-gradient(top, rgba(153, 0, 0, 1) 0%, rgba(255, 58, 58, 1) 100%);
    background: -ms-linear-gradient(top, rgba(153, 0, 0, 1) 0%, rgba(255, 58, 58, 1) 100%);
    background: linear-gradient(top, rgba(153, 0, 0, 1) 0%, rgba(255, 58, 58, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#990000', endColorstr='#ff3a3a', GradientType=0);
    color: #fff;
    -webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
}

.ribbon-blue:before,
.ribbon-blue:after {
    content: "";
    border-top: 3px solid #23538a;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    position: absolute;
    bottom: -3px;
}

.ribbon-blue:before {
    left: 0;
}

.ribbon-blue:after {
    right: 0;
}


/* End Ribbon Wrapper */

#sp-component .blog {
    background: transparent;
}

.blog .item {
    color: #000;
}

.blog .items-row .col-sm-6 .item .entry-image.intro-image img {
    width: 100%;
}

.com-sppagebuilder .sj-basic-news .bs-items .bs-item {
    width: 50%;
    padding: 0 15px;
    float: left;
}

#sp-page-builder .sppb-row .sppb-col-md-8 {
    padding: 0
}

div.search fieldset.only {
    display: none;
}

#btn-search-mobile {
    display: inline-block;
}

#searchForm .btn-toolbar label {
    display: none;
}

.galleria .single-image {
    width: 50%;
    float: left;
    padding: 5px;
    max-height: 600px;
    min-height: 500px;
    margin-bottom: 10px;
    overflow: hidden;
}

.galleria .single-image img {
    max-width: 100%;
    min-height: 100%;
}

.sp-copyright {
    display: block;
    text-align: center;
    padding: 0 20px 15px 20px;
}

@media (max-width: 991px) and (min-width: 768px) {
    #sp-menu {
        width: 70%;
    }
    #offcanvas-toggler .fa {
        font-size: 34px;
    }
    #offcanvas-toggler {
        line-height: normal;
    }
}

@media screen and (max-width: 768px) {
    .galleria .single-image {
        text-align: center;
        width: 100%;
    }
    #sp-logo {
        max-width: 70%;
    }
    #section-id-1503971704128 {
        display: none
    }
    #offcanvas-toggler {
        line-height: normal;
        position: absolute;
        right: 20px;
    }
    #offcanvas-toggler .fa {
        font-size: 34px;
    }
}

@media screen and (max-width: 420px) {
    .galleria .single-image {
        text-align: center;
        width: 100%;
        min-height: 0;
        max-width: 380px;
    }
    .com-sppagebuilder .sj-basic-news .bs-items .bs-item {
        width: 100%
    }
    #sp-component .blog .item div img {
        max-width: 350px;
    }
    .contact-footer .contact-ajax.theme2 .ctajax-wrap .ctajax-element .el-inner .el-info-contact .info-contact {
        width: 100%;
    }
    .custom .bs-pretext .modtitle h3 {
        text-align: center;
        padding: 0 !important;
    }
}

.itemid-751 #sp-component #k2Container .componentheading {
    font-size: 24px;
    font-weight: normal;
    color: #222;
    margin-bottom: 20px;
}

div.pp_pic_holder.pp_default .pp_content_container .pp_left {
    background: none;
}
div.pp_pic_holder.pp_default .pp_content_container .pp_right {
    background: none;
}

div.pp_pic_holder.pp_default .pp_content_container {
    padding: 10px 0 0 0;
}