/* Notícias: arquivo dinâmico e matéria individual. */
.news-page .news-eyebrow,
.news-page .news-article-category {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-page.news-list-page .noticias-header {
  position: relative;
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(circle at 88% 12%, rgba(39, 209, 142, 0.3), transparent 25%),
    linear-gradient(125deg, #043f31 0%, #087a53 58%, #08a66b 100%);
}

.news-page.news-list-page .noticias-header::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -10rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.news-page.news-list-page .noticias-header .container {
  position: relative;
  z-index: 1;
}

.news-page.news-list-page .noticias-header p {
  margin-right: 0;
  margin-left: 0;
}

.news-search-form {
  max-width: 850px;
  margin: 0 auto 1.4rem;
}

.news-search-form > label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--color-primary-dark);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
}

.news-search-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(14, 17, 20, 0.07);
}

.news-search-control > i {
  margin-left: 1rem;
  color: var(--color-primary-dark);
}

.news-search-control input {
  min-width: 0;
  min-height: 54px;
  padding: 0.75rem 1rem;
  border: 0;
  outline: 0;
  color: var(--color-text);
  background: transparent;
  font: inherit;
}

.news-search-control button {
  align-self: stretch;
  padding: 0.75rem 1.4rem;
  border: 0;
  color: #fff;
  background: var(--color-primary-dark);
  font: inherit;
  font-weight: 800;
}

.news-search-control button:hover {
  background: #063f31;
}

.news-search-control:focus-within {
  border-color: var(--color-primary-dark);
  box-shadow: 0 0 0 3px rgba(8, 166, 107, 0.15);
}

.news-page.news-list-page .noticias-filtros {
  margin-bottom: 2rem;
}

.news-page.news-list-page .filtro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.news-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #edf7f2;
}

.news-results-summary p {
  margin: 0;
  color: var(--color-muted);
}

.news-results-summary a {
  flex-shrink: 0;
  color: var(--color-primary-dark);
  font-weight: 800;
}

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

.news-archive-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(14, 17, 20, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.news-archive-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 166, 107, 0.32);
  box-shadow: 0 20px 42px rgba(14, 17, 20, 0.12);
}

.news-archive-card:first-child {
  grid-column: span 2;
}

.news-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7f2ed;
}

.news-archive-card:first-child .news-card-media {
  aspect-ratio: 2 / 1;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease;
}

.news-card-media--placeholder {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, #e9f7f1 0%, #fff 100%);
}

.news-card-media--placeholder img {
  object-fit: contain;
}

.news-archive-card:hover .news-card-media img {
  transform: scale(1.035);
}

.news-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.news-card-meta span {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: #e9f7f1;
  font-weight: 800;
}

.news-card-body h2 {
  margin: 0 0 0.75rem;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.32;
}

.news-archive-card:first-child .news-card-body h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
}

.news-card-body h2 a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.news-card-body p {
  margin: 0 0 1.1rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--color-primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.news-card-link i {
  transition: transform 180ms ease;
}

.news-card-link:hover i {
  transform: translateX(4px);
}

.news-page.news-list-page .noticias-paginacao .page-numbers {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-primary-dark);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.news-page.news-list-page .noticias-paginacao .page-numbers.current,
.news-page.news-list-page .noticias-paginacao a.page-numbers:hover {
  color: #fff;
  border-color: var(--color-primary-dark);
  background: var(--color-primary-dark);
}

.news-empty-state {
  max-width: 680px;
  margin: 1rem auto;
  padding: clamp(2rem, 6vw, 3.5rem);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.news-empty-state > i {
  color: var(--color-primary-dark);
  font-size: 2.6rem;
}

.news-empty-state h2 {
  margin: 0.9rem 0 0.5rem;
  color: var(--color-primary-dark);
}

.news-empty-state p {
  margin: 0;
  color: var(--color-muted);
}

.news-empty-state a {
  display: inline-flex;
  margin-top: 1.2rem;
  padding: 0.75rem 1.1rem;
  border-radius: 9px;
  color: #fff;
  background: var(--color-primary-dark);
  font-weight: 800;
}

/* Matéria individual */
.news-page.news-article-page .news-article-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 12%, rgba(39, 209, 142, 0.25), transparent 25%),
    linear-gradient(125deg, #043f31 0%, #087a53 60%, #08a66b 100%);
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.news-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.news-breadcrumb a:hover {
  color: #fff;
}

.news-breadcrumb i {
  font-size: 0.68rem;
}

.news-page.news-article-page .news-article-media--editorial {
  aspect-ratio: auto;
}

.news-page.news-article-page .news-article-media img {
  height: auto;
  max-height: 720px;
  object-fit: contain;
}

.news-page.news-article-page .news-article-copy img,
.news-page.news-article-page .news-article-copy video,
.news-page.news-article-page .news-article-copy iframe {
  max-width: 100%;
}

.news-page.news-article-page .news-article-copy img {
  height: auto;
  border-radius: 12px;
}

.news-page.news-article-page .news-article-copy figure {
  max-width: 100%;
  margin: 1.5rem 0;
}

.news-page.news-article-page .news-article-copy .wp-caption {
  max-width: 100%;
}

.news-page.news-article-page .news-article-copy .wp-caption-text {
  margin-top: 0.45rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.news-content-pages {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 900px) {
  .news-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-archive-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .news-page.news-list-page .noticias-header {
    text-align: center;
  }

  .news-page.news-list-page .noticias-header p {
    margin-right: auto;
    margin-left: auto;
  }

  .news-search-control {
    grid-template-columns: auto minmax(0, 1fr);
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .news-search-control > i {
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
  }

  .news-search-control input {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-left: 2.8rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
  }

  .news-search-control button {
    grid-column: 1 / -1;
    min-height: 48px;
    margin-top: 0.65rem;
    border-radius: 12px;
  }

  .news-results-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-archive-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .news-archive-card:first-child {
    grid-column: auto;
  }

  .news-archive-card:first-child .news-card-media,
  .news-card-media {
    aspect-ratio: 16 / 10;
  }

  .news-card-body,
  .news-page.news-article-page .news-related-card-content {
    padding: 1.1rem;
  }
}

/* ==========================================================
   FAEDI 0.15.15 — galeria editorial automática das matérias
   ========================================================== */
.news-page.news-article-page .news-article-content {
  width: min(1080px, calc(100% - 2rem));
}

.news-page.news-article-page .news-article-copy,
.news-page.news-article-page .news-article-share,
.news-page.news-article-page .news-article-navigation {
  width: min(860px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.news-page.news-article-page .news-article-media--single {
  width: min(960px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.news-page.news-article-page .news-editorial-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.35rem);
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

.news-page.news-article-page .news-editorial-gallery--lead.is-first-portrait {
  grid-template-columns: minmax(230px, 0.76fr) minmax(0, 1.24fr);
}

.news-page.news-article-page .news-editorial-gallery--lead.is-second-portrait {
  grid-template-columns: minmax(0, 1.24fr) minmax(230px, 0.76fr);
}

.news-page.news-article-page .news-editorial-gallery--inline {
  margin: 1.75rem 0;
}

.news-page.news-article-page .news-editorial-gallery-item {
  min-width: 0;
  display: block;
  align-self: start;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #f4f8f6;
  box-shadow: 0 14px 34px rgba(14, 45, 33, 0.09);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.news-page.news-article-page .news-editorial-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(14, 45, 33, 0.13);
}

.news-page.news-article-page .news-editorial-gallery-item figure,
.news-page.news-article-page .news-editorial-gallery-item .wp-block-image,
.news-page.news-article-page .news-editorial-gallery-item .wp-caption {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.news-page.news-article-page .news-editorial-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.news-page.news-article-page .news-editorial-gallery-item figcaption,
.news-page.news-article-page .news-editorial-gallery-item .wp-caption-text {
  margin: 0;
  padding: 0.75rem 0.9rem;
  color: var(--color-muted);
  background: #fff;
  font-size: 0.88rem;
  line-height: 1.45;
}

.news-page.news-article-page .news-share-x {
  width: 1rem;
  height: 1rem;
  display: inline-grid;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 700px) {
  .news-page.news-article-page .news-article-content {
    width: calc(100% - 1rem);
  }

  .news-page.news-article-page .news-editorial-gallery,
  .news-page.news-article-page .news-editorial-gallery--lead.is-first-portrait,
  .news-page.news-article-page .news-editorial-gallery--lead.is-second-portrait {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-page.news-article-page .news-editorial-gallery-item {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-page.news-article-page .news-editorial-gallery-item {
    transition: none;
  }

  .news-page.news-article-page .news-editorial-gallery-item:hover {
    transform: none;
  }
}
