/* ============================================================
   MUDETO – MUSEI
============================================================ */

.mudeto-musei {
    width: 100%;
}

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

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

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

.mudeto-musei__input:focus {
    box-shadow: none;
    outline: none;
}

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

/* Lente di ingrandimento */

.mudeto-musei .mudeto-musei__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;
}


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

.mudeto-musei__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    width: 100%;

    transition: opacity 0.2s ease;
}


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

.mudeto-museo {
    display: grid;
    grid-template-columns: minmax(0, 25%) minmax(0, 1fr);
    align-items: start;
    gap: 40px;
    width: 100%;
    min-width: 0;
}


/* ---------- IMMAGINE ---------- */

.mudeto-museo__image {
    width: 100%;
    min-width: 0;
}

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

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


/* ---------- CONTENUTI ---------- */

.mudeto-museo__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

/* Titolo */

.mudeto-museo__title {
    margin: 0 0 16px;
    padding: 0;
    line-height: 1.2;
	font-weight: 600!important;
}

/* Descrizione */

.mudeto-museo__content {
    width: 100%;
    margin: 0 0 16px;
    line-height: 1.5;
}

.mudeto-museo__content p {
    margin: 0 0 12px;
}

.mudeto-museo__content > :last-child {
    margin-bottom: 0;
}


/* ---------- CONTATTI ---------- */

.mudeto-museo__contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;

    width: 100%;
    margin: 0 0 20px;

    color: #111111;
    font-size: 14px;
    line-height: 1.5;
}

.mudeto-museo__indirizzo,
.mudeto-museo__telefono,
.mudeto-museo__email {
    overflow-wrap: anywhere;
	font-weight: 600;
}

.mudeto-museo__telefono, .mudeto-museo__telefono a {
	color: #4DA3D9!important;
}

.mudeto-museo__email, .mudeto-museo__email a {
	color: #F28C28!important;
}

.mudeto-museo__separator {
    color: #999999;
    font-weight: 400;
}


/* ---------- PULSANTE ---------- */

.mudeto-museo__actions {
    margin-top: 0;
}

.mudeto-museo__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 20px;

    background: #4DA3D9;
    border: 1px solid #4DA3D9;
    border-radius: 0;

    color: #ffffff !important;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;

    transition: all 0.2s ease;
}

.mudeto-museo__button:hover {
    background: #1b1b1b;
    border-color: #1b1b1b;
    color: #ffffff !important;
}

.mudeto-museo__button:focus-visible {
    outline: 2px solid #4DA3D9;
    outline-offset: 3px;
}


/* ---------- NESSUN RISULTATO ---------- */

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

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


/* ============================================================
   PAGINAZIONE
============================================================ */

.mudeto-musei__pagination-wrap {
    width: 100%;
    margin-top: 48px;
}

.mudeto-musei__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Pulsanti */

.mudeto-musei__page {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;
    padding: 8px 12px;

    border: 1px solid #dedede;
    border-radius: 0;

    background: #ffffff;
    color: #1b1b1b;

    font-size: 15px;
    font-weight: 500;
    line-height: 1;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover */

.mudeto-musei__page:hover {
    background: #1b1b1b !important;
    border-color: #1b1b1b !important;
    color: #ffffff;
}

/* Pagina attiva */

.mudeto-musei__page.is-active {
    background: #4DA3D9 !important;
    border-color: #4DA3D9 !important;
    color: #ffffff !important;

    font-weight: 700 !important;
    cursor: default !important;
}

/* Focus */

.mudeto-musei__page:focus-visible {
    outline: 2px solid #4DA3D9;
    outline-offset: 3px;
}

/* Puntini */

.mudeto-musei__dots {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 24px;
    height: 40px;

    color: #111111;
    font-size: 16px;
    line-height: 1;
}


/* ---------- CARICAMENTO AJAX ---------- */

.mudeto-musei.is-loading .mudeto-musei__grid {
    opacity: 0.45;
    pointer-events: none;
}

.mudeto-musei.is-loading .mudeto-musei__pagination {
    opacity: 0.45;
    pointer-events: none;
}

/* Stato AJAX */

.mudeto-musei__status {
    margin: 16px 0 0;
    text-align: center;
    font-size: 14px;
    color: #666666;
}

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


/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet */

@media (max-width: 1024px) {

    .mudeto-museo {
        grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
        gap: 24px;
    }

    .mudeto-musei__grid {
        gap: 40px;
    }

}


/* Mobile */

@media (max-width: 767px) {

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

    .mudeto-musei__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .mudeto-museo {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .mudeto-museo__image {
        width: 100%;
    }

    .mudeto-museo__thumb,
    .mudeto-museo__placeholder {
        aspect-ratio: 1 / 1;
    }

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

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

    .mudeto-museo__contacts {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .mudeto-musei__pagination-wrap {
        margin-top: 32px;
    }

    .mudeto-musei__pagination {
        gap: 6px;
    }

    .mudeto-musei__page {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 14px;
    }

    .mudeto-musei__dots {
        min-width: 18px;
        height: 36px;
    }

}