/**
 * Shortcode gm_recent_posts
 * Layout: Featured post a sinistra, lista di 2 post a destra
 */

.gm-recent-posts-container {
    margin: 0;
}

/* Featured post (sinistra) */
.gm-recent-posts__featured {
    background: #FFF;
    padding: 2rem;
}

.gm-recent-posts__label {
    color: var(--primary-color-00);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.gm-recent-posts__title {
    color: var(--secondary-color-00);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.gm-recent-posts__excerpt {
    color: var(--neutral-color-01);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.gm-recent-posts__featured .wp-block-buttons {
    margin: 0;
}

.gm-recent-posts__featured .wp-block-button__link {
    margin: 0;
}

/* Lista post (destra) */
.gm-recent-posts__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gm-recent-posts__item {
    background: #FFF;
    padding: 0 1.5rem;
    border-bottom:1px solid var(--primary-color-00);
}

.gm-recent-posts__item-link {
    text-decoration: none;
    display: block;
}

.gm-recent-posts__meta {
    color: var(--primary-color-00);
    font-size: 1.125rem;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.gm-recent-posts__item-title {
    color: var(--secondary-color-01);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 1rem 0;
}

.gm-recent-posts__date {
    color: var(--neutral-color-02);
    font-size: 0.875rem;
    font-weight: 400;
    display: block;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .gm-recent-posts-container {
        margin: 2rem 0;
    }

    .gm-recent-posts__featured {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }

    .gm-recent-posts__title {
        font-size: 2rem;
    }

    .gm-recent-posts__list {
        gap: 1.5rem;
    }

    .gm-recent-posts__item {
        padding: 1.25rem;
    }

    .gm-recent-posts__item-title {
        font-size: 1rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .gm-recent-posts__title {
        font-size: 2rem;
    }

    .gm-recent-posts__item-title {
        font-size: 1rem;
    }
}
