/* ==========================================================================
   Article Card — Shared partial styles
   Used by: page-news, taxonomy-settore
   ========================================================================== */

/* Article card — horizontal layout */
.lh-article-card {
    display: flex;
    flex-direction: row;
    height: 150px;
    background: var(--lh-blue-light);
    border-radius: 0 20px 0 20px;
    overflow: hidden;
}

.lh-article-card__img-wrap {
    width: 20%;
    min-width: 20%;
    height: 150px;
    overflow: hidden;
}

.lh-article-card .lh-article-card__img {
    display: block;
    width: 100%;
    height: 150px;
    max-height: 150px;
    object-fit: cover;
}

.lh-article-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
}

.lh-article-card__name {
    font-family: var(--lh-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--lh-blue);
    margin: 0 0 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lh-article-card__excerpt {
    font-size: 13px;
    color: var(--lh-text);
    line-height: 1.5;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lh-article-card__footer {
    display: flex;
    justify-content: flex-end;
}

.lh-article-card__btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--lh-font-btn);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--lh-footer-gray);
    color: var(--lh-text);
    background: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lh-article-card__btn:hover {
    border-color: var(--lh-blue);
    color: var(--lh-blue);
}

/* Variant: white background */
.lh-article-card--white {
    background: var(--lh-white);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
    .lh-article-card__img-wrap {
        width: 25%;
        min-width: 25%;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .lh-article-card {
        flex-direction: column;
        height: auto;
    }

    .lh-article-card__img-wrap {
        order: -1;
        width: 100%;
        min-width: 100%;
        height: 150px;
    }
}
