/*
Theme Name: Textual Hello Elementor Child
Author: Blue Opera Online
Author URI: https://blueopera.com.br
Template: hello-elementor
Version: 3.0.27
Text Domain: textual-hello-elementor-child
*/

/* ==========================================================================
   Componentes Textual 2026
   Estrutura e conteúdo vivem no Elementor (classes aplicadas em Avançado →
   Classes CSS); aqui ficam só as animações e o que o editor não cobre.
   ========================================================================== */

:root {
  --textual-amarelo: #fbb118;
  --textual-laranja: #ff8c00;
  --textual-preto: #000000;
  --textual-borda: #dadada;
}

/* --- Elementor background video: reserve the iframe box up front ---------
   Elementor's `prepareVimeoVideo` builds the player with
   `width: videoSize.width`, where `videoSize` is the *number* returned by
   `outerWidth()`. The width option is therefore always `undefined` and the
   Vimeo player is created at its default 426x240. Elementor only corrects the
   size inside `player.ready()`, about two seconds in, and the iframe growing
   from 240px to the container height re-lays out both the page and the Vimeo
   document inside it: CLS 0.297 on the home desktop, 0.043 with these two
   declarations. Measured in Elementor 4.2.3; see
   docs/research/etapa3-vimeo-cls-2026-08-24.md.

   Deliberately not `!important`. Elementor's inline sizing still wins once the
   player is ready, so the settled layout is exactly what it was before; this
   only governs the seconds between the iframe being inserted and the player
   becoming ready. Do not remove it as redundant — Elementor's own stylesheet
   sizes `.elementor-background-video-embed`, a class the iframe does not carry
   until `ready()` fires, which is precisely the window that shifts.
   ------------------------------------------------------------------------- */

.elementor-background-video-container > iframe {
  width: 100%;
  height: 100%;
}

/* --- Ticker (faixa amarela girada, logo após o hero) --------------------- */

body.home {
  overflow-x: clip;
}

.textual-ticker {
  transform: rotate(-1.6deg) scale(1.02);
  margin-top: -30px;
  margin-bottom: -14px;
  box-shadow: 0 14px 34px -18px rgba(251, 177, 24, 0.8);
}

.textual-ticker .elementor-widget-heading {
  width: max-content;
  max-width: none;
}

.textual-ticker__track .elementor-heading-title {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: -0.01em;
  animation: textual-ticker-slide 28s linear infinite;
  will-change: transform;
}

@keyframes textual-ticker-slide {
  to {
    transform: translateX(-50%);
  }
}

/* --- Eyebrow (sobretítulo com traço amarelo) ------------------------------ */

.textual-eyebrow .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.textual-eyebrow .elementor-heading-title::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--textual-amarelo);
}

/* --- Balões de conversa (background da seção Sobre da home) --------------- */

.textual-sobre-home {
  position: relative;
}

/* Conteúdo acima dos balões. */
.textual-sobre-home > .e-con {
  position: relative;
  z-index: 1;
}

.textual-bubble {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.textual-bubble--1 {
  top: 10%;
  right: 6%;
  --textual-tilt: -4deg;
}

.textual-bubble--2 {
  bottom: 4%;
  left: 2.5%;
  --textual-tilt: 3deg;
}

.textual-bubble--2 .textual-bubble__box {
  animation-delay: 1.2s;
  background: var(--textual-amarelo);
  border-color: var(--textual-amarelo);
}

.textual-bubble--2 .textual-bubble__box::after {
  background: var(--textual-amarelo);
  border-color: var(--textual-amarelo);
}

.textual-bubble--2 .textual-bubble__box span {
  background: var(--textual-preto);
}

.textual-bubble--3 {
  bottom: 8%;
  right: 20%;
  --textual-tilt: -2deg;
}

.textual-bubble--3 .textual-bubble__box {
  animation-delay: 2.4s;
}

.textual-bubble__box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--textual-borda);
  border-radius: 22px;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0,0.3);
  animation: textual-bubble-float 7s ease-in-out infinite;
}

/* Rabinho do balão. */
.textual-bubble__box::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 24px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-right: 1px solid var(--textual-borda);
  border-bottom: 1px solid var(--textual-borda);
  border-radius: 0 0 5px 0;
  transform: rotate(45deg) skew(12deg, 12deg);
}

.textual-bubble__box span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9a958c;
  animation: textual-bubble-typing 1.4s infinite;
}

.textual-bubble__box span:nth-child(2) {
  animation-delay: 0.18s;
}

.textual-bubble__box span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes textual-bubble-typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes textual-bubble-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--textual-tilt, 0deg));
  }

  50% {
    transform: translateY(-14px) rotate(var(--textual-tilt, 0deg));
  }
}

@media (max-width: 767px) {
  /* Keep long Home headings within Elementor's mobile container. */
  body.home .elementor-widget-heading h3 {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .textual-bubble--3 {
    display: none;
  }

  .textual-bubble {
    opacity: 0.35;
  }
}

/* --- Cards de prêmios (widgets icon-box na seção Sobre da home) ----------- */

.textual-award {
  transition: transform 0.25s ease;
}

.textual-award:nth-of-type(2) {
  transform: translateX(clamp(8px, 2.5vw, 36px)) rotate(0.6deg);
}

.textual-award:nth-of-type(3) {
  transform: translateX(clamp(4px, 1.2vw, 16px)) rotate(-0.8deg);
}

.textual-award:hover {
  transform: translateY(-4px);
}

.textual-award .elementor-icon-box-title {
  margin-bottom: 2px;
}

/* --- Acessibilidade -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .textual-ticker__track .elementor-heading-title,
  .textual-bubble__box,
  .textual-bubble__box span {
    animation: none;
  }
}

/* --- Sobre --------------------------------------------------------------- */

/* Padding, gap, fundo, tipografia de títulos, kicker e cores de corpo agora
   vivem no Elementor (por elemento). Aqui ficam só recursos sem equivalente
   no builder: recorte de empilhamento, pseudo-elementos, grids, object-fit,
   filtros, scroll-snap, estados de hover e as sobreposições especiais. */

.sobre-page {
  overflow: clip;
}

/* <strong> dentro do texto: sub-elemento que o builder não estiliza. */
.sobre-copy strong {
  color: var(--textual-preto);
  font-weight: 700;
}

/* Círculo decorativo + recorte de empilhamento: pseudo-elemento e isolation
   sem equivalente no builder. Padding e fundo do hero estão no Elementor. */
.sobre-hero {
  position: relative;
  min-height: min(76vh, 780px);
  isolation: isolate;
}

.sobre-hero::after {
  position: absolute;
  z-index: -1;
  right: -7vw;
  bottom: -85px;
  width: min(360px, 38vw);
  aspect-ratio: 1;
  content: "";
  background: var(--textual-amarelo);
  border-radius: 50%;
  opacity: 0.9;
}

/* Elementor não expõe max-width em heading. */
.sobre-hero__title .elementor-heading-title {
  max-width: 900px;
}

/* Rotação e sombra do callout permanecem como efeitos no CSS. */
.sobre-intro-callout {
  transform: rotate(-1deg);
  box-shadow: 0 18px 46px -28px rgba(0, 0, 0, 0.5);
}

/* Sobreposição especial com o bloco de contadores (padding-top de overlap). */
.sobre-world {
  padding-top: 260px;
}

.sobre-world__map img {
  width: min(100%, 1240px);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
}

.sobre-world__legend img {
  width: auto;
  max-width: min(100%, 245px);
}

/* Estatística de prêmios: layout em grade (fundo/raio/padding no builder). */
.sobre-awards-stat {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 30px;
}

.sobre-awards-stat__number .elementor-heading-title {
  justify-self: end;
}

.sobre-awards-stat__years .elementor-heading-title {
  justify-self: start;
  white-space: normal;
}

/* Grade de logos — CSS Grid (colunas responsivas abaixo). */
.sobre-awards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sobre-award-logo img {
  max-height: 105px;
  object-fit: contain;
}

/* Trilho da timeline: um marco por vez, rolagem horizontal com snap.
   Layout e cores dos cards vivem no Elementor; aqui fica só o que o
   builder não expressa (mecânica do slider e navegação criada via JS). */
.sobre-timeline-track {
  display: grid !important;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 40px;
  overflow-x: auto;
  padding: 4px 4px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--textual-amarelo) rgba(255, 255, 255, 0.12);
}

.sobre-timeline--ready .sobre-timeline-track {
  padding-bottom: 4px;
  scrollbar-width: none;
}

.sobre-timeline--ready .sobre-timeline-track::-webkit-scrollbar {
  display: none;
}

.sobre-timeline-card {
  min-width: 0;
  scroll-snap-align: start;
}

.sobre-timeline-card .elementor-widget-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Navegação do slider (criada pelo JS): setas + pontos sobre uma linha. */
.sobre-timeline-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Prefixo .sobre-timeline-nav garante vitória sobre o botão global do kit
   do Elementor (.elementor-kit-* button). */
.sobre-timeline-nav .sobre-timeline-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  min-width: 0;
  padding: 0;
  place-items: center;
  color: #56534c;
  background: transparent;
  border: 1px solid #56534c;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.sobre-timeline-nav .sobre-timeline-arrow:hover,
.sobre-timeline-nav .sobre-timeline-arrow:focus-visible {
  color: var(--textual-preto);
  background: var(--textual-amarelo);
  border: 1px solid var(--textual-amarelo);
  box-shadow: none;
}

.sobre-timeline-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sobre-timeline-dots {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.sobre-timeline-dots::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 4px;
  background: #56534c;
}

.sobre-timeline-nav .sobre-timeline-dot {
  position: relative;
  width: 12px;
  height: 12px;
  min-width: 0;
  padding: 0;
  background: #56534c;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #E6E6E6;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* `cursor` e realce de interação só onde o ponto é de fato um controle. */
.sobre-timeline-nav button.sobre-timeline-dot {
  cursor: pointer;
}

/* Área de clique maior sem crescer o ponto. Só no desktop: no mobile o ponto
   é um `<span>` decorativo, e uma caixa invisível sobre ele não serve a nada. */
.sobre-timeline-nav button.sobre-timeline-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
}

.sobre-timeline-nav button.sobre-timeline-dot:hover,
.sobre-timeline-nav button.sobre-timeline-dot:focus-visible {
    background: var(--textual-amarelo);
    transform: scale(1.35);
    box-shadow: 0 0 0 5px #E6E6E6;
}

.sobre-timeline-nav .sobre-timeline-dot.is-active {
  background: var(--textual-amarelo);
  transform: scale(1.35);
  box-shadow: 0 0 0 5px #E6E6E6;
}

/* Colunas responsivas dos grids e ajustes de overlap — sem equivalente no
   builder. Padding/gap de seção e do card de logo agora são responsivos no
   Elementor, por isso saíram daqui. */
@media (max-width: 1024px) {
  .sobre-world {
    padding-top: 230px;
  }
}

@media (max-width: 767px) {
  .sobre-hero {
    min-height: 620px;
  }

  .sobre-hero::after {
    right: -18vw;
    bottom: -45px;
    width: 55vw;
  }

  .sobre-world {
    padding-top: 220px;
  }

  .sobre-awards-stat {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .sobre-awards-stat__number .elementor-heading-title,
  .sobre-awards-stat__years .elementor-heading-title {
    justify-self: center;
  }

  .sobre-awards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sobre-timeline-nav {
    gap: 18px;
  }

  /* As setas ficam nos 48px do desktop de propósito. Havia aqui uma regra que
     as levava a 42px, e ela nunca teve efeito: `.sobre-timeline-arrow` (0,1,0)
     perde para `.sobre-timeline-nav .sobre-timeline-arrow` (0,2,0) acima, e
     @media não soma especificidade. Foi removida em vez de corrigida — no
     mobile o apontador é o dedo, e encolher o alvo de toque justamente ali
     trocaria uma regra morta por um defeito vivo. */
}

@media (prefers-reduced-motion: reduce) {
  .sobre-timeline-arrow,
  .sobre-timeline-dot {
    transition: none;
  }
}

.home .elementskit-section-title-wraper .elementskit-section-title.text_fill > span {
	padding-right: 10px;
}
