/* ==========================================================
   Block — Prossimi eventi
   ========================================================== */

.mv-upcoming-events-widget {
    display: grid;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    gap: 12px;
}

/* ==========================================================
   Header
   ========================================================== */

.mv-upcoming-events-header {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mv-border);
}

.mv-upcoming-events-header h3 {
    margin: 0;
    color: var(--mv-text);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -.02em;
}

/* ==========================================================
   Lista
   ========================================================== */

.mv-upcoming-events-list {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mv-upcoming-events-list li {
    min-width: 0;
}

/* ==========================================================
   Evento
   ========================================================== */

.mv-upcoming-events-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 12px;
    align-items: start;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--mv-text);
    text-decoration: none;
    transition:
        background-color .16s ease,
        color .16s ease;
}

.mv-upcoming-events-item:hover {
    background: rgba(66, 185, 146, .08);
    color: #176747;
}

/* ==========================================================
   Immagine
   ========================================================== */

.mv-upcoming-events-thumb {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 2px;
    background: #f4f6f8;
    flex-shrink: 0;
}

.mv-upcoming-events-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* ==========================================================
   Testo
   ========================================================== */

.mv-upcoming-events-body {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding-top: 1px;
}

.mv-upcoming-events-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    word-break: break-word;
}

.mv-upcoming-events-date,
.mv-upcoming-events-location {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: var(--mv-muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
}

.mv-upcoming-events-date i,
.mv-upcoming-events-location i {
    flex: 0 0 auto;
    width: 10px;
    font-size: 9px;
    text-align: center;
}

.mv-upcoming-events-location {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ==========================================================
   Freccia
   ========================================================== */

.mv-upcoming-events-item > i:last-child {
    justify-self: end;
    color: var(--mv-muted);
    font-size: 9px;
    opacity: .45;
    transition:
        color .16s ease,
        opacity .16s ease,
        transform .16s ease;
}

.mv-upcoming-events-item:hover > i:last-child {
    color: var(--mv-primary);
    opacity: 1;
    transform: translateX(2px);
}

/* ==========================================================
   Stato vuoto
   ========================================================== */

.mv-upcoming-events-empty {
    margin: 0;
    padding: 14px;
    border: 1px dashed var(--mv-border);
    border-radius: 10px;
    background: var(--mv-bg);
    color: var(--mv-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}
