.m-button,
.m-button.small{
    appearance: none;
    background-color: transparent;
    text-decoration: none;
    display: inline-flex;
    border-radius: 6px;
    color: black;
    font-size: 12px;
    line-height: 24px;
    font-weight: 400;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 13px;
    position: relative;
}

.m-button.bordo {
    background-color: var(--primary-bordo);
    color: white;
}
.m-button.bordo.ghost,
.m-button.bordo.secondary {
    background-color: transparent;
    color: var(--primary-bordo);
}

.m-button.bordo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #40192a 30%, #803254 90%); /* Gradiente di 45° */
    z-index: 1;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); /* "Buco" al centro */
    mask-composite: exclude; /* Combina la maschera per creare il buco */
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: destination-out;
    border-radius: 6px; /* Bordi arrotondati */
    padding: 1px; /* Spessore del bordo */
    box-sizing: border-box; /* Assicura che il padding non sballi la dimensione totale */
}

.m-button.black {
    background-color: black;
    color: white;
}

.m-button.black.ghost,
.m-button.black.secondary {
    background-color: transparent;
    color: black;
}

.m-button.black::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #121212 30%, #242424 90%); /* Gradiente di 45° */
    z-index: 1;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); /* "Buco" al centro */
    mask-composite: exclude; /* Combina la maschera per creare il buco */
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: destination-out;
    border-radius: 6px; /* Bordi arrotondati */
    padding: 1px; /* Spessore del bordo */
    box-sizing: border-box; /* Assicura che il padding non sballi la dimensione totale */
}

.m-button.beige {
    background-color: var(--primary-beige);
    color: var(--primary-bordo);
}
.m-button.beige.ghost,
.m-button.beige.secondary {
    background-color: transparent;
    color: var(--primary-beige);
}

.m-button.beige::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #fdf8f9 30%, #ffffff 90%); /* Gradiente di 45° */
    z-index: 1;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); /* "Buco" al centro */
    mask-composite: exclude; /* Combina la maschera per creare il buco */
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: destination-out;
    border-radius: 6px; /* Bordi arrotondati */
    padding: 1px; /* Spessore del bordo */
    box-sizing: border-box; /* Assicura che il padding non sballi la dimensione totale */
}

.m-button.md {
    padding: 8px 16px;
    font-size: 14px;
}

.m-button.lg {
    font-size: 16px;
    padding: 10px 20px;
}

.m-button > img,
.m-button > svg,
.m-button > .icon {
    width: 16px;
    height: 16px;
}

.m-button.md > img,
.m-button.md > svg,
.m-button.md > .icon {
    width: 20px;
    height: 20px;
}

.m-button.lg > img,
.m-button.lg > svg,
.m-button.lg > .icon {
    width: 24px;
    height: 24px;
}

.m-button.tool {
    width: 40px;
    height: 32px;
    padding: 0;
}

.m-button.disabled,
.m-button.bordo.disabled,
.m-button.black.disabled,
.m-button.beige.disabled {
    background-color: #999999;
    color: #7A7A7A;
    cursor: not-allowed;
}

.m-button.ghost.disabled,
.m-button.secondary.disabled,
.m-button.bordo.ghost.disabled,
.m-button.bordo.secondary.disabled,
.m-button.black.ghost.disabled,
.m-button.black.secondary.disabled,
.m-button.beige.ghost.disabled,
.m-button.beige.secondary.disabled {
    background-color: transparent;
    color: #999999;
}
.m-button.black.disabled,
.m-button.beige.disabled {
    background-color: #999999;
    color: #7A7A7A;
    cursor: not-allowed;
}

.m-button:hover,
.m-button.bordo:hover,
.m-button.black:hover,
.m-button.beige:hover,
.m-button.ghost:hover,
.m-button.secondary:hover,
.m-button.bordo.link:hover {
    background-color: rgba(0, 0, 0, 0.60);
    color: white;
}
.m-button:hover::before,
.m-button.bordo:hover::before,
.m-button.black:hover::before,
.m-button.beige:hover::before,
.m-button.ghost:hover::before,
.m-button.secondary:hover::before,
.m-button.bordo.link:hover::before,
.m-button.bordo.link::before,
.m-button.disables::before,
.m-button.bordo.disabled::before,
.m-button.black.disabled::before,
.m-button.beige.disabled::before,
.m-button.ghost.disabled::before,
.m-button.secondary.disabled::before,
.m-button.bordo.link.disabled::before,
.m-button.bordo.link::before {
    /*background: rgba(0, 0, 0, 0.60);*/
    display: none;
}

.m-button.bordo.link {
    background-color: transparent;
    color: black;
}

.m-button.bordo.link.active {
    background-color: var(--primary-bordo);
    color: white;
}
.m-button.bordo.link.active::before {
    display: block;
}

.m-button:hover > svg rect {
    fill: white;
}

/* Stile generale della scrollbar */
::-webkit-scrollbar {
    width: 8px; /* Larghezza della scrollbar verticale */
    height: 8px; /* Altezza della scrollbar orizzontale */
}

/* Colore e stile dello sfondo della scrollbar */
::-webkit-scrollbar-track {
    background: transparent; /* Colore del tracciato */
    border-radius: 4px; /* Bordo arrotondato */
}
body::-webkit-scrollbar-track {
    background: transparent; /* Colore del tracciato */
    border-radius: 4px; /* Bordo arrotondato */
}

/* Stile del cursore della scrollbar */
::-webkit-scrollbar-thumb {
    background: #EFCDC3; /* Colore del cursore */
    border-radius: 4px; /* Forma arrotondata del cursore */
}

/* Colore al passaggio del mouse */
::-webkit-scrollbar-thumb:hover {
    background: #FFDDD3; /* Colore più scuro al passaggio del mouse */
}


range-slider {
    display: block;
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 40px;
}

range-slider .slider-container {
    position: relative;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin-top: 15px;
}

range-slider .track {
    position: absolute;
    height: 100%;
    background: #4caf50;
    border-radius: 3px;
    z-index: 1;
}

range-slider .thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #4caf50;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transform: translate(-50%, -6px);
}


.dialog-box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    background-color: rgba(50, 8, 26, 0.9);
    backdrop-filter: blur(90px);
    box-shadow: 0 12px 16px -4px #10182814, 0 4px 4px 0 #00000040;
    padding: 12px 16px 24px 16px;
    z-index: -1;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    overflow: hidden;
    height: auto;
    width: calc(100% - 30px);
    border: none;
    font-size: 12px;
    line-height: 16px;
    color: #D3D3D3;
}
.dialog-box.on-top {
    transform: translate(-50%, -75%);
}
.dialog-box.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0;
}
.dialog-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(128, 50, 84, 0) 30%, rgba(128, 50, 84, 1) 90%);
    z-index: -1;
    border-radius: 4px;
    padding: 1px;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: destination-out;
    box-sizing: border-box;
}
.dialog-box.active {
    z-index: 150;
    opacity: 1;
    /* transform: translateX(-50%) translateY(-50%); */
}
.dialog-box h1 {
    font-family: "Tenor Sans", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0;
    color: var(--primary-beige);
}

.dialog-box label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
}
.dialog-box .fields {
    padding: 32px 0 16px 0;
}

.dialog-box .subtitle {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
}
.dialog-box .subtitle.login {
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
    font-size: 21px;
    font-weight: 500;
    line-height: 24px;
}
.dialog-box.login h1 {
    text-align: center;
    font-size: 16px;
    margin-bottom: 0;
    padding-bottom: 0;
    padding-top: 16px;
}
.dialog-box.login .fields {
    padding-top: 10px;
}

.dialog-box .hr {
    width: 100%;
    height: 1px;
    background-color: #333333;
    margin: 24px 0;
}

input[type="text"].m-form-control,
input[type="password"].m-form-control,
input[type="email"].m-form-control {
    width: 100%;
    border-radius: 4px;
    height: 44px;
    background-color: var(--primary-bordo-80);
    backdrop-filter: blur(20px);
    box-shadow: none;
    outline: none;
    padding: 0 16px;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: var(--primary-beige);
    border: 1px solid rgba(255, 255, 255, .4);
}

div.border-pane {
    position: relative;
    width: fit-content;
    height: fit-content;
    display: block;
    border-radius: 4px;
    border: none;
    /*
    background-origin: border-box;
    background-clip: padding-box;
     */
    padding: 1px;
    background: linear-gradient(45deg, #563948 30%, #985c7a 90%);
    box-sizing: border-box;
}

.w100 {
    width: 100%!important;
}

button.social {
    height: 44px;
    width: 44px;
    border-radius: 8px;
    background-color: white;
    border: 1px solid #D0D5DD;
    box-shadow: 0 1px 2px 0 #1018280D;
}

.mir-loader,
.mir-loader.sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: transparent;
    background-image: url(../images/loader-bordo-16px.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 0 auto;
}
.mir-loader.md {
    width: 32px;
    height: 32px;
    background-image: url(../images/loader-bordo-32px.svg);
}

.mir-loader.lg {
    width: 44px;
    height: 44px;
    background-image: url(../images/loader-bordo-44px.svg);
}

.mir-loader.beige,
.mir-loader.beige.sm {
    background-image: url(../images/loader-beige-16px.svg);
}
.mir-loader.beige.md {
    background-image: url(../images/loader-beige-32px.svg);
}

.mir-loader.beige.lg {
    background-image: url(../images/loader-beige-44px.svg);
}


.custom-dropdown {
    position: relative;
    display: inline-flex;
    width: fit-content;
    height: 26px;
    border-radius: 4px;
    background-color: var(--primary-bordo);
    box-shadow: 0 1px 2px 0 #1018280D;
    color: var(--primary-beige);
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0;
    cursor: pointer;
}
.custom-dropdown.black {
    background-color: #000000;
}
.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: fit-content;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--primary-bordo);
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 #1018280D;
    color: var(--primary-beige);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 100%;
    z-index: 100;
}
.open .custom-dropdown-menu {
    display: flex;
}
.black .custom-dropdown-menu {
    background-color: #000000;
}
.custom-dropdown-menu a {
    display: inline-block;
    padding: 4px 8px;
    width: 100%;
}
.custom-dropdown-menu a:hover {
    background-color: color-mix(in srgb, var(--primary-bordo) 80%, white 20%);
}
.black .custom-dropdown-menu a:hover {
    background-color: color-mix(in srgb, black 80%, white 20%);
}

.dialog-box .dropdown-content {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
}
.dialog-box .dropdown-content a {
    color: var(--primary-beige);
    text-decoration: none;
    display: inline-block;
    width: 100%;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 3px;
}
.dialog-box .dropdown-content a:hover {
    background-color: var(--primary-bordo);
}

/* MEDIUM */
@media (min-width: 768px) {
    /*
    .m-button,
    .m-button.md {
        padding: 8px 16px;
        font-size: 14px;
    }
     */
    .m-button,
    .m-button.md {
        padding: 8px 16px;
        font-size: 14px;
    }

    .m-button.x-small {
        height: 38px;
    }
    .m-button.tool {
        height: 38px;
    }

    .m-button.tool.active svg rect {
        fill: var(--primary-beige);
    }
    .m-button.tool.active {
        background-color: var(--primary-bordo);
    }
    .m-button.tool.active::before {
        display: none;
    }

    .m-button > img,
    .m-button > svg,
    .m-button > .icon {
        width: 20px;
        height: 20px;
    }

    .dialog-box {
        width: 480px;
        padding: 24px 48px 48px 48px;
    }
    .dialog-box h1 {
        font-size: 28px;
        line-height: 32px;
    }
    .mir-loader {
        width: 32px;
        height: 32px;
        background-image: url(../images/loader-bordo-32px.svg);
    }
    .mir-loader.beige {
        width: 32px;
        height: 32px;
        background-image: url(../images/loader-beige-32px.svg);
    }
    .dialog-box .subtitle {
        font-weight: 400;
        font-size: 16px;
        line-height: 20px;
        letter-spacing: 0;
    }
}

/* LARGE */
@media (min-width: 992px) {
    /*
    .m-button,
    .m-button.lg {
        font-size: 16px;
        padding: 10px 20px;
    }
     */
    .m-button,
    .m-button.lg {
        font-size: 16px;
        padding: 10px 20px;
    }

    .m-button > img,
    .m-button > svg,
    .m-button > .icon {
        width: 24px;
        height: 24px;
    }
    .mir-loader {
        width: 44px;
        height: 44px;
        background-image: url(../images/loader-bordo-44px.svg);
    }
    .mir-loader.beige {
        width: 44px;
        height: 44px;
        background-image: url(../images/loader-beige-44px.svg);
    }
}