/* ==========================
NOVIDADES — Layout final (fixo esquerda + pills flutuando + box direito)
========================== */

.opt-news{
    width: 100%;
    background: #fff;
}

.opt-news__stage{
    position: relative;
    width: 100%;
    min-height: 450px;
    background: #a8bf7a;

/* IMPORTANTE: permite o box do destaque "sair por cima" sem cortar */
overflow: visible;
}

/* ---------- Esquerda fixa ---------- */
.opt-news__left{
    position: absolute;
    inset: 0 auto 0 0; /* top right bottom left */
    width: 40%;
    margin: 0;
    z-index: 1;
    overflow: hidden;
}

.opt-news__leftImg{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- BG verde (direita) ---------- */
.opt-news__bg{
    position: absolute;
    inset: 0 0 0 auto;
    width: 60%;
    z-index: 0;
}

/* ---------- Pills flutuando sobre a esquerda ---------- */
.opt-news__pills{
    position: absolute;
    z-index: 3;
    left: 30%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 18px;
}

/* Pill */
.opt-pill{
    position: relative;
    width: 240px;
    height: 290px;
    border-radius: 44px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.18);
    transform: translateZ(0);
}

.opt-pill--a{ transform: translateY(24px); }
.opt-pill--b{ transform: translateY(0px); }

.opt-pill__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .22s ease, filter .22s ease;
}

.opt-pill__overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(16, 24, 40, 0.78) 0%,
        rgba(16, 24, 40, 0.30) 55%,
        rgba(16, 24, 40, 0.00) 100%
    );
    opacity: 0;
    transition: opacity .18s ease;
}

.opt-pill__title{
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fff;
    font-weight: 760;
    font-size: 16px;
    line-height: 1.18;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
    text-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

/* hover */
.opt-pill:hover .opt-pill__img{
    transform: scale(1.06);
    filter: contrast(1.02) saturate(1.04);
}
.opt-pill:hover .opt-pill__overlay{ opacity: 1; }
.opt-pill:hover .opt-pill__title{
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Painel direito ---------- */
.opt-news__panel{
    position: absolute;
    inset: 0 0 0 auto;
    width: 35%;
    z-index: 2;

    display: flex;
    align-items: flex-end;       /* ancora o box no "chão" do bloco */
    justify-content: flex-start;

    padding: 26px 64px 26px 40px; /* reduz um pouco para caber melhor na altura */
    box-sizing: border-box;
}

/* BOX “amarrado” */
.opt-news__box{
    width: 100%;
    box-sizing: border-box;

/* Remove o margin-bottom que estava forçando recorte */
margin-bottom: 0;

/* Faz o box "sair por cima" sem cortar e sem afetar a altura do stage */
transform: translateY(-48px);
}

/* espaço branco superior dentro do box */
.opt-news__topSpace{
    height: 42px; /* levemente menor para reduzir risco de corte */
}

/* thumb */
.opt-news__thumb{
    margin: 0 0 14px;
    width: 100%;
    height: 200px; /* reduzido (antes 220) para garantir que caiba no stage */
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(16, 24, 40, 0.16);
}

.opt-news__thumbImg{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* texto */
.opt-news__copy{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opt-news__date{
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.opt-news__title{
    margin: 0;
    font-size: 22px;
    line-height: 1.18;
    font-weight: 820;
    color: #223021;
    letter-spacing: -0.01em;
}

.opt-news__excerpt{
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(25, 33, 25, 0.78);
}

/* botão */
/* ==========================
BOTÃO "LER MAIS" — hover/focus corrigido
========================== */

.opt-news__btn{
    margin-top: 8px;
    width: fit-content;
    text-decoration: none;

    background: rgba(58, 93, 44, 0.88); /* verde padrão */
    color: #ffffff;                    /* texto branco */

    padding: 10px 18px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 650;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.15);
    transition: 
    background-color .15s ease,
    color .15s ease,
    transform .12s ease,
    box-shadow .12s ease;
}

/* HOVER */
.opt-news__btn:hover{
    background: #ffffff;               /* fundo branco */
    color: rgba(58, 93, 44, 0.88);      /* verde do box */
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

/* garante que o ícone herde a cor */
.opt-news__btn:hover .opt-news__btnIcon{
    color: inherit;
}

/* FOCUS (acessibilidade) */
.opt-news__btn:focus,
.opt-news__btn:focus-visible{
    outline: none;
    background: #ffffff;
    color: rgba(58, 93, 44, 0.88);
}

/* ACTIVE (clique) */
.opt-news__btn:active{
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.16);
}

/* VISITED — evita azul padrão do navegador */
.opt-news__btn:visited{
    color: #ffffff;
}
.opt-news__btn:hover:visited{
    color: rgba(58, 93, 44, 0.88);
}


/* dots */
.opt-news__dots{
    margin-top: 14px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.opt-dot{
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0px solid rgba(35, 55, 32, 0.35);
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.opt-dot.is-active{
    background: rgba(35, 55, 32, 0.75);
    border-color: rgba(35, 55, 32, 0.1);
    transform: scale(1.05);
}

/* ---------- Animação suave (fade/slide) ---------- */
.opt-news.is-swapping .opt-news__thumbImg,
.opt-news.is-swapping .opt-news__title,
.opt-news.is-swapping .opt-news__excerpt,
.opt-news.is-swapping .opt-news__date,
.opt-news.is-swapping .opt-pill__img{
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.opt-news__thumbImg,
.opt-news__title,
.opt-news__excerpt,
.opt-news__date{
    transition: opacity .26s ease, transform .26s ease;
}

.opt-pill__img{
    transition: opacity .26s ease, transform .22s ease, filter .22s ease;
}

/* ==========================
RESPONSIVO
========================== */
@media (max-width: 1100px){
    .opt-news__stage{
        overflow: hidden; /* no mobile/stack, não precisa sair por cima */
    }

       .opt-news__left {
        display: none;
    }

    .opt-news__bg{
        position: relative;
        width: 100%;
    }

    .opt-news__panel{
        position: relative;
        width: 100%;
        padding: 18px;
        align-items: flex-start;
    }

    .opt-news__box{
        transform: none;   /* não “sai por cima” em mobile */
        margin-bottom: 0;
    }

    .opt-news__pills{
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        padding: 18px 18px 0;
        overflow-x: auto;
    }

    .opt-news__thumb{
        height: 210px;
    }
}

@media (max-width: 560px){
    .opt-pill{
        width: 170px;
        height: 240px;
        border-radius: 26px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    }

    .opt-news__thumb{
        height: 180px;
    }

    .opt-news__title{
        font-size: 18px;
    }

    .opt-news__topSpace{
        height: 28px;
    }
}


/* =========================================
   MOBILE: mostrar apenas o bloco completo (1 notícia por vez)
   - esconde as pills (2 cards de cima)
   - mantém o rotativo no painel (thumb + texto)
========================================= */
@media (max-width: 767px){

  /* Esconde as 2 notícias pequenas (pills) no mobile */
  .opt-news__pills{
    display: none !important;
  }

  /* Remove padding que existia para as pills */
  .opt-news__stage{
    min-height: auto; /* evita "buraco" no layout */
  }

  /* Garante que o painel/box fique com respiro correto */
  .opt-news__panel{
    padding: 35px; /* mantém coerência sem as pills */
  }
}






/* ==========================
NOVIDADES — anti-flicker + hide placeholders
========================== */

/* enquanto carrega, não mostra conteúdo “de teste” */
.opt-news[data-news="loading"] .opt-news__pills,
.opt-news[data-news="loading"] .opt-news__panel{
    visibility: hidden;
}

/* quando pronto, revela */
.opt-news[data-news="ready"] .opt-news__pills,
.opt-news[data-news="ready"] .opt-news__panel{
    visibility: visible;
}

/* melhora transição (evita “pisca” por reflow rápido) */
.opt-news__thumbImg,
.opt-news__title,
.opt-news__excerpt,
.opt-news__date,
.opt-pill__img{
    will-change: opacity, transform;
}

/* respeita usuários com redução de movimento */
@media (prefers-reduced-motion: reduce){
    .opt-news__thumbImg,
    .opt-news__title,
    .opt-news__excerpt,
    .opt-news__date,
    .opt-pill__img{
        transition: none !important;
    }
}























/* VIEW - NOVIDADES */
/* assets/css/novidade-view.css */

/* assets/css/view-novidades.css */

.nv-page{
  background: #fff;
}

.nv-container{
  padding: 36px 0 60px;
}

.nv-breadcrumb{
  font-size: 14px;
  color: rgba(0,0,0,.55);
  margin: 6px 0 18px;
}
.nv-breadcrumb a{
  color: rgba(0,0,0,.70);
  text-decoration: none;
}
.nv-breadcrumb a:hover{ text-decoration: underline; }

.nv-article{
  background: #fff;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 18px;
  padding: 26px 26px 18px;
  box-shadow: 0 22px 60px rgba(16,24,40,.06);
}

.nv-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  font-size: 13px;
  color: rgba(0,0,0,.62);
  margin-bottom: 10px;
}

.nv-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 16px;
    border-radius: 999px;
    background: none;
    color: rgba(35, 55, 32, .92);
    font-weight: 600;
    border: 1px solid #ddd;
}

.nv-title{
    font-family: "neulis-sans", sans-serif;
    font-weight: 400;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #687159;
    margin: 0 0 10px;
    font-weight: 850;
}

.nv-subtitle{
  font-size: 16px;
  line-height: 1.65;
  color: rgba(25,33,25,.78);
  margin: 0 0 18px;
}

.nv-hero{
  margin: 18px 0 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(16,24,40,.10);
}
.nv-hero img{
  width:100%;
  height: auto;
  display:block;
}

.nv-content{
  font-size: 16px;
  line-height: 1.85;
  color: rgba(25,33,25,.90);
}
.nv-content h2,
.nv-content h3{
  margin-top: 22px;
  margin-bottom: 10px;
  color: #223021;
  font-weight: 800;
}
.nv-content p{ margin: 0 0 25px; }
.nv-content p strong{ font-weight: 800;}
.nv-content ul, .nv-content ol{ padding-left: 20px; margin-bottom: 14px; }
.nv-content blockquote{
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid rgba(103,112,88,.55);
  background: rgba(103,112,88,.10);
  border-radius: 12px;
}

.nv-actionsbar{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(16,24,40,.08);
}
.nv-actionsbar__spacer{ flex: 1; }

/* Botões */
.nv-btn{
  border: 1px solid rgba(16,24,40,.14);
  background: #fff;
  color: rgba(35,55,32,.90);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  transition: transform .12s ease, filter .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
}
.nv-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}
.nv-btn--primary{
  background: rgba(58,93,44,.92);
  border-color: rgba(58,93,44,.12);
  color: #fff;
}
.nv-btn--primary:hover{
  background: rgba(58,93,44,1);
  color:#fff;
}

.nv-side__card{
  position: sticky;
  top: 92px;
  background:#fff;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 22px 60px rgba(16,24,40,.06);
}
.nv-side__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom: 12px;
}
.nv-side__title{
  margin:0;
  font-size: 16px;
  font-weight: 850;
  color:#223021;
}
.nv-side__link{
  font-size: 13px;
  text-decoration:none;
  color: rgba(58,93,44,.95);
  font-weight: 700;
}
.nv-side__link:hover{ text-decoration: underline; }

.nv-recent{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.nv-recent__item{
  display:flex;
  gap: 12px;
  text-decoration:none;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(16,24,40,.06);
  transition: transform .12s ease, background .12s ease;
}
.nv-recent__item:hover{
  transform: translateY(-1px);
  background: rgba(103,112,88,.06);
}
.nv-recent__thumb{
  width: 76px;
  height: 62px;
  border-radius: 12px;
  overflow:hidden;
  flex: 0 0 auto;
  background: rgba(16,24,40,.06);
}
.nv-recent__thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.nv-recent__body{
  display:flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nv-recent__title{
  font-size: 13px;
  font-weight: 800;
  color: rgba(25,33,25,.92);
  line-height: 1.25;
  margin:0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.nv-recent__meta{
  font-size: 12px;
  color: rgba(0,0,0,.55);
}

.nv-bottom{
  padding: 18px 0;
  color: rgba(0,0,0,.55);
  font-size: 13px;
}
.nv-bottom__inner{
  display:flex;
  justify-content:center;
}

/* Skeleton */
.nv-loading{
  background:#fff;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 18px;
  padding: 26px;
}
.nv-skel{
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(16,24,40,.06), rgba(16,24,40,.10), rgba(16,24,40,.06));
  background-size: 240% 100%;
  animation: nvShimmer 1.1s linear infinite;
  margin-bottom: 12px;
}
.nv-skel--title{ height: 28px; width: 78%; }
.nv-skel--meta{ height: 14px; width: 45%; }
.nv-skel--img{ height: 260px; width: 100%; }
.nv-skel--p{ height: 14px; width: 100%; }
@keyframes nvShimmer{
  0%{ background-position: 0% 0; }
  100%{ background-position: 240% 0; }
}

@media (max-width: 991px){
  .nv-side__card{ position: static; }
  .nv-article{ padding: 20px 18px 16px; }
}




/* Evita espaçamento em parágrafo vazio do editor rico */
.nv-content p:empty{
    display: none !important;
}
