.ccd { /* card custom distance */
    margin-left: 20px;
    margin-right: 20px;
}

.ccd [class*='col-'],
.ccd [class*='col-'] {
    padding-right: 5px;
    padding-left: 5px;
}

.ccd [class*='col-']:first-child {
    padding-left: 0;
}

.ccd [class*='col-']:last-child {
    padding-right: 0;
}

section.bg:nth-child(even) .bg-color {
    padding-top: 10px;
    background-color: #F2F2F2;
    position: relative;
    z-index: 0;
}

section.bg:nth-child(even) .bg-color .container {
    padding-top: 10px;
    padding-bottom: 15px;
}

.container-fluid.bg:nth-child(even) .bg-padding {
    padding-top: 10px !important;
}

.section-title {
    position: relative;
    z-index: 100;
    height: 51px;
    background-color: #FFF;
    text-transform: uppercase;
}

.section-title .title {
    position: relative;
    display: inline-block;
    padding: 4px 15px;
    background-color: #FFF;
    font-weight: 700;
    color: #000;
    font-size: 1.6rem;
}

.section-title:before {
    position: absolute;
    left: 0;
    right: 0;
    top: 23px;
    height: 1px;
    content: '';
    background-color: #000;
}

section#live .container {
    display: flex;
    flex-direction: row;
}

/*section#live .live_slide{*/
/*flex: 4;*/
/*height: 350px;*/
/*padding-right: 5px;*/
/*}*/

section#live .live_slide > div {
    position: relative;
}

section#live .live_slide img {
    position: relative;
    height: 350px;
    width: 100%;
}

/*section#live .news-container{*/
/*flex: 2;*/
/*display: flex;*/
/*flex-direction: column;*/
/*}*/

section#live .news-container .news {
    flex: 1;
    height: 171px;
    position: relative;
    padding-bottom: 5px;
}

section#live .news-container .news img {
    position: relative;
    height: 171px;
    width: 100%;
}

section#live .text-container {
    color: #FFF;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px 40px 40px 30px;
    right: 0;
    text-align: left;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.50) 40%, rgba(255, 255, 255, 0.02) 60%);
}

section#live .text-container .text {
    font-size: 30px;
    text-transform: uppercase;
}

section#live .text-container .category {
    font-size: 15px;
    font-weight: 700;
    background-color: #D22A2F;
    display: inline-block;
    padding: 2px 10px;
    margin-bottom: 3px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

section#live .news .text-container {
    padding-bottom: 20px;
}

section#live .news .text-container .text {
    text-transform: uppercase;
    font-size: 1rem;
    /* text-overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* number of lines to show */
    line-height: 17px; /* fallback */
    max-height: calc(17px * 4); /* fallback */
}

section.section-bg .section-title:after {
    position: absolute;
    z-index: -2;
    left: 0;
    right: 0;
    top: 20px;
    height: 31px;
    content: '';
    background-color: #FBEDDA;
}

section.section-bg {
    background-color: #FBEDDA;
}

section#onePlusThree {
    margin: 0;
    margin-top: 5px;
}

section#onePlusThree > div.row{
    padding: 10px 20px;
}

section#onePlusThree .one .card img {
    height: 300px;
    width: 100%;
}

section#onePlusThree .one .card {
    background-color: inherit;
    border: 0;
}

section#onePlusThree .one .card .card-body {
    padding: 0;
}

section#onePlusThree .one .card .card-title {
    margin-top: 0.3rem;
    font-size: 1.4rem;
    font-weight: 700;
}

section#onePlusThree .one .card .card-text {
    font-size: 0.9rem;
    height: 190px;
    /* text-overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8; /* number of lines to show */
    line-height: 17px; /* fallback */
    /*max-height: calc(17px * 8); !* fallback *!*/
    padding-bottom: 5px;
}

section#onePlusThree .three {
    max-height: 100%;
}

section#onePlusThree .three .row:not(.full) {
    margin-bottom: 3.3%;
    /*height: 30%;*/
}

section#onePlusThree .three .col-6 {
    height: 100%;
}

section#onePlusThree .three img {
    height: 100%;
    width: 100%;
}

section#onePlusThree .three .title {
    font-size: 1.1rem;
    font-weight: 700;
    padding-left: 0;
    /* text-overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-height: 20px; /* fallback */
    min-height: calc(20px * 2); /* fallback */
}

section#onePlusThree .three .text {
    font-size: 0.8rem;
    padding-left: 0;
    /* text-overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7; /* number of lines to show */
    line-height: 17px; /* fallback */
    /*max-height: calc(17px * 7); !* fallback *!*/
    height: 186px;
    overflow-y: scroll;
}

section#onePlusTwo {
    margin: 0;
}

section#onePlusTwo > div.row{
    padding: 10px 20px;
}

section#onePlusTwo .one .card img {
    height: 300px;
    width: 100%;
}

section#onePlusTwo .one .card {
    background-color: inherit;
    border: 0;
}

section#onePlusTwo .one .card .card-body {
    padding: 0;
}

section#onePlusTwo .one .card .card-title {
    margin-top: 0.3rem;
    font-size: 1.4rem;
    font-weight: 700;
}

section#onePlusTwo .one .card .card-text {
    font-size: 0.9rem;
    height: 190px;
    /* text-overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8; /* number of lines to show */
    line-height: 17px; /* fallback */
    /*max-height: calc(17px * 8); !* fallback *!*/
    padding-bottom: 5px;
}

section#onePlusTwo .three {
    max-height: 100%;
}

section#onePlusTwo .three .row:not(.full) {
    margin-bottom: 3.3%;
    /*height: 30%;*/
}

section#onePlusTwo .three .col-6 {
    height: 100%;
}

section#onePlusTwo .three img {
    height: 100%;
    width: 100%;
}

section#onePlusTwo .three .title {
    font-size: 1.1rem;
    font-weight: 700;
    padding-left: 0;
    /* text-overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-height: 20px; /* fallback */
    min-height: calc(20px * 2); /* fallback */
}

section#onePlusTwo .three .text {
    font-size: 0.8rem;
    padding-left: 0;
    /* text-overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7; /* number of lines to show */
    line-height: 17px; /* fallback */
    /*max-height: calc(17px * 7); !* fallback *!*/
    height: 186px;
    overflow-y: scroll;
}

#fourSquares {
    margin: 0;
    margin-top: 5px;
}

#fourSquares .card {
    border: 0;
    background-color: inherit;
}

#fourSquares .card img {
    height: 200px;
}

#fourSquares .card .card-title {
    margin-top: 0.3rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
}

#fourSquares .card .card-body {
    padding: 0;
}

section#threeVideos {
    margin: 0;
    margin-top: 5px;
}

section#threeVideos .card {
    border: 0;
    background-color: inherit;
}

section#threeVideos .card img {
    height: 180px;
}

section#threeVideos .card .card-title {
    margin-top: 0.3rem;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
}

section#threeVideos .card .card-body {
    padding: 0;
}

section#press {
    margin: 0;
}

section#press .article {
    border: 1px solid #000;
    padding: 10px;
}

section#press .article .title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.carousel-fade .carousel-item {
    display: block;
    position: relative;
    left: -100%;
    transition: left 0.5s ease-in-out;
}

.carousel-fade .carousel-item.active {
    transition: left 0.5s ease-in-out;
    left: 0;
    display: block;
}

.carousel {
    position: relative;
    top: 0;
    left: 0;
}

section#agenda_pace_letti .container > .row > .col-12 {
    border: 1px solid #CCC;
    margin-top: 10px;
    margin-bottom: 10px;
    height: 140px;
    display: flex;
    flex-direction: row;
    padding: 0;
}

section#agenda_pace_letti .slider {
    height: 138px;
    overflow: hidden;
}

section#agenda_pace_letti .agenda {
    border-right: 1px solid #CCC;
    flex: 3;
}

section#agenda_pace_letti .pace {
    border-right: 1px solid #CCC;
    flex: 2;
}

section#agenda_pace_letti .letti {
    flex: 4;
}

section#agenda_pace_letti .title {
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-top: 5px;
    padding-left: 15px;
    margin-bottom: 12px;
    text-transform: uppercase;
    overflow: hidden;
    max-height: 34px;
    padding-bottom: 2px;
}

section#agenda_pace_letti .title:after {
    position: absolute;
    content: '';
    top: 30px;
    left: 0;
    height: 4px;
}

section#agenda_pace_letti .title.blue:after {
    background-color: #2ca3c9;
    width: 100px;
}

section#agenda_pace_letti .title.red:after {
    background-color: #e0483e;
    width: 150px;
}

section#agenda_pace_letti .title.green:after {
    background-color: #7fc31b;
    width: 120px;
}

section#agenda_pace_letti .subtitle {
    font-size: 15px;
    font-weight: 900;
    padding: 0 15px;
    /* text-overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-height: 15px; /* fallback */
    max-height: calc(15px * 2); /* fallback */
}

section#agenda_pace_letti .text {
    font-size: 12px;
    padding: 0 15px;
    line-height: 15px;
}

section#agenda_pace_letti .text.long {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* number of lines to show */
    line-height: 15px; /* fallback */
    max-height: calc(15px * 3); /* fallback */
}

.fratelli .fratelli-letters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.fratelli .fratelli-letter {
    position: relative;
}

.fratelli .fratelli-letter .selected {
    text-decoration: underline;
}

.fratelli .fratelli-letter:not(:last-child):after {
    margin: 0 3px;
    content: " - ";
}

.fratello {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.fratello .fratello-dettaglio {
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fratello .fratello-dettaglio-group {
    margin-bottom: 15px;
}

.fratello .fratello-dettaglio-label {
    font-weight: 600;
}

.fratello .fratello-dettaglio-value {
    margin-left: 1px;
}

.agenda .month-switcher {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
}

.agenda .month-switcher > div {
    padding: 0 3px;
}

.agenda .month-switcher .fa {
    -webkit-text-stroke: 2px #FFF;

}

.agenda .agenda-appuntamenti {

}

.agenda .agenda-appuntamenti .agenda-appuntamento {
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.agenda .agenda-appuntamenti .agenda-appuntamento .title {
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.agenda .agenda-appuntamenti .agenda-appuntamento .intro {

}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    section#onePlusThree .three .text {
        /* text-overflow */
        -webkit-line-clamp: 6; /* number of lines to show */
        line-height: 17px; /* fallback */
        max-height: calc(17px * 6); /* fallback */
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    section#agenda_pace_letti {
        height: 160px;
    }
}

@media screen and (max-width: 767px) {
    section#onePlusThree .three .row {
        height: unset;
    }

    section#onePlusThree .three .title {
        padding-top: 7px;
        padding-bottom: 3px;
    }

    section#live .live_slide .text {
        font-size: 1.7rem;
        line-height: 2rem;
    }

    section#live .news-container {
        flex-direction: column;
    }

    section#live .news-container .news {
        margin-bottom: 5px;
    }

    section#agenda_pace_letti {
        height: 230px;
    }

    section#agenda_pace_letti .slide {
        height: 230px;
    }
}

@media screen and (min-width: 768px) {
    section#onePlusThree > div.row {
        height: 550px;
    }
}

@media screen and (max-width: 991px) {
    section#live .container {
        flex-direction: column;
    }

    section#live .live_slide {
        padding-right: 0;
        margin-bottom: 5px;
    }

    section#agenda_pace_letti {
        height: unset;
    }

    section#agenda_pace_letti .container > .row > .col-12 {
        flex-direction: column;
        height: unset;
    }

    section#agenda_pace_letti .slider {
        height: unset;
        padding-bottom: 10px;
        overflow: unset;
    }

    section#agenda_pace_letti .agenda {
        border-right: 0;
        border-bottom: 1px solid #CCC;
        flex: 3;
    }

    section#agenda_pace_letti .pace {
        border-right: 0;
        border-bottom: 1px solid #CCC;
        flex: 2;
    }
}

.card.photogallery-img {
    border: none;
    cursor: pointer;
}

.card.photogallery-img img {
    height: 200px;
    width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    section#live .news-container {
        flex-direction: row;
    }

    section#live .news-container .news {
        padding-bottom: 0;
    }

    section#live .news-container .news:first-child {
        padding-right: 5px;
    }
}

@media screen and (max-width: 575px) {
    section#onePlusThree .three .title {
        padding-top: 0.4rem;
    }

    section#onePlusThree .three .text {
        padding-top: 0.2rem;
        padding-bottom: 0.8rem;
    }
}

@media screen and (max-width: 399px) {
    section#onePlusThree .three {
        margin-top: 30px;
    }
}

section#newsletter {
    font-size: 22px;
    font-weight: bold;
}

section#newsletter input {
    height: 40px;
    border: 1px solid gainsboro;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    padding: 5px;
    max-width: 400px;
    text-align: center;
    min-width: 260px;
}
