/* =========================================================
   ALVARENGA HUB — ajustes para o WordPress
   O visual principal está em base.css (o mesmo do site original).
   Aqui ficam só as adaptações dos blocos do editor.
   ========================================================= */

/* blocos não somam margens próprias: o espaçamento vem do base.css */
.entry-hub figure.wp-block-image { margin: 0; }

/* imagem simples: o <figure> não interfere no layout (o <img> se comporta como antes) */
.entry-hub figure.wp-block-image:not(:has(figcaption)) { display: contents; }
.entry-hub figure.wp-block-image img { max-width: 100%; height: auto; }
.entry-hub .hero-media .hero-bg img { height: 100%; }
.entry-hub figure.wp-block-image.logo-tt img { display: inline-block; vertical-align: middle; }
.tt-band figure.logo-tt img { height: 44px; width: auto; }
.duo-card figure.logo img { height: 46px; width: auto; }
.hero-bg-dots img { position: absolute; right: -120px; top: -80px; width: 560px; opacity: .08; pointer-events: none; }
.entry-hub figure.wp-block-image figcaption { font-size: .88rem; color: var(--mute); margin-top: 8px; }

/* parágrafo neutro que só embala um rótulo (ex.: <span class="eyebrow">) */
.entry-hub p.solto { font-size: inherit; line-height: inherit; margin: 0; color: inherit; font-weight: inherit; }

/* as classes de estilo ficam no invólucro do botão: o invólucro não ganha visual de botão */
.wp-block-button.btn-line, .wp-block-button.btn-wa, .wp-block-button.btn-dark, .wp-block-button.btn-sm, .wp-block-button.com-wa { box-shadow: none; background: none; min-height: 0; padding: 0; border: 0; }

/* botões do editor com o mesmo visual dos botões do site */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.entry-hub .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
  --b-bg: var(--grad); --b-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--b-bg); color: var(--b-fg);
  font: 800 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; word-break: normal;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 10px 24px -14px rgba(242, 122, 46, .9);
}
.entry-hub .wp-block-button__link:hover { transform: translateY(-2px); filter: saturate(1.1); }
.wp-block-button.btn-dark .wp-block-button__link, .wp-block-button.is-style-escuro .wp-block-button__link { --b-bg: var(--ink); --b-fg: var(--paper); box-shadow: none; }
.on-dark .wp-block-button.btn-dark .wp-block-button__link, .on-dark .wp-block-button.is-style-escuro .wp-block-button__link { --b-bg: var(--paper); --b-fg: var(--ink); }
.on-sol .wp-block-button.btn-dark .wp-block-button__link { --b-bg: var(--ink); --b-fg: var(--paper); }
.wp-block-button.btn-line .wp-block-button__link, .wp-block-button.is-style-contorno .wp-block-button__link, .wp-block-button.is-style-outline .wp-block-button__link { --b-bg: transparent; --b-fg: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.wp-block-button.btn-wa .wp-block-button__link { --b-bg: var(--wa); --b-fg: #fff; box-shadow: 0 10px 24px -14px rgba(31, 175, 84, .9); }
.wp-block-button.btn-sm .wp-block-button__link { min-height: 42px; padding: 8px 16px; font-size: .92rem; }
/* ícone do WhatsApp nos botões verdes ou com link do WhatsApp */
.wp-block-button.btn-wa .wp-block-button__link::before,
.wp-block-button.com-wa .wp-block-button__link::before,
.wp-block-button__link[href*="wa.me"]::before,
.wp-block-button__link[href$="#consultor"]::before {
  content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: var(--ico-wa) center / contain no-repeat; mask: var(--ico-wa) center / contain no-repeat;
}
:root { --ico-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 0 0 1.8-1.3 2.2 2.2 0 0 0 .2-1.3c-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E"); }

/* listas do editor dentro das seções */
.entry-hub .wp-block-list.checks, .entry-hub .wp-block-list.chips { padding: 0; }

/* sanfona (perguntas frequentes) feita com o bloco "Detalhes" */
.entry-hub .wp-block-details { margin: 0; }

/* mega menu com 4 colunas (uma por público) */
.mega.mega-4 { grid-template-columns: repeat(4, 1fr); width: min(1080px, 94vw); }
.mega.mega-2 { grid-template-columns: repeat(2, 1fr); width: min(620px, 92vw); }
.mega.mega-1 { grid-template-columns: 1fr; width: min(340px, 92vw); }
.site-header .brand img { height: auto; }
.custom-logo-link img, .brand img { max-height: 44px; width: auto; }

/* topo curto (blog, páginas simples) */
.hero-media.hero-curto { min-height: clamp(320px, 46vh, 460px); }
.post-meta { margin-top: 14px; color: #D9D1C7; font-weight: 700; font-size: .95rem; }

/* texto corrido: páginas simples e artigos do blog */
.prosa { max-width: 760px; font-size: 1.08rem; }
.prosa > * + * { margin-top: 1.05em; }
.prosa h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); margin-top: 1.8em; }
.prosa h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-top: 1.5em; }
.prosa ul, .prosa ol { padding-left: 22px; }
.prosa li + li { margin-top: .4em; }
.prosa a { color: var(--brasa-ink); font-weight: 700; }
.prosa a.btn, .prosa .wp-block-button__link { color: var(--b-fg); }
.prosa img { border-radius: var(--radius-lg, 22px); }
.prosa blockquote { margin-inline: 0; padding: 18px 22px; border-left: 4px solid var(--brasa); background: var(--sand); border-radius: 0 16px 16px 0; font-size: 1.1rem; }
.prosa .wp-block-buttons { margin-top: 1.4em; }
.prosa .cta-strip, .prosa .hub-cta-post { margin-block: 2em; }
.hub-cta-post { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg, 22px); padding: clamp(22px, 4vw, 34px); display: grid; gap: 12px; }
.hub-cta-post h3 { margin: 0 !important; color: var(--paper); }
.hub-cta-post p { color: #E9E3DB; margin: 0 !important; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }
.post-tags a { font-size: .85rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--sand); color: var(--ink); text-decoration: none; }
.post-share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid rgba(20, 18, 16, .12); font-weight: 700; }
.post-share .btn { color: var(--ink); }

/* cards do blog */
.posts-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { padding: 0; overflow: hidden; display: flex; }
.post-card-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; width: 100%; }
.post-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-txt { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.post-card-txt h3 { font-size: 1.25rem; }
.post-card-txt p { color: var(--mute); }
.filtro-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filtro-cats a { padding: 8px 16px; border-radius: 999px; background: var(--sand); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.filtro-cats a[aria-current] { background: var(--ink); color: var(--paper); }
.paginacao { margin-top: 30px; }
.paginacao .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.paginacao .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--sand); text-decoration: none; color: var(--ink); font-weight: 800; padding: 0 12px; }
.paginacao .page-numbers.current { background: var(--ink); color: var(--paper); }
.busca { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.busca input { flex: 1 1 220px; min-height: 46px; border-radius: 12px; border: 1.5px solid rgba(20,18,16,.2); padding: 0 14px; font: inherit; }

/* barra de administração não cobre o topo */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* alinhamentos padrão do WordPress em textos corridos */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* rodapé: logo + colunas dos públicos + contato */
.foot-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 24px; }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.6fr repeat(5, 1fr); } }

/* logos das plataformas (YouTube, Spotify) na página de podcast */
.entry-hub .plataformas-logos img, .entry-hub .plataformas-logos figure.wp-block-image img { height: 34px; width: auto; max-width: none; }
.entry-hub .video-yt img { height: 100%; }
