/* ============================================================
   MUDETO – Biblioteca / Libri
============================================================ */

.mudeto-libri {
    width: 100%;
}

/* ---------- SEARCH ---------- */

.mudeto-libri__search {
    width: 100%;
    margin-bottom: 32px;
}

.mudeto-libri__input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dedede;
    border-radius: 0!important;
    background: #ffffff;
    color: #111111;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
    outline: none;
}

.mudeto-libri__input:focus {
/*     border-color: #4DA3D9; */
    box-shadow: none;
    outline: none;
}

.mudeto-libri__input::placeholder {
    color: #8f8f8f;
    opacity: 1;
}

/* ---------- GRID ---------- */

.mudeto-libri__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 24px;
    width: 100%;
}

/* ---------- CARD ---------- */

.mudeto-libro {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mudeto-libro[hidden] {
    display: none !important;
}

/* Immagine */

.mudeto-libro__image {
    width: 100%;
    margin-bottom: 16px;
}

.mudeto-libro__image a {
    display: block;
    width: 100%;
}

.mudeto-libro__thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.mudeto-libro__placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f2f2f2;
}

/* Titolo */

.mudeto-libro__title {
    margin: 0 0 8px;
    padding: 0;
    line-height: 1.3;
}

.mudeto-libro__title a {
    color: inherit;
    text-decoration: none;
}

/* .mudeto-libro__title a:hover {
    color: #4DA3D9;
} */

/* Autore */

.mudeto-libro__autore {
    margin: 0 0 6px;
    padding: 0;
    line-height: 1.4;
	color: #4DA3D9!important;
	font-weight: 500;
}

/* Anno */

.mudeto-libro__anno {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* Nessun risultato */

.mudeto-libri__empty {
    margin: 24px 0;
    font-size: 16px;
    color: #111111;
}

.mudeto-libri__empty[hidden] {
    display: none !important;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1500px) {

    .mudeto-libri__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

@media (max-width: 1024px) {

    .mudeto-libri__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {

    .mudeto-libri__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    .mudeto-libri__search {
        margin-bottom: 24px;
    }

    .mudeto-libro__image {
        margin-bottom: 12px;
    }

}

/* LENTE DI INGRANDIMENTO NEL FILTRO DI RICERCA */
.mudeto-libri .mudeto-libri__input {
    padding-left: 48px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 20px 20px;
    box-sizing: border-box;
}