* { box-sizing: border-box; }
img, svg { max-width: 100%; height: auto; }
@media (max-width: 980px) {
  [style*="grid-template-columns: repeat(5"],[style*="grid-template-columns: repeat(4"],[style*="grid-template-columns: repeat(3"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 680px) {
  [style*="grid-template-columns: repeat("] { grid-template-columns: 1fr !important; }
  [style*="display: flex"] { flex-wrap: wrap !important; }
  [style*="flex: 1;"] { flex: 1 1 100% !important; }
  h1 { font-size: 34px !important; line-height: 1.14 !important; }
}

@media (max-width: 980px) { .cf-linha { display: none !important; } }

/* ===== Topo fixo na rolagem + menu hambúrguer (até 900 px), no mesmo estilo do app ===== */
html { scroll-padding-top: 96px; }
.s-topo { position: sticky; top: 0; z-index: 40; background: rgba(250,249,245,0.96); border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease; }
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .s-topo { background: rgba(250,249,245,0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.s-topo.s-rolou { border-bottom-color: #ECE7DC; box-shadow: 0 6px 24px rgba(18,58,90,0.08); }
.s-cab { transition: padding .2s ease; flex-wrap: nowrap !important; }
.s-cab > a img { transition: height .2s ease; }
.s-topo.s-rolou .s-cab { padding-top: 12px !important; padding-bottom: 12px !important; }
.s-topo.s-rolou .s-cab > a img { height: 34px !important; }
.s-cab nav a:hover { color: #E8791E !important; }

.s-botao { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; color: #123A5A; cursor: pointer; padding: 0; flex-shrink: 0; }
.s-botao:hover { background: #F1EDE3; }
.s-botao:focus-visible, .s-item:focus-visible, .s-cta:focus-visible { outline: 2px solid #123A5A; outline-offset: 2px; }
.s-abrir, .s-gaveta, .s-veu { display: none; }

@media (max-width: 900px) {
  html { scroll-padding-top: 72px; }
  .s-cab { padding: 10px 12px 10px 6% !important; min-height: 60px; }
  .s-cab > a img, .s-topo.s-rolou .s-cab > a img { height: 32px !important; }
  .s-topo.s-rolou .s-cab { padding-top: 10px !important; padding-bottom: 10px !important; }
  .s-cab nav { display: none !important; }
  .s-abrir { display: inline-flex; }
  .s-gaveta { display: block; position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(300px, 84vw); height: 100vh; height: 100dvh;
    overflow-y: auto; background: #fff; border-right: 1px solid #EAE4D8; padding: 18px 16px 24px; box-sizing: border-box;
    transform: translateX(-105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: 0 0 40px rgba(18,58,90,.18);
    font-family: 'Inter', system-ui, sans-serif; }
  body.s-aberto .s-gaveta { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
  .s-fechar { position: absolute; top: 12px; right: 10px; }
  .s-marca { display: inline-block; margin: 6px 0 24px 8px; }
  .s-marca img { height: 34px; width: auto; display: block; }
  .s-itens { display: flex; flex-direction: column; gap: 4px; }
  .s-item { display: block; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; color: #123A5A; }
  .s-item:hover { background: #F7F5EF; }
  .s-item.ativo { background: #FBE7D6; color: #B4571A; font-weight: 600; }
  .s-cta { display: block; margin: 24px 4px 0; text-align: center; background: #E8791E; color: #fff; padding: 13px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; }
  .s-veu { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(14,39,72,.45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.s-aberto .s-veu { opacity: 1; pointer-events: auto; }
  body.s-aberto { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .s-topo, .s-cab, .s-cab > a img, .s-gaveta, body.s-aberto .s-gaveta, .s-veu { transition: none; }
}

/* Home · "Como funciona": número e texto lado a lado também no celular */
.passo { flex-wrap: nowrap !important; }
.passo > div:first-child { flex: 0 0 auto !important; flex-wrap: nowrap !important; }
.passo > div:last-child { flex: 1 1 auto !important; min-width: 0; }
@media (max-width: 680px) {
  .passo { gap: 14px !important; }
  .passo > div:first-child > div:first-child { width: 38px !important; height: 38px !important; font-size: 16px !important; }
  .passo h3 { margin-top: 6px !important; font-size: 18px !important; }
}
