@charset "utf-8";
/* CSS Document */

/* =========================================================
   4MANIHOME — BACK TO TOP
   ========================================================= */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
	border-radius: 50%;
	
    background: #616161;
    color: #e3dfde;

    cursor: pointer;
    z-index: 2900;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.3s ease;
}

/* VISIBILE DURANTE LO SCROLL */

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* FRECCIA */

.back-to-top svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* HOVER */

@media (hover: hover) and (pointer: fine) {

    .back-to-top:hover {
        background: #303030;
        transform: translateY(-3px);
    }

}

button.back-to-top {
    min-width: 40px;
    min-height: 40px;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    box-sizing: border-box;
    padding: 0;
    flex-shrink: 0;
}

/* MOBILE */

@media screen and (max-width: 480px) {

    button.back-to-top {
        width: 36px;
        height: 36px;

        min-width: 36px;
        min-height: 36px;

        aspect-ratio: 1 / 1;
        border-radius: 50% !important;
        box-sizing: border-box;
        padding: 0;

        right: 15px;
        bottom: 15px;
    }

    .back-to-top svg {
        width: 17px;
        height: 17px;
    }

}
