

/* ________ DIMENSIONI LIBRI ________ */

.altezza_17 {
    height: 34rem;
}
.altezza_20 {
    height: 35.5rem;
}
.altezza_23 {
    height: 37rem;
}
.altezza_26 {
    height: 38.5rem;
}
.altezza_29 {
    height: 40rem;
}





/* ________ ELEMENTI SCAFFALE ________ */

.block-scaffale {
    position: relative;
    padding: 5rem var(--hor-padding);
}

.scaffale-scroller {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scaffale-scroller::-webkit-scrollbar {
    display: none;
}

.scaffale-wrapper {
    width: 100%;
    padding: 0 4rem;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
}

.scaffale-title-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.scaffale-title-container>.spaced-column {
    width: 50%;
}

.bombo-parlante {
    width: 18rem;
}

.bombo-parlante>img {
    width: 100%;
}

.books-container {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 1rem;
    height: fit-content;
    width: fit-content;
    margin-top: 7rem;
}

.scaffale-img {
    width: 90%;
}

.book {
    z-index: 2;
    display: flex;
    justify-content: end;
    cursor: pointer;
    flex-basis: content;
}

.front-back-container:hover {
    filter:drop-shadow(0 0 7.5px black) ;
}

.book-spine:hover {
    box-shadow: 0 0 7.5px black;
}

.front-back-container {
    position: relative;
    transform-origin: 0% 50%;
    min-width: auto;
    overflow: hidden;
}

.front-back-container.rotated {
    transform: rotateY(90deg);
    width: 0;
}

.book-front {
    vertical-align: bottom;
    pointer-events: fill;
}

.book-spine {
    transform-origin: 0% 50%;
    position: relative;
}

.spine-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    height: 100%;
}

.spine-icon-upper {
    width: 2rem;
}

.spine-icon-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%!important;
}

.book-back {
    position: absolute;
    top: 0;
    opacity: 0;
    height: 100%;
    width: 100%;
}

.cartone .book-back {
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

.back-content {
    padding: 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    height: 100%;
}

.back-content-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.back-content-buttons a {
    width: fit-content;
}

.hidden {
    width: 0;
}

.noclick {
    pointer-events: none;
}

.invisible {
    opacity: 0;
}

.cover {
    width: 200px;
}

.freccia-scaffale {
    position: absolute;
    width: 3rem;
    top: 50%;
    opacity: 0.4;
    z-index: 30;
}

.freccia-scaffale.sx {
    left: 3rem;
    transform: scale(-1, 1) translate(0,-50%);
}

.freccia-scaffale.dx {
    right: 3rem;
    transform: translate(0,-50%);
}

.freccia-scaffale.active {
    opacity: 1;
    cursor: pointer;
}

.freccia-scaffale.active:hover {
    filter:drop-shadow(0 0 5px rgba(0, 0, 0, 0.75)) ;
}





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


    .altezza_17 {
        height: 28rem;
    }
    .altezza_20 {
        height: 29.5rem;
    }
    .altezza_23 {
        height: 31rem;
    }
    .altezza_26 {
        height: 32.5rem;
    }
    .altezza_29 {
        height: 34rem;
    }




    
    .cartone .book-back {
        border-top-left-radius: 40px;
        border-bottom-left-radius: 40px;
    }
    

    .back-content {
        padding: 2.5rem;
        gap: 0.75rem;
    }

    .spine-content {
        padding: 1.5rem 1rem;
    }

    .books-container {
        gap: 0.75rem;
    }

    .spine-icon-bottom {
        width: 2.25rem;
    }

    .back-content-buttons {
        gap: 0.5rem;
    }

    .scaffale-title-container>.spaced-column {
        width: 80%;
    }
}


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


    .altezza_17 {
        height: 22rem;
    }
    .altezza_20 {
        height: 23.5rem;
    }
    .altezza_23 {
        height: 25rem;
    }
    .altezza_26 {
        height: 26.5rem;
    }
    .altezza_29 {
        height: 28rem;
    }


    .cartone .book-back {
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
    }
    
    .scaffale-img {
        width: 80%;
    }

    .scaffale-wrapper {
        padding: 0;
    }

    .back-content {
        padding: 1.5rem;
    }

    .spine-icon-upper {
        width: 1rem;
    }

    .spine-icon-bottom {
        width: 1.5rem;
    }
}


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


    .altezza_17 {
        height: 18rem;
    }
    .altezza_20 {
        height: 19.5rem;
    }
    .altezza_23 {
        height: 21rem;
    }
    .altezza_26 {
        height: 22.5rem;
    }
    .altezza_29 {
        height: 24rem;
    }



    .cartone .book-back {
        border-top-left-radius: 25px;
        border-bottom-left-radius: 25px;
    }

    .scaffale-title-container>.spaced-column {
        width: 100%;
    }

    .bombo-parlante {
        width: 22rem;
    }

    .freccia-scaffale {
        width: 2.5rem;
    }
    
    .freccia-scaffale.sx {
        left: 1.5rem;
    }
    
    .freccia-scaffale.dx {
        right: 1.5rem;
    }
}



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


    .altezza_17 {
        height: 14rem;
    }
    .altezza_20 {
        height: 15.5rem;
    }
    .altezza_23 {
        height: 17rem;
    }
    .altezza_26 {
        height: 18.5rem;
    }
    .altezza_29 {
        height: 20rem;
    }

    .front-back-container:hover {
        filter: none;
    }

    .block-scaffale {
        padding: 6rem 0 3rem 0;
    }

    .block-scaffale>.title-big {
        padding: 0 var(--hor-padding);
    }

    .scaffale-wrapper {
        padding: 2rem 0 0 0;
    }

    .books-container {
        margin: 0 2rem;
        padding: 0;
    }

    .scaffale-scroller {
        justify-content: left;
    }

    .book-spine {
        display: none;
    }

    .scaffale-img {
        width: 100%;
    }

    .scaffale-title-container {
        flex-direction: column;
        gap: 2rem;
    }

    .scaffale-title-container>.spaced-column {
        padding: 0 var(--hor-padding);
    }

    .bombo-parlante {
        margin-left: var(--hor-padding);
        width: 18rem;
    }

    .freccia-scaffale {
        display: none;
    }

}


@media screen and (max-width: 600px) {
    .bombo-parlante {
        width: 14rem;
    }
}