/* Blog Mais Tempo — estilos */
:root {
  --navy: #0b0c1d;
  --navy-2: #101233;
  --azul: #499acf;
  --amarelo: #fbc346;
  --texto: #1d2230;
  --muted: #5d6475;
  --linha: #e4e7ee;
  --fundo: #f6f7fb;
  --wrap: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--fundo); color: var(--texto); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.65; }
img, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.topo { background: var(--navy); position: sticky; top: 0; z-index: 10; }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; flex-wrap: wrap; padding: 8px 0; }
.logo img { display: block; width: 210px; }
.topo nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.topo nav a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 0; }
.topo nav a:hover { color: var(--azul); }
.topo nav a.cb { color: var(--amarelo); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--amarelo); color: #000; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.05); }
.btn-2 { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }

.hero { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: clamp(40px, 7vw, 80px) 0; }
.kicker, .cta-kicker { color: var(--azul); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero-t { font-size: clamp(28px, 4.5vw, 46px); line-height: 1.12; margin-top: 10px; max-width: 820px; }
.hero-p { font-size: clamp(17px, 2vw, 20px); margin-top: 14px; color: rgba(255, 255, 255, .85); }
.hero-p a { color: var(--amarelo); }
.busca-hero { display: flex; gap: 10px; margin-top: 24px; max-width: 620px; }
.busca-hero input { flex: 1; min-width: 0; height: 48px; border-radius: 999px; border: 1px solid var(--linha); padding: 0 20px; font-size: 16px; }
.hero-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-cats a { color: #fff; text-decoration: none; font-size: 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 5px 13px; }
.hero-cats a:hover { border-color: var(--azul); color: var(--azul); }

.lista { padding: clamp(32px, 5vw, 56px) 0; }
.lista h1 { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.2; }
.intro { color: var(--muted); margin-top: 8px; max-width: 760px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 26px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: #fff; border: 1px solid var(--linha); border-radius: 14px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 12, 29, .08); }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-img { aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.sem-img { color: var(--azul); font-size: 54px; font-weight: 800; }
.card-txt { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { color: var(--azul); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card h3 { font-size: 18px; line-height: 1.3; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.card time { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 13px; }
.pag { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; font-size: 15px; color: var(--muted); }
.pag a { color: var(--texto); font-weight: 700; text-decoration: none; border: 1px solid var(--linha); background: #fff; border-radius: 999px; padding: 9px 18px; }
.indice { list-style: none; margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.indice li { background: #fff; border: 1px solid var(--linha); border-radius: 10px; padding: 12px 16px; display: flex; justify-content: space-between; }
.indice a { font-weight: 700; text-decoration: none; }
.indice span { color: var(--muted); }

.wrap-post { width: min(760px, 100% - 32px); margin: clamp(28px, 5vw, 56px) auto 0; background: #fff; border: 1px solid var(--linha); border-radius: 18px; padding: clamp(22px, 5vw, 52px); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--azul); text-decoration: none; }
.post h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-top: 10px; }
.meta { color: var(--muted); font-size: 15px; margin-top: 10px; }
.meta a { color: var(--texto); font-weight: 700; }
.conteudo { margin-top: 26px; }
.conteudo > * + * { margin-top: 1.1em; }
.conteudo h2, .conteudo h3, .conteudo h4 { line-height: 1.25; margin-top: 1.6em; }
.conteudo h2 { font-size: 26px; } .conteudo h3 { font-size: 21px; }
.conteudo a { color: #1e6ea8; }
.conteudo ul, .conteudo ol { padding-left: 1.4em; }
.conteudo li + li { margin-top: .4em; }
.conteudo img { display: block; margin: 1.2em auto; border-radius: 10px; }
.conteudo blockquote { border-left: 4px solid var(--azul); padding: 4px 0 4px 18px; color: #39404f; font-style: italic; }
.conteudo figure { margin: 1.2em 0; } .conteudo figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.conteudo .video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.conteudo table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.conteudo td, .conteudo th { border: 1px solid var(--linha); padding: 8px; }
.tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 13px; text-decoration: none; background: var(--fundo); border: 1px solid var(--linha); border-radius: 999px; padding: 4px 12px; color: var(--muted); }

.cta { margin-top: 36px; background: var(--navy); color: #fff; border-radius: 16px; padding: 28px; }
.cta h2 { font-size: 24px; margin-top: 6px; }
.cta p { color: rgba(255, 255, 255, .82); margin-top: 8px; font-size: 16px; }
.cta-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rel { padding: 40px 0 20px; }
.rel h2 { font-size: 24px; }

.rodape { background: var(--navy); color: rgba(255, 255, 255, .8); margin-top: 56px; padding: 40px 0; font-size: 15px; }
.rodape img { width: 180px; }
.rodape p { margin-top: 12px; max-width: 760px; }
.rodape a { color: #fff; }
.rodape-links { font-size: 14px; }

/* áreas de toque com pelo menos 24px */
.logo { display: inline-block; padding: 6px 0; }
.crumbs a, .post .capa figcaption a, .tags a, .post .meta a { display: inline-block; padding: 4px 0; }

/* conteúdo antigo: tabelas de layout viram quadro; tabelas de dados rolam na horizontal */
.conteudo .quadro { border-left: 4px solid var(--linha); padding: 4px 0 4px 18px; }
.conteudo .quadro .quadro { border: 0; padding: 0; }
.conteudo .quadro > * + * { margin-top: 1.1em; }
.conteudo .tabela { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.conteudo .tabela table { display: table; min-width: 100%; }
.conteudo img, .conteudo iframe, .conteudo video { max-width: 100%; }
.conteudo { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo img { width: 170px; }
  /* cabeçalho: não fica preso no topo e o menu vira uma linha que desliza para o lado */
  .topo { position: static; }
  .topo .wrap { flex-wrap: wrap; gap: 0; padding: 6px 0 0; min-height: 0; }
  .topo nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .topo nav::-webkit-scrollbar { display: none; }
  .topo nav a { font-size: 14px; white-space: nowrap; padding: 10px 0 12px; }
  .topo nav a:last-child { padding-right: 28px; }
  .wrap-post { width: calc(100% - 20px); padding: 22px 18px; border-radius: 14px; }
  .conteudo .quadro { padding-left: 12px; }
  /* home compacta: título, busca e categorias numa faixa curta, para o primeiro post aparecer na primeira tela */
  .hero { padding: 18px 0 16px; }
  .hero .kicker { display: none; }
  .hero-t { font-size: 22px; margin-top: 0; }
  .busca-hero { margin-top: 14px; gap: 8px; }
  .busca-hero input { height: 44px; padding: 0 16px; }
  .busca-hero .btn { padding: 0 18px; height: 44px; }
  .hero-cats { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .hero-cats::-webkit-scrollbar { display: none; }
  .hero-cats a { white-space: nowrap; flex: none; font-size: 13px; padding: 7px 12px; }
  .hero-cats a:last-child { margin-right: 24px; }
  .lista { padding: 20px 0 32px; }
  .lista-t { font-size: 22px; margin-bottom: 14px; }
  .lista h1 { font-size: 24px; }
  .grid { gap: 16px; margin-top: 4px; }
  .pag { flex-wrap: wrap; justify-content: center; }
}

/* capa dos posts novos */
.post .capa { margin: 8px 0 28px; }
.post .capa img { width: 100%; height: auto; border-radius: 14px; display: block; }
.post .capa figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.post .capa figcaption a { color: inherit; }

/* perguntas sobre o blog na home */
.sobre-blog { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding: 8px 0 56px; }
.sobre-blog h2 { font-size: 22px; margin-bottom: 8px; }
.sobre-blog p { color: var(--muted); }
.sobre-blog > p { grid-column: 1 / -1; }
.sobre-blog a { color: var(--azul); }
.lista-t { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 22px; }

/* capa gráfica dos posts sem imagem */
.capa-graf { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(circle at 75% 20%, hsl(var(--tom) 55% 42% / .55), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-2));
  color: hsl(var(--tom) 70% 66%); }
.capa-graf svg { width: 46px; height: 46px; }
.capa-graf b { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 0 16px; text-align: center; }

/* novidades por e-mail (newsletter do Tríade ERP) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.news-blog { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #fff; padding: clamp(36px, 6vw, 64px) 0; margin-top: 56px; }
.news-grid { display: grid; gap: 24px; align-items: center; }
.news-blog h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; margin-top: 8px; }
.news-blog p { color: rgba(255, 255, 255, .82); margin-top: 10px; }
.news-form { display: grid; gap: 12px; }
.news-campos { display: grid; gap: 10px; }
.news-campos input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 16px; font-size: 16px; }
.news-campos input::placeholder { color: rgba(255, 255, 255, .55); }
.news-campos input:focus-visible, .news-consent input:focus-visible { outline: 2px solid var(--amarelo); outline-offset: 2px; }
.news-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255, 255, 255, .85); cursor: pointer; }
.news-consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--amarelo); }
.news-form .btn { justify-self: start; }
.news-isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.news-retorno { margin: 0; min-height: 1.2em; font-weight: 600; }
.news-retorno[style*="180, 35, 24"] { color: #ff9b8f !important; }
.news-retorno[style*="5, 96, 58"] { color: #7fdca4 !important; }
.news-nota { font-size: 12px; margin: 0; color: rgba(255, 255, 255, .6) !important; }
.news-nota a { color: inherit; }
.news-blog ~ .rodape { margin-top: 0; }
.news-retorno:empty { display: none; }
@media (min-width: 860px) { .news-grid { grid-template-columns: 5fr 6fr; gap: 56px; } .news-campos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news-form .btn { justify-self: stretch; } }
