:root {
    --green: #405c27;
    --green-dark: #263b00;
    --wine: #651c21;
    --cream: #f4efe2;
    --cream-2: #ebe4d3;
    --gold: #b8943d;
    --text: #302b24;
    --white: #fff;
    --container: 1100px;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font-family: var(--sans); background: var(--cream); }
button, a { font: inherit; }
button { cursor: pointer; }

.container { width: min(92%, var(--container)); margin-inline: auto; }

.topbar {
    background: var(--green);
    color: var(--white);
    font-size: .68rem;
    min-height: 26px;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.topbar__right { display: flex; gap: 16px; }

.header { background: var(--white); }
.header__inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); }
.brand__mark { width: 42px; height: 42px; border-left: 4px solid var(--green); display: grid; place-items: center; font-weight: 800; font-size: .75rem; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .78rem; }
.brand small { font-size: .65rem; }
.header__tools { display: flex; gap: 8px; }
.search-button, .menu-button { border: 0; background: transparent; color: var(--green); font-size: 1.35rem; }

.nav { background: var(--green); border-top: 1px solid rgba(255,255,255,.25); }
.nav__inner { display: flex; justify-content: center; gap: 42px; min-height: 31px; align-items: center; }
.nav a { color: var(--white); text-decoration: none; font-size: .68rem; }
.nav a:hover { text-decoration: underline; }

.section-light { background: var(--cream); }
.section-wine { background: var(--wine); color: var(--white); }
.section-green { background: var(--green-dark); color: var(--white); }

.hero { position: relative; overflow: hidden; padding: 28px 0 22px; min-height: 620px; }
.hero::after, .gallery-section::after {
    content: "";
    position: absolute;
    inset: auto -80px 0 auto;
    width: 230px;
    height: 340px;
    background: radial-gradient(circle at 20% 25%, rgba(184,148,61,.12) 0 15%, transparent 16%),
                linear-gradient(135deg, transparent 48%, rgba(64,92,39,.08) 49% 62%, transparent 63%);
    pointer-events: none;
}
.decor--left { position: absolute; left: -50px; top: 70px; width: 170px; height: 370px; opacity: .35; background: linear-gradient(45deg, transparent 45%, rgba(64,92,39,.14) 46% 60%, transparent 61%); }

.anniversary { display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--green-dark); }
.anniversary__number { font: 6.5rem/1 var(--serif); letter-spacing: -8px; }
.anniversary__text { border-left: 1px solid var(--gold); padding-left: 12px; font-family: var(--serif); }
.anniversary__text span { display: block; color: var(--gold); font-size: .9rem; }
.anniversary__text strong { display: block; font-size: .85rem; }
.anniversary__text small { color: var(--gold); }

.hero__title { text-align: center; margin: 15px auto 20px; }
.hero__title h1 { font: 2.1rem var(--serif); margin: 0; color: var(--green-dark); }
.hero__title p { font: 1rem var(--serif); color: var(--gold); margin: 7px 0 0; }

.history-slider { display: grid; grid-template-columns: 55px 1fr 55px; align-items: center; gap: 8px; max-width: 920px; margin: auto; }
.history-slide { display: none; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 25px; min-height: 220px; }
.history-slide.is-active { display: grid; }
.history-slide__text { padding: 16px; background: rgba(255,255,255,.25); }
.history-slide__text strong { display: block; color: var(--gold); font: 1.35rem var(--serif); }
.history-slide__text span { display: block; margin: 8px 0; font-size: .65rem; font-weight: 700; }
.history-slide__text p { font-size: .72rem; line-height: 1.5; }
.placeholder-image { background: linear-gradient(135deg, #d9d4c9, #8d8b83); color: rgba(255,255,255,.85); display: grid; place-items: center; text-align: center; font-family: var(--serif); }
.history-slide__image { min-height: 205px; box-shadow: 0 7px 20px rgba(0,0,0,.12); }
.slider-arrow { border: 0; background: transparent; color: var(--wine); font: 4rem/1 var(--serif); }
.slider-arrow--light { color: var(--cream); }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.dot, .dots i { width: 6px; height: 6px; border-radius: 50%; border: 0; background: var(--gold); padding: 0; }
.dot.is-active { transform: scale(1.5); }

.section-wine { padding: 25px 0 28px; }
.section-green { padding: 25px 0 32px; }
.section-heading { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; color: var(--gold); }
.section-heading span { display: block; width: 86px; height: 1px; background: currentColor; position: relative; }
.section-heading span:first-child::before, .section-heading span:last-child::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: currentColor; top: -2px; }
.section-heading span:first-child::before { left: 0; }
.section-heading span:last-child::after { right: 0; }
.section-heading h2 { margin: 0; font: 1.15rem var(--serif); font-weight: 400; }
.section-heading--light { color: var(--cream); }
.section-heading--gold { color: var(--gold); }

.timeline-slider { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; max-width: 800px; margin: auto; }
.timeline-slide { text-align: center; max-width: 600px; margin: auto; }
.timeline-year { font: 1.8rem var(--serif); border-top: 1px solid var(--cream); border-bottom: 1px solid var(--cream); display: inline-block; padding: 7px 45px; margin-bottom: 20px; }
.eyebrow { font-size: .65rem; font-weight: 700; display: block; }
.timeline-slide p { font-size: .72rem; line-height: 1.55; }
.dots--light i { background: var(--cream); }

.gallery-section { position: relative; padding: 25px 0 38px; overflow: hidden; }
.gallery-grid { width: min(90%, 700px); margin: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.gallery-item { aspect-ratio: 1 / 1; border: 0; background: var(--white); color: transparent; transition: transform .2s, box-shadow .2s; }
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 7px 20px rgba(0,0,0,.15); }

.videos-section { padding-bottom: 45px; }
.video-grid { width: min(90%, 700px); margin: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
.video-card { margin: 0; }
.video-placeholder { aspect-ratio: 16 / 9; border-radius: 9px; background: #f9f7f1; color: var(--wine); display: grid; place-items: center; font-size: 2rem; }
.video-card h3 { font: .78rem var(--serif); font-weight: 400; margin: 7px 2px 0; }

.news-section { padding: 25px 0 35px; }
.news-feature { width: min(90%, 700px); margin: auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.news-image { min-height: 170px; }
.news-list article { display: grid; grid-template-columns: 28px 1fr; gap: 8px; border-bottom: 1px solid rgba(184,148,61,.4); padding: 7px 0; }
.news-list article > span { color: var(--wine); font: .8rem var(--serif); }
.news-list h3 { margin: 0 0 3px; font: .78rem var(--serif); color: var(--wine); }
.news-list p { margin: 0; font-size: .62rem; line-height: 1.4; }

.future-section { min-height: 260px; }
.testimonial-slider { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; max-width: 820px; margin: auto; }
.testimonial { display: grid; grid-template-columns: 190px 1fr; gap: 30px; align-items: center; }
.testimonial__photo { width: 170px; height: 170px; border-radius: 50%; border: 2px solid var(--gold); background: linear-gradient(135deg,#bcb5a5,#665f52); display: grid; place-items: center; font-family: var(--serif); }
.testimonial__content p { font-size: .75rem; line-height: 1.5; }
.testimonial__content strong, .testimonial__content small { display: block; }
.testimonial__content strong { font: .85rem var(--serif); color: var(--gold); }
.testimonial__content small { font-size: .65rem; opacity: .8; }
.dots--gold i { background: var(--gold); }

.footer { background: var(--green); color: var(--white); padding: 35px 0 20px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer h3 { font: .8rem var(--serif); color: var(--gold); margin: 0 0 10px; }
.footer a { display: block; color: var(--white); text-decoration: none; font-size: .62rem; line-height: 1.8; }
.footer a:hover { text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 25px; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; font-size: .58rem; }
.footer__seals { color: var(--gold); letter-spacing: 8px; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.78); display: none; align-items: center; justify-content: center; z-index: 50; padding: 25px; }
.lightbox.is-open { display: flex; }
.lightbox__content { width: min(800px, 92vw); aspect-ratio: 16/10; background: #ddd; display: grid; place-items: center; color: #555; font: 1.5rem var(--serif); }
.lightbox__close { position: fixed; top: 18px; right: 25px; border: 0; background: transparent; color: white; font-size: 2.4rem; }

@media (max-width: 700px) {
    .topbar__right { display: none; }
    .nav { display: none; }
    .nav.is-open { display: block; }
    .nav__inner { flex-direction: column; gap: 0; padding: 8px 0; }
    .nav a { width: 100%; padding: 8px; text-align: center; }
    .anniversary__number { font-size: 4.6rem; }
    .hero__title h1 { font-size: 1.65rem; }
    .history-slider { grid-template-columns: 30px 1fr 30px; }
    .history-slide { grid-template-columns: 1fr; }
    .history-slide__image { min-height: 150px; order: -1; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .video-grid { grid-template-columns: 1fr; }
    .news-feature { grid-template-columns: 1fr; }
    .testimonial { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .testimonial__photo { width: 145px; height: 145px; }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* LOGO 135 ANOS — ARTE EXTERNA */
.anniversary--image{width:min(100%,1050px);margin:0 auto;display:flex;justify-content:center}.anniversary--image img{display:block;width:100%;height:auto;max-height:390px;object-fit:contain}
/* CARROSSEL HISTÓRICO — ARTES COMPLETAS */
.history-slider{min-height:360px}.history-slides{position:relative;width:100%;overflow:hidden}.history-slide{display:none!important;width:100%;min-height:0;margin:0}.history-slide.is-active{display:block!important}.history-slide img{display:block;width:100%;height:auto;max-height:390px;object-fit:contain;margin:0 auto}
@media(max-width:700px){.anniversary--image img{max-height:none}.history-slider{min-height:0}.history-slide img{max-height:none}}

/* CORREÇÃO DEFINITIVA DO CARROSSEL: UM ÚNICO SLIDE VISÍVEL */
.history-slider{display:grid;grid-template-columns:55px minmax(0,1fr) 55px;align-items:center;gap:8px;width:100%;max-width:1100px;margin:0 auto;}
.history-viewport{width:100%;overflow:hidden;position:relative;}
.history-slides{position:relative;width:100%;}
.history-slides .history-slide{display:none !important;width:100%;margin:0;min-height:0;}
.history-slides .history-slide.is-active{display:block !important;}
.history-slides .history-slide img{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;margin:0 auto;}
@media(max-width:700px){.history-slider{grid-template-columns:30px minmax(0,1fr) 30px}.history-slides .history-slide img{max-height:none}}


/* CARROSSEL HISTÓRICO — somente uma imagem existe no DOM */
.history-slider {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) 55px;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 0;
}
.history-viewport {
    width: 100%;
    overflow: hidden;
}
.history-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    margin: 0 auto;
}
@media (max-width: 700px) {
    .history-slider {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
    }
    .history-image {
        max-height: none;
    }
}


/* ============================================================
   AJUSTE FINAL DA ABERTURA
   - somente o logo comemorativo como imagem
   - título "Uma janela para a história" maior
============================================================ */
.anniversary--image {
    width: min(100%, 760px);
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
}

.anniversary--image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.hero__title {
    margin-top: 8px;
    margin-bottom: 26px;
}

.hero__title h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.08;
    margin: 0;
}

.hero__title p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-top: 8px;
}

/* GALERIA — imagens reais */
.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #fff;
}
.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lightbox__content {
    width: min(1100px, 92vw);
    height: min(82vh, 800px);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}


/* ============================================================
   LIGHTBOX — GALERIA DE FOTOS
============================================================ */
body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    background: rgba(0, 0, 0, .88);
}

.lightbox.is-open {
    display: flex;
}

.lightbox__content {
    position: relative;
    width: min(1100px, 90vw);
    height: min(82vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.lightbox__content img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 15px 45px rgba(0,0,0,.35);
}

.lightbox__close,
.lightbox__arrow {
    position: fixed;
    z-index: 10001;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.lightbox__close {
    top: 18px;
    right: 24px;
    font-size: 2.5rem;
}

.lightbox__arrow {
    top: 50%;
    transform: translateY(-50%);
    font: 4rem/1 Georgia, "Times New Roman", serif;
    padding: 10px 20px;
}

.lightbox__arrow--left {
    left: 12px;
}

.lightbox__arrow--right {
    right: 12px;
}

.lightbox__counter {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: .7rem;
    letter-spacing: .08em;
}

@media (max-width: 700px) {
    .lightbox {
        padding: 35px 20px;
    }

    .lightbox__content {
        width: 94vw;
        height: 78vh;
    }

    .lightbox__arrow {
        font-size: 2.8rem;
        padding: 8px;
    }

    .lightbox__arrow--left {
        left: 0;
    }

    .lightbox__arrow--right {
        right: 0;
    }
}


/* ============================================================
   MARCOS DA JUSTIÇA — CARROSSEL TEXTUAL
============================================================ */
.text-carousel {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 70px;
    align-items: center;
    max-width: 850px;
    margin: 0 auto;
}
.text-carousel__viewport,
.future-carousel__viewport {
    overflow: hidden;
    width: 100%;
}
.text-carousel__track {
    position: relative;
}
.text-slide {
    display: none;
    text-align: center;
    min-height: 190px;
}
.text-slide.is-active {
    display: block;
}
.text-slide p {
    max-width: 650px;
    margin: 14px auto 0;
}

/* ============================================================
   JUSTIÇA DO FUTURO — CARROSSEL DE DEPOIMENTOS
============================================================ */
.future-carousel {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 70px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}
.future-carousel__track {
    position: relative;
}
.future-slide {
    display: none;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    min-height: 205px;
}
.future-slide.is-active {
    display: grid;
}
.future-slide__photo {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin: 0 auto;
}
.future-slide__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.future-slide__content p {
    font-size: .78rem;
    line-height: 1.5;
}
.future-slide__content strong,
.future-slide__content small {
    display: block;
}
.future-slide__content strong {
    font: .85rem var(--serif);
    color: var(--gold);
}
.future-slide__content small {
    font-size: .65rem;
    opacity: .8;
}

@media (max-width: 700px) {
    .text-carousel,
    .future-carousel {
        grid-template-columns: 35px minmax(0, 1fr) 35px;
    }
    .future-slide {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .future-slide__photo {
        width: 145px;
        height: 145px;
    }
}


/* ============================================================
   VÍDEOS — MINIATURAS YOUTUBE + PLAYER
============================================================ */
.video-card {
    margin: 0;
}
.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 9px;
    background: #111;
}
.video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}
.video-thumb:hover img,
.video-thumb:focus-visible img {
    transform: scale(1.03);
    opacity: .82;
}
.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(101, 28, 33, .94);
    color: #fff;
    font-size: 1.35rem;
    padding-left: 4px;
}
.video-card h3 {
    font: .78rem var(--serif);
    font-weight: 400;
    margin: 7px 2px 0;
}
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0,0,0,.9);
}
.video-lightbox.is-open {
    display: flex;
}
.video-lightbox__content {
    width: min(1100px, 92vw);
    aspect-ratio: 16 / 9;
}
.video-lightbox iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-lightbox__close {
    position: fixed;
    z-index: 10001;
    top: 15px;
    right: 24px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2.6rem;
    cursor: pointer;
}


/* ============================================================
   NOTÍCIAS — LINKS REAIS + IMAGENS DAS MATÉRIAS
============================================================ */
.news-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.news-image {
    display: block;
    width: 100%;
    min-height: 230px;
    overflow: hidden;
    background: #ddd;
}

.news-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    transition: transform .3s ease;
}

.news-image:hover img {
    transform: scale(1.025);
}

.news-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item {
    border-bottom: 1px solid rgba(101, 28, 33, .22);
}

.news-item:last-child {
    border-bottom: 0;
}

.news-item__link {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
}

.news-item__number {
    font-family: var(--serif);
    font-size: .8rem;
    color: var(--wine);
    padding-top: 2px;
}

.news-item h3 {
    margin: 0 0 4px;
    font-family: var(--serif);
    font-size: .9rem;
    line-height: 1.15;
    font-weight: 600;
}

.news-item p {
    margin: 0;
    font-size: .68rem;
    line-height: 1.35;
    opacity: .82;
}

.news-item:hover h3,
.news-item:focus-within h3 {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .news-feature {
        grid-template-columns: 1fr;
    }

    .news-image,
    .news-image img {
        min-height: 190px;
    }
}


/* ============================================================
   AJUSTE — NOTÍCIAS
   A imagem é uma miniatura da matéria, não a matéria inteira.
============================================================ */
.news-feature {
    width: min(100%, 900px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 22px;
    align-items: stretch;
}

.news-image {
    display: block;
    width: 100%;
    height: 250px;
    min-height: 0;
    max-height: 250px;
    overflow: hidden;
    background: #ddd;
}

.news-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
}

.news-list {
    min-width: 0;
    max-height: 250px;
    overflow: hidden;
}

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

.news-item h3,
.news-item p {
    overflow: hidden;
}

@media (max-width: 700px) {
    .news-feature {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 200px;
        max-height: 200px;
    }

    .news-list {
        max-height: none;
    }
}

/* ============================================================
   CORREÇÃO FINAL — TEXTOS DAS NOTÍCIAS
   Conteúdo fixo no HTML: não depende de JavaScript.
============================================================ */
.news-feature {
    width: min(100%, 900px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 22px;
    align-items: stretch;
}

.news-list {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-height: none !important;
    overflow: visible !important;
}

.news-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-bottom: 1px solid rgba(101, 28, 33, .25);
}

.news-item__link {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 0;
    color: #651c21 !important;
    text-decoration: none;
    visibility: visible !important;
}

.news-item__number {
    color: #651c21 !important;
}

.news-item h3 {
    color: #651c21 !important;
    font-family: var(--serif);
    font-size: .88rem;
    line-height: 1.18;
    margin: 0 0 4px;
    visibility: visible !important;
}

.news-item p {
    color: #3f3430 !important;
    font-size: .68rem;
    line-height: 1.35;
    margin: 0;
    visibility: visible !important;
}

@media (max-width: 700px) {
    .news-feature {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   CABEÇALHO — LOGO TJSC NO LUGAR DO TEXTO
============================================================ */
.header__inner {
    min-height: 92px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.brand__logo {
    display: block;
    width: 270px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 700px) {
    .header__inner {
        min-height: 72px;
    }
    .brand__logo {
        width: 210px;
        max-height: 58px;
    }
}

/* ============================================================
   NOTÍCIAS — HOVER DA IMAGEM PRINCIPAL
============================================================ */
.news-feature {
    width: min(100%, 900px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 22px;
    align-items: stretch;
}

.news-image {
    display: block;
    width: 100%;
    height: 250px;
    min-height: 0;
    overflow: hidden;
    background: #ddd;
}

.news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .18s ease, transform .25s ease;
}

.news-list {
    min-width: 0;
    max-height: none;
    overflow: visible;
}

.news-item {
    position: relative;
    transition: background-color .18s ease;
}

.news-item.is-selected {
    background: rgba(101, 28, 33, .045);
}

.news-item__link {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 0;
    text-decoration: none;
    color: #651c21;
}

.news-item h3 {
    margin: 0 0 4px;
    color: #651c21;
    font-family: var(--serif);
    font-size: .88rem;
    line-height: 1.18;
}

.news-item p {
    margin: 0;
    color: #3f3430;
    font-size: .68rem;
    line-height: 1.35;
}

@media (hover: hover) and (pointer: fine) {
    .news-item:hover {
        background: rgba(101, 28, 33, .045);
    }
}

@media (max-width: 700px) {
    .news-feature {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 200px;
    }
}

/* ============================================================
   MENU PRINCIPAL FIXO
   Permanece visível durante toda a navegação da página.
============================================================ */
.site-nav,
nav.site-nav,
.main-nav,
header nav {
    position: sticky;
    top: 0;
    z-index: 5000;
}

/* Garante que a barra tenha uma camada sólida ao ficar fixa. */
.site-nav,
nav.site-nav,
.main-nav,
header nav {
    background-color: #3f5f24;
}

/* Evita que o título da seção fique escondido atrás do menu
   quando o usuário navega pelos links internos. */
section[id] {
    scroll-margin-top: 55px;
}

/* ============================================================
   CORREÇÃO DEFINITIVA — MENU PRINCIPAL FIXO
============================================================ */

    .main-navigation {
        min-height: var(--main-nav-height);
    }
}
