/* =============================================
   Excel Semplice – Muro Recensioni
   Alta specificità per resistere ai temi
   ============================================= */

.es-recensioni-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--es-font, inherit);
}

/* ── FILTRI ── */
.es-recensioni-wrapper .es-filtri {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
}

/* Massima specificità per battere qualsiasi tema */
.es-recensioni-wrapper .es-filtri .es-filtro-btn,
.es-recensioni-wrapper .es-filtri button.es-filtro-btn {
    display: inline-block;
    padding: 10px 22px !important;
    border: 2px solid var(--es-color-primary, #6356a1) !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--es-color-primary, #6356a1) !important;
    border-radius: 30px !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: var(--es-font, inherit) !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.es-recensioni-wrapper .es-filtri .es-filtro-btn:hover,
.es-recensioni-wrapper .es-filtri button.es-filtro-btn:hover,
.es-recensioni-wrapper .es-filtri .es-filtro-btn.active,
.es-recensioni-wrapper .es-filtri button.es-filtro-btn.active {
    background-color: var(--es-color-primary, #6356a1) !important;
    background: var(--es-color-primary, #6356a1) !important;
    color: #fff !important;
    border-color: var(--es-color-primary, #6356a1) !important;
}

/* ── MURO (masonry via CSS columns) ── */
.es-muro {
    columns: 3;
    column-gap: 24px;
}

/* ── CARD ── */
.es-card {
    break-inside: avoid;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: opacity 0.3s, transform 0.2s;
}

.es-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 86, 161, 0.12);
}

.es-card.es-hidden {
    display: none;
}

/* ── BADGE CORSO ── */
.es-badge {
    display: inline-block;
    background: #f0eefb;
    color: var(--es-color-primary, #6356a1);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* ── STELLE ── */
.es-stelle {
    color: var(--es-color-stars, #f5a623);
    font-size: 18px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

/* ── TITOLO ── */
.es-titolo {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* ── CORPO ── */
.es-corpo {
    font-size: 15px;
    line-height: 1.75;
    color: #3a3a4a;
    margin-bottom: 16px;
}

.es-corpo p { margin: 0; }

/* ── FOOTER CARD ── */
.es-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.es-nome {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
}

.es-link-corso {
    font-size: 13px;
    font-weight: 600;
    color: var(--es-color-primary, #6356a1);
    text-decoration: none;
    transition: opacity 0.2s;
}

.es-link-corso:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ── NESSUN RISULTATO ── */
.es-nessun-risultato {
    color: #666;
    text-align: center;
    margin-top: 40px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .es-muro { columns: 2; }
}
@media (max-width: 640px) {
    .es-muro { columns: 1; }
    .es-recensioni-wrapper .es-filtri { gap: 8px; }
    .es-recensioni-wrapper .es-filtri .es-filtro-btn,
    .es-recensioni-wrapper .es-filtri button.es-filtro-btn {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }
}
