/* ==========================================================================
   iTick — ajustes por tamanho de tela.
   Fica separado do theme.css de propósito: quando um bloco quebra no celular,
   é aqui que se procura, e não no meio de mil linhas.
   ========================================================================== */

/* ----- Até 1199px ------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .itk-nav > ul > li > a { padding: 12px 11px; font-size: .92rem; }
  .itk-fone-tag.t1 { left: -20px; }
  .itk-fone-tag.t2 { right: -14px; }
  .itk-fone-tag.t3 { left: -10px; }
}

/* ----- Até 991px: o menu vira gaveta ------------------------------------ */
@media (max-width: 991.98px) {
  :root { --itk-header: 74px; }

  .itk-burger { display: inline-flex; margin-left: auto; }

  .itk-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    max-height: calc(100vh - var(--itk-header));
    margin: 0;
    padding: 12px 20px 24px;
    background: var(--itk-white);
    border-bottom: 1px solid var(--itk-line);
    box-shadow: var(--itk-shadow-g);
    overflow-y: auto;
  }
  .itk-nav[hidden] { display: none; }
  .itk-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .itk-nav > ul > li > a {
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid var(--itk-line);
    border-radius: 0;
    font-size: 1rem;
  }
  .itk-nav > ul > li > a:hover,
  .itk-nav > ul > li.ativo > a { background: transparent; }

  /* No celular o submenu abre no clique, não no hover: sem cursor, hover não
     existe e o menu ficaria inalcançável. */
  .itk-sub {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 4px 0 10px 14px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .itk-nav > ul > li.aberto > .itk-sub { display: block; }
  .itk-nav > ul > li:hover > .itk-sub { display: none; }
  .itk-nav > ul > li.aberto:hover > .itk-sub { display: block; }
  .itk-nav > ul > li.aberto > a .seta { transform: rotate(180deg); }
  .itk-sub a { padding: 11px 10px; border-bottom: 1px solid var(--itk-line); border-radius: 0; }

  .itk-header-acoes { margin-left: 0; }
  .itk-header-acoes .so-desktop { display: none; }
  .itk-nav .itk-acoes-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
  }
  .itk-nav .itk-acoes-mobile .itk-btn { width: 100%; }

  /* A linha pontilhada entre passos só faz sentido lado a lado. */
  .itk-passo-liga::before { display: none; }

  .itk-hero { text-align: center; }
  .itk-hero .chamada { margin-inline: auto; }
  .itk-hero .itk-acoes, .itk-hero-selos { justify-content: center; }
  .itk-hero-visual { margin-top: 56px; }

  .itk-titulo { text-align: center; margin-inline: auto; }
  .itk-titulo p { margin-inline: auto; }
  .itk-titulo .itk-bar { margin-inline: auto; }

  .itk-chamada { text-align: center; }
  .itk-chamada .itk-acoes { justify-content: center; }
  .itk-chamada p { margin-inline: auto; }
}

/* ----- Até 767px -------------------------------------------------------- */
@media (max-width: 767.98px) {
  .itk-topbar { display: none; }
  .itk-topbar-in { justify-content: center; }

  .itk-flip-in { min-height: 210px; }
  .itk-contadores { border-radius: 24px; }
  .itk-chamada { border-radius: 24px; }
  .itk-banner { text-align: center; }
  .itk-migalha { justify-content: center; }

  .itk-footer-base { justify-content: center; text-align: center; }
  .itk-footer-base nav { justify-content: center; }
}

/* ----- Até 575px -------------------------------------------------------- */
@media (max-width: 575.98px) {
  body { font-size: 15.5px; }
  .itk-acoes .itk-btn { width: 100%; }
  .itk-hero-selos { gap: 8px; }
  .itk-hero-selos li { font-size: .82rem; padding: 7px 13px; }

  .itk-fone-tag.t1 { top: 56px; left: -8px; }
  .itk-fone-tag.t2 { bottom: 150px; right: -6px; }
  .itk-fone-tag.t3 { display: none; }

  .itk-card, .itk-passo, .itk-plano { padding: 28px 22px; }
  .itk-acc summary { padding: 18px 20px; font-size: .98rem; }
  .itk-acc .corpo { padding: 0 20px 20px; }

  .itk-zap { width: 46px; height: 46px; bottom: 76px; }
  .itk-topo { width: 42px; height: 42px; }
}

/* ----- Menos movimento -------------------------------------------------- */
/* Quem pediu menos movimento recebe menos movimento — e continua vendo tudo.
   Animação nunca pode ser requisito pra enxergar conteúdo, então o .wow, que
   nasce invisível, é forçado a aparecer aqui. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .wow, .animated { visibility: visible !important; opacity: 1 !important; }
  .itk-fone, .itk-fone-tag { animation: none !important; }
}

/* ----- Impressão -------------------------------------------------------- */
@media print {
  .itk-topbar, .itk-header, .itk-footer, .itk-topo, .itk-zap, .itk-loader { display: none !important; }
  body { color: #000; background: #fff; }
  .wow { visibility: visible !important; }
}
