/* ── Torna su ──
   Un cerchio scuro appoggiato in basso a destra, con il bordo appena piu'
   chiaro e una freccia a filo. Sale e sfuma quando la pagina e' scorsa
   abbastanza; intanto un arco chiaro percorre il bordo man mano che si legge,
   cosi' il pulsante dice anche quanto manca, senza scritte. */
html body .victrix-torna-su {
    --victrix-letto: 0;
    position: fixed;
    right: 44px;
    bottom: 44px;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.94);
    /* In fondo alla pagina sale sopra la fascia della Privacy policy: la
       misura la da' lo script, fotogramma per fotogramma, quindi niente
       transizione qui, segue lo scorrimento. */
    translate: 0 calc(var(--victrix-alza, 0px) * -1);
    transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1), visibility .4s, background-color .3s ease;
}
html body .victrix-torna-su.e-visibile {
    opacity: 1;
    visibility: visible;
    transform: none;
}
/* Elementor e il kit danno ai pulsanti fondo, bordo, imbottitura e colore
   al passaggio, con regole come ".elementor-kit-15 button": per questo ogni
   regola qui parte da "html body", che pesa un po' di piu'.
   Qui si riprende tutto. */
html body .victrix-torna-su:hover,
html body .victrix-torna-su:focus {
    background: rgba(0, 0, 0, .75);
    color: #fff;
    border: 0;
    box-shadow: none;
}
html body .victrix-torna-su:focus-visible {
    outline: 1px solid rgba(255, 255, 255, .8);
    outline-offset: 4px;
}

html body .victrix-torna-su__anello {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* L'arco parte da mezzogiorno, sopra la freccia. */
    transform: rotate(-90deg);
    pointer-events: none;
}
html body .victrix-torna-su__anello circle {
    fill: none;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
html body .victrix-torna-su__fondo {
    stroke: rgba(255, 255, 255, .14);
    transition: stroke .3s ease;
}
html body .victrix-torna-su__letto {
    stroke: rgba(255, 255, 255, .45);
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--victrix-letto));
}
html body .victrix-torna-su:hover .victrix-torna-su__fondo {
    stroke: rgba(255, 255, 255, .28);
}

html body .victrix-torna-su__freccia {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
html body .victrix-torna-su:hover .victrix-torna-su__freccia {
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    html body .victrix-torna-su {
        right: 24px;
        bottom: 28px;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .victrix-torna-su,
    html body .victrix-torna-su__freccia {
        transition: opacity .2s ease, visibility .2s;
        transform: none;
    }
}

/* La freccia della barra della scheda carabina: con questo pulsante sarebbe
   un doppione. */
.victrix-con-torna-su .victrix-menu-scheda__su {
    display: none;
}
