/* General */

.tribe-events-widget-events-list__event-title a{
    color: var(--blu_elettrico) !important;
}

.single-tribe_events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button-text, .single-tribe_events .tribe-events-c-subscribe-dropdown button.tribe-events-c-subscribe-dropdown__button-text, .tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button-text, .tribe-events .tribe-events-c-subscribe-dropdown button.tribe-events-c-subscribe-dropdown__button-text{
    color: var(--blu_elettrico) !important;
}

.tribe-common-c-btn__clear , .tribe-common-c-btn__clear svg{
    color: var(--blu_elettrico) !important;
    fill: var(--blu_elettrico) !important;
    stroke: var(--blu_elettrico) !important;
}

.tribe-common-c-btn , .tribe-common-c-btn-border{
    border-radius: 3rem !important;
    padding: 0.6rem 1rem !important;
}

.tribe-common .tribe-common-anchor-thin:active, .tribe-common .tribe-common-anchor-thin:focus, .tribe-common .tribe-common-anchor-thin:hover {
    border-bottom: none !important;
}

:root{
    --tec-color-text-events-bar-input : var(--blu_elettrico) !important;
    --tec-color-accent-secondary :  var(--blu_elettrico) !important;
}

/* Events Widget */

.tribe-events-widget-events-list{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tribe-events-widget-events-list__events{
    display: grid;
    grid-template-columns: repeat(2 , minmax(0 , 1fr));
    justify-items: center;
    gap: 1rem;
}

@media (max-width:768px){
    .tribe-events-widget-events-list__events{
        display: grid;
        grid-template-columns: repeat(1 , minmax(0 , 1fr));
    }
}

.tribe-events-widget-events-list__event-row{
    max-width:480px;
    height: max-content;
    width: 100%;
    border-radius: 0.6rem;
    padding: 1rem !important;
    margin: 0 auto;
    background: var(--azzurro);
    justify-content: space-between;
    gap: 1rem;
}
.tribe-events-widget-events-list__event-row>:first-child>::before{
    content: 'event';
	color: #0e61ce76;
    width: 100%;
    text-align: center;
    margin-top: -0.6rem;
    font-size: 2rem;
	font-family: 'Material Symbols Outlined';
	font-variation-settings: 'FILL' 0, 'wght' 100,'GRAD' 0, 'opsz' 24;
  	font-weight: normal;
  	font-style: normal;
}

.tribe-events-widget-events-list__event-row span{
    color:var(--blu_elettrico);
    font-weight: 500;
}


.tribe-events-widget-events-list__event-header{
    flex-direction: column-reverse;
    display: flex !important;
}
.tribe-events-widget-events-list__event-wrapper{
    align-items: start;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}


.tribe-events-widget-events-list__event-header h3 , .tribe-events-widget-events-list__event-header a{
    font-size: 1.5rem;
    text-decoration: none;
    color: black;
}
.tribe-events-widget-events-list__event-date-tag-datetime {
    align-items: center;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}



.tribe-events-widget-events-list__view-more{
    color:#ffffff !important;
	background-color: var(--blu_elettrico);
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 0.6rem 1rem !important;
    border-radius: 2rem;
    font-weight: 400;
    border: none;
    width: fit-content;
    margin-left: auto !important;
    margin-right: auto !important;
}

.tribe-events-widget-events-list__view-more a{
    text-decoration: none;
    color:#ffffff !important;
}
.tribe-events-widget .tribe-events-widget-events-list .tribe-events-c-messages__message{
	justify-content:center !important;
}






/* EVENTI CALENDARIO ELENCO eventi/elenco/  */


@media screen and (max-width:1190px) {
    .tribe-events-header {
        margin-top: -0.5rem !important;
    }
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-search{
    gap: 2rem;
}


.tribe-events-c-top-bar__nav-list-item{
    justify-content: center;
    align-items: center;
    display: flex;
}

.tribe-events-calendar-list .tribe-events-calendar-list__event-row , .tribe-events-calendar-day .tribe-common-g-row {
    background-color: #ebebeb6e;
    border-radius: 1rem;
    overflow: clip;
}

.tribe-events-calendar-list__event-featured-image-wrapper , .tribe-events-calendar-day__event-featured-image-wrapper{
    padding-right: 0 !important;
    padding-left: 0  !important;
    margin-top: -2rem !important;
    margin-bottom: -2rem  !important;
    display: flex;
    align-items: center;
    border-radius: 2rem !important;
    overflow: clip;
}
.tribe-events-calendar-list__event-featured-image-wrapper a, .tribe-events-calendar-day__event-featured-image-wrapper a{
    height: 100%;
    width: 100%;
}
.tribe-events-calendar-list__event-featured-image-wrapper a img, .tribe-events-calendar-day__event-featured-image-wrapper a img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.tribe-events-calendar-list__event-date-tag-datetime{
    justify-content: center;
    padding-bottom: 1.5rem !important;
}

.tribe-common-c-btn-border {
    border: none !important;
    background-color: var(--grigio_chiaro) !important;
}

.tribe-common-c-btn-border button , .tribe-common-c-btn-border svg {
    color: var(--blu_elettrico) !important;
    fill: var(--blu_elettrico) !important;
    stroke: var(--blu_elettrico) !important;
}
#tribe-events-c-subscribe-dropdown-content{
    z-index: 1000 !important;
    position: absolute !important;
}
nav.tribe-events-calendar-day-nav{
    margin-top: var(--tec-spacer-4) !important;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-day__event:before{
    content: "";
    min-width: 0 !important;
    width: 0 !important;
}

.tribe-events-calendar-list__event-details{
    padding: 2rem !important;
}

@media screen and (max-width:847px) {
    .tribe-events-calendar-list__event-row{
        flex-direction: column;
        position: relative !important;
    }
    .tribe-events-calendar-list__event-featured-image-wrapper , .tribe-events-calendar-day__event-featured-image-wrapper , .tribe-common .tribe-common-g-row--gutters>.tribe-common-g-col{
        padding-right: 0 !important;
        padding-left: 0  !important;
        margin-top: 0 !important;
        margin-bottom: 0  !important;
        max-height: 360px;
        display: flex;
        flex-direction: column;
        overflow: clip;
        justify-content: center;
        align-items: flex-start;
        border-radius: 0 !important;
        overflow: clip;
        width: 100%;
    }
    .tribe-events .tribe-events-calendar-list__event-wrapper{
        width: 100%;
    }
    .tribe-common-g-row--gutters{
        margin: 0 !important;
    } 
    .tribe-events-calendar-list__event-wrapper article.tribe-events-calendar-list__event , article.tribe-events-calendar-day__event {
        padding: 0 !important;
        gap: 2rem !important;
    }
    article.tribe-events-calendar-day__event {
        margin-top: var(--tec-spacer-4) !important;
    }
    .tribe-events-calendar-day__event-content{
        display: flex !important;
        flex-direction: column;
        gap: 2rem !important;
    }


    .tribe-events .tribe-events-calendar-day__event{
        padding-left: 0 !important;
    }
    .tribe-events-calendar-list__event-date-tag-datetime{
        justify-content: center;
        padding-bottom: 0 !important;
        color: white !important;
        width: fit-content !important;
    }
    .tribe-events-calendar-list__event-date-tag-datetime span{
        color: white !important;
    }
    .tribe-events-calendar-list__event-date-tag{
        position: absolute !important;
        right: 0 ;
        padding: 4% 5% 5% 5% !important;
        background-color: var(--blu_elettrico) !important;
        width: fit-content !important;
    }

    .tribe-events-calendar-list__event-details header , .tribe-events-calendar-day__event-details  header   {
        margin-bottom: 2rem !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

}

/* Singolo evento */

#tribe-events-content .tribe-events-sub-nav li a{
    padding: 0.6rem 1rem !important;
    background-color: rgba(0,0,0,0) !important;
    color: var(--blu_elettrico) !important;
    border-radius: 3rem;
}

#tribe-events-content .tribe-events-c-subscribe-dropdown__button , .tribe-block__events-link>div{
    min-width: 320px !important;
}

#tribe-events-content .type-tribe_events{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 2rem;

}
#tribe-events-content .tribe-events-single-section{
    width: 100% !important;
}

#tribe-events-content .tribe-events-schedule{
    flex-basis:100%;
    order: 1;
}
#tribe-events-content p{
    flex-basis:100%;
    order: 2;
}
#tribe-events-content .tribe-block__event-price{
    flex-basis:100%;
    order: 3;
}
#tribe-events-content .tribe-block__organizer__details{
    flex-basis:30%;
    order: 4;
}
#tribe-events-content .tribe-block__venue{
    flex-basis:60%;
    max-width: 100% !important;
    order: 5;
}
#tribe-events-content .tribe-block__event-website{
    flex-basis:60%;
    order: 6;
    text-align: center;
}
#tribe-events-content .tribe-block__events-link{
    flex-basis:30%;
    order: 7;
    text-align: center;
    justify-content: center;
}

#tribe-events-content .tribe-block__event-website a{
    padding: 0.6rem 1rem !important;
    border-radius: 3rem;
}

@media screen and (max-width:1024px){
    #tribe-events-content .type-tribe_events{
        grid-template-columns: 1fr 1fr;
    }
    #tribe-events-content .tribe-events-schedule{
        flex-basis:100%;
        order: 1;
    }
    #tribe-events-content p{
        flex-basis:100%;
        order: 2;
    }
    #tribe-events-content .tribe-block__event-price{
        flex-basis:100%;
        order: 3;
    }
    #tribe-events-content .tribe-block__organizer__details{
        flex-basis:50%;
        order: 4;
    }
    #tribe-events-content .tribe-block__venue{
        flex-basis:100%;
        max-width: 100% !important;
        order: 5;
    }
    #tribe-events-content .tribe-block__event-website{
        flex-basis:50%;
        order: 6;
    }
    #tribe-events-content .tribe-block__events-link{
        flex-basis:50%;
        order: 7;
    }
}

@media screen and (max-width:768px){
    #tribe-events-content .type-tribe_events{
        grid-template-columns: 1fr;
    }
    #tribe-events-content .tribe-events-schedule{
        flex-basis:100%;
        order: 1;
    }
    #tribe-events-content p{
        flex-basis:100%;
        order: 2;
    }
    #tribe-events-content .tribe-block__event-price{
        flex-basis:100%;
        order: 3;
    }
    #tribe-events-content .tribe-block__organizer__details{
        flex-basis:100%;
        order: 4;
    }
    #tribe-events-content .tribe-block__venue{
        flex-basis:100%;
        max-width: 100% !important;
        order: 5;
    }
    #tribe-events-content .tribe-block__event-website{
        flex-basis:100%;
        order: 6;
    }
    #tribe-events-content .tribe-block__events-link{
        flex-basis:100%;
        order: 7;
    }
}


.tribe-common--breakpoint-medium.tribe-common .tribe-common-l-container{
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-events-bar--border{
    border-radius: 2.6rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
.tribe-common--breakpoint-medium.tribe-common .tribe-common-l-container{
    padding-right: 1rem;
    padding-left: 1rem;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-list__event-row{
    margin-left: 0;
    margin-right: 0;
}

/* Single events Gutenberg */
/* #tribe-events-content .entry-header .title-with-thumbnail{
    height: 40vh;
    min-height: 240px;
    border-radius: 0.4rem 0.4rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    position: relative;
}
#tribe-events-content .entry-header .title-with-thumbnail::before{
    content: '';
    position: absolute;
    height: 50%;
    width: 100%;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);

}
#tribe-events-content header .title-with-thumbnail{
    align-items: flex-end;
    justify-content: center;
    padding: 1rem 2rem;
}
#tribe-events-content header .title-with-thumbnail .entry-title{
    width: auto;
    font-size: 2rem;
    margin: 0;
    padding: 0 1rem;
    flex-basis: 80%;
    text-align: center;
}

#tribe-events-content header .title-with-thumbnail *{
    height: fit-content;
}

#tribe-events-content header .tribe-events-back{
    order: 0;
    flex-basis: 20%;
    justify-self: flex-start;
}
#tribe-events-content header .tribe-events-back a{
    color: white;
    white-space: nowrap;
}

#tribe-events-content header .header_actions_buttons{
    display: flex;
    justify-content: flex-end;
    flex-basis: 20%;
}

@media screen and (max-width:1024px) {
    #tribe-events-content header .title-with-thumbnail{
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: center;
        padding: 2rem 2rem 2rem 2rem;
    }
    #tribe-events-content header .header_actions_buttons{
        order:1;
    }
    #tribe-events-content header .title-with-thumbnail .entry-title{
        order: 2;
        flex-basis: 100%;
    }
    #tribe-events-content header .tribe-events-back{
        order:0;
    }

}




body.single-tribe_events article{
    margin-top: -2px;
    padding-top: 0 !important;

}

 #tribe-events, body.single-tribe_events .entry-content , body.single-tribe_events #tribe-events-pg-template, .tribe-events-pg-template , body.single-tribe_events .tribe-events-content{
    padding-top: 0;
    margin-top: 0px;
}

body.single-tribe_events #tribe-events-content{
    padding-top: 0 !important;
}

body.single-tribe_events .tribe-content>div>*:not(:last-child){
    padding: 1rem !important;
    background-color: #fafafa !important;
    border-radius: 0.4rem;
    margin: 10px 0 15px;
} */

/* Single Event Classic Editor */

.single-tribe_events .tribe-events-single-event-title{
    font-family: 'Titillium Web', Arial, Helvetica, sans-serif;
    color: var(--blu_scuro);
}
.single-tribe_events .tribe-events-schedule {
    margin-top: 0;
    color: var(--blu_scuro);
}
.single-tribe_events .entry-header{
    height: 40vh;
    min-height: 360px;
    border-radius: 0.4rem 0.4rem;
    position: relative;
    overflow: clip;
    padding: 2rem;
    display:flex;
    align-items: flex-end;

}
.single-tribe_events .entry-header .header-content::before{
    content: '';
    position: absolute;
    height: 50%;
    width: 100%;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);

}
.single-tribe_events .entry-header .header-content{
    display:flex;
    flex-direction:row;
    flex-wrap: wrap;
    align-content: space-between;
    width: 100%;
    height: 100%;
    gap:1rem;
}
.single-tribe_events .entry-header{
    margin-bottom: 2rem;
}
.single-tribe_events .entry-header .header-content>*{
    order: 0 !important;
    margin: 0;
    flex-basis: auto;
    width: 100%;
    position: relative;
    z-index: 3;
}
.single-tribe_events #tribe-events-content p{
    flex-basis: auto !important;
}
.single-tribe_events .tribe-events-schedule{
    margin: 0;
    flex-basis: auto;
    order: 0;
}
.single-tribe_events .tribe-events-schedule h3{
    position: relative;
    z-index: 3;
}
.single-tribe_events .entry-header .header-content .entry-title , .single-tribe_events .entry-header .header-content .tribe-events-schedule *, .single-tribe_events .entry-header .header-content .tribe-events-back *{
  color: white;
}
.single-tribe_events .entry-header .header-content .header-title-container{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.single-tribe_events .header-title-container{
    align-items: flex-end;
}

.single-tribe_events .tribe_events p>a , .single-tribe_events .tribe_events dd a , .single-tribe_events .tribe_events dt a{
    color: var(--blu_elettrico);
}

.single-tribe_events #tribe-events-pg-template{
    padding: 0 !important;
}

.single-tribe_events #tribe-events-content .yec-events-sub-nav .yec-events-nav-next, .single-tribe_events #tribe-events-content  .yec-events-sub-nav .yec-events-nav-previous{
    background-color:var(--grigio_chiaro) !important;
    border-radius: 1.95rem ;
    padding: 1rem 1.2rem !important;
    
}
.single-tribe_events #tribe-events-content .yec-events-sub-nav li{
    padding-top: 2rem;
}

.single-tribe_events .yec-events-sub-nav .yec-events-nav-next a:after, .single-tribe_events .yec-events-sub-nav .yec-events-nav-next a:before, .single-tribe_events .yec-events-sub-nav .yec-events-nav-previous a:after, .single-tribe_events .yec-events-sub-nav .yec-events-nav-previous a:before{
    content: "";
    display: inline-block;
    height: 20px;
    vertical-align: middle;
    width: 11px;
}
.single-tribe_events .yec-events-sub-nav .yec-events-nav-next:empty , .single-tribe_events .yec-events-sub-nav .yec-events-nav-previous:empty {
  display: none;
}

.single-tribe_events .tribe-events-single .yec-events-sub-nav li::marker{
    content: '' !important;
}
.single-tribe_events .tribe-events-single .yec-events-sub-nav a span{
    display: none;
}
.single-tribe_events .tribe-events-single .yec-events-sub-nav{
    padding-left: 0 ;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.tribe-events-single .yec-events-sub-nav .yec-events-nav-next{
    text-align: right;
}
.single-tribe_events .tribe-events-single .yec-events-sub-nav a{
    text-decoration: none;
    color:black !important;
}
.single-tribe_events .tribe-events-single .yec-events-sub-nav .yec-events-nav-previous a:before {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.916 17.841L10 19.757l-9.9-9.9L10-.041l1.916 1.916-7.983 7.984z' fill='%235d5d5d'/%3E%3C/svg%3E") 0 / 7px no-repeat;
}
.tribe-events-single .yec-events-sub-nav .yec-events-nav-next a:after {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.084 2.159L2 .243l9.9 9.9L2 20.041.084 18.126l7.983-7.984z' fill='%235d5d5d'/%3E%3C/svg%3E") 100% / 7px no-repeat;
}
@media only screen and (max-width:768px){
    .single-tribe_events .tribe-events-single .yec-events-sub-nav{
        flex-direction: column-reverse;
    }
    .tribe-events-single .yec-events-sub-nav li{
        text-align: center !important;
    }
}
