@keyframes vialli-st-enter {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes vialli-st-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -6px, 0); }
}

@keyframes vialli-st-launch {
    0%   { transform: translate3d(0, 0, 0);     opacity: 1; }
    38%  { transform: translate3d(0, -18px, 0); opacity: 0; }
    39%  { transform: translate3d(0, 16px, 0);  opacity: 0; }
    100% { transform: translate3d(0, 0, 0);     opacity: 1; }
}

.vialli-st {
    position: fixed;
    bottom: 24px;
    z-index: 6900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #FFF;
    box-shadow: 0 4px 14px rgba(30, 24, 18, 0.16);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .3s ease,
        visibility .3s ease,
        box-shadow .28s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
}

.vialli-st--der { right: 24px; }
.vialli-st--izq { left: 24px; }

.vialli-st.is-visible {
    visibility: visible;
    animation:
        vialli-st-enter .45s cubic-bezier(.22, .61, .36, 1) forwards,
        vialli-st-float 3.2s ease-in-out .45s infinite;
}

.vialli-st__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.vialli-st__track,
.vialli-st__bar {
    fill: none;
    stroke-width: 3;
}

.vialli-st__track {
    stroke: rgba(81, 67, 55, 0.14);
}

.vialli-st__bar {
    stroke: #AB9D33;
    stroke-linecap: round;
}

.vialli-st__arrow {
    width: 22px;
    height: 22px;
    fill: #514337;
    transition: fill .28s ease, transform .28s cubic-bezier(.22, .61, .36, 1);
}

.vialli-st.is-launching .vialli-st__arrow {
    animation: vialli-st-launch .52s cubic-bezier(.4, 0, .2, 1);
}

.vialli-st:focus-visible {
    outline: 2px solid #AB9D33;
    outline-offset: 4px;
}

@media (hover: hover) and (min-width: 769px) {
    .vialli-st.is-visible:hover {
        box-shadow: 0 8px 24px rgba(30, 24, 18, 0.22);
        animation-play-state: running, paused;
    }

    .vialli-st:hover .vialli-st__arrow {
        fill: #AB9D33;
        transform: translateY(-3px);
    }
}

.vialli-st:active {
    box-shadow: 0 2px 8px rgba(30, 24, 18, 0.18);
}

@media (max-width: 768px) {
    .vialli-st {
        bottom: 18px;
        width: 50px;
        height: 50px;
        box-shadow: 0 3px 12px rgba(30, 24, 18, 0.18);
    }

    .vialli-st--der { right: 18px; }
    .vialli-st--izq { left: 18px; }

    .vialli-st__arrow {
        width: 20px;
        height: 20px;
    }

    .vialli-st:active .vialli-st__arrow { fill: #AB9D33; }
}

body.vialli-no-scroll .vialli-st {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .vialli-st {
        transition: opacity .2s ease, visibility .2s ease;
    }
    .vialli-st.is-visible {
        opacity: 1;
        animation: none;
    }
    .vialli-st.is-launching .vialli-st__arrow { animation: none; }
    .vialli-st:hover .vialli-st__arrow { transform: none; }
}

@media print {
    .vialli-st { display: none; }
}