/* ================================================================
   NOVIDADES — CSS EXCLUSIVO DA PÁGINA
   Não alterar o style.css global para editar as novidades.
   ================================================================ */

.novidades-page {
    background: var(--off-white, #F7F4EC);
}

.news-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    background: var(--green, #315B45);
}

.news-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -170px;
    border-radius: 50%;
    background: rgba(184,95,61,.28);
}

.news-hero-inner {
    position: relative;
    z-index: 1;
}

.news-hero-copy {
    max-width: 760px;
    padding: 70px 0 64px;
}

.news-hero .section-label {
    color: #fff;
}

.news-hero h1 {
    margin: 12px 0 16px;
    color: #fff;
    font-family: var(--font-title, "Playfair Display", serif);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.04;
}

.news-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 17px;
    line-height: 1.7;
}

.news-section {
    padding-top: 72px;
    padding-bottom: 86px;
}

.news-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.news-section-heading h2 {
    margin: 8px 0 0;
    color: var(--green-deep, #315B45);
    font-family: var(--font-title, "Playfair Display", serif);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
}

.news-section-heading > p {
    max-width: 420px;
    margin: 0 0 4px;
    color: var(--gray-600, #657069);
    font-size: 14px;
    line-height: 1.7;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    min-width: 0;
}

.news-card-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(49,91,69,.13);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(38,52,46,.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.news-card-button:hover {
    transform: translateY(-5px);
    border-color: rgba(184,95,61,.34);
    box-shadow: 0 18px 40px rgba(38,52,46,.12);
}

.news-card-button:focus-visible {
    outline: 3px solid rgba(184,95,61,.55);
    outline-offset: 4px;
}

.news-card-image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--green, #315B45);
}

.news-card-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.news-card-button:hover .news-card-image-wrap img {
    transform: scale(1.045);
}

.news-card-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 99px;
    background: var(--terracotta, #B85F3D);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.news-card-content {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    padding: 20px 21px 19px;
}

.news-card-date {
    margin-bottom: 8px;
    color: var(--gray-600, #657069);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-card-title {
    color: var(--green-deep, #315B45);
    font-family: var(--font-title, "Playfair Display", serif);
    font-size: 24px;
    line-height: 1.15;
}

.news-card-excerpt {
    margin-top: 9px;
    color: var(--gray-600, #657069);
    font-size: 13px;
    line-height: 1.55;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    color: var(--terracotta, #B85F3D);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

/* Modal de leitura das novidades */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(24,18,14,.80);
    backdrop-filter: blur(5px);
}

.news-modal.is-open {
    display: flex;
}

.news-modal-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 16px;
    background: var(--off-white, #F7F4EC);
    box-shadow: 0 35px 110px rgba(0,0,0,.45);
    animation: newsModalIn .25s ease both;
}

@keyframes newsModalIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.news-modal-close {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 13px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: var(--green-deep, #315B45);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(0,0,0,.15);
}

.news-modal-close:hover {
    background: var(--yellow, #F2C94C);
}

.news-modal-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
}

.news-modal-image {
    min-height: 440px;
    background: var(--green, #315B45);
}

.news-modal-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

.news-modal-content {
    padding: 52px 48px 44px;
}

.news-modal-content .section-label {
    color: var(--terracotta, #B85F3D);
}

.news-modal-date {
    display: block;
    margin-top: 11px;
    color: var(--gray-600, #657069);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-modal-content h2 {
    margin: 12px 0 19px;
    color: var(--green-deep, #315B45);
    font-family: var(--font-title, "Playfair Display", serif);
    font-size: clamp(31px, 4vw, 47px);
    font-weight: 500;
    line-height: 1.08;
}

.news-modal-content p {
    margin: 0;
    color: var(--text, #26342E);
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
}

body.news-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .news-modal-grid {
        grid-template-columns: 1fr;
    }
    .news-modal-image, .news-modal-image img {
        min-height: 270px;
        max-height: 330px;
    }
}

@media (max-width: 640px) {
    .news-hero { min-height: 310px; }
    .news-hero-copy { padding: 55px 0 48px; }
    .news-section { padding-top: 52px; padding-bottom: 64px; }
    .news-section-heading { display: block; margin-bottom: 26px; }
    .news-section-heading > p { margin-top: 13px; }
    .news-grid { grid-template-columns: 1fr; gap: 18px; }
    .news-card-content { min-height: 0; }
    .news-modal { padding: 10px; }
    .news-modal-dialog { max-height: calc(100vh - 20px); }
    .news-modal-content { padding: 40px 23px 28px; }
    .news-modal-image, .news-modal-image img { min-height: 220px; max-height: 260px; }
}
