/* Harley Tim – Visual do Blog. Mesmo visual do site harleytim.com.br (ht/site.css). */
@font-face { font-family: 'HTV Fredoka'; font-weight: 300 700; font-display: swap; src: url(fonts/fredoka.woff2) format('woff2'); }
@font-face { font-family: 'HTV Nunito'; font-weight: 200 1000; font-display: swap; src: url(fonts/nunito.woff2) format('woff2'); }

body.htv {
  --htv-marinho: #18224f;
  --htv-marinho-2: #222e66;
  --htv-azul: #2370e8;
  --htv-azul-claro: #e8f0fe;
  --htv-vermelho: #e0243e;
  --htv-amarelo: #ffc83d;
  --htv-whats: #25d366;
  --htv-creme: #fff8ee;
  --htv-texto: #1d2340;
  --htv-suave: #5b6385;
  --htv-linha: #e6e8f0;
  --htv-raio: 20px;
  --htv-sombra: 0 10px 30px rgba(24, 34, 79, .10);
  --htv-largura: 1180px;
  --htv-titulo: 'HTV Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --htv-corpo: 'HTV Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  margin: 0;
  font-family: var(--htv-corpo);
  font-size: 17px;
  line-height: 1.6;
  color: var(--htv-texto);
  background: #fff;
  overflow-x: hidden;
}
html:has(body.htv) { overflow-x: hidden; scroll-padding-top: 84px; }
body.htv .skip-link:not(:focus) { position: absolute; left: -9999px; }
.htv *, .htv *::before, .htv *::after { box-sizing: border-box; }
.htv img { max-width: 100%; height: auto; }
.htv :focus-visible { outline: 3px solid var(--htv-amarelo); outline-offset: 3px; border-radius: 6px; }

/* ===== Botões ===== */
.htv .htv-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: 14px 24px; border-radius: 999px; font-family: var(--htv-corpo); font-weight: 800; text-decoration: none; font-size: 1rem; line-height: 1.2; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; text-align: center; }
.htv .htv-btn:hover { transform: translateY(-2px); }
.htv .htv-btn svg { width: 1.3em; height: 1.3em; fill: currentColor; flex: none; }
.htv .htv-btn-whats { background: var(--htv-whats); color: #06381b; box-shadow: 0 8px 22px rgba(37, 211, 102, .35); }
.htv .htv-btn-whats:hover { background: #2ee070; color: #06381b; }
.htv .htv-btn-contorno { border-color: var(--htv-marinho); color: var(--htv-marinho); background: #fff; }
.htv .htv-btn-contorno:hover { background: var(--htv-marinho); color: #fff; }

/* ===== Topo ===== */
.htv .htv-topo { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--htv-linha); }
.admin-bar.htv .htv-topo { top: 32px; }
.htv .htv-topo-in { max-width: var(--htv-largura); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.htv .htv-marca img { height: 52px; width: auto; display: block; }
.htv .htv-nav { display: flex; align-items: center; gap: 4px; }
.htv .htv-nav a { text-decoration: none; font-weight: 700; color: var(--htv-texto); padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.htv .htv-nav a:hover, .htv .htv-nav a[aria-current] { background: var(--htv-azul-claro); color: var(--htv-azul); }
.htv .htv-nav .htv-nav-portal { background: var(--htv-marinho); color: #fff; padding: 10px 18px; border-radius: 999px; margin-left: 8px; display: inline-flex; align-items: center; gap: 8px; }
.htv .htv-nav .htv-nav-portal:hover { background: var(--htv-azul); color: #fff; }
.htv .htv-nav-portal svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; width: 18px; height: 18px; }
.htv .htv-topo-portal { display: none; margin-left: auto; text-decoration: none; background: var(--htv-marinho); color: #fff; font-weight: 800; font-size: .9rem; padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
.htv .htv-menu-btn { display: none; width: 46px; height: 46px; border: 0; background: var(--htv-azul-claro); border-radius: 12px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; flex: none; }
.htv .htv-menu-btn:hover, .htv .htv-menu-btn:focus { background: var(--htv-azul-claro); }
.htv .htv-menu-btn span { display: block; height: 3px; background: var(--htv-marinho); border-radius: 2px; transition: transform .2s, opacity .2s; }
.htv .htv-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.htv .htv-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.htv .htv-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Faixa do título da lista ===== */
.htv .htv-main { display: block; }
.htv .htv-faixa { background: linear-gradient(120deg, var(--htv-marinho) 0%, var(--htv-marinho-2) 60%, #2a4fb8 100%); color: #fff; }
.htv .htv-faixa-in { max-width: var(--htv-largura); margin: 0 auto; padding: 56px 20px 60px; }
.htv .htv-sobre { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--htv-amarelo); margin: 0 0 10px; }
.htv .htv-faixa h1 { font-family: var(--htv-titulo); font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.1; color: #fff; margin: 0 0 .3em; }
.htv .htv-faixa p { color: #dfe5ff; font-size: 1.12rem; margin: 0; max-width: 36em; }
.htv .htv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.htv .htv-chips a { text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.htv .htv-chips a:hover, .htv .htv-chips a[aria-current] { background: var(--htv-amarelo); border-color: var(--htv-amarelo); color: var(--htv-marinho); }

/* ===== Cartões ===== */
.htv .htv-conteudo-lista { max-width: var(--htv-largura); margin: 0 auto; padding: 48px 20px 80px; }
.htv .htv-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.htv .htv-cartao { text-decoration: none; color: var(--htv-texto); background: #fff; border: 2px solid var(--htv-linha); border-radius: var(--htv-raio); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.htv .htv-cartao:hover { transform: translateY(-4px); box-shadow: var(--htv-sombra); border-color: var(--htv-azul); color: var(--htv-texto); }
.htv .htv-cartao-img { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--htv-azul-claro); }
/* A foto ocupa o quadro sem esticar o cartão (fotos em pé também) */
.htv .htv-cartao-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.htv .htv-cartao:hover .htv-cartao-img img { transform: scale(1.04); }
.htv .htv-sem-foto { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--htv-azul-claro), var(--htv-creme)); }
.htv .htv-sem-foto img { width: 96px; height: auto; object-fit: contain; }
.htv .htv-cartao:hover .htv-sem-foto img { transform: none; }
.htv .htv-cartao-txt { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; flex: 1; }
.htv .htv-cartao time { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--htv-vermelho); }
.htv .htv-cartao strong { font-family: var(--htv-titulo); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--htv-marinho); }
.htv .htv-resumo { color: var(--htv-suave); font-size: .95rem; }
.htv .htv-ler { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--htv-azul); font-size: .95rem; }

/* O post mais recente em destaque, deitado */
.htv .htv-grade.com-destaque > .htv-cartao:first-child { grid-column: 1 / -1; flex-direction: row; }
.htv .htv-grade.com-destaque > .htv-cartao:first-child .htv-cartao-img { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
.htv .htv-grade.com-destaque > .htv-cartao:first-child .htv-cartao-txt { padding: 36px 40px; justify-content: center; gap: 10px; }
.htv .htv-grade.com-destaque > .htv-cartao:first-child strong { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.htv .htv-grade.com-destaque > .htv-cartao:first-child .htv-resumo { font-size: 1.05rem; }
.htv .htv-grade.com-destaque > .htv-cartao:first-child .htv-ler { margin-top: 8px; }

/* Paginação */
.htv .htv-paginas { margin-top: 44px; }
.htv .htv-paginas .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.htv .htv-paginas .page-numbers { text-decoration: none; min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 2px solid var(--htv-linha); color: var(--htv-marinho); font-weight: 800; }
.htv .htv-paginas .page-numbers.current, .htv .htv-paginas a.page-numbers:hover { background: var(--htv-marinho); border-color: var(--htv-marinho); color: #fff; }
.htv .htv-vazio { text-align: center; padding: 40px 0; }
.htv .htv-vazio h2 { font-family: var(--htv-titulo); color: var(--htv-marinho); }

/* ===== Post ===== */
.htv .htv-artigo { max-width: 880px; margin: 0 auto; padding: 40px 20px 20px; }
.htv .htv-artigo-cab { margin-bottom: 26px; }
.htv .htv-voltar { display: inline-block; text-decoration: none; color: var(--htv-azul); font-weight: 800; font-size: .95rem; margin-bottom: 18px; }
.htv .htv-voltar:hover { text-decoration: underline; color: var(--htv-azul); }
.htv .htv-artigo-cab time { display: block; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--htv-vermelho); margin-bottom: 6px; }
.htv .htv-artigo-cab h1 { font-family: var(--htv-titulo); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; color: var(--htv-marinho); margin: 0; }
.htv .htv-capa { margin: 0 0 32px; border-radius: 24px; overflow: hidden; box-shadow: var(--htv-sombra); }
.htv .htv-capa img { width: 100%; max-height: 520px; object-fit: cover; display: block; }

/* Texto do post (editor comum e Elementor) */
.htv .htv-texto { font-size: 1.08rem; line-height: 1.75; }
.htv .htv-texto p { margin: 0 0 1.1em; }
.htv .htv-texto h2, .htv .htv-texto h3, .htv .htv-texto h4 { font-family: var(--htv-titulo); color: var(--htv-marinho); line-height: 1.2; margin: 1.6em 0 .5em; font-weight: 600; }
.htv .htv-texto h2 { font-size: 1.75rem; }
.htv .htv-texto h3 { font-size: 1.4rem; }
.htv .htv-texto a { color: var(--htv-azul); }
.htv .htv-texto ul, .htv .htv-texto ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.htv .htv-texto li { margin-bottom: .35em; }
.htv .htv-texto blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 5px solid var(--htv-amarelo); background: var(--htv-creme); border-radius: 0 16px 16px 0; font-size: 1.15rem; }
.htv .htv-texto blockquote p:last-child { margin-bottom: 0; }
.htv .htv-texto img { border-radius: 14px; }
.htv .htv-texto figure { margin: 1.5em 0; }
.htv .htv-texto figcaption { color: var(--htv-suave); font-size: .9rem; text-align: center; margin-top: 6px; }

/* Elementor dentro do post: mesmas letras do site, sem margens que espremem o texto */
.htv .htv-texto .elementor { font-family: var(--htv-corpo); }
.htv .htv-texto .elementor .elementor-heading-title { font-family: var(--htv-titulo) !important; line-height: 1.2 !important; margin: 0; }
.htv .htv-texto .elementor .elementor-widget-heading { margin-top: 12px; }
.htv .htv-texto .elementor .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.htv .htv-texto .elementor h3.elementor-heading-title, .htv .htv-texto .elementor h2.elementor-heading-title { font-size: clamp(1.35rem, 3vw, 1.75rem) !important; font-weight: 600 !important; }
.htv .htv-texto .elementor .elementor-widget-text-editor { font-family: var(--htv-corpo) !important; font-size: 1.08rem !important; line-height: 1.75 !important; color: var(--htv-texto) !important; }
.htv .htv-texto .elementor .e-con, .htv .htv-texto .elementor .e-con-inner { --padding-left: 0px; --padding-right: 0px; --content-width: 100%; }
.htv .htv-texto .elementor .e-con.e-parent { border-radius: 18px; }

/* Galerias: fotos grandes em grade, quadradas e arredondadas (clique abre ampliada) */
.htv .htv-texto .gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 1.2em 0 1.6em !important; }
.htv .htv-texto .gallery .gallery-item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; }
.htv .htv-texto .gallery .gallery-icon, .htv .htv-texto .gallery .gallery-icon a { display: block; margin: 0; }
.htv .htv-texto .gallery img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 0 !important; transition: transform .25s, box-shadow .25s; }
.htv .htv-texto .gallery a:hover img { transform: scale(1.03); box-shadow: var(--htv-sombra); }
.htv .htv-texto .gallery br { display: none; }
.htv .htv-texto .gallery .gallery-caption { display: none; }
/* Foto ampliada do Elementor: sem o nome do arquivo (ex.: 20260327_102345) embaixo */
.htv .elementor-lightbox .elementor-slideshow__title { display: none; }
/* Galeria nova do editor de blocos */
.htv .htv-texto .wp-block-gallery { gap: 12px !important; }
.htv .htv-texto .wp-block-gallery img { border-radius: 14px; }

/* Pé do post */
.htv .htv-artigo-pe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--htv-linha); }
.htv .htv-mais { max-width: var(--htv-largura); margin: 0 auto; padding: 48px 20px 80px; }
.htv .htv-mais-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.htv .htv-mais-cab h2 { font-family: var(--htv-titulo); font-weight: 600; color: var(--htv-marinho); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.htv .htv-mais-cab a { color: var(--htv-azul); font-weight: 800; text-decoration: none; }

/* ===== Chamada amarela ===== */
.htv .htv-chamada { background: var(--htv-amarelo); }
.htv .htv-chamada-in { max-width: var(--htv-largura); margin: 0 auto; padding: 44px 20px; display: flex; align-items: center; gap: 28px; }
.htv .htv-chamada img { width: 110px; flex: none; }
.htv .htv-chamada-in > div { flex: 1; }
.htv .htv-chamada h2 { font-family: var(--htv-titulo); font-weight: 600; color: var(--htv-marinho); font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 .2em; line-height: 1.15; }
.htv .htv-chamada p { margin: 0; color: #5a4300; font-weight: 600; font-size: 1.08rem; }

/* ===== Rodapé ===== */
.htv .htv-rodape { background: var(--htv-marinho); color: #c3cbef; font-family: var(--htv-corpo); }
.htv .htv-rodape-in { max-width: var(--htv-largura); margin: 0 auto; padding: 60px 20px 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.htv .htv-rod-marca img { width: 180px; background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; display: block; }
.htv .htv-rod-marca p { font-size: .93rem; margin: 0; }
.htv .htv-rodape h2 { font-family: var(--htv-titulo); color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0 0 12px; }
.htv .htv-rodape-in a, .htv .htv-rodape-in span { display: block; text-decoration: none; padding: 4px 0; font-size: .95rem; color: #c3cbef; }
.htv .htv-rodape-in a:hover { color: var(--htv-amarelo); }
.htv .htv-copy { text-align: center; margin: 0; padding: 18px 20px 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #8f9ad0; }

.htv .htv-whats-flutuante { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--htv-whats); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.25); transition: transform .2s; }
.htv .htv-whats-flutuante:hover { transform: scale(1.08); }
.htv .htv-whats-flutuante svg { width: 34px; height: 34px; fill: #fff; }

/* ===== Telas menores ===== */
@media (max-width: 1020px) {
  .htv .htv-grade { grid-template-columns: repeat(2, 1fr); }
  .htv .htv-rodape-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .htv .htv-menu-btn { display: flex; }
  .htv .htv-topo-portal { display: inline-block; }
  .htv .htv-topo-in { gap: 10px; }
  .htv .htv-topo { background: #fff; }
  .htv .htv-nav { display: none; position: fixed; top: 73px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 30px; gap: 4px; overflow-y: auto; z-index: 49; }
  .admin-bar.htv .htv-nav { top: 119px; }
  .htv .htv-nav.aberto { display: flex; }
  .htv .htv-nav a { font-size: 1.15rem; padding: 14px 16px; border-bottom: 1px solid var(--htv-linha); border-radius: 0; }
  .htv .htv-nav .htv-nav-portal { margin: 16px 0 0; justify-content: center; border-radius: 999px; border: 0; }
  body.htv.htv-menu-aberto { overflow: hidden; }
  .htv .htv-grade.com-destaque > .htv-cartao:first-child { flex-direction: column; }
  .htv .htv-grade.com-destaque > .htv-cartao:first-child .htv-cartao-img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .htv .htv-grade.com-destaque > .htv-cartao:first-child .htv-cartao-txt { padding: 20px 22px 24px; }
}
@media (max-width: 782px) {
  .admin-bar.htv .htv-topo { top: 46px; }
  .admin-bar.htv .htv-nav { top: 133px; }
}
@media (max-width: 640px) {
  body.htv { font-size: 16px; }
  .htv .htv-marca img { height: 42px; }
  .htv .htv-nav { top: 63px; }
  .htv .htv-topo-in, .htv .htv-faixa-in, .htv .htv-conteudo-lista, .htv .htv-artigo, .htv .htv-mais, .htv .htv-chamada-in, .htv .htv-rodape-in { padding-left: 16px; padding-right: 16px; }
  .htv .htv-faixa-in { padding-top: 40px; padding-bottom: 44px; }
  .htv .htv-grade { grid-template-columns: 1fr; }
  .htv .htv-artigo { padding-top: 28px; }
  .htv .htv-capa { border-radius: 18px; margin-bottom: 24px; }
  .htv .htv-texto .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .htv .htv-artigo-pe .htv-btn { width: 100%; }
  .htv .htv-chamada-in { flex-direction: column; text-align: center; }
  .htv .htv-chamada-in .htv-btn { width: 100%; }
  .htv .htv-rodape-in { grid-template-columns: 1fr; }
  .htv .htv-whats-flutuante { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .htv * { transition: none !important; }
}
