/* Selection */
::selection {
    background: #AC00F1;
    color: #ffffff !important;
}

::-moz-selection {
    background: #AC00F1;
    color: #ffffff !important;
}

.visible {
    opacity: 1;
}

.hiding {
    opacity: 0;
}

.container-full {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 50px;
    padding-left: 50px;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    -webkit-transition: all 0.3s ease-in-out !important;
    -moz-transition: all 0.3s ease-in-out !important;
    -o-transition: all 0.3s ease-in-out !important;
    transition: all 0.3s ease-in-out !important;
}

button,
button:hover,
button:focus {
    color: inherit;
    text-decoration: none;
    -webkit-transition: all 0.3s ease-in-out !important;
    -moz-transition: all 0.3s ease-in-out !important;
    -o-transition: all 0.3s ease-in-out !important;
    transition: all 0.3s ease-in-out !important;
}

@media (max-width: 1023px) {
    .row-with-scroll {
        flex-wrap: nowrap;
        overflow-y: hidden;
        overflow-x: scroll;
        justify-content: left !important;
        margin-bottom: 20px;
    }

    .row-with-scroll > .col-12,
    .row-with-scroll > .col {
        -ms-flex: 0 0 85%;
        flex: 0 0 85%;
        max-width: 85%;
        margin-bottom: 25px;
    }
}

@media (max-width: 1023px) {
    .row-with-scroll-small {
        flex-wrap: nowrap;
        overflow-y: hidden;
        overflow-x: scroll;
        justify-content: left !important;
        margin-bottom: 20px;
    }

    .row-with-scroll-small > .col-12,
    .row-with-scroll-small > .col {
        -ms-flex: 0 0 65%;
        flex: 0 0 65%;
        max-width: 65%;
        margin-bottom: 25px;
    }
}

@media (max-width: 1023px) {
    .row-with-scroll-mini {
        flex-wrap: nowrap;
        overflow-y: hidden;
        overflow-x: scroll;
        justify-content: left !important;
        margin-bottom: 20px;
    }

    .row-with-scroll-mini > .col-12,
    .row-with-scroll-mini > .col {
        -ms-flex: 0 0 55%;
        flex: 0 0 55%;
        max-width: 55%;
        margin-bottom: 25px;
    }
}


@media only screen and (max-width: 991px) {

    /* Force table to not be like tables anymore */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /*tr {
        border: 1px solid #ccc;
    }*/
    td, .table td {
        border: none;
        border-bottom: 1px solid #ddd !important;
        position: relative;
        padding: 8px 8px 8px 40% !important;
        white-space: normal;
        text-align: left;
    }

    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    /*
    Label the data
    */
    td:before {
        content: attr(data-title);
    }

    td[data-title="Azioni"] {
        display: none;
    }

    td:empty {
        display: none;
    }
}


/* Carosello */
.c-carousel {
    position: relative;
    width: 100%;
}

.c-carousel__viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y; /* permette swipe orizzontale senza rompere scroll verticale */
}

.c-carousel__track {
    display: flex;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.c-carousel__slide {
    flex: 0 0 auto; /* la width la gestisce JS */
}

.c-carousel__arrow {
    width: 40px;
    height: 40px;
    border: 0;
    background: center / contain no-repeat;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.c-carousel__arrow--prev {
    background-image: url("../img/base/arrow-left-black.png");
    left: 0;
}

.c-carousel__arrow--next {
    background-image: url("../img/base/arrow-right-black.png");
    right: 0;
}

.c-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.c-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    border: 0;
    padding: 0;
    display: inline-block;
    cursor: pointer;
}

.c-carousel__dot[aria-current="true"] {
    background: rgba(0, 0, 0, .85);
    opacity: 1;
}
