/* MasterBinder 0.0.17 — controlli globali */
.mb-back-to-top {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    border: 1px solid rgba(151, 179, 228, .42);
    border-radius: 8px;
    background: rgba(18, 29, 53, .94);
    color: #eef5ff;
    display: grid;
    place-items: center;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    cursor: pointer;
    z-index: 1200;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.mb-back-to-top:hover,
.mb-back-to-top:focus-visible {
    background: rgba(31, 50, 88, .98);
    outline: none;
}

.mb-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 720px) {
    .mb-back-to-top {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        width: 42px;
        height: 42px;
    }
}
