/* ===================================================================
   GRUPO TANGIPAR — folha de estilo do site institucional
   Bootstrap 5.3 + Bootstrap Icons via CDN. Nada mais.
   Ordem: tokens → base → utilitários → header → seções (ordem da home)
          → footer → flutuantes → responsivo
   =================================================================== */

/* ---------- Tokens ----------
   As cores do cliente chegam do painel como --color-<slug> (ver header.php).
   O fallback em hex garante o visual do layout enquanto o slug não existir. */
:root {
  --tg-navy: var(--color-primaria, var(--color-primary, #1d3140));
  --tg-navy-deep: #14222d;
  --tg-blue: var(--color-secundaria, var(--color-secondary, #2c5282));
  --tg-blue-soft: #3d6ba3;
  --tg-gold: var(--color-terciaria, var(--color-destaque, #d69e2e));
  --tg-gold-soft: #e8bb63;

  --tg-ink: #1c2733;
  --tg-body: #4a5763;
  --tg-muted: #7a8794;
  --tg-line: #e2e6ea;
  --tg-surface: #ffffff;
  --tg-surface-alt: #f4f6f8;
  --tg-surface-gray: #f1f1f1;

  --tg-radius-sm: 10px;
  --tg-radius: 16px;
  --tg-radius-lg: 24px;
  --tg-radius-pill: 999px;

  --tg-shadow-sm: 0 2px 10px rgba(20, 34, 45, 0.06);
  --tg-shadow: 0 12px 32px rgba(20, 34, 45, 0.1);
  --tg-shadow-lg: 0 24px 60px rgba(20, 34, 45, 0.16);

  --tg-header-h: 92px;
  --tg-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--tg-header-h);
}

body {
  color: var(--tg-body);
  background-color: var(--tg-surface);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--tg-ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

a {
  color: var(--tg-blue);
  text-decoration: none;
  transition: color 0.2s var(--tg-ease);
}

a:hover {
  color: var(--tg-navy);
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--tg-gold);
  color: var(--tg-navy-deep);
}

:focus-visible {
  outline: 3px solid var(--tg-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Ícones ----------
   O <i class="bi"> continua sendo o elemento que as demais regras miram
   (.btn-tg i, .tg-pillar-head i, .tg-share-link i...). O SVG dentro dele herda
   tamanho de font-size e cor de color, igual à fonte de ícones que substituiu.
   O -0.125em repete o alinhamento de base do Bootstrap Icons. */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
  line-height: 1;
  flex: 0 0 auto;
}

.bi > svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* ---------- Utilitários de seção ---------- */

/* Páginas sem hero: compensa o header fixo (a home não precisa, o hero já compensa). */
.tg-page {
  padding-top: calc(var(--tg-header-h) + 64px);
  min-height: 70svh;
}

.tg-section {
  padding: 36px 0;
  position: relative;
}

.tg-section--tight {
  padding: 20px 0;
}

.tg-section--gray {
  /* background-color: var(--tg-surface-gray); */
}

/* Bloco navy que substitui o "título em caixa" do layout */
.tg-label {
  display: inline-block;
  background: var(--tg-navy);
  color: #fff;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding: 14px 32px;
  border-radius: var(--tg-radius-sm);
  margin-bottom: 28px;
  position: relative;
}

.tg-label::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  height: 3px;
  background: var(--tg-gold);
  border-radius: 3px 3px 0 0;
}

.tg-label--lg {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  text-transform: uppercase;
}

/* Olho de seção (kicker) */
.tg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tg-blue);
  margin-bottom: 14px;
}

.tg-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--tg-gold);
  display: block;
}

.tg-title {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  margin-bottom: 18px;
}

.tg-lead {
  font-size: 1.0625rem;
  color: var(--tg-body);
  max-width: 62ch;
}

.tg-lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Botões ---------- */
.btn-tg {
  --btn-bg: var(--tg-navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--tg-radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 28px;
  line-height: 1.2;
  transition:
    transform 0.2s var(--tg-ease),
    box-shadow 0.2s var(--tg-ease),
    background-color 0.2s var(--tg-ease),
    color 0.2s var(--tg-ease);
}

.btn-tg:hover,
.btn-tg:focus {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--tg-shadow);
}

.btn-tg i {
  font-size: 1.05em;
}

.btn-tg--gold {
  --btn-bg: var(--tg-gold);
  --btn-fg: var(--tg-navy-deep);
}

.btn-tg--blue {
  --btn-bg: var(--tg-blue);
}

.btn-tg--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-tg--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--tg-navy);
}

.btn-tg--outline {
  background: transparent;
  border-color: var(--tg-navy);
  color: var(--tg-navy);
}

.btn-tg--outline:hover {
  background: var(--tg-navy);
  color: #fff;
}

/* ---------- Placeholder de imagem ----------
   Enquanto os arquivos finais não chegam, o bloco mantém a proporção
   (evita layout shift) e sinaliza o que entra ali. Trocar por <img>. */
.tg-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  aspect-ratio: 16 / 9;
  color: var(--tg-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 5px;
  overflow: hidden;
}

.tg-ph i {
  font-size: 1.75rem;
  opacity: 0.55;
}

/* O hero da home é background CSS, então não dá para usar <picture>: o
   image-set() entrega AVIF (44% menor) a quem suporta e cai no JPEG no resto.
   A primeira declaração é o fallback para navegador sem image-set. */
.tg-ph--dark {
  background: url("../images/bg-hero.jpg") no-repeat top center / cover;
  background-image: image-set(
    url("../images/bg-hero.avif") type("image/avif"),
    url("../images/bg-hero.webp") type("image/webp"),
    url("../images/bg-hero.jpg") type("image/jpeg")
  );
  color: rgba(255, 255, 255, 0.5);
}

/* Vídeo institucional: o iframe do YouTube tem width/height fixos no HTML (que
   seguram o CLS) e aqui vira fluido, senão estoura a tela no celular. */
.tg-video {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--tg-radius);
}

/* ===================================================================
   HEADER
   =================================================================== */
.site-header-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1040;
  transition:
    background-color 0.3s var(--tg-ease),
    box-shadow 0.3s var(--tg-ease);
}

.site-header-wrap.is-stuck,
/* Sem hero (404, internas) o fundo é permanente — vale mesmo sem JavaScript. */
body:has(.tg-page) .site-header-wrap {
  background: rgba(20, 34, 45, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.28);
}

.site-header,
.header-mobile {
  padding: 18px 0;
  transition: padding 0.3s var(--tg-ease);
}

.site-header-wrap.is-stuck .site-header,
.site-header-wrap.is-stuck .header-mobile {
  padding: 10px 0;
}

.header-logo img {
  width: auto;
  height: 56px;
  transition: height 0.3s var(--tg-ease);
}

.site-header-wrap.is-stuck .header-logo img {
  height: 46px;
}

.site-header .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: bold;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}

.site-header .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--tg-gold);
  transition: right 0.25s var(--tg-ease);
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link.active {
  color: #fff;
}

.site-header .navbar-nav .nav-link:hover::after,
.site-header .navbar-nav .nav-link.active::after {
  right: 0;
}

/* Seta de link externo (Trabalhe conosco): discreta ao lado do rótulo. */
.nav-link-external {
  font-size: 0.75em;
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.65;
}

a:hover > .nav-link-external {
  opacity: 1;
}

/* Header mobile */
.header-mobile-menu {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s var(--tg-ease);
}

.header-mobile-menu:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Offcanvas */
.main-nav-offcanvas {
  background: var(--tg-navy-deep);
  color: #fff;
  width: min(340px, 86vw);
}

.mobile-sidebar-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
}

.mobile-sidebar-logo img {
  width: auto;
  height: 48px;
}

.mobile-sidebar-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.15rem;
  padding: 8px;
  line-height: 1;
}

.mobile-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 12px 0;
}

.mobile-sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 15px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-sidebar-nav a:hover {
  color: var(--tg-gold);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-sidebar-cta {
  padding: 24px;
}

.mobile-sidebar-cta .btn-tg {
  justify-content: center;
  width: 100%;
}

.mobile-sidebar-contact {
  padding: 0 24px 28px;
  font-size: 0.9375rem;
}

.mobile-sidebar-contact span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--tg-gold-soft);
  margin-bottom: 6px;
}

.mobile-sidebar-contact a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===================================================================
   HERO
   =================================================================== */
.tg-hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--tg-header-h) + 64px);
  background: var(--tg-navy-deep);
  overflow: hidden;
}

.tg-hero-media {
  position: absolute;
  inset: 0;
}

.tg-hero-media .tg-ph {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.tg-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Véu escuro: mantém o texto legível sobre qualquer foto aérea */
.tg-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    245deg,
    rgb(21 50 73 / 82%) 0%,
    rgb(20 34 45 / 29%) 34%,
    rgb(20 34 45) 68%,
    rgba(20, 34, 45, 0.94) 100%
  );
}

.tg-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 56px;
}

.tg-hero-content {
  max-width: 720px;
  color: #fff;
}

.tg-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--tg-radius-pill);
  margin-bottom: 22px;
}

.tg-hero-kicker i {
  color: var(--tg-gold);
}

.tg-hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.tg-hero h1 em {
  font-style: normal;
  color: var(--tg-gold);
}

.tg-hero p {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.84);
  max-width: 56ch;
  margin-bottom: 30px;
}

.tg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Faixa de números encostada no rodapé do hero */
.tg-hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 34, 45, 0.55);
  backdrop-filter: blur(8px);
}

.tg-hero-stat {
  padding: 24px 8px;
  text-align: center;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.tg-hero-stat:last-child {
  border-right: 0;
}

.tg-hero-stat strong {
  display: block;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  line-height: 1.1;
  color: var(--tg-gold);
}

.tg-hero-stat span {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 6px;
}

/* ===================================================================
   QUEM SOMOS — Missão / Visão / Valores
   =================================================================== */
.tg-pillar {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tg-gold);
  border-radius: 10px;
  box-shadow: var(--tg-shadow-sm);
  transition:
    transform 0.3s var(--tg-ease),
    box-shadow 0.3s var(--tg-ease);
}

.tg-pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--tg-shadow);
}

.tg-pillar-head {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--tg-blue);
  color: #fff;
  padding: 18px 28px;
  border-radius: 10px 10px 0 0px;
  margin: -1px -1px 0;
}

.tg-pillar-head i {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--tg-gold-soft);
}

.tg-pillar-head h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

.tg-pillar-body {
  padding: 28px;
  flex: 1 1 auto;
  font-size: 1rem;
}

.tg-pillar-body p:last-child {
  margin-bottom: 0;
}

.tg-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.tg-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.tg-check-list i {
  color: var(--tg-blue);
  font-size: 1.15rem;
  line-height: 1.45;
  flex: 0 0 auto;
}

/* ---------- Boas-vindas ---------- */
.tg-welcome {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.tg-welcome h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  margin-bottom: 20px;
}

.tg-welcome p {
  font-size: 1.0625rem;
}

.tg-welcome p:last-child {
  margin-bottom: 0;
}

/* ===================================================================
   ONDE ESTAMOS — mosaico + texto
   =================================================================== */
.tg-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  min-height: 520px;
}

.tg-mosaic > * {
  border-radius: var(--tg-radius);
  overflow: hidden;
  box-shadow: var(--tg-shadow-sm);
}

.tg-mosaic > *:nth-child(1) {
  grid-row: 1 / 3;
}

.tg-mosaic > *:nth-child(2) {
  grid-row: 1 / 2;
}

.tg-mosaic > *:nth-child(3) {
  grid-row: 2 / 4;
}

.tg-mosaic > *:nth-child(4) {
  grid-row: 3 / 4;
}

.tg-mosaic .tg-ph {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.tg-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tg-facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--tg-line);
  border-left: 3px solid var(--tg-gold);
  border-radius: var(--tg-radius-sm);
  padding: 14px 18px;
  font-size: 0.9375rem;
  box-shadow: var(--tg-shadow-sm);
}

.tg-facts i {
  color: var(--tg-blue);
  font-size: 1.15rem;
  line-height: 1.5;
  flex: 0 0 auto;
}

/* ===================================================================
   DISTRIBUIÇÃO PARA TODO O BRASIL
   =================================================================== */
.tg-map-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-map-wrap .tg-ph {
  aspect-ratio: 4 / 5;
  max-width: 520px;
  margin: 0 auto;
}

.tg-cd-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tg-cd {
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius);
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--tg-shadow-sm);
  transition:
    transform 0.25s var(--tg-ease),
    border-color 0.25s var(--tg-ease);
}

.tg-cd:hover {
  transform: translateY(-4px);
  border-color: var(--tg-gold);
}

.tg-cd i {
  font-size: 1.5rem;
  color: var(--tg-blue);
}

.tg-cd strong {
  display: block;
  color: var(--tg-ink);
  font-size: 1.0625rem;
  margin-top: 8px;
}

.tg-cd span {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tg-muted);
}

/* Faixa de destaque (frase institucional) */
.tg-quote {
  background: var(--tg-surface-gray);
  padding: 42px 0;
  text-align: center;
}

.tg-quote p {
  margin: 0 auto;
  max-width: 66ch;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.375rem);
  font-weight: 600;
  color: var(--tg-ink);
  line-height: 1.5;
}

.tg-quote strong {
  color: var(--tg-blue);
}

/* ===================================================================
   CONTATO
   =================================================================== */
.tg-form-card {
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-lg);
  padding: 36px;
  box-shadow: var(--tg-shadow);
}

.tg-form-card .form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tg-navy);
  margin-bottom: 6px;
}

.tg-form-card .form-control {
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-sm);
  padding: 13px 16px;
  font-size: 0.9375rem;
  color: var(--tg-ink);
  background: #fbfcfd;
  transition:
    border-color 0.2s var(--tg-ease),
    box-shadow 0.2s var(--tg-ease),
    background-color 0.2s var(--tg-ease);
}

.tg-form-card .form-control::placeholder {
  color: var(--tg-muted);
}

.tg-form-card .form-control:focus {
  background: #fff;
  border-color: var(--tg-blue);
  box-shadow: 0 0 0 4px rgba(44, 82, 130, 0.12);
}

.tg-form-card textarea.form-control {
  min-height: 148px;
  resize: vertical;
}

.tg-form-card .form-check-input:checked {
  background-color: var(--tg-blue);
  border-color: var(--tg-blue);
}

.tg-form-card .form-check-label {
  font-size: 0.875rem;
  color: var(--tg-body);
}

/* honeypot: fora da tela, invisível para leitores de tela e para pessoas */
.tg-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tg-contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius);
  padding: 24px;
  box-shadow: var(--tg-shadow-sm);
  transition:
    border-color 0.25s var(--tg-ease),
    transform 0.25s var(--tg-ease);
}

.tg-contact-card:hover {
  border-color: var(--tg-gold);
  transform: translateY(-3px);
}

.tg-contact-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 82, 130, 0.1);
  color: var(--tg-blue);
  font-size: 1.35rem;
}

.tg-contact-card h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tg-navy);
  margin: 0 0 6px;
}

.tg-contact-card p,
.tg-contact-card a {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--tg-body);
  line-height: 1.55;
}

.tg-contact-card a:hover {
  color: var(--tg-blue);
}

.tg-map-embed {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--tg-radius);
  box-shadow: var(--tg-shadow-sm);
  display: block;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: var(--tg-navy-deep);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.site-footer-nav a,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer-nav a:hover,
.site-footer a:hover {
  color: var(--tg-gold);
}

.site-footer-legal {
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer-topo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1035;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
  transition:
    transform 0.2s var(--tg-ease),
    box-shadow 0.2s var(--tg-ease);
}

.whatsapp-float-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
}

/* ---------- Modal LGPD ---------- */
#privacyPolicyModal .modal-content {
  border-radius: var(--tg-radius);
}

#privacyPolicyModal .modal-body {
  color: var(--tg-body);
}

/* ---------- Reveal on scroll ---------- */
.tg-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--tg-ease),
    transform 0.6s var(--tg-ease);
  will-change: opacity, transform;
}

.tg-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tg-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===================================================================
   RESPONSIVO
   =================================================================== */
@media (max-width: 1199.98px) {
  .tg-section {
    padding: 80px 0;
  }
}

@media (max-width: 991.98px) {
  :root {
    --tg-header-h: 78px;
  }

  .tg-section {
    padding: 64px 0;
  }

  .tg-section--tight {
    padding: 52px 0;
  }

  .tg-hero {
    min-height: auto;
    padding-top: calc(var(--tg-header-h) + 56px);
  }

  .tg-hero-inner {
    padding-bottom: 44px;
  }

  .tg-hero-stat {
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 8px;
  }

  .tg-mosaic {
    min-height: 420px;
  }

  .tg-form-card {
    padding: 26px;
  }
}

@media (max-width: 767.98px) {
  .tg-label {
    padding: 12px 22px;
  }

  .tg-label::after {
    left: 22px;
    right: 22px;
  }

  .tg-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 160px);
    min-height: 0;
  }

  .tg-mosaic > *:nth-child(1),
  .tg-mosaic > *:nth-child(2),
  .tg-mosaic > *:nth-child(3),
  .tg-mosaic > *:nth-child(4) {
    grid-row: auto;
  }

  .tg-cd-list {
    grid-template-columns: 1fr;
  }

  .tg-pillar-head {
    padding: 16px 22px;
  }

  .tg-pillar-body {
    padding: 22px;
  }

  .tg-hero-actions .btn-tg {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .tg-section {
    padding: 52px 0;
  }

  .site-footer {
    padding-top: 48px;
  }
}

/* ===================================================================
   PÁGINAS INTERNAS — banner de topo
   Reaproveitável: toda página que não for a home usa este bloco no lugar
   do hero, e o header já fica com fundo sólido por causa de .tg-page.
   =================================================================== */
.tg-pagehero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  padding-top: calc(var(--tg-header-h) + 32px);
  background: var(--tg-navy-deep);
  overflow: hidden;
}

.tg-pagehero-media {
  position: absolute;
  inset: 0;
}

.tg-pagehero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-pagehero-media .tg-ph {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.tg-pagehero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 34, 45, .88) 0%, rgba(20, 34, 45, .52) 45%, rgba(20, 34, 45, .82) 100%);
}

.tg-pagehero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 40px;
}

.tg-pagehero h1 {
  color: #fff;
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  letter-spacing: -.025em;
  margin: 0;
}

.tg-pagehero p {
  color: rgba(255, 255, 255, .8);
  max-width: 60ch;
  margin: 14px 0 0;
}

/* Trilha de navegação */
.tg-breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  font-size: .8125rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.tg-breadcrumb a {
  color: rgba(255, 255, 255, .75);
}

.tg-breadcrumb a:hover {
  color: var(--tg-gold);
}

.tg-breadcrumb li+li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, .35);
}

.tg-breadcrumb [aria-current="page"] {
  color: var(--tg-gold);
  font-weight: bold;
}

/* ===================================================================
   LINHA DO TEMPO
   Trilho vertical: centralizado no desktop, encostado à esquerda no
   mobile. Os marcos alternam de lado via :nth-child(even).
   =================================================================== */
.tg-timeline {
  position: relative;
  padding: 8px 0;
}

/* trilho */
.tg-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent 0, var(--tg-line) 40px, var(--tg-line) calc(100% - 40px), transparent 100%);
}

.tg-milestone {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  align-items: start;
  margin-bottom: 72px;
}

.tg-milestone:last-child {
  margin-bottom: 0;
}

/* coluna do meio: bolinha do ano sobre o trilho */
.tg-milestone-marker {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.tg-milestone-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--tg-navy);
  border: 3px solid var(--tg-gold);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: var(--tg-shadow-sm);
  transition: transform .3s var(--tg-ease), background-color .3s var(--tg-ease);
}

.tg-milestone:hover .tg-milestone-year {
  transform: scale(1.06);
  background: var(--tg-blue);
}

/* lado do texto e lado da mídia — invertem a cada marco */
.tg-milestone-body {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
  padding-right: 40px;
}

.tg-milestone-media {
  grid-column: 3;
  grid-row: 1;
  padding-left: 40px;
}

.tg-milestone:nth-child(even) .tg-milestone-body {
  grid-column: 3;
  text-align: left;
  padding-right: 0;
  padding-left: 40px;
}

.tg-milestone:nth-child(even) .tg-milestone-media {
  grid-column: 1;
  padding-left: 0;
  padding-right: 40px;
}

.tg-milestone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(214, 158, 46, .14);
  color: var(--tg-gold);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.tg-milestone-body h2 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  margin-bottom: 12px;
}

.tg-milestone-body p {
  font-size: 1rem;
  margin-bottom: 12px;
}

.tg-milestone-body p:last-child {
  margin-bottom: 0;
}

.tg-milestone-body strong {
  color: var(--tg-ink);
  font-weight: 700;
}

/* destaque numérico dentro do marco (68.000m², 14% de share…) */
.tg-milestone-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tg-navy);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--tg-radius-pill);
  margin-bottom: 14px;
}

.tg-milestone-highlight i {
  color: var(--tg-gold);
}

.tg-milestone-media .tg-ph {
  aspect-ratio: 4 / 3;
}

.tg-milestone-media img {
  width: 100%;
  border-radius: var(--tg-radius);
  box-shadow: var(--tg-shadow);
}

.tg-milestone-media-grid {
  display: grid;
  gap: 14px;
}

.tg-milestone-media-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- Cards "Formação das empresas" ---------- */
.tg-brands {
  margin-top: 22px;
}

.tg-brands-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tg-blue);
  margin-bottom: 12px;
}

.tg-brands-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  text-align: left;
}

.tg-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius);
  padding: 18px;
  box-shadow: var(--tg-shadow-sm);
  transition: transform .25s var(--tg-ease), border-color .25s var(--tg-ease);
}

.tg-brand:hover {
  transform: translateY(-4px);
  border-color: var(--tg-gold);
}

.tg-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
}

.tg-brand-logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Enquanto o logo não chega, o nome da empresa segura o lugar. */
.tg-brand-logo span {
  font-size: 1.0625rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tg-navy);
}

.tg-brand p {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--tg-body);
}

.tg-brand strong {
  color: var(--tg-ink);
}

/* ---------- Marco final: projeções ---------- */
.tg-projection {
  position: relative;
  background: var(--tg-navy);
  border-radius: var(--tg-radius-lg);
  padding: 44px;
  color: rgba(255, 255, 255, .82);
  overflow: hidden;
}

.tg-projection::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid rgba(214, 158, 46, .28);
}

.tg-projection h2 {
  color: #fff;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  margin-bottom: 8px;
}

.tg-projection .tg-milestone-icon {
  background: rgba(255, 255, 255, .1);
}

.tg-projection p {
  position: relative;
  z-index: 1;
  max-width: 64ch;
  margin-bottom: 0;
}

/* .tg-lead nasce escuro (fundo claro); dentro do bloco navy precisa clarear. */
.tg-projection .tg-lead {
  color: rgba(255, 255, 255, .78);
}

.tg-projection-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.tg-projection-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--tg-radius-pill);
  padding: 8px 16px;
  font-size: .875rem;
  color: #fff;
}

.tg-projection-tags i {
  color: var(--tg-gold);
}

/* ---------- CTA de fim de página ---------- */
.tg-cta-band {
  background: var(--tg-surface-gray);
  padding: 56px 0;
  text-align: center;
}

.tg-cta-band h2 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  margin-bottom: 10px;
}

.tg-cta-band p {
  max-width: 56ch;
  margin: 0 auto 24px;
}

/* ---------- Responsivo da linha do tempo ---------- */
@media (max-width: 991.98px) {
  .tg-pagehero {
    min-height: 260px;
  }

  /* Trilho encosta à esquerda e todos os marcos ficam do mesmo lado. */
  .tg-timeline::before {
    left: 26px;
    margin-left: 0;
  }

  .tg-milestone {
    grid-template-columns: 52px minmax(0, 1fr);
    margin-bottom: 52px;
  }

  .tg-milestone-marker,
  .tg-milestone:nth-child(even) .tg-milestone-marker {
    grid-column: 1;
    padding-top: 0;
  }

  .tg-milestone-year {
    width: 52px;
    height: 52px;
    font-size: .875rem;
    border-width: 2px;
  }

  .tg-milestone-body,
  .tg-milestone:nth-child(even) .tg-milestone-body {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0 0 0 22px;
  }

  .tg-milestone-media,
  .tg-milestone:nth-child(even) .tg-milestone-media {
    grid-column: 2;
    grid-row: 2;
    padding: 22px 0 0 22px;
  }

  .tg-milestone-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    border-radius: 14px;
  }

  .tg-projection {
    padding: 30px;
  }
}

@media (max-width: 575.98px) {
  .tg-milestone-media-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .tg-brands-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===================================================================
   CANAL DE DENÚNCIAS
   =================================================================== */

/* Compromissos do canal (anônimo / confidencial / não retaliação) */
.tg-pledges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tg-pledges li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--tg-line);
  border-left: 3px solid var(--tg-gold);
  border-radius: var(--tg-radius-sm);
  padding: 16px 18px;
  font-size: .9375rem;
  line-height: 1.5;
  box-shadow: var(--tg-shadow-sm);
}

.tg-pledges i {
  color: var(--tg-blue);
  font-size: 1.25rem;
  line-height: 1.35;
  flex: 0 0 auto;
}

/* Faixa navy "Utilize o canal de denúncias para reportar" */
.tg-callout {
  background: var(--tg-navy);
  border-radius: var(--tg-radius);
  padding: 32px 36px;
  color: rgba(255, 255, 255, .78);
  border-left: 4px solid var(--tg-gold);
}

.tg-callout h2 {
  color: #fff;
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.625rem);
  margin-bottom: 10px;
}

.tg-callout p {
  margin: 0;
  max-width: 90ch;
}

/* Roteiro do relato (O quê / Quem / Quando…) */
.tg-report-guide {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.tg-report-guide li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-sm);
  padding: 14px 18px;
  font-size: .9375rem;
  line-height: 1.5;
  transition: border-color .25s var(--tg-ease);
}

.tg-report-guide li:hover {
  border-color: var(--tg-gold);
}

.tg-report-guide-key {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--tg-navy);
  min-width: 72px;
}

/* ---------- Perguntas frequentes ----------
   <details>/<summary> nativos: abrem sem JavaScript e já são acessíveis por
   teclado. O marcador padrão sai porque o ícone de + faz esse papel. */
.tg-faq {
  max-width: 860px;
}

.tg-faq-item {
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-sm);
  background: #fff;
  margin-bottom: 12px;
  transition: border-color 0.25s var(--tg-ease);
}

.tg-faq-item[open] {
  border-color: var(--tg-gold);
}

.tg-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tg-ink);
  list-style: none;
}

.tg-faq-item summary::-webkit-details-marker {
  display: none;
}

.tg-faq-item summary:hover {
  color: var(--tg-blue);
}

.tg-faq-item summary i {
  flex: 0 0 auto;
  color: var(--tg-blue);
  font-size: 1rem;
  transition: transform 0.25s var(--tg-ease);
}

.tg-faq-item[open] summary i {
  transform: rotate(45deg);
}

.tg-faq-answer {
  padding: 0 22px 20px;
}

.tg-faq-answer p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Card do formulário ---------- */
.tg-report-form {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-lg);
  padding: 40px;
  box-shadow: var(--tg-shadow);
}

.tg-report-form .form-label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tg-navy);
  margin-bottom: 6px;
}

.tg-report-form .form-control,
.tg-report-form .form-select {
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-sm);
  padding: 13px 16px;
  font-size: .9375rem;
  color: var(--tg-ink);
  background-color: #fbfcfd;
  transition: border-color .2s var(--tg-ease), box-shadow .2s var(--tg-ease), background-color .2s var(--tg-ease);
}

.tg-report-form .form-control::placeholder {
  color: var(--tg-muted);
}

.tg-report-form .form-control:focus,
.tg-report-form .form-select:focus {
  background-color: #fff;
  border-color: var(--tg-blue);
  box-shadow: 0 0 0 4px rgba(44, 82, 130, .12);
}

.tg-report-form textarea.form-control {
  min-height: 170px;
  resize: vertical;
}

.tg-report-form .form-check-input:checked {
  background-color: var(--tg-blue);
  border-color: var(--tg-blue);
}

.tg-report-form .form-check-label {
  font-size: .875rem;
  color: var(--tg-body);
}

/* ---------- Alternância identificado / anônimo ----------
   Radios reais escondidos: o estado visual sai do :checked, então
   teclado e leitor de tela continuam funcionando. */
.tg-identity {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  justify-content: center;
}

.tg-identity-switch {
  display: inline-flex;
  background: var(--tg-surface-gray);
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-pill);
  padding: 4px;
}

.tg-identity-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.tg-identity-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--tg-radius-pill);
  padding: 11px 24px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--tg-body);
  cursor: pointer;
  transition: background-color .25s var(--tg-ease), color .25s var(--tg-ease);
}

.tg-identity-option i {
  opacity: 0;
  transition: opacity .2s var(--tg-ease);
}

.tg-identity-option:hover {
  color: var(--tg-navy);
}

.tg-identity-input:checked+.tg-identity-option {
  background: var(--tg-navy);
  color: #fff;
}

.tg-identity-input:checked+.tg-identity-option i {
  opacity: 1;
}

.tg-identity-input:focus-visible+.tg-identity-option {
  outline: 3px solid var(--tg-gold);
  outline-offset: 2px;
}

/* Some com os dados pessoais no modo anônimo. O JS troca o hidden;
   sem JS os campos continuam visíveis e o back-end decide o resto. */
.tg-identity-fields[hidden] {
  display: none;
}

/* ---------- Anexos ---------- */
.tg-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* input nativo fora de vista: quem dispara é o <label> estilizado */
.tg-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tg-upload-trigger {
  cursor: pointer;
}

.tg-upload-input:focus-visible+.tg-upload-trigger,
.tg-upload-trigger:focus-visible {
  outline: 3px solid var(--tg-gold);
  outline-offset: 3px;
}

.tg-upload-status {
  font-size: .875rem;
  color: var(--tg-muted);
}

.tg-upload-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tg-upload-list:empty {
  margin: 0;
}

.tg-upload-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tg-surface-alt);
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-sm);
  padding: 10px 14px;
  font-size: .875rem;
  color: var(--tg-ink);
}

.tg-upload-list i {
  color: var(--tg-blue);
  flex: 0 0 auto;
}

.tg-upload-list .tg-upload-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-upload-list .tg-upload-size {
  flex: 0 0 auto;
  color: var(--tg-muted);
  font-variant-numeric: tabular-nums;
}

.tg-upload-list li.is-invalid {
  border-color: #dc3545;
  background: #fdf0f1;
}

.tg-upload-list li.is-invalid i {
  color: #dc3545;
}

.tg-upload-hint {
  margin: 12px 0 0;
  font-size: .8125rem;
  color: var(--tg-muted);
}

/* Com 6 itens + CTA o menu aperta entre 992px e 1400px: encolhe o texto e o
   espaçamento em vez de deixar a barra quebrar. */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .site-header nav.d-flex {
    gap: 1.25rem !important;
  }

  .site-header .navbar-nav {
    gap: 1.25rem !important;
  }

  .site-header .navbar-nav .nav-link {
    font-size: 0.875rem;
  }

  .site-header .btn-tg {
    padding: 11px 20px;
    font-size: 0.875rem;
  }

  .header-logo img {
    height: 48px;
  }
}

/* Abaixo de 1200px o CTA sai da barra: "Contato" já está no menu e o botão
   era o primeiro item a empurrar a navegação para fora da linha. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header nav.d-flex > .btn-tg {
    display: none;
  }

  .site-header nav.d-flex,
  .site-header .navbar-nav {
    gap: 1rem !important;
  }

  .site-header .navbar-nav .nav-link {
    font-size: 0.8125rem;
  }
}

@media (max-width: 767.98px) {
  .tg-callout {
    padding: 24px;
  }

  .tg-report-form {
    padding: 24px;
  }

  .tg-identity-switch {
    flex-direction: column;
    width: 100%;
    border-radius: var(--tg-radius);
  }

  .tg-identity-option {
    justify-content: center;
  }

  .tg-report-guide-key {
    min-width: 62px;
  }
}

/* ===================================================================
   NOTÍCIAS — listagem
   =================================================================== */
.tg-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius);
  overflow: hidden;
  box-shadow: var(--tg-shadow-sm);
  transition:
    transform 0.3s var(--tg-ease),
    box-shadow 0.3s var(--tg-ease),
    border-color 0.3s var(--tg-ease);
}

.tg-post:hover {
  transform: translateY(-6px);
  border-color: var(--tg-gold);
  box-shadow: var(--tg-shadow);
}

.tg-post-media {
  display: block;
  position: relative;
  aspect-ratio: 37 / 27; /* mesma proporção do recorte 740x540 do TimThumb */
  overflow: hidden;
  background: var(--tg-surface-alt);
}

.tg-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--tg-ease);
}

.tg-post:hover .tg-post-media img {
  transform: scale(1.04);
}

/* Notícia sem capa: bloco neutro no lugar da imagem, para o grid não quebrar */
.tg-post-media-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #24384a 0%, #1d3140 60%, #162733 100%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 2.5rem;
}

.tg-post-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 24px;
}

.tg-post-title {
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0 0 10px;
}

.tg-post-title a {
  color: var(--tg-ink);
}

.tg-post-title a:hover {
  color: var(--tg-blue);
}

.tg-post-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--tg-body);
  margin: 0 0 18px;
}

/* margin-top auto: o rodapé encosta na base mesmo com resumos de tamanhos
   diferentes, então os cards da linha terminam alinhados. */
.tg-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--tg-line);
}

.tg-post-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tg-blue);
}

.tg-post-more i {
  transition: transform 0.25s var(--tg-ease);
}

.tg-post:hover .tg-post-more i {
  transform: translateX(3px);
}

.tg-post-date {
  font-size: 0.8125rem;
  color: var(--tg-muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Estado vazio ---------- */
.tg-empty {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto;
  padding: 48px 0;
}

.tg-empty i {
  font-size: 2.5rem;
  color: var(--tg-muted);
  opacity: 0.6;
}

.tg-empty h2 {
  font-size: 1.375rem;
  margin: 16px 0 8px;
}

.tg-empty p {
  margin-bottom: 24px;
}

/* ---------- Paginação ---------- */
.tg-pagination {
  margin-top: 56px;
}

.tg-pagination ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.tg-pagination a,
.tg-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--tg-line);
  border-radius: var(--tg-radius-sm);
  background: #fff;
  color: var(--tg-body);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition:
    background-color 0.2s var(--tg-ease),
    border-color 0.2s var(--tg-ease),
    color 0.2s var(--tg-ease);
}

.tg-pagination a:hover {
  border-color: var(--tg-gold);
  color: var(--tg-navy);
}

.tg-pagination .is-current {
  background: var(--tg-navy);
  border-color: var(--tg-navy);
  color: #fff;
}

.tg-pagination .is-disabled {
  opacity: 0.4;
}

.tg-pagination .is-gap {
  border-color: transparent;
  background: transparent;
  min-width: 24px;
  padding: 0;
}

/* ===================================================================
   NOTÍCIA — página interna
   =================================================================== */
.tg-article {
  padding-bottom: 96px;
}

.tg-breadcrumb--light {
  color: var(--tg-muted);
}

.tg-breadcrumb--light a {
  color: var(--tg-blue);
}

.tg-breadcrumb--light a:hover {
  color: var(--tg-navy);
}

.tg-breadcrumb--light li + li::before {
  color: var(--tg-line);
}

.tg-breadcrumb--light [aria-current="page"] {
  color: var(--tg-muted);
  /* Título longo na trilha: corta em vez de empurrar a linha */
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-article-head {
  margin-bottom: 28px;
}

.tg-article-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tg-blue);
  margin-bottom: 12px;
}

.tg-article-head h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}

.tg-article-cover {
  margin: 0 0 32px;
}

.tg-article-cover img {
  width: 100%;
}

/* ---------- Corpo vindo do painel ----------
   O HTML aqui é escrito por quem publica, então as regras precisam valer
   para tags soltas, sem depender de classe. */
.tg-article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--tg-body);
}

.tg-article-body > *:first-child {
  margin-top: 0;
}

.tg-article-body > *:last-child {
  margin-bottom: 0;
}

.tg-article-body p {
  margin-bottom: 1.35em;
}

.tg-article-body h2,
.tg-article-body h3,
.tg-article-body h4 {
  margin: 1.8em 0 0.6em;
  line-height: 1.25;
}

.tg-article-body h2 {
  font-size: 1.5rem;
}

.tg-article-body h3 {
  font-size: 1.25rem;
}

.tg-article-body h4 {
  font-size: 1.0625rem;
}

.tg-article-body strong,
.tg-article-body b {
  color: var(--tg-ink);
  font-weight: 700;
}

.tg-article-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Imagem do corpo: o painel costuma gravar width/height inline no HTML,
   então o !important garante que nada estoure o container no mobile. */
.tg-article-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--tg-radius-sm);
  margin: 8px 0 24px;
}

.tg-article-body figure {
  margin: 0 0 24px;
}

.tg-article-body figcaption {
  font-size: 0.875rem;
  color: var(--tg-muted);
  margin-top: 8px;
}

.tg-article-body ul,
.tg-article-body ol {
  margin: 0 0 1.35em;
  padding-left: 1.35em;
}

.tg-article-body li {
  margin-bottom: 0.5em;
}

.tg-article-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--tg-gold);
  color: var(--tg-ink);
  font-size: 1.125rem;
}

.tg-article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Tabela do painel raramente é responsiva: o wrapper deixa rolar na lateral
   em vez de estourar a página. */
.tg-article-body table {
  width: 100%;
  margin-bottom: 1.5em;
  border-collapse: collapse;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}

.tg-article-body th,
.tg-article-body td {
  border: 1px solid var(--tg-line);
  padding: 10px 14px;
  text-align: left;
}

.tg-article-body th {
  background: var(--tg-surface-alt);
  color: var(--tg-ink);
}

.tg-article-body iframe {
  max-width: 100%;
  border-radius: var(--tg-radius-sm);
}

/* ---------- Rodapé do artigo ---------- */
.tg-article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--tg-line);
}

.tg-share-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tg-muted);
  margin: 0 0 10px;
  width: 100%;
}

.tg-share {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.tg-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--tg-line);
  background: #fff;
  color: var(--tg-navy);
  font-size: 1.15rem;
  transition:
    background-color 0.2s var(--tg-ease),
    color 0.2s var(--tg-ease),
    border-color 0.2s var(--tg-ease),
    transform 0.2s var(--tg-ease);
}

.tg-share-link:hover {
  transform: translateY(-2px);
  border-color: transparent;
  color: #fff;
  background: var(--tg-navy);
}

.tg-share-link--whatsapp:hover {
  background: #25d366;
}

.tg-share-link--facebook:hover {
  background: #1877f2;
}

.tg-share-link--linkedin:hover {
  background: #0a66c2;
}

.tg-share-link--telegram:hover {
  background: #229ed9;
}

@media (max-width: 767.98px) {
  .tg-article {
    padding-bottom: 64px;
  }

  .tg-article-footer {
    margin-top: 36px;
  }

  .tg-post-body {
    padding: 20px;
  }

  .tg-pagination {
    margin-top: 40px;
  }
}
