.bernabei-a11y-skip {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000001;
    padding: 12px 18px;
    color: #fff;
    background: #7a0026;
    border: 3px solid #fff;
    border-radius: 6px;
    font: 700 16px/1.25 Arial, sans-serif;
    transform: translateY(-150%);
}

.bernabei-a11y-skip:focus {
    transform: translateY(0);
    outline: 3px solid #ffd800;
    outline-offset: 2px;
}

.bernabei-a11y {
    font: 400 12px/1.35 Arial, sans-serif;
}

.bernabei-a11y__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;
}

.bernabei-a11y__launcher {
    position: fixed;
    bottom: var(--bernabei-a11y-launcher-bottom, 20px);
    left: 20px;
    z-index: 25;
    display: grid;
    width: 58px;
    height: 58px;
    padding: 9px;
    place-items: center;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 14px rgb(0 0 0 / 35%);
    cursor: pointer;
}

.bernabei-a11y__launcher:hover {
    background: #57001b;
}

.bernabei-a11y__launcher:focus-visible,
.bernabei-a11y button:focus-visible,
.bernabei-a11y a:focus-visible {
    outline: 3px solid #ffd800 !important;
    outline-offset: 3px !important;
}

.bernabei-a11y__launcher svg {
    width: 100%;
    height: 100%;
}

.bernabei-a11y__dialog {
    position: fixed;
    z-index: 999999;
    top: auto;
    right: auto;
    bottom: 90px;
    left: 20px;
    width: min(calc(100vw - 40px), 320px);
    max-width: 320px;
    max-height: calc(100vh - 115px);
    margin: 0;
    padding: 0;
    color: #171717;
    background: #fff;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 18px 60px rgb(0 0 0 / 40%);
    overflow: auto;
}

.bernabei-a11y__dialog::backdrop {
    background: transparent;
}

.bernabei-a11y__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    color: #fff;
    background: #7a0026;
}

.bernabei-a11y__header h2 {
    margin: 0;
    color: inherit;
    font: 700 16px/1.2 Arial, sans-serif;
}

.bernabei-a11y__header p {
    margin: 3px 0 0;
    color: inherit;
    font-size: 11px;
}

.bernabei-a11y__close {
    flex: 0 0 auto;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 50%;
    font: 400 23px/24px Arial, sans-serif;
    cursor: pointer;
}

.bernabei-a11y__content {
    padding: 2px 14px 8px;
}

.bernabei-a11y__section {
    padding: 10px 0;
    border-bottom: 1px solid #d6d6d6;
}

.bernabei-a11y__section:last-child {
    border-bottom: 0;
}

.bernabei-a11y__section h3 {
    margin: 0 0 7px;
    color: #171717;
    font: 700 12px/1.3 Arial, sans-serif;
}

.bernabei-a11y__typography-control {
    display: flex;
    min-width: 0;
    min-height: 64px;
    padding: 8px 6px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f1f5fa;
    border-radius: 7px;
    text-align: center;
}

.bernabei-a11y__typography-control > span {
    font-weight: 700;
}

.bernabei-a11y__typography-control > div {
    display: grid;
    width: 100%;
    grid-template-columns: 24px 1fr 24px;
    align-items: center;
    gap: 3px;
}

.bernabei-a11y__typography-control button {
    display: grid;
    width: 22px;
    height: 22px;
    min-height: 0;
    padding: 0;
    place-items: center;
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.bernabei-a11y__typography-control button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.bernabei-a11y__typography-control button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.bernabei-a11y__typography-control output {
    font-weight: 700;
    white-space: nowrap;
}

.bernabei-a11y__toggle,
.bernabei-a11y__reset {
    min-height: 34px;
    color: #171717;
    background: #fff;
    border: 2px solid #767676;
    border-radius: 6px;
    font: 700 12px/1.2 Arial, sans-serif;
    cursor: pointer;
}

.bernabei-a11y__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.bernabei-a11y__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 64px;
    padding: 6px 4px;
    text-align: center;
    font-size: 12px;
}

.bernabei-a11y__toggle span {
    display: grid;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    place-items: center;
    font-size: 17px;
}

.bernabei-a11y__toggle[aria-pressed="true"] {
    color: #fff;
    background: #7a0026;
    border-color: #7a0026;
}

.bernabei-a11y__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px 12px;
    background: #f1f3f8;
}

.bernabei-a11y__reset {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 11px;
}

.bernabei-a11y__footer a {
    color: #7a0026;
    font-weight: 700;
    text-decoration: underline;
}

html.bernabei-a11y-contrast {
    --bernabei-a11y-contrast-filter: contrast(1.35);
}

html.bernabei-a11y-grayscale {
    --bernabei-a11y-grayscale-filter: grayscale(1);
}

html.bernabei-a11y-night-mode {
    --bernabei-a11y-night-filter: invert(1) hue-rotate(180deg);
}

html:is(.bernabei-a11y-contrast, .bernabei-a11y-grayscale, .bernabei-a11y-night-mode) {
    filter: var(--bernabei-a11y-night-filter, invert(0) hue-rotate(0deg))
        var(--bernabei-a11y-contrast-filter, contrast(1))
        var(--bernabei-a11y-grayscale-filter, grayscale(0));
}

html.bernabei-a11y-night-mode img,
html.bernabei-a11y-night-mode video,
html.bernabei-a11y-night-mode iframe {
    filter: invert(1) hue-rotate(180deg);
}

html.bernabei-a11y-night-mode .bernabei-a11y__launcher,
html.bernabei-a11y-night-mode .bernabei-a11y__dialog {
    filter: invert(1) hue-rotate(180deg);
}

html.bernabei-a11y-night-mode :is(.btn-primary, .bg-primary, .bg-\[\#7a0026\]) {
    filter: invert(1) hue-rotate(180deg);
}

html.bernabei-a11y-hide-images .bernabei-a11y-hidden-image-source {
    display: none !important;
}

html.bernabei-a11y-hide-images body * {
    background-image: none !important;
}

.bernabei-a11y-image-alt {
    display: inline-flex;
    min-height: 32px;
    max-width: 100%;
    padding: 6px 10px;
    align-items: center;
    justify-content: center;
    color: #171717;
    background: #f1f3f8;
    border: 1px dashed #767676;
    border-radius: 4px;
    font: 600 12px/1.35 Arial, sans-serif;
    text-align: center;
}

html.bernabei-a11y-reduce-motion *,
html.bernabei-a11y-reduce-motion *::before,
html.bernabei-a11y-reduce-motion *::after {
    scroll-behavior: auto !important;
    animation-delay: 0s !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0s !important;
    transition-duration: 0.001ms !important;
}

html.bernabei-a11y-focus :focus-visible {
    outline: 4px solid #e00000 !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 2px #fff !important;
}

.bernabei-a11y__reading-mask {
    display: none;
    pointer-events: none;
}

html.bernabei-a11y-focus .bernabei-a11y__reading-mask {
    display: block;
}

.bernabei-a11y__reading-mask-top,
.bernabei-a11y__reading-mask-bottom {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 999997;
    display: block;
    background: rgb(0 0 0 / 52%);
    pointer-events: none;
}

.bernabei-a11y__reading-mask-top {
    top: 0;
    height: max(0px, calc(var(--bernabei-a11y-guide-y, 50vh) - 44px));
}

.bernabei-a11y__reading-mask-bottom {
    top: calc(var(--bernabei-a11y-guide-y, 50vh) + 44px);
    bottom: 0;
}

.bernabei-a11y__blue-light-filter {
    position: fixed;
    inset: 0;
    z-index: 999996;
    display: none;
    background: rgb(255 154 61 / 24%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

html.bernabei-a11y-blue-light .bernabei-a11y__blue-light-filter {
    display: block;
}

html.bernabei-a11y-links a:not(.bernabei-a11y-skip) {
    color: #071e9b !important;
    background-color: #fff4a3 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
}

html.bernabei-a11y-readable body,
html.bernabei-a11y-readable button,
html.bernabei-a11y-readable input,
html.bernabei-a11y-readable select,
html.bernabei-a11y-readable textarea {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.03em !important;
    word-spacing: 0.08em !important;
}

@media (max-width: 520px) {
    .bernabei-a11y__launcher {
        bottom: var(--bernabei-a11y-launcher-bottom, 14px);
        left: 14px;
        width: 54px;
        height: 54px;
    }

    .bernabei-a11y__dialog {
        right: 10px;
        bottom: 78px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - 98px);
    }

    .bernabei-a11y__footer {
        align-items: center;
        flex-direction: row;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bernabei-a11y *,
    .bernabei-a11y *::before,
    .bernabei-a11y *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
