.table_calendario{
    width:100%
}
.table_calendario h5{
    margin-top:0;
}
.table_calendario th,
.table_calendario td{
    padding:1px;
    font-size:8px;
}
.table_calendario th{
    font-size:13px;
    height: 38px;

    width: 42px;
    text-align:center;
    font-family: "Gabarito", Sans-serif
}
.table_calendario tr:nth-child(1) th{
    text-transform: lowercase;
}
.table_calendario tr th:nth-child(7),
.table_calendario tr td:nth-child(7){
    color:#C4161D;
}
.table_calendario td .day{
    font-size: 13px;
    line-height: 18px;
    font-family: "Gabarito", Sans-serif
}
.table_calendario td {
    height: 42px;
    width: 42px;
    vertical-align: text-bottom;
}
.day-event-wrapper {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    position:relative;
    justify-content: flex-start;
}
.day-event span{
    display:none;
}
.day-event:before {
    content: '\f111';
    font-family: 'FontAwesome' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}
.table_calendario td .day{
    display:block;
    text-align:center;

}
.day-event {
    width: 20%;
    position:relative;
    text-align: center;
    cursor: pointer;
}
td.day-active {
    cursor: help;
}
td.day-active:hover {
    background-color:#f2f2f2
}
table.table_calendario.eventi td:not(.day-active) {
    pointer-events: none;
}
.table_calendario td:nth-child(6),
.table_calendario td:nth-child(7){
    padding:0;
    vertical-align:top;
    position:relative;
}

.table_calendario td:nth-child(6) .day,
.table_calendario td:nth-child(7) .day{
    padding:0;
    height: 100%;
    width: 100%;
    padding: 1px;
}
.table_calendario td:nth-child(6) .day{
    background-color: #f9f9f9;
}
.table_calendario td:nth-child(7) .day{
    background-color: #dfdfdf;

}
.table_calendario td:nth-child(6) .day-event-wrapper ,
.table_calendario td:nth-child(7) .day-event-wrapper {
    position: absolute;
    top: 23px;
    z-index: 1000000;
    margin:0 auto;
    left:0;
    right:0
}

.day-event-details div:not(.cat){
    color:#333;
}
.day-event-wrapper .day-event:hover .day-event-details{
    display:block;
}
.day-event-details{
    display: none;
    position: absolute;
    left: 20px;
    font-size: 12px;
    background: #fff;
    border: 1px solid;
    width: 200px;
    padding: 9px;
    border-radius: 3px;
    top: -50px;
    z-index: 9999999999999999;
}

.day-event-details:before{
    content:'';
    display:block;
    position:absolute;
    width: 0;
    height: 0;
    border-width: 4.5px 7.8px 4.5px 0;
    border-style: solid;
    border-top-color: transparent;
    border-bottom-color: transparent;
    left: -8px;
    border-left-color: transparent;
    top: 48px;
}
td:nth-child(2) .day-event-details {

    left: -20px;
    top: initial;
    bottom:20px;
}

td:nth-child(3) .day-event-details {
    left: -40px;
    top: initial;
    bottom:20px;
}
td:nth-child(4) .day-event-details {
    left: -60px;
    top: initial;
    bottom:20px;
}
td:nth-child(5) .day-event-details {
    left: initial;
    right: -30px;
    top: initial;
    bottom:20px;
}
td:nth-child(6) .day-event-details {
    left: initial;
    right: -30px;
    top: initial;
    bottom:20px;
}
td:nth-child(7) .day-event-details {
    left: initial;
    right: -10px;
    top: initial;
    bottom:20px;
}
td:nth-child(2) .day-event-details:before {
    left: 21px;
    top: 100%;
    transform: rotate(-90deg);
}
td:nth-child(3) .day-event-details:before {
    left: 41px;
    top: 100%;
    transform: rotate(-90deg);
}
td:nth-child(4) .day-event-details:before {
    left: 61px;
    top: 100%;
    transform: rotate(-90deg);
}
td:nth-child(5) .day-event-details:before {
    left: 159px;
    top: 100%;
    transform: rotate(-90deg);
}
td:nth-child(6) .day-event-details:before {
    left: 159px;
    top: 100%;
    transform: rotate(-90deg);
}
td:nth-child(7) .day-event-details:before {
    left: 179px;
    top: 100%;
    transform: rotate(-90deg);
}
.table_calendario tr:last-child td:last-child {
    border-right:1px solid #eaeaea !important;
}
.swiper-slide.swiper-slide-active{
    z-index:3;
}
.swiper-slide.swiper-slide-next{
    z-index: 2 ;
}
.swiper-slide{
    z-index: 1 ;
}
.swiper {
    border: 1px solid #d9d7d7;
    background-color: #f0f0f0;
    padding: 10px;
    overflow-y:visible !important;
}

/*********** Lista Eventi ******/
div#elenco-eventi {
    margin-top: 36px;
}

.evento-wrapper {
    margin-bottom: 18px;
    border: 1px solid #eaeaea;
    border-width: 1px 0 1px;
    display: flex;
}
.evento-img {
    width: 40%;
}
:not('#dettagli').evento-cta {
    width: 10%;
}
.thumb-cont {
    position: relative;
}
.thumb-cont a{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}
.thumb-cont a img {
    position: absolute;
    height: auto;
    width: 100%;
    object-fit: cover;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}
li.visite-viaggi .evento-sub {
    position: absolute;
    margin: 5px;
    padding: 0 5px;
    background-color: #ed6e6b;
    font-size: 13px;
    border-radius: 3px;
    color: #fff;
}
.evento-data {
    padding: 18px;
    width:50%;
}
.evento-cta a.btn-sm {
    padding: 11px 13px !important;
}
.evento-data .titolo h4{
    margin-top:0;
}
@media all and (max-width:569px){

    #list.attivita li {
        width: calc(50% - 12px) !important;
        margin-right: 18px;
        margin-bottom: 18px;
    }
    #list.attivita li:nth-child(2n) {
        margin-right: 0 !important;
    }
    #list.attivita li:nth-child(3n) {
        margin-right: 18px !important;
    }
    .evento-wrapper {
        flex-wrap: wrap;
    }
    .evento-img {
        width: 100%;
    }
    .evento-data {
        padding: 18px 0;
        width: 100%;
    }
    .evento-cta {
        width: 100%;
    }

    .evento-cta  a.btn.btn-sm {
        width: 100%;
        transform: scale(1);
        margin-bottom: 18px !important;
    }

    .evento-data .docente {
        margin-bottom: 18px !important;
    }
}
@media all and (max-width:480px){

    #list.attivita li {
        width: 100% !important;
        margin-right: 0 !important;
    }
    #list.attivita li:nth-child(2n) {
        margin-right: 0 !important;
    }
    #list.attivita li:nth-child(3n) {
        margin-right: 0 !important;
    }
}
.pagination {
    margin-top: 54px;
}

span.page-numbers.current,
a.page-numbers {
    margin: 0 9px;
    padding: 6px 12px;
    background-color: #c4161d;
    color: #fff;
    border:1px solid #c4161d;
}

a.page-numbers {
    background-color: #ddd;
    color: #333;
    border:1px solid #ddd;
}
a.page-numbers:hover {
    background-color: #fff;
    color: #c4161d;
}

.swiper-button-next, .swiper-button-prev {
    color: #177d2d;
}

.table_calendario tr:nth-child(1) th {
    font-size: 20px;
}

#reset-filtri-corsi {
    margin-top: 16px;
}
#reset-filtri-corsi.hide {
    display: none;
}