body {
    background-color: #e6e6e6;
}

.main {
    background-color: #fff;
    margin-top: 10px;
}

.d-inline {
    display: inline-block !important;
}

.nopadding {
    padding: 0 !important;
    margin: 0 !important;
}

.pad30 {
    padding: 30px;
}

.padding-left {
    padding: 0 0 0 15px !important;
    margin: 0 !important;
}

.padding-right {
    padding: 0 15px 0 0 !important;
    margin: 0 !important;
}

.padding-bottom {
    padding-bottom: 15px !important;
}

.grad::after {
    display: block;
    position: relative;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(30, 30, 30, 0.8) 40%, rgba(30, 30, 30, 1) 100%);
    margin-top: -250px;
    height: 250px;
    width: 100%;
    content: '';
}

.grad2::after {
    display: block;
    position: relative;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(30, 30, 30, 0.8) 40%, rgba(30, 30, 30, 1) 100%);
    margin-top: -150px;
    height: 150px;
    width: 100%;
    content: '';
}

header {
    background-color: #e6e6e6;
}

.address {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 0 0 135px !important
}

.navbar-default {
    background-color: #17468f;
    color: #e6e6e6 !important;
}

.navbar-brand>img {
    max-width: 110px;
    border: 1px solid #fff;
    border-radius: 50%;
    margin-top: -80px;
}

.navbar-default .navbar-nav>li>a {
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    display: inline-block;
}

.navbar-default .navbar-nav>li>a:hover {
    color: #ff7701;
}

.titolo_sito {
    padding: 5px 20px;
    font-size: 18px;
    background-color: #ff7701;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    display: inline-block;
    width: 100%;
}

.submenu {
    background-color: #e0e0e0;
    color: #17468f;
    line-height: 40px;
}

.submenu select {
    position: relative;
    float: right;
    top: 10px;
    margin-right: 10px;
    background-color: white;
}

.submenu p {
    margin: 0;
}

.social>li {
    display: inline-block;
    padding-right: 0;
}

section {
    padding-bottom: 10px;
    margin-left: 15px;
}

.banner {
    padding-bottom: 5px;
}

.banner-2 {
    padding-top: 10px;
    padding-bottom: 5px;
    padding-right: 15px;
}


/* Carousel Slide Styles */

#carousel-crcalabria .carousel-indicators .active {
    background-color: #2980b9;
}

#carousel-crcalabria .carousel-inner img {
    width: 100%;
    max-height: 460px
}

#carousel-crcalabria .carousel-control {
    width: 40px;
}

#carousel-crcalabria .carousel-control .glyphicon-chevron-left,
#carousel-crcalabria .carousel-control .glyphicon-chevron-right,
#carousel-crcalabria .carousel-control .icon-prev,
#carousel-crcalabria .carousel-control .icon-next {
    position: absolute;
    top: 45%;
    z-index: 5;
    display: inline-block;
    color: #ff7701;
}

#carousel-crcalabria .carousel-control .glyphicon-chevron-left,
#carousel-crcalabria .carousel-control .icon-prev {
    left: 15px;
}

#carousel-crcalabria .carousel-control .glyphicon-chevron-right,
#carousel-crcalabria .carousel-control .icon-next {
    right: 15px;
}


/* Carousel Slide Header Styles */

.header-text {
    position: absolute;
    top: 70%;
    width: 100%;
    color: #fff;
    margin-left: 25px;
}

.header-text h2 {
    font-size: 28px;
    color: #fff;
    font-weight: 600;
    max-width: 70%;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.75);
}

.header-text h2 span {
    padding: 0px;
    text-transform: uppercase;
}

.header-text h3 span {
    padding: 15px;
}


/* Carousel YT Styles */

#carousel-yt {
    margin-bottom: 0;
    padding: 15px 15px 0px 0px;
}


/* The indicators */

#carousel-yt .carousel-indicators {
    right: 50%;
    top: auto;
    bottom: -10px;
    margin-right: -19px;
}


/* The colour of the indicators */

#carousel-yt .carousel-indicators li {
    background: #cecece;
}

#carousel-yt .carousel-indicators .active {
    background: #428bca;
}

figure,
.banner-1 {
    padding-left: 15px !important;
    padding-right: 5px !important;
    padding-bottom: 20px !important;
}

.img-responsive {
    margin: 0 auto;
}

.item a {
    text-decoration: none;
    color: white;
}

.comunicati {
    margin-left: 0px;
}

.comunicati a {
    text-decoration: none;
    color: #17468f;
    font-weight: 600;
    text-transform: uppercase;
}

.comunicati a:hover {
    color: #ff7701;
}

.comunicati h2 {
    font-size: 20px;
    color: #17468f;
}

.comunicati h4 {
    text-align: center;
}

.data {
    background: #213b86;
    height: 100px;
    width: 18%;
    float: left;
    margin-right: 10px;
    max-width: 80px;
}

.data>div {
    display: inline-block;
    width: 100%;
    color: white;
    text-align: center;
}

.gg {
    padding: 8px 5px;
    border-bottom: 1px solid white;
}

.data>.gg {
    width: 70%;
    margin: 0 auto;
    display: block
}

.mese {
    padding-top: 5px;
    text-transform: uppercase
}

.text_com {
    width: 75%;
    min-height: 100px;
    float: left;
    margin-left: -10px;
    margin-bottom: 10px;
}

.text_com h3,
.text_com h2 {
    font-size: 14px;
    font-weight: bolder;
    text-transform: capitalize;
    width: 100%;
    color: #213b86;
    display: inline-block
}

.text_com h3 a,
.text_com h2 a {
    font-size: 14px;
    font-weight: bolder;
    color: #213b86;
}

.text_com h3 a:hover,
.text_com h2 a:hover {
    color: #ff7701;
}

.text_com h2 span.category_label,
.text_com h2 span.category_label>a,
.text_com h3 span.category_label,
.text_com h3 span.category_label>a {
    color: #333;
}

.text_com a.link_figc {
    font-size: 14px;
    color: #333;
}

.text_com a.link_figc:hover {
    text-decoration: underline
}

.com_titolo {
    font-size: 18px;
    text-transform: uppercase;
    color: #213b86;
    border-bottom: 4px solid #213b86;
    padding-bottom: 5px;
    display: inline-block;
    padding-right: 20px;
    max-width: 100%;
    margin-bottom: 20px;
}

.comunicati h3 {
    margin-top: 0;
    font-size: 18px;
}

.comlista {
    list-style: none;
    margin-bottom: 7px;
    padding: 0px;
    text-decoration: none!important;
}

.comlista li {
    margin-top: 7px;
    width: 100%;
    font-weight: 600;
    background: #f1f1f1;
    padding: 12px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    line-height: 22px;
    border-top: 1px solid white;
    border-left: 1px solid white;
    border-right: 1px solid white;
    border-bottom: 1px solid #f1f1f1;
}

.comlista li:hover {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    background: #f1f1f1;
    border: 1px solid #acacac;
}

.paginazione {
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.paginazione span,
.paginazione a {
    padding: 8px;
    margin-right: 4px;
    border: 1px solid #ededed;
}

.paginazione a {
    color: #17468f!important;
    font-size: 12px!important;
}

.paginazione a:hover {
    color: white;
    background: #0e91dc;
}

.org {
    width: 100%;
    color: #303030;
    font-size: 12px;
    text-align: left;
    border-spacing: 0px;
}

.org tr td:first-child {
    width: 15%;
}

.org tr td:last-child {
    width: 35%;
}

.org td {
    width: 25%;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    vertical-align: middle;
    height: 90px;
}

.org tr {
    background: #f5f5f5;
}

.org tr:nth-child(odd) {
    background: #efefef;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

.org img {
    height: 70px;
    width: auto;
    float: left;
    max-width: 100%;
}

.org2 {
    width: 100%;
    color: #303030;
    font-size: 12px;
    text-align: left;
    border-spacing: 0px;
}

.org2 tr td:last-child {
    width: 40%;
}

.org2 td {
    width: 30%;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    vertical-align: middle;
    height: 30px;
}

.org2 tr {
    background: #f5f5f5;
}

.org2 tr:nth-child(odd) {
    background: #efefef;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

.org2 img {
    height: 70px;
    width: auto;
    float: left;
}

.organigramma {
    margin-bottom: 14px;
}

.organigramma h2 {
    font-size: 20px;
    color: #17468f;
}

.organigramma a {
    text-decoration: none;
}

.organigramma a:hover {
    text-decoration: underline;
}

.modal {
    align-content: center!important;
    margin: 0px!important;
}

.orgposizione {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    color: #095fb8;
    display: block;
    margin-top: 21px;
    margin-bottom: 21px;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #fff;
    margin: 1em 0;
    padding: 0;
}

.titolo {
    font-size: 18px;
    text-transform: uppercase;
    color: #213b86;
    border-bottom: 4px solid #213b86;
    padding-bottom: 5px;
    display: inline-block;
    max-width: 100%;
    margin-bottom: 20px;
}

.article-caption {
    position: absolute;
    bottom: 25px;
    left: 10px;
    max-width: 90%;
    text-align: left;
}

.article-caption h5 a {
    background-color: white;
    color: #17468f;
    font-weight: bold;
}

.article-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.article-caption a {
    color: white;
}

.title-caption {
    font-size: 14px;
    text-decoration: none!important;
}

.newstop {
    width: 100%;
    display: inline-block!important;
}

.news_square {
    padding: 0 10px 0 0px;
    margin-bottom: 10px;
}

.news_square:hover .overlay_div {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5)
}

.label_news span {
    background-color: #ff7701;
    padding: 2px 15px;
    display: inline-block;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.myrow {
    display: inline-block;
    width: 100%;
    position: relative
}

.overlay_div {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.2)
}

.cont_news_square {
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center center;
}

.cont_news_square h2 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    width: 90%;
    margin-left: 10px;
    bottom: 10px;
    position: absolute;
    text-transform: uppercase;
    z-index: 5;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.75);
}

.cont_news_square h2>a {
    color: white;
    text-decoration: none;
}

.cont_news_square::after {
    display: block;
    padding-top: 100%;
    content: "";
}

.last-news {
    float: left;
    text-transform: uppercase;
    padding-right: 20px;
}

.last-news h2 {
    font-size: 20px;
    color: #17468f;
    font-weight: bold;
    text-align: center;
}

.last-news h3 {
    font-weight: bold;
    text-decoration: underline;
    color: #17468f;
}

.last-news h5 {
    font-size: 16px;
    color: #17468f;
    margin-top: 20px;
    margin-bottom: 2px;
}

.last-news a {
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #17468f;
}

.last-news a:hover {
    color: #ff7701;
}

.last-news article {
    border-bottom: 1px solid #17468f;
}

.thumb-news {
    max-width: 400px;
    margin-bottom: 10px;
}

.contenuto-news {
    text-transform: none!important;
}

.newsgall {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dadada;
    list-style: none;
    margin-bottom: 10px;
}

.newsgall li {
    float: left;
    border-right: 2px solid white;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

.newsgall img {
    width: 123px;
    height: 93px;
    border: 1px solid;
}

.zoom {
    -webkit-transition: all 0.35s ease-in-out;
    -moz-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}

.zoom:hover,
.zoom:active,
.zoom:focus {
    /**adjust scale to desired size, 
add browser prefixes**/
    -ms-transform: scale(6.5);
    -moz-transform: scale(6.5);
    -webkit-transform: scale(6.5);
    -o-transform: scale(6.5);
    transform: scale(6.5);
    position: relative;
    z-index: 100;
}

footer {
    background-color: #17468f;
    color: #fff;
    margin-top: 15px;
    height: 240px;
}

footer a {
    color: inherit;
    text-decoration: inherit;
    font-size: 12px;
}

footer .logo1 {
    max-width: 110px;
    border: 1px solid #fff;
    border-radius: 50%;
    margin-top: 20px;
    margin-bottom: 20px;
}

footer .logo2 {
    max-width: 140px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.nazionale-footer {
    float: left;
    border-left: 1px solid white;
    margin-top: 50px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.label_video {
    border-color: #095f;
}

.nazionale-footer a {
    color: white;
    text-decoration: none;
}

.nazionale-footer a:hover {
    color: #ff7701;
    text-decoration: none;
}

#sp-footer1 {
    text-align: left;
}


/* Archivio */

.footer_credit {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid #ff7701;
    background-color: #ff7701;
    text-align: left;
    text-transform: uppercase;
}

.sp-copyright {
    font-weight: 700;
}

.footer_credit a {
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1px;
}

.footer_credit a:hover {
    text-decoration: none;
}

footer .address {
    padding-top: 20px;
}

footer .media {
    margin-top: 20px;
}

footer .media-body {
    vertical-align: middle;
    padding-top: 29px;
}

.modal-content {
    align-content: center!important;
    margin: 0px!important;
}

@media (max-width: 1024px) {
    .navbar-brand>img {
        max-width: 150px;
    }
    .social {
        margin: 0px -15px;
    }
    .address {
        display: none;
    }
    .submenu select {
        position: relative;
        float: right;
        margin-top: 10px;
        margin-bottom: 20px;
        margin-left: 0px;
        margin-right: 0px;
        width: auto;
    }
    .modal-content {
        align-content: center!important;
        margin: 0px!important;
    }
    .fb-page {
        max-width: 100%;
        height: 600px;
    }
}

@media (max-width:768px) {
    .address {
        display: none;
    }
    select {
        width: 100%;
        height: 30px;
        text-align: center;
    }
    #carousel-crcalabria {
        display: flex;
    }
    #carousel-yt {
        display: none;
    }
}

@media (max-width: 500px) {
    #carousel-crcalabria {
        display: flex;
        padding-left: 0;
        height: 200px;
    }
    .hidden-xs {
        display: block!important;
    }
    .header-text a {}
    .header-text h2 {
        font-family: Titillium Web, sans-serif!important;
        font-size: 16px;
        font-weight: 700;
        line-height: 100%;
        max-width: 100%;
        text-shadow: none;
    }
    .banner {
        margin-top: 15px;
    }
    .nopadding {
        margin: 0 -3px 0 -5px!important;
    }
    #carousel-yt {
        display: none;
    }
    #carousel-crcalabria .carousel-inner img {
        max-width: 100%!important;
        vertical-align: middle;
        height: auto;
    }
    .grad::after {
        display: block;
        position: relative;
        background-image: none;
        margin-top: -250px;
        height: 250px;
        width: 100%;
        content: '';
    }
    .address {
        display: none;
    }
    .titolo_sito {
        font-size: 12px;
    }
    .navbar-nav {
        margin: 30px -20px;
    }
    .submenu select {
        position: relative;
        float: unset;
        margin-top: 50px;
        margin-bottom: 20px;
        margin-left: 0px;
        margin-right: 0px;
        width: 100%;
        height: 40px;
    }
    .img-responsive {
        margin: auto;
    }
    .comunicati {
        margin: -5px;
    }
    .last-news {
        width: 100% !important;
        max-width: 100% !important;
        -ms-flex: 0 0 100%;
        flex: 0 0 31.33%;
        padding: 0;
        float: none!important;
    }
    .thumb-news {
        max-width: 80%;
    }
    .comunicati h4 {
        text-align: center;
        font-size: 16px;
        font-weight: 600;
    }
    footer {
        height: auto;
    }
    footer .media a {
        text-align: center!important;
    }
    footer .logo2 {
        margin-top: 20px;
        max-width: 50%;
    }
    .fb-page {
        display: none!important;
    }
    .data {
        height: auto;
        width: auto;
        margin-right: 0;
        margin-bottom: 5px;
        max-width: unset;
        padding: 2px 0 2px 5px;
    }
    .data div {
        display: inline-block !important;
        width: auto !important;
        text-align: left !important;
        padding: 0 5px 0 0 !important;
        font-size: 13px !important;
    }
    .data>.gg {
        border-bottom: 0px;
    }
    .text_com {
        width: 100%;
        min-height: unset;
    }
    table {
        border: 1px solid #ddd;
    }
    td {
        position: relative;
        /* Creiamo lo spazio per l'intestazione */
        border: 1px solid #ddd;
    }
    td:before {
        position: absolute;
        /* Creiamo le altre celle per la descrizione */
        top: 0px;
        left: 0px;
        width: 100%;
        font-weight: bold;
        line-height: 0px;
        top: 5px;
    }
}