/* The switch - the box around the slider */
.UI-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.UI-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.UI-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ababab;
    -webkit-transition: .4s;
    transition: .4s;
}

.UI-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.UI-slider {
    background-color: var(--accent-dark);
}


input:checked+.UI-slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.UI-slider.round {
    border-radius: 34px;
}

.UI-slider.round:before {
    border-radius: 50%;
}



.UI-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.UI-block>.label-small {
    text-transform: uppercase;
}


.UI-line {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}


.UI-switch-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


.accordion-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    cursor: pointer;
}

.accordion-button .text-base {
    margin-top: 0.1rem;
}

.accordion-btn-arrow {
    width: 1.25rem;
}

.accordion-btn-arrow.hidden {
    display: none;
}


.accordion-btn-arrow.rotated {
    transform: rotate(180deg);
}



.UI-search-block {
    display: flex;
    align-items: stretch;
    flex-grow: 2;
}

.UI-search {
    flex-grow: 2;
    padding: 0.6rem 1rem;
    border-top-left-radius: 10rem;
    border-bottom-left-radius: 10rem;
    border: 2px solid var(--black);
}

.UI-search:focus {
    border-color: var(--black);
    outline: 0;
}

.UI-search-button {
    background-color: var(--black);
    padding: 0rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-top-right-radius: 10rem;
    border-bottom-right-radius: 10rem;
    cursor: pointer;
}

.UI-search-button img {
    width: 1.5rem;
}


.UI-controls {
    position: relative;
    z-index: 2;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.346);
    margin-top: calc(var(--radius) * -1);
}

.UI-first-card {
    padding: 4rem var(--hor-padding) 4rem var(--hor-padding);
}

.UI-second-card {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    padding: 4rem var(--hor-padding) 8rem var(--hor-padding);
    position: relative;
}

.UI-dropdown {
    flex-grow: 2;
}

.select2-container {
    width: 100% !important;
}

.select2-selection.select2-selection--multiple.custom-select2-container {
    padding: 0.6rem 1rem;
    width: 100% !important;
    border-radius: 10rem;
    border: 2px solid var(--black) !important;
    background-position: center right 1rem;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    background-color: var(--white);
    color: var(--black);
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;

    border-radius: 100rem !important;
}


.UI-dropdown select {
    padding: 0.6rem 1rem;
    border-radius: 10rem;
    border: 2px solid var(--black);
    background-position: center right 1rem;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    background-color: var(--white);
    color: var(--black);
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;

    border-radius: 100rem !important;
}

#select-zone {
    width: 100%;
}

.custom-select2-dropdown {
    background-color: var(--white) !important;
    border: 2px solid var(--black) !important;
}

.select2-selection__choice {
    background-color: var(--accent-dark) !important;
    padding: 0.4rem 0.9rem !important;
    color: white !important;
    border-radius: 10rem !important;
}

.select2-selection__choice__remove {
    width: 1rem !important;
    color: var(--white) !important;
}

.select2-selection__clear {
    font-size: 2rem;
}


.UI-dropdown select:focus {
    outline: 0;
}


.UI-categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.UI-category-body {
    padding: 0.5rem 1rem;
    border-radius: 10rem;
    border: 2px solid black;
    cursor: pointer;
    text-transform: uppercase;
}

.UI-category {
    display: flex;
}

.UI-category input {
    opacity: 0;
    width: 0;
    height: 0;
}

.UI-category.active>.UI-category-body {
    background-color: var(--accent-dark);
    color: var(--white);
    border: 2px solid var(--accent-dark);
}




.UI-map {
    width: 65%;
    aspect-ratio: 1;
}

.UI-map-zona {
    fill: var(--grey-light);
    stroke: var(--grey-dark);
    stroke-width: 2px;
    cursor: pointer;
}

.UI-map-zona:hover {
    fill: var(--accent-dark);
}

.UI-map-zona .st0.active {
    fill: var(--accent-dark);
}

.UI-map-zona .st1 {
    stroke-width: 0;
    fill: black;
}

.UI-map-zona .st2 {
    stroke-width: 0;
    fill: white;
}

#filtersCloser {
    cursor: pointer;
    width: 1.75rem;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translate(-50%, 0);
    transform: rotate(180deg);
}






.events-day-separator {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.first-day-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.events-list {
    position: relative;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    padding: 4rem var(--hor-padding) 8rem var(--hor-padding);
    transition: margin-top 0.5s;
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.346);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.event-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.event-card {
    padding: 2rem;
    border: 2px solid var(--grey-light);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    cursor: pointer;
    height: 100%;
    justify-content: space-between;
}

.event-card>a {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
    height: 100%;
}

.event-card:hover {
    background-color: var(--grey-light);
}

.event-card:hover .text-average.bold {
    text-decoration: underline;
}

.event-card-upper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card-header {
    display: flex;
    gap: 0.5rem;
    row-gap: 0.8rem;
    align-items: center;
    text-transform: uppercase;
    flex-wrap: wrap;
}

.event-card-header p {
    white-space: nowrap;

}

.event-card-time {
    background-color: var(--accent-dark);
    color: var(--white);
    padding: 0.25rem 0.5rem;
}

.event-card-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-card-place {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.event-card-place>img {
    width: 1.2rem;
}

.event-card-arrow {
    width: 1.4rem;
}

.event-card>.button-black-small {
    width: 100%;
}

.ellipsis-oneline {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ellipsis-twolines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination-numbers-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.pagination-number {
    cursor: pointer;
    display: flex;
}

.pagination-number.active {
    height: 2rem;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10rem;
    color: var(--white);
    background-color: var(--accent-dark);
}


.mobile-filters-controls {
    display: none;
}








.programma-headline {
    position: sticky;
    top: 0;
    padding: 18vh var(--hor-padding) 12vh var(--hor-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5rem;
}

.headline-sections-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}

.programma-headline-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start;
    width: 100%;
    overflow: hidden;
}

.headline-horizontal-scroller {
    width: 100%;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.headline-horizontal-scroller::-webkit-scrollbar {
    display: none;
}

.headline-section-title {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    text-transform: uppercase;
}

.headline-section-icon {
    width: 1.25rem;
}

.focus-buttons-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}



.focus-button {
    display: flex;
    align-items: center;
    flex-direction: row;
    text-align: left;
    gap: 0.4rem;
    border: 2px solid var(--white);
    border-radius: 100rem;
    padding: 0.75rem 1.5rem 0.75rem 1rem;
    text-transform: uppercase;
}


.focus-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.focus-icon svg {
    width: 100%;
    height: 100%;
}

.focus-icon-svg {
    fill: var(--white);
}

.focus-button:hover {
    background-color: var(--white);
    color: var(--accent-dark);
}

.focus-button:hover .focus-icon-svg {
    fill: var(--accent-dark);
}

.highlights-container {
    display: flex;
    flex-direction: row;
    text-align: left;
    column-gap: 3rem;
    row-gap: 1rem;
    width: fit-content;
    width: 100%;
    flex-wrap: wrap;
}

.programma-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.programma-highlight p {
    white-space: nowrap;
}

.programma-highlight-title {
    text-decoration: underline;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.programma-highlight-title>img {
    width: 1rem;
    align-self: center;
}














.evento-headline {
    position: sticky;
    top: 0;
    padding: 18vh var(--hor-padding) 12vh var(--hor-padding);
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.evento-headline-middle {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.evento-related-focus {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.evento-focus-icon {
    width: 45px;
    height: 45px;
    border: 2px solid white;
    border-radius: 100rem;
    padding: 0.1rem;
}

.evento-focus-icon svg {
    fill: white;
}



.evento-headline-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.evento-headline-bottom-left {
    display: flex;
    gap: 1rem;
}

.evento-headline-time {
    padding: 0.25rem 0.5rem;
    background-color: var(--white);
    color: var(--black);
    height: fit-content;
    width: fit-content;
}

.evento-headline-place {
    display: flex;
    gap: 0.65rem;
}

.evento-headline-place>img {
    height: 1.2rem;
    align-items: center;
}




.back-link {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link>img {
    width: 0.8rem;
}




.evento-genres {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.evento-genres .label-small {
    text-transform: uppercase;
}

.evento-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 10px;
}

.evento-content-left {
    grid-column: 1 / 8;
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

.evento-right-block {
    grid-column: 9 / 13;
    background-color: var(--grey-light);
    position: sticky;
    height: fit-content;
    top: 14rem;
    border-radius: 10px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.evento-right-block .label-bold {
    margin-bottom: 0.8rem;
}

.evento-right-icon {
    width: 1.5rem;
}

.evento-main-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.evento-main-text h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 105%;
}

.evento-main-text strong,
b {
    font-weight: 700;
    font-family: inherit;
}

.evento-main-text .text-base {
    font-size: 1.1rem;
    line-height: 120%;
}

.evento-main-text .label-bold {
    margin-bottom: 0.25rem;
}

.evento-main-text a {
    font-weight: 700;
    text-decoration: underline;
}

.evento-main-text p {
    line-height: 120%;
}




.focus-headline {
    position: sticky;
    top: 0;
    padding: 18vh var(--hor-padding) 12vh var(--hor-padding);
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.focus-headline-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.focus-headline-title {
    display: flex;
    gap: 1rem;
    align-items: end;
    text-transform: uppercase;
}

.focus-headline-icon {
    border: 2px solid white;
    border-radius: 100rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    flex-shrink: 0;
}


.button-black-big {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    background-color: var(--black);
    border-radius: 100rem;
    width: fit-content;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    height: fit-content;
    justify-content: center;
}

.button-black-big:hover {
    background-color: var(--accent-dark);
}

#mappa {
    display: none;
}



@media screen and (max-width: 1200px) {
    .event-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media screen and (max-width: 800px) {


    .event-cards-container {
        grid-template-columns: 1fr;
    }

    .event-card {
        padding: 1.25rem;
    }

    .UI-controls {
        z-index: 10;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        box-shadow: 0;
        margin-top: 0;
        position: fixed;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        overflow: hidden;
        padding: 0;
        display: none;
    }

    .UI-controls.mobile-expand {
        overflow-y: scroll;
        display: block;
    }

    .UI-first-card {
        padding: 2rem var(--hor-padding) 3rem var(--hor-padding);
        background-color: var(--grey-light) !important;
    }

    .UI-second-card {
        padding: 0 var(--hor-padding) 9rem var(--hor-padding);
        background-color: var(--grey-light) !important;
    }

    .mobile-filters-controls {
        background-color: var(--grey-dark);
        padding: 0 var(--hor-padding);
        display: flex;
        align-items: center;
        justify-content: center;
        height: 6rem;
        z-index: 11;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
    }

    .events-list {
        margin-top: -3rem;
        padding: 1.5rem var(--hor-padding) 6rem var(--hor-padding);
        gap: 2rem;
    }

    #filtersCloser {
        display: none;
    }

    #filtersToggler {
        display: none;
    }

    .UI-map {
        width: 100%;
    }

    .programma-headline {
        padding: 12vh 0 8vh 0;
    }


    .evento-content {
        display: flex;
        flex-direction: column;
        gap: 3.5rem;
    }

    .evento-headline-bottom {
        flex-direction: column;
        gap: 2rem;
        justify-content: start;
    }

    .evento-headline {
        padding: 14vh var(--hor-padding) 9vh var(--hor-padding);
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }

    .evento-headline-middle {
        width: 100%;
    }

    .evento-headline-bottom-left {
        flex-direction: column;
    }

    .focus-headline-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .evento-right-block {
        padding: 1.5rem;
    }


    .highlights-container {
        width: auto;
        flex-wrap: nowrap;
        margin-left: var(--hor-padding);
        margin-right: var(--hor-padding);
    }


    .focus-buttons-container {
        width: fit-content;
        flex-wrap: nowrap;
        margin-left: var(--hor-padding);
        padding-right: var(--hor-padding);
    }

    .pagination-numbers-container {
        gap: 1rem;
    }

    .pagination-number.text-base {
        font-size: 1.2rem;
    }
    

    .headline-section-title {
        margin-left: var(--hor-padding);
    }

}