/* ------------------------------------------------------------------ *
 * (c) A.B.C. S.r.l. - 2026 - Licenza: OPL-1
 *
 * ABC - Widget di accessibilità per il sito web.
 *
 * Il file è diviso in due parti:
 *   1. l'aspetto del widget (tutto sotto #abc-a11y-root);
 *   2. le regole che il widget applica alla pagina, attivate da classi su
 *      <html> e scritte sempre a partire da "body".
 *
 * Il contenitore del widget sta fuori da <body> (vedere il commento in
 * testa a abc_accessibility.js), quindi le regole della parte 2 non
 * possono raggiungerlo: il pannello resta leggibile anche con il
 * contrasto elevato o le immagini nascoste.
 * ------------------------------------------------------------------ */

/* ================================================================== *
 * 1. Il widget
 * ================================================================== */

/* Il tema del sito definisce stili per button, h2, h3, a: qui si riparte
   da zero, così il pannello ha lo stesso aspetto su qualunque tema. */
#abc-a11y-root,
#abc-a11y-root *:not(svg):not(svg *) {
    all: unset;
    box-sizing: border-box;
    display: revert;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

#abc-a11y-root [hidden] {
    display: none !important;
}

#abc-a11y-root {
    --abc-a11y-accent: #09503a;
    --abc-a11y-x: 20px;
    --abc-a11y-y: 20px;
    --abc-a11y-btn: 48px;
    --abc-a11y-ink: #14181d;
    --abc-a11y-paper: #ffffff;
    --abc-a11y-line: #d7dce2;
    --abc-a11y-muted: #5b6672;

    position: fixed;
    z-index: 2147483000;
    width: var(--abc-a11y-btn);
    height: var(--abc-a11y-btn);
    color: var(--abc-a11y-ink);
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    direction: ltr;
}

/* Posizioni ------------------------------------------------------- */
#abc-a11y-root.abc-a11y--bottom_right { right: var(--abc-a11y-x); bottom: var(--abc-a11y-y); }
#abc-a11y-root.abc-a11y--bottom_left  { left: var(--abc-a11y-x);  bottom: var(--abc-a11y-y); }
#abc-a11y-root.abc-a11y--top_right    { right: var(--abc-a11y-x); top: var(--abc-a11y-y); }
#abc-a11y-root.abc-a11y--top_left     { left: var(--abc-a11y-x);  top: var(--abc-a11y-y); }
#abc-a11y-root.abc-a11y--middle_right { right: var(--abc-a11y-x); top: 50%; margin-top: calc(var(--abc-a11y-btn) / -2); }
#abc-a11y-root.abc-a11y--middle_left  { left: var(--abc-a11y-x);  top: 50%; margin-top: calc(var(--abc-a11y-btn) / -2); }

/* Dimensioni del pulsante ----------------------------------------- */
#abc-a11y-root.abc-a11y--small  { --abc-a11y-btn: 48px; }
#abc-a11y-root.abc-a11y--medium { --abc-a11y-btn: 58px; }
#abc-a11y-root.abc-a11y--large  { --abc-a11y-btn: 70px; }

/* Pulsante -------------------------------------------------------- */
#abc-a11y-root .abc-a11y__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--abc-a11y-btn);
    height: var(--abc-a11y-btn);
    border-radius: 50%;
    background: var(--abc-a11y-accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    transition: transform .15s ease, box-shadow .15s ease;
}

#abc-a11y-root .abc-a11y__toggle:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .38);
}

#abc-a11y-root .abc-a11y__toggle:focus-visible,
#abc-a11y-root .abc-a11y__item:focus-visible,
#abc-a11y-root .abc-a11y__step:focus-visible,
#abc-a11y-root .abc-a11y__close:focus-visible,
#abc-a11y-root .abc-a11y__reset:focus-visible,
#abc-a11y-root .abc-a11y__statement:focus-visible {
    outline: 3px solid #1a73e8 !important;
    outline-offset: 2px !important;
}

#abc-a11y-root.abc-a11y--active .abc-a11y__toggle {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--abc-a11y-accent);
}

/* Testo riservato ai lettori di schermo ---------------------------- */
#abc-a11y-root .abc-a11y__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Pannello -------------------------------------------------------- */
#abc-a11y-root .abc-a11y__panel {
    position: absolute;
    width: 340px;
    max-width: calc(100vw - 24px);
    max-height: min(78vh, 620px);
    display: flex;
    flex-direction: column;
    background: var(--abc-a11y-paper);
    border: 1px solid var(--abc-a11y-line);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .28);
    overflow: hidden;
}

#abc-a11y-root.abc-a11y--bottom_right .abc-a11y__panel,
#abc-a11y-root.abc-a11y--middle_right .abc-a11y__panel { right: 0; bottom: calc(100% + 12px); }
#abc-a11y-root.abc-a11y--bottom_left .abc-a11y__panel,
#abc-a11y-root.abc-a11y--middle_left .abc-a11y__panel  { left: 0;  bottom: calc(100% + 12px); }
#abc-a11y-root.abc-a11y--top_right .abc-a11y__panel    { right: 0; top: calc(100% + 12px); }
#abc-a11y-root.abc-a11y--top_left .abc-a11y__panel     { left: 0;  top: calc(100% + 12px); }

#abc-a11y-root .abc-a11y__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    background: var(--abc-a11y-accent);
    color: #fff;
}

#abc-a11y-root .abc-a11y__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

#abc-a11y-root .abc-a11y__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}

#abc-a11y-root .abc-a11y__close:hover {
    background: rgba(255, 255, 255, .22);
}

#abc-a11y-root .abc-a11y__body {
    display: block;
    padding: 6px 14px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#abc-a11y-root .abc-a11y__group {
    display: block;
    margin-top: 12px;
}

#abc-a11y-root .abc-a11y__grouptitle {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--abc-a11y-muted);
}

/* Righe con i selettori a passi ------------------------------------ */
#abc-a11y-root .abc-a11y__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
}

#abc-a11y-root .abc-a11y__rowlabel {
    font-size: 13.5px;
}

#abc-a11y-root .abc-a11y__stepper {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--abc-a11y-line);
    border-radius: 10px;
    overflow: hidden;
}

#abc-a11y-root .abc-a11y__step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 32px;
    font-size: 17px;
    font-weight: 700;
    color: var(--abc-a11y-ink);
    cursor: pointer;
}

#abc-a11y-root .abc-a11y__step:hover {
    background: #eef1f4;
}

#abc-a11y-root .abc-a11y__value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 32px;
    font-size: 13px;
    font-weight: 600;
    background: #f5f7f9;
}

/* Griglia delle opzioni -------------------------------------------- */
#abc-a11y-root .abc-a11y__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

#abc-a11y-root .abc-a11y__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--abc-a11y-line);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}

#abc-a11y-root .abc-a11y__item:hover {
    background: #f2f5f8;
}

#abc-a11y-root .abc-a11y__check {
    display: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--abc-a11y-accent);
}

#abc-a11y-root .abc-a11y__item[aria-pressed="true"] {
    border-color: var(--abc-a11y-accent);
    background: #eef5f1;
    font-weight: 600;
}

#abc-a11y-root .abc-a11y__item[aria-pressed="true"] .abc-a11y__check {
    display: block;
}

/* Piede ------------------------------------------------------------ */
#abc-a11y-root .abc-a11y__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid var(--abc-a11y-line);
    background: #f7f9fa;
}

#abc-a11y-root .abc-a11y__reset {
    padding: 8px 12px;
    border: 1px solid var(--abc-a11y-accent);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--abc-a11y-accent);
    cursor: pointer;
}

#abc-a11y-root .abc-a11y__reset:hover {
    background: var(--abc-a11y-accent);
    color: #fff;
}

#abc-a11y-root .abc-a11y__statement {
    font-size: 12.5px;
    color: var(--abc-a11y-muted);
    text-decoration: underline;
    cursor: pointer;
}

/* Guida e maschera di lettura -------------------------------------- */
#abc-a11y-root .abc-a11y__guide,
#abc-a11y-root .abc-a11y__mask {
    display: none;
    position: fixed;
    left: 0;
    width: 100vw;
    pointer-events: none;
}

#abc-a11y-root .abc-a11y__guide {
    height: 5px;
    margin-top: -2px;
    background: var(--abc-a11y-accent);
    box-shadow: 0 0 0 1px #fff, 0 0 8px rgba(0, 0, 0, .45);
    z-index: 2147483001;
}

#abc-a11y-root .abc-a11y__mask {
    background: rgba(0, 0, 0, .72);
    z-index: 2147482999;
}

#abc-a11y-root .abc-a11y__mask--top { top: 0; height: 0; }
#abc-a11y-root .abc-a11y__mask--bottom { top: 0; bottom: 0; }

html.abc-a11y-guide.abc-a11y-guide.abc-a11y-guide.abc-a11y-guide #abc-a11y-root .abc-a11y__guide { display: block; }
html.abc-a11y-mask.abc-a11y-mask.abc-a11y-mask.abc-a11y-mask #abc-a11y-root .abc-a11y__mask { display: block; }

/* Telefoni: il pannello diventa un foglio in basso ------------------ */
@media (max-width: 575.98px) {
    #abc-a11y-root .abc-a11y__panel {
        position: fixed;
        top: auto !important;
        right: 8px !important;
        bottom: 8px !important;
        left: 8px !important;
        width: auto;
        max-width: none;
        max-height: 80vh;
    }

    #abc-a11y-root .abc-a11y__grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    #abc-a11y-root { display: none !important; }
}

/* ================================================================== *
 * 2. Regole applicate alla pagina
 * ================================================================== */

/* Le classi su <html> sono ripetute quattro volte di proposito: la
   ripetizione alza la specificità del selettore quanto basta per battere
   le regole del tema, che impostano colori e caratteri con !important da
   selettori a due classi (per esempio ".o_cc1 .text-muted"). Senza la
   ripetizione, con il contrasto elevato il testo di quei paragrafi
   resterebbe grigio su fondo nero: verificato sullo staging il 16/11/2026. */

/* Profilo: contrasto elevato --------------------------------------- */
html.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast body,
html.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast body *:not(svg):not(svg *) {
    background-color: #000 !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #fff !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

html.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast body a:not(svg):not(svg *),
html.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast body a *:not(svg):not(svg *) {
    color: #ff0 !important;
    text-decoration: underline !important;
}

html.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast body a:visited { color: #f8f !important; }

html.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast body button,
html.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast body .btn,
html.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast body input,
html.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast body select,
html.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast.abc-a11y-contrast body textarea {
    border: 2px solid #fff !important;
}

/* Profilo: sfondo chiaro ------------------------------------------- */
html.abc-a11y-light.abc-a11y-light.abc-a11y-light.abc-a11y-light body,
html.abc-a11y-light.abc-a11y-light.abc-a11y-light.abc-a11y-light body *:not(svg):not(svg *) {
    background-color: #fff !important;
    background-image: none !important;
    color: #141414 !important;
    border-color: #141414 !important;
    text-shadow: none !important;
}

html.abc-a11y-light.abc-a11y-light.abc-a11y-light.abc-a11y-light body a:not(svg):not(svg *),
html.abc-a11y-light.abc-a11y-light.abc-a11y-light.abc-a11y-light body a *:not(svg):not(svg *) {
    color: #0b3fa8 !important;
    text-decoration: underline !important;
}

/* Profili a filtro -------------------------------------------------- *
 * Il filtro va su <body>: il widget sta fuori da <body> e non viene
 * toccato. Finché un profilo è attivo, gli elementi position:fixed
 * della pagina (per esempio un'intestazione agganciata) prendono <body>
 * come riferimento e scorrono con il contenuto: è il prezzo noto dei
 * filtri CSS a tutta pagina.
 * ------------------------------------------------------------------ */
html.abc-a11y-invert.abc-a11y-invert.abc-a11y-invert.abc-a11y-invert body { filter: invert(1) hue-rotate(180deg); }

/* Doppia inversione: foto e video tornano con i colori giusti. */
html.abc-a11y-invert.abc-a11y-invert.abc-a11y-invert.abc-a11y-invert body img,
html.abc-a11y-invert.abc-a11y-invert.abc-a11y-invert.abc-a11y-invert body picture,
html.abc-a11y-invert.abc-a11y-invert.abc-a11y-invert.abc-a11y-invert body video {
    filter: invert(1) hue-rotate(180deg);
}

html.abc-a11y-grayscale.abc-a11y-grayscale.abc-a11y-grayscale.abc-a11y-grayscale body { filter: grayscale(1); }
html.abc-a11y-satlow.abc-a11y-satlow.abc-a11y-satlow.abc-a11y-satlow body { filter: saturate(.45); }
html.abc-a11y-sathigh.abc-a11y-sathigh.abc-a11y-sathigh.abc-a11y-sathigh body { filter: saturate(1.9); }

/* Evidenziazioni ---------------------------------------------------- */
html.abc-a11y-links.abc-a11y-links.abc-a11y-links.abc-a11y-links body a:not(svg):not(svg *),
html.abc-a11y-links.abc-a11y-links.abc-a11y-links.abc-a11y-links body a *:not(svg):not(svg *) {
    background-color: #ff0 !important;
    color: #000 !important;
    text-decoration: underline !important;
}

html.abc-a11y-headings.abc-a11y-headings.abc-a11y-headings.abc-a11y-headings body h1,
html.abc-a11y-headings.abc-a11y-headings.abc-a11y-headings.abc-a11y-headings body h2,
html.abc-a11y-headings.abc-a11y-headings.abc-a11y-headings.abc-a11y-headings body h3,
html.abc-a11y-headings.abc-a11y-headings.abc-a11y-headings.abc-a11y-headings body h4,
html.abc-a11y-headings.abc-a11y-headings.abc-a11y-headings.abc-a11y-headings body h5,
html.abc-a11y-headings.abc-a11y-headings.abc-a11y-headings.abc-a11y-headings body h6 {
    outline: 2px dashed #c2185b !important;
    outline-offset: 3px !important;
}

html.abc-a11y-focus.abc-a11y-focus.abc-a11y-focus.abc-a11y-focus body *:focus {
    outline: 3px solid #ff0 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, .85) !important;
}

/* Carattere leggibile ------------------------------------------------ *
 * Le esclusioni tengono fuori i caratteri-icona (FontAwesome, le icone
 * di Odoo): cambiare loro il font farebbe comparire quadratini al posto
 * delle icone.
 * ------------------------------------------------------------------- */
html.abc-a11y-readable.abc-a11y-readable.abc-a11y-readable.abc-a11y-readable body *:not(i):not(svg):not(svg *):not([class*="fa-"]):not([class*="oi-"]):not(.fa):not(.oi) {
    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif !important;
}

/* Altezza riga e spaziatura ------------------------------------------ */
html.abc-a11y-lh.abc-a11y-lh.abc-a11y-lh.abc-a11y-lh body *:not(i):not(svg):not(svg *):not([class*="fa-"]):not([class*="oi-"]):not(.fa):not(.oi) {
    line-height: var(--abc-a11y-lh, 1.5) !important;
}

html.abc-a11y-sp.abc-a11y-sp.abc-a11y-sp.abc-a11y-sp body *:not(i):not(svg):not(svg *):not([class*="fa-"]):not([class*="oi-"]):not(.fa):not(.oi) {
    letter-spacing: var(--abc-a11y-ls, normal) !important;
    word-spacing: var(--abc-a11y-ws, normal) !important;
}

/* Allineamento -------------------------------------------------------- */
html.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left body p, html.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left body li,
html.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left body h1, html.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left body h2,
html.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left body h3, html.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left body h4,
html.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left body h5, html.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left body h6,
html.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left body blockquote, html.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left body dd,
html.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left.abc-a11y-align-left body figcaption {
    text-align: left !important;
}

html.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center body p, html.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center body li,
html.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center body h1, html.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center body h2,
html.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center body h3, html.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center body h4,
html.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center body h5, html.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center body h6,
html.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center body blockquote, html.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center body dd,
html.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center.abc-a11y-align-center body figcaption {
    text-align: center !important;
}

html.abc-a11y-align-justify.abc-a11y-align-justify.abc-a11y-align-justify.abc-a11y-align-justify body p, html.abc-a11y-align-justify.abc-a11y-align-justify.abc-a11y-align-justify.abc-a11y-align-justify body li,
html.abc-a11y-align-justify.abc-a11y-align-justify.abc-a11y-align-justify.abc-a11y-align-justify body blockquote, html.abc-a11y-align-justify.abc-a11y-align-justify.abc-a11y-align-justify.abc-a11y-align-justify body dd {
    text-align: justify !important;
}

/* Cursore grande ------------------------------------------------------ */
html.abc-a11y-cursor.abc-a11y-cursor.abc-a11y-cursor.abc-a11y-cursor body,
html.abc-a11y-cursor.abc-a11y-cursor.abc-a11y-cursor.abc-a11y-cursor body *:not(svg):not(svg *) {
    cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2l14 10-6.2 1.1 3.3 6.6-2.6 1.3-3.3-6.6L5 18z' fill='%23ffffff' stroke='%23000000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto !important;
}

/* Immagini nascoste ---------------------------------------------------- */
html.abc-a11y-noimg.abc-a11y-noimg.abc-a11y-noimg.abc-a11y-noimg body img,
html.abc-a11y-noimg.abc-a11y-noimg.abc-a11y-noimg.abc-a11y-noimg body picture,
html.abc-a11y-noimg.abc-a11y-noimg.abc-a11y-noimg.abc-a11y-noimg body video,
html.abc-a11y-noimg.abc-a11y-noimg.abc-a11y-noimg.abc-a11y-noimg body iframe {
    visibility: hidden !important;
}

html.abc-a11y-noimg.abc-a11y-noimg.abc-a11y-noimg.abc-a11y-noimg body * {
    background-image: none !important;
}

/* Animazioni ferme ------------------------------------------------------ */
html.abc-a11y-noanim.abc-a11y-noanim.abc-a11y-noanim.abc-a11y-noanim body,
html.abc-a11y-noanim.abc-a11y-noanim.abc-a11y-noanim.abc-a11y-noanim body *,
html.abc-a11y-noanim.abc-a11y-noanim.abc-a11y-noanim.abc-a11y-noanim body *::before,
html.abc-a11y-noanim.abc-a11y-noanim.abc-a11y-noanim.abc-a11y-noanim body *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
}

/* ================================================================== *
 * 3. Aggiunte 1.1.0: carattere per dislessia, colonna stretta,
 *    lente di lettura, elenco delle intestazioni, profili rapidi
 * ================================================================== */

/* OpenDyslexic, SIL Open Font License 1.1 (vedere static/src/fonts/OFL.txt).
   I file sono dentro il modulo: il browser li scarica solo quando l'opzione
   viene attivata, perche' un @font-face non usato non viene caricato. */
@font-face {
    font-family: "OpenDyslexic";
    src: url("../fonts/opendyslexic-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "OpenDyslexic";
    src: url("../fonts/opendyslexic-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html.abc-a11y-dyslexia.abc-a11y-dyslexia.abc-a11y-dyslexia.abc-a11y-dyslexia body *:not(i):not(svg):not(svg *):not([class*="fa-"]):not([class*="oi-"]):not(.fa):not(.oi) {
    font-family: "OpenDyslexic", Verdana, Tahoma, sans-serif !important;
}

/* Colonna stretta: righe piu' corte si rileggono meglio. */
html.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth body p,
html.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth body li,
html.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth body dd,
html.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth body blockquote,
html.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth body h1,
html.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth body h2,
html.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth body h3,
html.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth.abc-a11y-readwidth body h4 {
    max-width: 68ch !important;
}

/* Lente di lettura: fascia fissa con il testo sotto al puntatore. */
#abc-a11y-root .abc-a11y__lens {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    padding: 14px 22px;
    background: #0f1317;
    color: #fff;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.35;
    max-height: 28vh;
    overflow: hidden;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
    z-index: 2147483002;
}

#abc-a11y-root .abc-a11y__lens.abc-a11y__lens--bottom {
    top: auto;
    bottom: 0;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .45);
}

html.abc-a11y-lens.abc-a11y-lens.abc-a11y-lens.abc-a11y-lens #abc-a11y-root .abc-a11y__lens {
    display: block;
}

