/* LINK WRAPPER */
.compact-card-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* CARD BASE */
.compact-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #f3f3f5;
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.25s ease;
}

/* HOVER */
.compact-card-link:hover .compact-card {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* IMAGE WRAPPER */
.compact-card-image-wrap {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

/* IMAGE */
.compact-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* BADGE */
.compact-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ff6a00;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    line-height: 1;
}

/* CONTENT */
.compact-card-content {
    padding: 20px;
    display: flex;
    align-items: center;
}

/* TITLE */
.compact-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

/* ========================= */
/* DESKTOP VERSION */
/* ========================= */

@media (min-width: 768px) {

    .compact-card {
        flex-direction: row;
        align-items: stretch;
        min-height: 180px;
    }

    /* immagine a sinistra */
    .compact-card-image-wrap {
        height: auto;
    }

    .compact-card-image {
        height: 100%;
    }

    /* contenuto prende tutto lo spazio */
    .compact-card-content {
        flex: 1;
        padding: 30px;
    }

    .compact-card-title {
        font-size: 24px;
    }
}
