/* Hero pôster (zig-zag): título em caixa-alta, fonte única, linhas recuadas alternadas; o JS escolhe 3/4 linhas e calcula
   o tamanho para caber no quadro. No scroll: linhas saem para os lados e as frases finais entram, centralizadas.
   Estático (sem JS / reduced motion): título, depois as frases em bloco. Paletas por variáveis. */

.tn-hp {
  --hp-bg: var(--tn-color-gold); --hp-fg: var(--tn-bg-deep); --hp-tone: rgba(0, 10, 28, 0.3); --hp-lead: rgba(0, 10, 28, 0.82);
  --hp-rule: var(--tn-bg-deep); --hp-btn-bg: var(--tn-bg-deep); --hp-btn-fg: var(--tn-color-gold);
  position: relative; overflow: clip; background: var(--hp-bg); color: var(--hp-fg);
}
.tn-hp--ice { --hp-bg: #fff; --hp-fg: #0b0b0c; --hp-tone: #0b0b0c; --hp-lead: rgba(11, 11, 12, 0.72); --hp-rule: #0b0b0c; --hp-btn-bg: #0b0b0c; --hp-btn-fg: #fff; background: radial-gradient(ellipse 55% 45% at 88% 8%, rgba(233, 214, 160, 0.55), rgba(255, 255, 255, 0) 70%), #fff; }

/* Quadro = tela menos a barra do WordPress (logado). Mínimo p/ notebooks baixos. */
.tn-hp__wrap { position: relative; block-size: max(calc(100svh - var(--wp-admin--admin-bar--height, 0px)), 28rem); display: flex; flex-direction: column; padding-block-start: var(--tn-header-h); }
.tn-hp__box { flex: 1; min-block-size: 0; display: flex; flex-direction: column; justify-content: center; padding-block: var(--tn-space-3) 5rem; }

.tn-hp__title { margin: 0 auto 0 max(var(--tn-gutter), calc((100% - var(--tn-container)) / 2)); --tn-hp-w: min(100vw - 2 * var(--tn-gutter), var(--tn-container)); font-weight: 800; text-transform: uppercase; line-height: 1.02; color: var(--hp-fg); }
.tn-hp__line { display: block; white-space: nowrap; will-change: transform; }
.tn-hp__line--tone { color: var(--hp-tone); }
.tn-hp__line--tone .tn-w__in { color: inherit; }
.tn-hp__fit { display: inline-block; font-size: clamp(2.2rem, 0.4rem + 7.4vw, 10rem); letter-spacing: -0.035em; white-space: nowrap; }
/* Máscara de palavra com folga (acentos em cima, overhang do espaçamento negativo nas laterais). */
.tn-hp .tn-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.28em 0.1em 0.08em; margin: -0.28em -0.1em -0.08em; }
.tn-hp .tn-w__in { display: inline-block; }

/* Botões nas cores da paleta. */
.tn-hp .tn-btn { background: var(--hp-btn-bg); color: var(--hp-btn-fg); }
@media (hover: hover) and (pointer: fine) { .tn-hp .tn-btn:hover { filter: brightness(1.12); } }

/* Título pequeno (só celular): dá um respiro acima do título principal. */
.tn-hp__kicker { display: none; }
@media (max-width: 699px) {
  .tn-hp__kicker { display: flex; align-items: center; gap: 0.75rem; margin: 0 var(--tn-gutter) var(--tn-space-4); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hp-fg); }
  .tn-hp__kicker::before { content: ""; inline-size: 1.75rem; block-size: 1px; background: currentColor; }
}

/* Texto de apoio + CTA: só no celular, onde o título é menor e a tela ficaria vazia. */
.tn-hp__sub { display: none; }
.tn-hp__lead, .tn-hp__cta, .tn-hp__cta2 { margin: 0; }
.tn-hp__lead { max-inline-size: 46ch; font-size: var(--tn-text-base); line-height: 1.35; color: var(--hp-lead); }
.tn-hp__lead strong { font-weight: 600; color: var(--hp-fg); }
@media (max-width: 699px) {
  .tn-hp__wrap { justify-content: center; padding-block-end: 4.5rem; }
  .tn-hp__box { flex: none; min-block-size: 34svh; padding-block: 0; }
  .tn-hp__sub { display: block; padding-block: var(--tn-space-6) 0; text-align: center; }
  .tn-hp__sub .tn-hp__lead { margin-inline: auto; max-inline-size: 30ch; }
  .tn-hp__sub .tn-hp__cta { margin-block-start: var(--tn-space-6); }
  .tn-hp__sub .tn-btn { inline-size: min(100%, 22rem); }
}

/* Ícone de rolagem (mouse) no rodapé do quadro. */
.tn-hp__cue { position: absolute; inset-inline: 0; inset-block-end: 1.5rem; display: flex; justify-content: center; color: var(--hp-fg); pointer-events: none; z-index: 2; }
.tn-hp__mouse { position: relative; display: block; inline-size: 1.75rem; block-size: 2.75rem; border: 2px solid currentColor; border-radius: 1rem; opacity: 0.9; }
.tn-hp__mouse i { position: absolute; inset-inline-start: 50%; inset-block-start: 0.5rem; inline-size: 0.25rem; block-size: 0.5rem; margin-inline-start: -0.125rem; border-radius: 0.125rem; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .tn-hp__mouse i { animation: tn-wheel 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
}
@keyframes tn-wheel { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(0.9rem); opacity: 1; } 100% { transform: translateY(1.2rem); opacity: 0; } }

/* Frases finais: centralizadas. Estático = bloco abaixo do hero. */
.tn-hp__outro { padding-block: var(--tn-space-24); border-block-start: 2px solid var(--hp-rule); }
.tn-hp__outroin { inline-size: min(100% - 2 * var(--tn-gutter), var(--tn-container)); margin-inline: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--tn-space-8); }
.tn-hp__phrases { display: grid; justify-items: center; }
.tn-hp__phrase { margin: 0 auto; max-inline-size: 18ch; font-size: clamp(2.4rem, 0.6rem + 6vw, 7rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase; text-wrap: balance; text-align: center; color: var(--hp-fg); }
.tn-hp__phrase + .tn-hp__phrase { margin-block-start: var(--tn-space-3); }
.tn-hp__phrase--2 { color: var(--hp-tone); }

/* Com motion: as frases sobrepõem o quadro (uma por vez, no mesmo lugar) e o CTA fica abaixo, centralizado. */
@media (prefers-reduced-motion: no-preference) {
  .tn-hp__outro { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; padding-block: var(--tn-header-h) 0; border: 0; background: transparent; pointer-events: none; visibility: hidden; }
  .tn-hp__outro.is-live { visibility: visible; }
  .tn-hp__outro a { pointer-events: auto; }
  .tn-hp__outroin { block-size: 100%; justify-content: center; }
  .tn-hp__phrases .tn-hp__phrase { grid-area: 1 / 1; margin-block-start: 0; }
  .tn-hp__outro .tn-hp__cta2 { position: absolute; inset-inline: 0; inset-block-end: 14vh; display: flex; justify-content: center; }
}

/* Layout justificado (opcional): todas as linhas com a mesma largura. */
.tn-hp[data-layout="justified"] .tn-hp__line { inline-size: var(--tn-hp-w); }
.tn-hp[data-layout="justified"] .tn-hp__fit { font-size: clamp(2.2rem, 0.4rem + 8.4vw, 11rem); }

/* Fumaça de fundo (WebGL): oculta até o JS confirmar suporte; fica atrás do conteúdo. */
.tn-smoke { display: none; position: absolute; inset: 0; z-index: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }
.tn-smoke.is-ready { display: block; }
.tn-hp__wrap { z-index: 1; }

/* Tema gelo: demais palavras num azul mais claro; "CONTADORES" em preto cheio (sem contorno); o símbolo da Trínomo substitui o "A" nas cores originais. */
.tn-hp--ice .tn-hp__line--tone { color: #d2a833; }
.tn-hp--ice .tn-g { display: inline; color: inherit; }
.tn-hp--ice .tn-hp__phrase--2 { color: #0b0b0c; }
.tn-hp .tn-hp__mark { display: inline-block; block-size: 0.8em; inline-size: auto; max-inline-size: none; vertical-align: baseline; margin-inline: 0.02em; transform: translateY(0.02em); } /* mais específico que .elementor img { height:auto } */

/* Tema ice: títulos em peso médio (o negrito 800 estava agressivo). O JS mede com o peso real do título. */
.tn-hp--ice .tn-hp__title { font-weight: 600; }
.tn-hp--ice .tn-hp__phrase { font-weight: 600; }
.tn-hp--ice .tn-hp__title, .tn-hp--ice .tn-hp__phrase { font-family: var(--tn-font-display, inherit); }

/* Palavras com estilo próprio dentro do título: *dourada* e ~só o contorno dourado~. */
.tn-hp--ice .tn-w__in--gold { color: #d2a833; }
.tn-hp--ice .tn-w__in--outline { color: transparent; -webkit-text-stroke: 0.028em #d2a833; paint-order: stroke fill; }

/* Legenda "Arraste" acima do mouse: deixa explícito (principalmente no celular) que é preciso rolar/arrastar. */
.tn-hp__cue { flex-direction: column; align-items: center; gap: 0.35rem; inset-block-end: 1.1rem; }
.tn-hp__hint { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1; opacity: 0.8; }
