/* Homepage — Notícias Recentes */
.news-home-section {
    background: #fff;
}

.news-section-heading h2 {
    margin: 0;
}

.news-section-heading h2::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: var(--primary);
}

.news-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
    gap: 18px;
    align-items: stretch;
}

.news-home-featured,
.news-home-list-item {
    background: #fff;
    border: 1px solid #dbe5de;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(13, 31, 18, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-home-list-item--placeholder {
    visibility: hidden;
    pointer-events: none;
    border: none;
    box-shadow: none;
    background: transparent;
}

.news-home-featured:hover,
.news-home-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(10, 102, 64, 0.12);
}

.news-home-featured {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: 360px;
}

.news-home-featured-media {
    position: relative;
    min-height: 100%;
    background: #edf3ef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-home-featured-media--empty {
    background: linear-gradient(145deg, #edf3ef 0%, #d8e6dc 100%);
}

.news-home-featured-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 8px;
}

.news-home-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 28px 32px;
}

.news-home-featured-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--ink);
    text-transform: uppercase;
    display: block;
    overflow: visible;
    max-height: none;
    -webkit-line-clamp: unset;
}

.news-home-featured-body p {
    margin: 0;
    color: #5f7367;
    font-size: 0.95rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.news-home-list {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 14px;
    min-height: 360px;
}

.news-home-list-item {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: stretch;
    min-height: 0;
}

.news-home-list-thumb {
    background: #edf3ef;
    min-height: 100%;
}

.news-home-list-thumb--empty {
    background: linear-gradient(145deg, #edf3ef 0%, #d8e6dc 100%);
}

.news-home-list-thumb img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.news-home-list-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
}

.news-home-list-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--ink);
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.news-home-list-copy time {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    background: none;
    border: 0;
    padding: 0;
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 960px) {
    .news-home-layout {
        grid-template-columns: 1fr;
    }

    .news-home-featured {
        grid-template-columns: 1fr;
    }

    .news-home-list {
        min-height: 0;
        grid-template-rows: none;
    }

    .news-home-list-item--placeholder {
        display: none;
    }
}

@media (max-width: 640px) {
    .news-home-list-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}

/* Frases de destaque — secção História */
.historia-destaque-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.historia-destaque-carousel {
    position: relative;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.historia-destaque-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.historia-destaque-slide.is-active {
    opacity: 1;
    transform: translateY(0);
}

.historia-destaque-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    max-width: min(100%, 36rem);
    padding: 0.85rem 1.35rem;
    border-radius: 9999px;
    background: rgba(10, 102, 64, 0.94);
    border: 2px solid rgba(200, 150, 10, 0.85);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.historia-destaque-dot {
    flex-shrink: 0;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 9999px;
    background: #c8960a;
    box-shadow: 0 0 0 3px rgba(200, 150, 10, 0.25);
}

.historia-destaque-text {
    color: #fff;
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.historia-destaque-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.historia-destaque-dot-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.3s ease, transform 0.3s ease;
}

.historia-destaque-dot-indicator.is-active {
    background: #fff;
    transform: scale(1.15);
}

@media (min-width: 1024px) {
    .historia-destaque-overlay {
        padding: 1.75rem 1.5rem 2rem;
    }

    .historia-destaque-carousel {
        min-height: 5rem;
    }
}
