/* ============================================================
   estia/news — porting da nuova_home/news.css con scope
   isolation .estia-news__*
   ============================================================ */
.estia-news {
    background: var(--bg-page, #F5F6F8);
    padding: clamp(48px, 6vw, 96px) 0;
}

.estia-news__container {
    max-width: var(--content-max, 1280px);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}

.estia-news__title {
    text-align: center;
    margin-bottom: clamp(32px, 4vw, 64px);
}

.estia-news__title h2 {
    margin: 0;
    color: var(--blue-dark, #1F3A6D);
    font-family: 'Manrope', 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.875rem, 4vw, 2.875rem);
    line-height: 1.1;
}

.estia-news__subtitle {
    max-width: 760px;
    margin: 14px auto 0;
    color: var(--blue-dark, #1F3A6D);
    font-family: 'Manrope', 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.25;
}

.estia-news__lead {
    max-width: 760px;
    margin: 10px auto 0;
    color: var(--text-dark, #3C3C3B);
    font-size: 1rem;
    line-height: 1.65;
}

.estia-news__title em {
    font-style: italic;
    color: var(--accent, #F5BE42);
}

.estia-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .estia-news__grid { grid-template-columns: 1fr; gap: 24px; }
}

.estia-news__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,.04);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.estia-news__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(20,40,80,.12);
}

.estia-news__media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.estia-news__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms ease;
}

.estia-news__card:hover .estia-news__img {
    transform: scale(1.04);
}

.estia-news__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--blue-dark, #1F3A6D);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.estia-news__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.estia-news__heading {
    margin: 0;
    color: var(--blue-dark, #1F3A6D);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.estia-news__excerpt {
    margin: 0;
    color: var(--text-dark, #3C3C3B);
    font-size: 0.9375rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.estia-news__footer {
    border-top: 1px solid #F1F2F4;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: #8A8A89;
}

.estia-news__more {
    color: var(--blue-header, #4C70AF);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.estia-news__more .material-symbols-outlined {
    font-size: 16px;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.estia-news__empty {
    text-align: center;
    color: var(--text-muted, #8A8A89);
    padding: 32px;
}

.estia-news__cta-wrap {
    margin-top: clamp(32px, 4vw, 56px);
    text-align: center;
}

.estia-news__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 var(--space-7, 28px);
    border-radius: var(--radius-sm, 6px);
    background: var(--yellow, #F5BE42);
    color: var(--blue-dark, #1F3A6D);
    font-family: 'Manrope', 'Montserrat', sans-serif;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: var(--shadow-btn, 0 6px 18px rgba(245, 190, 66, .28));
    transition: background .15s ease, transform .15s ease, box-shadow .2s ease;
}

.estia-news__cta .material-symbols-outlined {
    font-size: 18px;
    transition: transform .2s ease;
}

.estia-news__cta:hover,
.estia-news__cta:focus-visible {
    background: var(--yellow-hover, #E5AE32);
    box-shadow: 0 10px 24px rgba(245, 190, 66, .38);
}

.estia-news__cta:hover .material-symbols-outlined,
.estia-news__cta:focus-visible .material-symbols-outlined {
    transform: translateX(3px);
}

/* Variant --archive: nasconde la CTA dentro la pagina /blog/ (sei già nell'archivio). */
.estia-news--archive .estia-news__cta-wrap {
    display: none;
}

/* Variant --archive: usata in archive.php fuori dal block.
   Neutralizza il container styling (bg + padding) e riduce il grid
   a 2 colonne perché vive dentro estia-with-sidebar (col-main ~70%). */
.estia-news--archive {
    background: transparent;
    padding: 0;
}
.estia-news--archive .estia-news__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 1100px) {
    .estia-news--archive .estia-news__grid { grid-template-columns: 1fr; }
}

/* Category filter pill bar (archive.php). */
.estia-archive__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.estia-archive__filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--blue-dark, #1F3A6D);
    border: 1px solid rgba(31, 58, 109, .12);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.estia-archive__filter-pill:hover {
    background: rgba(31, 58, 109, .06);
    border-color: rgba(31, 58, 109, .22);
}
.estia-archive__filter-pill.is-active {
    background: var(--blue-dark, #1F3A6D);
    color: #fff;
    border-color: var(--blue-dark, #1F3A6D);
}

/* Pagination archive (the_posts_pagination output WP standard). */
.estia-archive__pagination {
    margin-top: 48px;
    text-align: center;
}
.estia-archive__pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 6px;
    color: var(--blue-dark, #1F3A6D);
    text-decoration: none;
    font-weight: 600;
}
.estia-archive__pagination .page-numbers.current {
    background: var(--blue-dark, #1F3A6D);
    color: #fff;
}
.estia-archive__pagination .page-numbers:hover:not(.current) {
    background: rgba(31, 58, 109, .08);
}
.estia-archive__empty {
    padding: 64px 0;
    text-align: center;
    color: var(--text-muted, #8A8A89);
    font-size: 1.1rem;
}
