/* Background */

.background {
    width: 100%;
    min-height: auto;
    position: relative;
    overflow: hidden;
    padding-top: 40px; 
    padding-bottom: 60px;
    background: url('../img/bg1.png') center / cover no-repeat;
    background-attachment: fixed;
}

.divisoria {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;          
    z-index: 10; 
}

.divisoria hr {
    width: 100%;
    border: none;
    border-top: 2px solid #C0C0C0;
    margin: 0;
}

.box {
    position: relative;
    display: block;
    padding: 0 16px;
}

.box-img {
    position: relative;
    max-width: 1280px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));

    justify-content: center;
    align-content: start; 
    gap: 40px; /* espaçamento entre cards */
    padding: 40px 0;
    margin: 0 auto;
    background: none !important
}

/* Book */

.book {
    width: 300px;
    height: 425px;
    position: relative;
    text-align: center;
    margin: 2.5%;
    margin-left: 50px;
}

.book-cover {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    transform-origin: 0 50%;
    -webkit-transform-origin: 0 50%;
    background: #111;
    background-size: cover;
    border-radius: 3px;
    box-shadow:
        inset 4px 1px 3px #ffffff60,
        inset 0 -1px 2px #00000080;
    transition: all .5s ease-in-out;
    -webkit-transition: all .5s ease-in-out;
}

.cover1 {
    background: url('../img/liv1.png');
}

.cover2 {
    background: url('../img/liv2.png');
}

.cover3 {
    background: url('../img/liv3.png');
}

.book .book-cover {
    background-size: 100% 100%;
}

.effect {
    width: 20px;
    height: 100%;
    margin-left: 10px;
    border-left: 2px solid #00000010;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    transition: all .5s ease;
}

.light {
    width: 90%;
    height: 100%;
    position: absolute;
    border-radius: 3px;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 100%);
    top: 0;
    right: 0;
    opacity: .1;
    transition: all .5s ease;
    -webkit-transition: all .5s ease;
}

.book:hover {
    cursor: pointer;
}

.book:hover .book-cover {
    transform: perspective(2000px) rotateY(-30deg);
    -webkit-transform: perspective(2000px) rotateY(-30deg);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    box-shadow:
    inset 4px 1px 3px #ffffff60,
    inset 0 -1px 2px #00000080,
    10px 0px 10px -5px #00000030
}

.book:hover .effect {
    width: 40px;
}

.book:hover .light {
    opacity: 1;
    width: 70%;
}

.book-inside {
    width: calc(100% - 2px);
    height: 96%;
    position: relative;
    top: 2%;
    border: 1px solid grey;
    border-radius: 3px;
    background: white;
    box-shadow:
        10px 40px 40px -10px #00000030,
        inset -2px 0 0 grey,
        inset -3px 0 0 #dbdbdb,
        inset -4px 0 0 white,
        inset -5px 0 0 #dbdbdb,
        inset -6px 0 0 white,
        inset -7px 0 0 #dbdbdb,
        inset -8px 0 0 white,
        inset -9px 0 0 #dbdbdb;
}