.ff-event-list-wrapper{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ff-event-list-wrapper .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 900px) {
    .ff-event-list-wrapper {
        display: grid;
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:         "sidebar filters"        "sidebar panels";
        column-gap: 3rem;
        row-gap: 1.5rem;
        align-items: start;
    }
    .ff-event-list__sidebar {
        grid-area: sidebar;
        position: sticky;
        top: 164px;
        align-self: start;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    .ff-event-list__tabs    { grid-area: tabs; }
    .ff-event-list__filters { grid-area: filters; }
    .ff-event-list__panels  { grid-area: panels; }
    .festival-program__pdf     { grid-area: pdf; justify-self: center; }
}

/* TABS */
.ff-event-list__tabs {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: nowrap;
}

.ff-event-list__tabs li { flex: 1 1 0; min-width: 0; margin: 0; }

.ff-event-list__tab {
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0.75rem 0.5rem;
    font-family: "IM Fell English", Arial, Helvetica, sans-serif;
    font-weight: 500;
    /*font-size: 1rem;*/
    /*color: var(--fp-color-text);*/
    cursor: pointer;
    text-align: center;
    text-transform: none;
    border-bottom: 1px solid #662fc4;
    transition: background-color 0.2s ease, color 0.2s ease;
    line-height: 1.2;
}
.ff-event-list__tab:hover { background: #f5f1ff;color:#332c11;border-color:#662fc4;}
.ff-event-list__tab:focus-visible {
    /*outline: 2px solid var(--fp-color-primary);*/
    outline-offset: -2px;
}
.ff-event-list__tab.is-active {
    background: #6833c5;
    color: #fff;
    /*border-bottom-color: var(--fp-color-primary);*/
}
.ff-event-list__tab .ff-event-list__longday,
.ff-event-list__tab .ff-event-list__shortday {
    display: inline-block;
}
.ff-event-list__tab .ff-event-list__longday em {
    font-style: normal;
    display: block;
    font-size: 0.95em;
}
.ff-event-list__tab .ff-event-list__shortday { display: none; }

@media (max-width: 899px) {
    .ff-event-list__tab .ff-event-list__longday { display: none; }
    .ff-event-list__tab .ff-event-list__shortday { display: inline-block; }
    .ff-event-list__tab.is-anteprime .ff-event-list__shortday { font-size: 0.85rem; }
    .ff-event-list__tab { padding: 0.875rem 0.25rem; font-size: 0.95rem; }
    .ff-event-single__article .ff-event-single__body h3{font-size: 24px;}
    .ff-event-list__pdf { display: none; }
    .ff-event-single__article .ff-event-single__body .ff-event__with{font-size: 16px;}
}

@media (min-width: 900px) {
    .ff-event-list__tabs { flex-direction: column; }
    .ff-event-list__tabs li { flex: 0 0 auto; }
    .ff-event-list__tab {
        text-align: left;
        padding: 1.25rem 1.5rem;
        font-size: 1.5rem;
    }
}

/* FILTRI */
.ff-event-list-wrapper .ff-event-list__filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ff-event-list-wrapper .ff-event-list__filter { display: block; position: relative; }
.ff-event-list-wrapper .ff-event-list__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 0.575rem 1.5rem 0.575rem 1.25rem;
    background-color: #ffffff;
    border: 1px solid #662fc4;
    border-radius: 999px;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #332c11;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b1ec9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ff-event-list-wrapper .ff-event-list__select:hover { /*border-color: var(--fp-color-primary);*/ }
.ff-event-list-wrapper .ff-event-list__select:focus-visible {
    outline: none;
    /*border-color: var(--fp-color-primary);
    box-shadow: 0 0 0 3px var(--fp-color-primary-pale);*/
}
.ff-event-list-wrapper .ff-event-list__select[data-empty="false"] {
    /*border-color: var(--fp-color-primary);
    color: var(--fp-color-primary);*/
    font-weight: 600;
}

@media (min-width: 900px) {
    .ff-event-list-wrapper .ff-event-list__filters { flex-direction: row; gap: 1rem; }
    .ff-event-list-wrapper .ff-event-list__filter { flex: 1; }
}

/* PDF BUTTON 
.ff-event-list__pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #662fc4;
    border: 1px solid #662fc4;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    align-self: flex-start;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.ff-event-list__pdf:hover { background: #ffffff;color:#662fc4;border: 1px solid #662fc4; }
*/
.ff-event-list__pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    color: #662fc4;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    align-self: flex-start;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.ff-event-list__pdf:hover {text-decoration: underline; color: #662fc4;}

/* PANNELLI */
.ff-event-list__panel {display: none;}
.ff-event-list__panel.is-active{display: block;}
.ff-event-list__empty {padding: 2rem 1rem;text-align: center;font-style: italic;margin:0;}
.ff-event-list__panel.is-loading { position: relative; min-height: 200px; }
.ff-event-list__panel.is-loading::after {content: "";position: absolute;top: 2rem; left: 50%;transform: translateX(-50%);width: 38px; height: 38px;border: 3px solid #ede7ff;border-top-color: #4b1ec9;border-radius: 50%;animation: fpSpin 0.8s linear infinite;}
@keyframes fpSpin { to { transform: translateX(-50%) rotate(360deg); } }

/* EVENTO */
.ff-event-single__article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid #662fc4;
}
.ff-event-single__article:first-child { border-top: 0; }
.ff-event-single__article .ff-event-single__meta .ff-event_tracks{color: #6833c5;text-transform: uppercase;}
.ff-event-single__article .ff-event-single__body h3{font-size: 28px; line-height:1.2; margin-bottom: 0;}
.ff-event-single__article .ff-event-single__body .ff-event__with{font-family: "IM Fell English", Arial, Helvetica, sans-serif;font-size: 18px; line-height:1.2; margin-bottom: 10px;}
.ff-event-single__article .ff-event-single__body .ff-event__with .ff-event__speaker-name{color:#662fc4;}
.ff-event-single__article .ff-event-single__body .ff-event__formats{color:#6833c5;}
.ff-event-single__article .ff-event-single__body .ff-event__credits{font-size: 14px;}
.ff-event-single__article .ff-event-single__body .ff-event__credits span{display: block;}
@media (min-width: 700px) {
    .ff-event-single__article {
        grid-template-columns: 200px 1fr;
        column-gap: 2rem;
        gap: 1rem;
    }
}

/*  */
.ff-event-single__meta {display: flex;flex-direction: column;gap: 0.25rem; font-size:14px;}
.ff-event-single__registrations-wrapper{display: flex;flex-direction: column;gap: 1rem;}
.ff-event-single__registrations-wrapper .ff-registration {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.ff-event-single__registrations-wrapper .ff-registration .ff-registration__title {
    color: #6833c5;
    margin: 0;
}

.ff-event-single__registrations-wrapper .ff-registration .ff-registration__body {margin: 0;font-size:14px;}
.ff-event-single__registrations-wrapper .ff-registration .ff-registration__body p{margin: 0}
.ff-event-single__content {background-color: #efeaf9;border-radius: 16px; font-size:14px; padding: 20px; margin: 0 -20px 28px -20px;}
.ff-event-single__registrations {margin-top: 28px;}
.ff-event-single__details {margin-top: 20px;}
.ff-event-single__speakers {display: flex;flex-wrap: wrap;gap: 30px;margin: 0 auto;}
.ff-event-single__speakers .ff-event-single__speakers_title h4{margin:0;}
.ff-event-single__speakers .ff-event-single_speaker{flex: 0 1 25%;display: flex;flex-direction: column;align-items: center;position:relative;}
.ff-event-single__speakers img {max-width: 80px;border-radius: 50%;object-fit: cover;display: block;}
.ff-event-single_speaker img {-webkit-filter: grayscale(100%); filter: grayscale(100%);}
.ff-event-single_speaker figure::before {content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #000000; mix-blend-mode: screen; opacity: 1; z-index: 1;}
.ff-event-single_speaker-name{color:#6833c5;font-size: 16px;text-align: center;}
.ff-modal-speaker__avatar img {-webkit-filter: grayscale(100%); filter: grayscale(100%); border-radius:50%; width:150px;}
.ff-modal-speaker__avatar {text-align:center;}

.ff-event-single__moderators {display: flex;flex-wrap: wrap;gap: 30px;margin: 0 auto;}
.ff-event-single__moderators_title{display: block;line-height: 1;margin:20px 0 20px 0;}
.ff-event-single__moderators_title h4{margin:0;}
.ff-event-single__moderators .ff-event-single_moderator{flex: 0 1 25%;display: flex;flex-direction: column;align-items: center;position:relative;}
.ff-event-single__moderators img {max-width: 80px;border-radius: 50%;object-fit: cover;display: block;}
.ff-event-single_moderator img {-webkit-filter: grayscale(100%); filter: grayscale(100%);}
.ff-event-single_moderator figure::before {content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #000000; mix-blend-mode: screen; opacity: 1; z-index: 1;}
.ff-event-single_moderator-name{color:#6833c5;font-size: 16px;text-align: center;}
.ff-modal-moderator__avatar img {-webkit-filter: grayscale(100%); filter: grayscale(100%); border-radius:50%; width:150px;}
.ff-modal-moderator__avatar {text-align:center;}
button.ff-event-single__toggle{display: flex;margin: 20px auto;background-color:transparent; color: #332c11;}
.ff-event-single__btn-open .ff-event-single__toggle-label:before, .ff-event-single__btn-open .ff-event-single__toggle-label:after {content: "";background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Livello_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17'%3E%3Cpath d='M.05,12.43c0,.14.06.29.17.4.22.22.58.22.8,0l7.5-7.5,7.39,7.39c.22.22.58.22.8,0,.22-.22.22-.58,0-.8l-7.79-7.79c-.22-.22-.58-.22-.8,0L.21,12.03c-.11.11-.17.26-.17.4Z'/%3E%3C/svg%3E");background-size: 15px 15px;
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    margin: 0px 10px 0px 10px;
    background-repeat: no-repeat;}
.ff-event-single__btn-close .ff-event-single__toggle-label:before, .ff-event-single__btn-close .ff-event-single__toggle-label:after {content: "";background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Livello_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17'%3E%3Cpath d='M16.86,4.53c0-.14-.06-.29-.17-.4-.22-.22-.58-.22-.8,0l-7.5,7.5L1.01,4.24c-.22-.22-.58-.22-.8,0C0,4.46,0,4.81.21,5.03l7.79,7.79c.22.22.58.22.8,0l7.9-7.9c.11-.11.17-.26.17-.4Z'/%3E%3C/svg%3E");background-size: 15px 15px;
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    margin: 0px 10px 0px 10px;
    background-repeat: no-repeat;}
button.ff-event-single__toggle:hover {background: #ffffff;color: #662fc4;}
/*.ff-event-list__next-day {background: #662fc4;color: #ffffff;border-radius:100px; border: 1px solid #662fc4;}
.ff-event-list__next-day:hover {background: #ffffff;color: #662fc4;border-radius:100px; border: 1px solid #662fc4;}*/
.ff-event-list__next-day {background: none;color: #662fc4; border-bottom:  1px solid #662fc4;padding:0px;}
.ff-event-list__next-day:hover {background: none; color: #000000; border-bottom:  1px solid #000000;padding:0px;}
.ff-event-list__panel-footer {text-align:center;}
.jquery-modal.blocker{z-index: 999999}
.modal.ff-modal-speaker{border-radius: 16px;}
.ff-modal-speaker__role {margin: 0;}
h2.ff-modal-speaker__name {margin: 0;}
.ff-modal-speaker__role {margin: 0;font-size: 14px;}
h2.ff-modal-speaker__name {margin: 8px 0 8px 0;line-height: 1;font-size: 26px;}
.ff-modal-speaker__bio {max-height: 300px;overflow-y: scroll;}

.ff-event-list-wrapper .choices__list--dropdown .choices__item--choice {padding: 20px 30px;border-bottom: 1px solid #777;font-weight: 700;line-height: 1.25;word-break: break-word;}
.ff-event-list-wrapper .choices__list--dropdown .choices__item--choice:last-child {border-bottom: 0;}
.ff-event-list-wrapper .choices__description {display: block;margin-top: 5px;font-size: 0.9em;line-height: 1.35;font-weight: 400;word-break: break-word;}
.ff-event-list-wrapper .choices__inner{border-radius: 999px;background-color: #ffffff;border:1px solid #662fc4;}
.ff-event-list-wrapper .is-open .choices__inner{border-radius: 999px;}
.ff-event-list-wrapper .choices__placeholder{opacity: 1;color:#332c11;}
.ff-event-list-wrapper .is-open .choices__list--dropdown, .ff-event-list-wrapper .is-open .choices__list[aria-expanded]{border-radius: 10px;margin-top: 10px;}
.ff-event-list-wrapper .choices[data-type*=select-one]::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23662fc4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-chevron-down-icon lucide-chevron-down'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    border: 0;
    margin: 0;
    background-size: contain;
    background-repeat: no-repeat;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}
.ff-event-list-wrapper .choices[data-type*=select-one].is-open::after{transform: translateY(-50%) rotate(180deg);margin-top: 0;}
/* Nasconde realmente il select originale inizializzato da Choices */
.ff-event-list-wrapper select.js-choices[data-choice="active"] {visibility: hidden;}
button.ff-event-list__next-day[hidden] {display: none !important;}