.eventi-portale .yi-event-search {
    position: relative;
    margin: 0 0 clamp(18px, 2vw, 28px);
    max-width: 100%;
    color: #223e4f;
}
.yi-event-search label {
    display: block;
    margin: 0 0 7px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}
.yi-event-search-controls {
    position: relative;
    width: 100%;
    max-width: 46rem;
    max-width: min(100%, 680px);
}
.yi-event-search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}
.yi-event-search-field {
    position: relative;
    flex: 1 1 12em;
    min-width: 0;
}
.yi-event-search-field > .fa {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #436983;
}
.yi-event-search-field input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 9px 12px;
    padding-inline-start: 40px;
    background: white;
    border: 1px solid #7b94a4;
    border-radius: 9px;
    color: #18394e;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
}
.yi-event-search .yi-event-submit {
    flex: 0 1 auto;
    max-width: 100%;
    min-height: 46px;
    padding: 9px 22px;
    border: 1px solid #003c70;
    border-radius: 9px;
    color: white;
    background: #003c70;
    font: inherit;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.yi-event-search .yi-event-submit:hover { background: #00558d; }
.yi-event-search :is(input, button):focus-visible {
    outline: 3px solid #2575a5;
    outline-offset: 2px;
}
.yi-event-search .yi-event-menu {
    position: absolute;
    inset: 100% auto auto 0;
    z-index: 15;
    width: 100%;
    margin-top: 4px;
    max-height: min(355px, var(--yi-menu-height, 45vh));
}
.yi-event-search .yi-event-menu.yi-event-menu-above {
    inset: auto auto 100% 0;
    margin: 0 0 4px;
}
.yi-event-menu .select2-results__options { list-style: none; max-height: inherit; }
.yi-event-menu [role="option"] { cursor: pointer; }
.yi-event-search .yi-event-clear {
    display: inline-block;
    min-height: 44px;
    margin: 2px 0 0;
    padding: 6px 3px;
    border: 0;
    background: transparent;
    color: #07547a;
    text-decoration: underline;
    text-underline-offset: 3px;
    font: inherit;
}
.yi-event-search .yi-event-message { margin: 4px 0 0; overflow-wrap: anywhere; }
.yi-event-search .yi-event-message:empty { margin: 0; }
.eventi-portale .yi-event-original[hidden],
.eventi-portale .yi-event-search [hidden],
.eventi-portale .yi-event-results[hidden] { display: none !important; }
.yi-event-results[aria-busy="true"] { opacity: .65; }
.yi-event-results .eventi-pagine { margin-top: 20px; }
.yi-event-search, .yi-event-results { scroll-margin-block-start: 5rem; }
@media (max-width: 440px) {
    .yi-event-search-field { flex-basis: 8em; }
    .yi-event-search .yi-event-submit { padding-inline: 13px; }
}
@media (max-width: 540px), (max-height: 460px) {
    .yi-event-search .yi-event-menu,
    .yi-event-search .yi-event-menu.yi-event-menu-above {
        position: relative;
        inset: auto;
        margin: 4px 0 0;
        max-height: 42vh;
        max-height: 42dvh;
    }
}
