/* ============================================================
   Vita Medical Blog · estilos próprios do blog
   (cores, fontes, botões e menu vêm do site, pelos arquivos em assets/)
   Padrão do site: conteúdo com 1140 px e 80 px entre seções.
   ============================================================ */

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* barra de administração do WordPress (só para quem está logado) */
.admin-bar .cab { top: 32px; }
@media (max-width: 782px) { .admin-bar .cab { top: 46px; } }

/* ---------- Peças comuns ---------- */
.vb-rotulo { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--azul); }
.vb-rotulo.claro { color: var(--azul-claro); }
.vb-rotulo img { width: 24px; height: auto; }

.vb-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--azul-profundo); text-decoration: none; }
.vb-link:hover { color: var(--azul); }
.vb-link svg { transition: transform .2s; }
.vb-link:hover svg { transform: translateX(3px); }

.vb-trilha { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 14px; color: #5a6672; }
.vb-trilha a { color: #5a6672; text-decoration: none; }
.vb-trilha a:hover { color: var(--azul); text-decoration: underline; text-underline-offset: 3px; }
.vb-trilha .atual { color: var(--marinho); font-weight: 600; }
.vb-trilha.clara { color: var(--azul-claro); }
.vb-trilha.clara a { color: #cfe0f1; }
.vb-trilha.clara a:hover { color: var(--branco); }
.vb-trilha.clara .atual { color: var(--branco); }

/* ---------- Topo da lista ---------- */
.vb-topo { position: relative; overflow: hidden; background: var(--marinho-2); min-height: 440px; }
.vb-topo-foto {
  position: absolute; right: 0; top: 0; width: 62%; height: 100%; object-fit: cover; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%); mask-image: linear-gradient(90deg, transparent 0, #000 40%);
}
.vb-topo-veu { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 34, 56, .97) 0%, rgba(14, 34, 56, .9) 38%, rgba(18, 42, 68, .5) 70%, rgba(18, 42, 68, .3) 100%); }
.vb-topo-marca { position: absolute; left: -90px; bottom: -140px; width: 420px; height: auto; opacity: .06; }
.vb-topo-in { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 88px; }
.vb-topo-txt { max-width: 640px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; color: var(--branco); }
.vb-topo-txt .vb-rotulo { margin-top: 8px; }
.vb-topo h1 { margin: 0; font-size: 52px; line-height: 58px; font-weight: 800; letter-spacing: -.025em; color: var(--branco); }
.vb-topo p { margin: 0; max-width: 580px; font-size: 20px; line-height: 30px; color: var(--texto-claro); }

/* ---------- Lista ---------- */
.vb-lista { padding: 72px 0 88px; }
.vb-filtros { list-style: none; margin: 0 0 48px; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.vb-filtros a {
  display: flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 22px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  background: var(--branco); color: var(--marinho); border: 1.5px solid #c9dcef; transition: background-color .2s, color .2s, border-color .2s;
}
.vb-filtros a:hover { border-color: var(--marinho); color: var(--marinho); }
.vb-filtros a.ativo { background: var(--marinho); color: var(--branco); border-color: var(--marinho); }

.vb-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.vb-card { position: relative; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.vb-card-foto { display: block; align-self: stretch; height: 230px; border-radius: 16px; overflow: hidden; background: var(--card-2); }
.vb-card-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vb-card:hover .vb-card-foto img { transform: scale(1.04); }
.vb-card-cat { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--azul); }
.vb-card-tit { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; color: var(--marinho); }
.vb-card-res { margin: 0; font-size: 15px; line-height: 23px; color: var(--texto); }
.vb-card .vb-link::after { content: ''; position: absolute; inset: 0; }
.vb-vazio { margin: 0; font-size: 17px; line-height: 27px; color: var(--texto); }

.vb-pag { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 64px; }
.vb-pag .page-numbers {
  min-width: 44px; height: 44px; padding: 0 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; text-decoration: none; background: var(--branco); color: var(--marinho); border: 1.5px solid #c9dcef;
}
.vb-pag .page-numbers.current { background: var(--marinho); color: var(--branco); border-color: var(--marinho); }
.vb-pag a.page-numbers:hover { border-color: var(--marinho); }
.vb-pag .dots { border: 0; }

/* ---------- Artigo ---------- */
.vb-trilha-area { padding-top: 28px; }
.vb-cab { padding-top: 32px; }
.vb-cab-txt { max-width: 900px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.vb-tag { height: 30px; padding: 0 12px; border-radius: 6px; background: var(--card-2); color: var(--azul-profundo); font-size: 13px; font-weight: 700; display: flex; align-items: center; text-decoration: none; }
.vb-tag:hover { background: #d3e4f5; color: var(--azul-profundo); }
.vb-cab h1 { margin: 0; font-size: 52px; line-height: 58px; font-weight: 800; letter-spacing: -.025em; color: var(--marinho); }
.vb-cab-res { margin: 0; font-size: 20px; line-height: 30px; color: #5a6672; }
.vb-cab-meta { font-size: 14px; color: #5a6672; }
.vb-capa { margin: 32px 0 0; height: 400px; border-radius: 24px; overflow: hidden; }
.vb-capa img { width: 100%; height: 100%; object-fit: cover; }

.vb-corpo { padding-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.vb-artigo { max-width: 880px; min-width: 0; }
/* sem "Leia também" (blog com um só artigo), o texto não cola no rodapé */
.vb-corpo:last-child { padding-bottom: 80px; }

/* texto escrito no editor do WordPress */
.vb-texto { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 28px; color: var(--texto); }
.vb-texto > * { margin: 0; max-width: 100%; }
.vb-texto h2 { margin-top: 28px; font-size: 28px; line-height: 34px; font-weight: 800; color: var(--marinho); }
.vb-texto h3 { margin-top: 14px; font-size: 22px; line-height: 28px; font-weight: 800; color: var(--marinho); }
.vb-texto h4 { margin-top: 10px; font-size: 19px; line-height: 26px; font-weight: 800; color: var(--marinho); }
.vb-texto ul, .vb-texto ol { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; font-size: 18px; }
.vb-texto strong { color: var(--marinho); }
.vb-texto a { color: var(--azul-profundo); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.vb-texto a:hover { color: var(--azul); }
.vb-texto img { max-width: 100%; height: auto; border-radius: 18px; }
.vb-texto figure { margin: 12px 0; }
.vb-texto figcaption { margin-top: 8px; font-size: 14px; line-height: 20px; color: #5a6672; text-align: center; }
.vb-texto blockquote { margin: 8px 0; padding-left: 20px; border-left: 4px solid var(--azul); font-size: 21px; line-height: 30px; font-weight: 700; color: var(--marinho); }
.vb-texto table { width: 100%; border-collapse: collapse; font-size: 16px; }
.vb-texto th, .vb-texto td { padding: 10px 12px; border: 1px solid var(--linha); text-align: left; }
.vb-texto th { background: var(--card); color: var(--marinho); }

/* Foto de produto dentro do artigo: imagem com a classe "vita-produto" */
.vb-texto figure.vita-produto { height: 360px; border-radius: 18px; overflow: hidden; background: var(--card); display: flex; align-items: center; justify-content: center; }
.vb-texto figure.vita-produto img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }

/* Perguntas frequentes do artigo: grupo com a classe "vita-faq" */
.vb-texto .vita-faq { margin-top: 4px; background: var(--card); border-radius: 20px; padding: 8px 32px; display: block; }
.vb-texto .vita-faq > .wp-block-group__inner-container { display: block; }
.vb-texto .vita-faq h3 { margin: 0; padding-top: 20px; font-size: 18px; line-height: 25px; font-weight: 700; }
.vb-texto .vita-faq p { margin: 10px 0 0; padding-bottom: 20px; font-size: 16px; line-height: 25px; border-bottom: 1px solid var(--linha); }
.vb-texto .vita-faq p:last-child { border-bottom: 0; }

.vb-autor { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--linha); display: flex; align-items: center; gap: 14px; }
.vb-autor-foto { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--azul); display: flex; align-items: center; justify-content: center; }
.vb-autor-foto img { width: 28px; height: auto; }
.vb-autor-txt { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #5a6672; }
.vb-autor-txt strong { font-size: 16px; color: var(--marinho); }

.vb-lado { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 20px; }
.vb-cta { position: relative; overflow: hidden; background: var(--marinho); border-radius: 20px; padding: 28px; color: var(--branco); display: flex; flex-direction: column; gap: 14px; }
.vb-cta-marca { position: absolute; right: -40px; bottom: -50px; width: 180px; height: auto; opacity: .1; }
.vb-cta strong { position: relative; font-size: 22px; line-height: 28px; font-weight: 800; }
.vb-cta span { position: relative; font-size: 15px; line-height: 22px; color: #cfe0f1; }
.vb-cta .btn { position: relative; justify-content: center; }

.vb-leia { padding: 64px 0 80px; }
.vb-leia-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.vb-leia-cab .h2 { font-size: 36px; line-height: 42px; }
.vb-leia .vb-grade { row-gap: 32px; }

/* ---------- 404 ---------- */
.vb-404 { padding-top: 72px; padding-bottom: 96px; }
.vb-404-num { display: block; font-size: 120px; line-height: 112px; font-weight: 800; letter-spacing: -.04em; color: var(--azul); }
.vb-404 h1 { margin: 16px 0 0; font-size: 44px; line-height: 50px; font-weight: 800; letter-spacing: -.02em; color: var(--marinho); }
.vb-404 p { margin: 14px 0 0; max-width: 600px; font-size: 19px; line-height: 29px; color: var(--texto); }
.vb-404-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Tablet e celular ---------- */
@media (max-width: 1000px) {
  .vb-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-corpo { grid-template-columns: 1fr; gap: 40px; }
  .vb-lado { position: static; }
}
@media (max-width: 900px) {
  .vb-topo { min-height: 0; }
  .vb-topo-foto { width: 100%; opacity: .5; -webkit-mask-image: none; mask-image: none; }
  .vb-topo-veu { background: linear-gradient(180deg, rgba(14, 34, 56, .92), rgba(14, 34, 56, .82)); }
  .vb-topo-in { padding-top: 32px; padding-bottom: 56px; }
}
@media (max-width: 640px) {
  .vb-topo h1, .vb-cab h1 { font-size: 34px; line-height: 40px; }
  .vb-topo p, .vb-cab-res { font-size: 18px; line-height: 28px; }
  .vb-trilha, .vb-link, .vb-card-cat, .vb-card-res, .vb-cab-meta, .vb-tag, .vb-filtros a, .vb-autor-txt, .vb-cta span, .vb-texto figcaption { font-size: 16px; }
  .vb-trilha a { display: inline-flex; min-height: 32px; align-items: center; }
  .vb-link { min-height: 44px; }
  .vb-lista { padding: 48px 0 64px; }
  .vb-filtros { margin-bottom: 32px; flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .vb-filtros::-webkit-scrollbar { display: none; }
  .vb-filtros a { white-space: nowrap; }
  .vb-grade { grid-template-columns: 1fr; gap: 36px; }
  .vb-capa { height: 240px; border-radius: 18px; margin-top: 24px; }
  .vb-corpo { padding-top: 36px; }
  .vb-corpo:last-child { padding-bottom: 64px; }
  .vb-texto h2 { font-size: 24px; line-height: 30px; }
  .vb-texto h3 { font-size: 20px; line-height: 26px; }
  .vb-texto ul, .vb-texto ol { font-size: 17px; }
  .vb-texto figure.vita-produto { height: 260px; }
  .vb-texto .vita-faq { padding: 4px 20px; }
  .vb-leia { padding: 48px 0 64px; }
  .vb-leia-cab { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vb-leia-cab .h2 { font-size: 30px; line-height: 36px; }
  .vb-404 h1 { font-size: 32px; line-height: 38px; }
  .vb-404-btns .btn { width: 100%; justify-content: center; }
}
