/* ======================================================================
   ROUND 9 — correções de clipping + editorial news + fake-news dossiê
   ====================================================================== */

:root {
  --r9-navy: #052a47;
  --r9-navy-2: #073a60;
  --r9-green: #12B24B;
  --r9-yellow: #FFCB05;
  --r9-red: #D91920;
  --r9-paper: #F3F4F2;
}

/* ----------------------------------------------------------------------
   01 / PRINCIPAIS REALIZAÇÕES — texto sempre inteiro
   ---------------------------------------------------------------------- */
.accomplishments {
  overflow-x: clip !important;
}

.accomplishments-shell {
  width: min(100% - (2 * var(--r5-page-pad, 24px)), 1500px) !important;
  max-width: 1500px !important;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
  gap: clamp(42px, 5vw, 84px) !important;
}

.accomplishments-head {
  min-width: 0 !important;
  width: 100% !important;
  overflow: visible !important;
}

.accomplishments-head h2 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  padding-right: .04em !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
  font-size: clamp(3rem, 5vw, 6.2rem) !important;
  line-height: .94 !important;
  letter-spacing: -.055em !important;
}

.accomplishments-glass {
  min-width: 0 !important;
}

/* ----------------------------------------------------------------------
   02 / ÚLTIMAS NOTÍCIAS — posters editoriais no fundo azul profundo
   ---------------------------------------------------------------------- */
.news {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--r9-navy) !important;
  background-image:
    linear-gradient(115deg, rgba(0,0,0,.18), transparent 38%),
    radial-gradient(circle at 88% 14%, rgba(18,178,75,.13), transparent 24%) !important;
}

.news::before {
  content: "NOTÍCIAS";
  position: absolute;
  z-index: 0;
  top: clamp(26px, 4vw, 58px);
  right: -2vw;
  color: rgba(255,255,255,.035);
  font: 900 clamp(7rem, 18vw, 20rem)/.75 "Gotham", sans-serif;
  letter-spacing: -.08em;
  pointer-events: none;
}

.news > .container {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: none !important;
  padding-inline: clamp(24px, 5vw, 92px) !important;
}

.news .section-head {
  align-items: end !important;
  margin-bottom: 26px !important;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.news .section-head h2 {
  color: #fff !important;
  max-width: none !important;
  font-size: clamp(3.2rem, 6.5vw, 7.4rem) !important;
  line-height: .88 !important;
}

.news .link { color: var(--r9-yellow) !important; }

.news-toolbar {
  margin: 0 0 32px !important;
  gap: 8px !important;
}

.news .tab-btn {
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.78) !important;
  box-shadow: none !important;
}

.news .tab-btn.active {
  border-color: var(--r9-green) !important;
  background: var(--r9-green) !important;
  color: #fff !important;
}

.news-grid {
  counter-reset: r9news;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: clamp(14px, 1.7vw, 28px) !important;
  align-items: stretch !important;
}

.news-card,
.news-card:first-child,
.news-card:nth-child(2),
.news-card:nth-child(3) {
  counter-increment: r9news;
  position: relative !important;
  display: block !important;
  min-height: clamp(520px, 43vw, 680px) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #092f4d !important;
  box-shadow: none !important;
  transform: none !important;
}

.news-card::before {
  content: "0" counter(r9news) !important;
  position: absolute !important;
  z-index: 8 !important;
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--r9-yellow) !important;
  font: 900 1.15rem/1 "Gotham", sans-serif !important;
  letter-spacing: .08em;
}

.news-card::after { display: none !important; }

.news-image,
.news-image--photo,
.news-card:first-child .news-image--photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}

.news-image--photo img,
.news-card:first-child .news-image--photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: saturate(.88) contrast(1.06) brightness(.82) !important;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .4s ease !important;
}

.news-card:hover .news-image--photo img {
  transform: scale(1.025) !important;
  filter: saturate(.98) contrast(1.06) brightness(.88) !important;
}

.news-image::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(to top, rgba(3,23,39,.99) 0%, rgba(3,27,46,.92) 36%, rgba(3,29,49,.28) 68%, rgba(2,18,31,.08) 100%) !important;
  pointer-events: none;
}

.news-credit { opacity: .58 !important; bottom: 14px !important; right: 14px !important; }

.news-badge {
  z-index: 5 !important;
  top: 18px !important;
  left: 18px !important;
  padding: 8px 11px 7px !important;
  border-radius: 4px !important;
  background: var(--r9-green) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.news-body,
.news-card:first-child .news-body {
  position: absolute !important;
  z-index: 6 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  min-height: 0 !important;
  padding: clamp(28px, 2.8vw, 44px) !important;
  padding-top: 120px !important;
  background: transparent !important;
  color: #fff !important;
}

.news-date {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--r9-yellow) !important;
  font-size: .72rem !important;
  letter-spacing: .08em !important;
}

.news-card h3,
.news-card:first-child h3 {
  max-width: 18ch !important;
  color: #fff !important;
  font-size: clamp(1.55rem, 2vw, 2.45rem) !important;
  line-height: .98 !important;
  letter-spacing: -.035em !important;
}

.news-card p {
  max-width: 42ch;
  margin-top: 15px !important;
  color: rgba(255,255,255,.72) !important;
  font-size: .88rem !important;
}

.news-card .btn {
  display: inline-flex !important;
  min-height: 42px !important;
  margin-top: 20px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: var(--r9-green) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* ----------------------------------------------------------------------
   03 / COMBATE À FAKE NEWS — cards dossiê com selo individual
   ---------------------------------------------------------------------- */
.fake-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: clamp(14px, 1.45vw, 24px) !important;
  margin-top: 34px !important;
  border: 0 !important;
  background: transparent !important;
}

.fake-card,
.fake-card:nth-child(even) {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 500px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  border-radius: 5px !important;
  background: #101214 !important;
  box-shadow: none !important;
}

.fake-card::before { display: none !important; }

.fake-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #202326;
}

.fake-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,11,12,.88), transparent 48%),
    linear-gradient(120deg, rgba(217,25,32,.14), transparent 44%);
  pointer-events: none;
}

.fake-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.62) contrast(1.12) brightness(.62) saturate(.68);
}

.fake-card__number {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--r9-red);
  color: #fff;
  font: 900 1.3rem/1 "Gotham", sans-serif;
  box-shadow: 5px 5px 0 rgba(0,0,0,.24);
}

.fake-card__stamp {
  position: absolute;
  z-index: 4;
  right: 13px;
  bottom: 12px;
  padding: 7px 9px 6px;
  border: 2px solid #F03A3E;
  color: #F03A3E;
  background: rgba(7,8,9,.52);
  font: 900 .68rem/1 "Gotham", sans-serif;
  letter-spacing: .09em;
  transform: rotate(-4deg);
}

.fake-body {
  flex: 1;
  padding: 24px 22px 22px !important;
}

.fake-card__meta {
  display: block;
  margin-bottom: 9px;
  color: rgba(238,233,223,.55);
  font: 700 .67rem/1.2 "Gotham", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fake-body h3 {
  color: #fff !important;
  font-size: clamp(1.16rem, 1.3vw, 1.5rem) !important;
  line-height: 1.04 !important;
}

.fake-body p {
  margin-top: 14px !important;
  color: rgba(255,255,255,.65) !important;
  font-size: .83rem !important;
  line-height: 1.55 !important;
}

.fake-card .share-bar {
  min-height: 45px;
  padding-inline: 22px !important;
  border-top: 1px solid rgba(255,255,255,.09) !important;
  background: #0B0D0F !important;
}

/* ----------------------------------------------------------------------
   04 / DEPOIMENTOS — quatro fotografias locais fornecidas
   ---------------------------------------------------------------------- */
.testimonial-photo--image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: saturate(.95) contrast(1.02) !important;
}

.testimonial-card:nth-child(1) .testimonial-photo--image img { object-position: 60% center !important; }
.testimonial-card:nth-child(2) .testimonial-photo--image img { object-position: 48% center !important; }
.testimonial-card:nth-child(3) .testimonial-photo--image img { object-position: 46% center !important; }
.testimonial-card:nth-child(4) .testimonial-photo--image img { object-position: 55% center !important; }

.testimonial-card:nth-child(n) .testimonial-overlay {
  background: linear-gradient(to top, rgba(0,18,34,.98) 0%, rgba(0,24,48,.84) 36%, rgba(0,25,48,.20) 70%, rgba(0,25,48,.02) 100%) !important;
}

/* ----------------------------------------------------------------------
   RESPONSIVO
   ---------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .fake-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .news-card,
  .news-card:first-child,
  .news-card:nth-child(2),
  .news-card:nth-child(3) { min-height: 580px !important; }
}

@media (max-width: 999px) {
  .accomplishments-shell { grid-template-columns: 1fr !important; }
  .accomplishments-head h2 {
    max-width: 14ch !important;
    font-size: clamp(3rem, 10vw, 5.4rem) !important;
  }
  .news-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .news-card:nth-child(3) { grid-column: 1 / -1 !important; min-height: 520px !important; }
}

@media (max-width: 699px) {
  .accomplishments {
    overflow: hidden !important;
  }
  .accomplishments-shell {
    width: 100% !important;
    padding-inline: 22px !important;
  }
  .accomplishments-head h2 {
    max-width: 100% !important;
    font-size: clamp(2.7rem, 12.5vw, 4rem) !important;
    line-height: .94 !important;
    letter-spacing: -.05em !important;
  }

  .news { padding-block: 92px !important; }
  .news > .container { padding-inline: 20px !important; }
  .news .section-head { align-items: flex-start !important; }
  .news .section-head h2 { font-size: clamp(3rem, 13vw, 5rem) !important; }
  .news-grid { grid-template-columns: 1fr !important; }
  .news-card,
  .news-card:first-child,
  .news-card:nth-child(2),
  .news-card:nth-child(3) {
    grid-column: auto !important;
    min-height: 560px !important;
  }
  .news-body,
  .news-card:first-child .news-body { padding: 110px 24px 28px !important; }
  .news-card h3,
  .news-card:first-child h3 { font-size: clamp(1.55rem, 7.2vw, 2.2rem) !important; }

  .fake-grid { grid-template-columns: 1fr !important; }
  .fake-card,
  .fake-card:nth-child(even) { min-height: 0 !important; }

  .testimonial-card:nth-child(n) .testimonial-photo--image img { object-position: center !important; }
}
