/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jan 21 2026 | 22:27:35 */
.slider-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding-bottom: 1rem;
}
.slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 5%;
}
.slider {
    display: flex;
    align-items: flex-end;
    transition: transform 0.5s ease-in-out;
}
.book-card {
    min-width: calc(20% - 16px);
    margin: 0 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.book-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.book-card a:hover .book-title {
    color: 
#ffeaaa;
}
.book-cover {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    overflow: hidden; /* AGGIUNTO: nasconde la parte che fuoriesce */
    border-radius: 5px; /* SPOSTATO qui dal img */
}
.book-cover img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}
.book-card:hover .book-cover img {
    transform: scale(1.05);
}
.book-info {
    padding: 8px 0 0 0;
    text-align: left;
    min-height: 3.5em;
}
.book-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: 
#1f1f1f;
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.book-author {
    font-size: 0.8rem;
    font-weight: 700;
    color: 
#363636;
    line-height: 1.3;
    margin: 0;
}
.testo-prima-autore {
    font-weight: 400;
    font-size: 0.75rem;
}
/* Frecce di navigazione con REM */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.nav-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.nav-btn:hover {
    transform: translateY(-50%) scale(1.15);
}
.nav-btn.prev {
    left: 0;
}
.nav-btn.next {
    right: 0;
}
/* Responsive */
@media (max-width: 1200px) {
    .book-card {
        min-width: calc(25% - 16px);
    }
}
@media (max-width: 992px) {
    .book-card {
        min-width: calc(33.333% - 16px);
    }
}
@media (max-width: 768px) {
    .book-card {
        min-width: calc(50% - 16px);
    }

    .slider-wrapper {
        padding: 0 60px;
    }

    .nav-btn {
        width: 2rem;
        height: 2rem;
        top: 50%;
    }
}
@media (max-width: 576px) {
    .book-card {
        min-width: calc(100% - 16px);
    }

    .slider-wrapper {
        padding: 0 50px;
    }

    .nav-btn {
        width: 1.8rem;
        height: 1.8rem;
        top: 50%;
    }
}