/* Peças novas do site (quadro do autor, "Leia também", categorias, posts novos), na mesma paleta e fontes do Limiar. */
:root {
  --le-ouro: rgb(201, 169, 110);
  --le-terra: rgb(138, 81, 56);
  --le-texto-claro: rgb(214, 207, 196);
  --le-fundo-escuro: #000;
  --le-serifa: 'Cormorant Garamond', Georgia, serif;
}

/* categoria do artigo vira link para a página da categoria */
a.categories__link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
a.categories__link:hover, a.categories__link:focus-visible { border-bottom-color: currentColor; }
.pagina-categoria .block-blog-header .categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }

/* "Leia também" */
.leia-titulo {
  font-family: var(--le-serifa); font-weight: 400; font-style: italic;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; color: rgb(26, 26, 26);
  text-align: center; margin: 0 auto 36px; max-width: 1224px;
}

/* Quadro do autor */
.autor-bloco { background: var(--le-fundo-escuro); padding: 8px 16px 72px; }
.autor {
  max-width: 760px; margin: 0 auto; display: flex; gap: 28px; align-items: center;
  border-top: 1px solid rgba(201, 169, 110, .45); border-bottom: 1px solid rgba(201, 169, 110, .45); padding: 32px 4px;
}
.autor__foto { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; filter: grayscale(.15); }
.autor__texto p { margin: 0; font-family: var(--le-serifa); color: var(--le-texto-claro); }
.autor__rotulo { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--le-ouro) !important; margin-bottom: 6px !important; }
.autor__nome { font-size: 30px; font-style: italic; line-height: 1.1; color: rgb(237, 232, 223) !important; }
.autor__cargo { font-size: 16px; color: var(--le-ouro) !important; margin: 4px 0 12px !important; }
.autor__bio { font-size: 18px; line-height: 1.6; }
.autor__botao {
  display: inline-block; margin-top: 18px; padding: 10px 22px; border: 1px solid var(--le-ouro); border-radius: 50px;
  font-family: var(--le-serifa); font-size: 17px; letter-spacing: .5px; color: var(--le-ouro); text-decoration: none; transition: background .25s, color .25s;
}
.autor__botao:hover, .autor__botao:focus-visible { background: var(--le-ouro); color: #000; }
@media (max-width: 640px) {
  .autor { flex-direction: column; text-align: center; gap: 18px; }
  .autor__foto { width: 96px; height: 96px; }
}

/* Posts novos (Markdown) com a mesma tipografia dos antigos */
.post-novo { background: var(--le-fundo-escuro); padding: 56px 16px; }
.post-novo__conteudo { max-width: 760px; margin: 0 auto; color: var(--le-texto-claro); font-family: var(--le-serifa); }
.post-novo__capa { width: 100%; height: auto; margin: 0 auto 40px; display: block; }
.post-novo__conteudo p { font-size: 20px; line-height: 1.7; margin: 0 0 1.6rem; color: var(--le-texto-claro); text-align: justify; hyphens: auto; }
.post-novo__conteudo h2 { font-family: var(--le-serifa); font-style: italic; font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; color: rgb(237, 232, 223); margin: 2.4rem 0 1rem; }
.post-novo__conteudo h3 { font-family: var(--le-serifa); font-style: italic; font-weight: 400; font-size: 28px; color: rgb(237, 232, 223); margin: 2rem 0 .8rem; }
.post-novo__conteudo blockquote { background: #fff; color: rgb(26, 26, 26); margin: 2.4rem 0; padding: 32px 36px; }
.post-novo__conteudo blockquote p { color: rgb(26, 26, 26); font-style: italic; font-size: 24px; line-height: 1.4; text-align: left; margin: 0 0 .8rem; }
.post-novo__conteudo blockquote p:last-child { font-family: 'Caveat Regular', cursive; font-style: normal; font-size: 18px; margin: 0; }
.post-novo__conteudo a { color: var(--le-ouro); }
.post-novo__conteudo img { max-width: 100%; height: auto; }
.post-novo__conteudo ul, .post-novo__conteudo ol { font-size: 20px; line-height: 1.7; margin: 0 0 1.6rem 1.2em; }
.post-novo__conteudo hr { border: 0; text-align: center; margin: 2rem 0; }
.post-novo__conteudo hr::after { content: '· · ·'; color: var(--le-texto-claro); }

/* Leitura no celular (aprovado em 17/10/2026): texto corrido maior, mais espaço entre linhas, sem trocar a fonte */
@media (max-width: 920px) {
  .pagina-post .text-box p.body:not([style*="--fontSizeMobile"]) { font-size: 19px !important; line-height: 1.68 !important; }
  .pagina-post .text-box p.body-small:not([style*="--fontSizeMobile"]) { font-size: 17px !important; line-height: 1.55 !important; }
  .pagina-post .text-box p.body span[style*="rgb(122, 116, 108)"],
  .pagina-post .text-box p.body-small span[style*="rgb(122, 116, 108)"] { color: rgb(168, 160, 148) !important; }
  .pagina-post .block-blog-header__description { font-size: 18px; line-height: 1.55; }
  .post-novo__conteudo p { font-size: 19px; text-align: left; }
  /* texto justificado em tela estreita abre buracos entre as palavras */
  .pagina-post .layout-element[style*="--text:justify"] { --m-text: left !important; }
  .pagina-post .layout-element[style*="--text:justify"] .text-box :is(p, h2, h3) { text-align: left !important; }
}

/* formulário enviado pelo WhatsApp */
.input--erro .input__label { color: rgb(158, 101, 85) !important; }
.input--erro .input__label::after { content: ' (obrigatório)'; font-size: .85em; }
.input--erro input:not([type="checkbox"]), .input--erro textarea { outline: 2px solid rgb(158, 101, 85); }

/* Endereço do consultório (site do Flávio), logo antes do rodapé */
.endereco-bloco { padding: 22px 16px 6px; text-align: center; font-family: var(--le-serifa); }
.endereco-bloco p { margin: 0 0 6px; font-size: 16px; line-height: 1.5; color: rgb(214, 207, 196); }
.endereco-bloco a { color: var(--le-ouro); }

/* ===== Leitura e WhatsApp (proposta de 17/10/2026, ver antes-depois/) ===== */

/* 1) Texto sobre foto: véu escuro do lado do texto + sombra leve nas letras */
:root { --veu: 12, 10, 8; }
:is(#ai-sSa2eu, #zJuplo, #z7hZ5W, #zEzm2L) > .block-background > .block-background__overlay {
  opacity: 1 !important; background-color: transparent !important;
  background-image: linear-gradient(90deg, rgba(var(--veu), .86) 0%, rgba(var(--veu), .70) 38%, rgba(var(--veu), .18) 68%, rgba(var(--veu), 0) 100%) !important;
}
:is(#ai--WzJ5p, #ai-l4T03v, #zEFAyR, #zZMFjy, #znF1Gb, #z2GEkn) > .block-background > .block-background__overlay {
  opacity: 1 !important; background-color: rgba(var(--veu), .66) !important;
}
:is(#ai-sSa2eu, #zJuplo, #z7hZ5W, #zEzm2L, #ai--WzJ5p, #ai-l4T03v, #zEFAyR, #zZMFjy, #znF1Gb, #z2GEkn) .text-box :is(h1, h2, h3, p) {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 16px rgba(0, 0, 0, .35);
}
/* abertura do site do Flávio: véu só atrás do texto, sem escurecer o rosto */
#ai-sSa2eu > .block-background > .block-background__overlay {
  background-image: radial-gradient(ellipse 42% 52% at 17% 64%, rgba(var(--veu), .74) 0%, rgba(var(--veu), .52) 50%, rgba(var(--veu), 0) 100%) !important;
}
@media (max-width: 920px) {
  /* no celular o texto fica por cima da foto inteira: véu por igual */
  :is(#zJuplo, #z7hZ5W, #zEzm2L) > .block-background > .block-background__overlay {
    background-image: none !important; background-color: rgba(var(--veu), .78) !important;
  }
  /* abertura: rosto do Flávio no alto, texto embaixo */
  #ai-sSa2eu > .block-background > .block-background__overlay {
    background-image: linear-gradient(180deg, rgba(var(--veu), .05) 0%, rgba(var(--veu), .25) 40%, rgba(var(--veu), .78) 72%, rgba(var(--veu), .85) 100%) !important;
  }
}
/* título do Limiar: "Existencial" em dourado, que aparece sobre a foto escura */
#znF1Gb .text-box h1[style*="rgb(125, 100, 8)"] { color: rgb(201, 169, 110) !important; }
/* menu do topo por cima da foto: sombra para as letras não sumirem */
.block-header__nav .item-content { text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 0 14px rgba(0, 0, 0, .45); }

/* 2) Tamanho mínimo de leitura (a Cormorant é uma letra miúda: 14px dela parece 12px) */
.text-box .body-small { font-size: max(17px, var(--fontSizeDesktop, var(--body-small-font-size))) !important; }
.text-box .body { font-size: max(18px, var(--fontSizeDesktop, var(--body-font-size))) !important; }
@media (max-width: 920px) {
  .text-box .body-small { font-size: max(16px, var(--fontSizeMobile, var(--body-small-m-font-size, var(--body-small-font-size)))) !important; }
  .text-box .body { font-size: max(17px, var(--fontSizeMobile, var(--body-m-font-size, var(--body-font-size)))) !important; }
  /* texto justificado em tela estreita abre buracos entre as palavras (vale para todas as páginas) */
  .layout-element:is([style*="--text:justify"], [style*="--m-text:justify"]) { --m-text: left !important; }
  .layout-element:is([style*="--text:justify"], [style*="--m-text:justify"]) .text-box :is(p, h2, h3) { text-align: left !important; }
  /* botões com 12px no celular ficavam difíceis de ler e de tocar */
  .grid-button { --font-size-mobile: max(15px, var(--font-size-mobile, 15px)); font-size: max(15px, var(--font-size-mobile)) !important; min-height: 48px; }
}
/* rodapé: textos em terra sobre o fundo escuro ficavam apagados */
.text-box p span[style*="rgb(158, 101, 85)"], .text-box p[style*="rgb(158, 101, 85)"] { color: rgb(201, 150, 128) !important; }

/* 3) Botões que abrem o WhatsApp: verde do WhatsApp, com o ícone */
a.grid-button:is([href*="wa.me"], [href*="api.whatsapp"], [href*="whatsapp.com"]) {
  --background-color: #1c9e50 !important; --border-color: #1c9e50 !important; --font-color: #fff !important;
  --background-color-hover: #158040 !important; --border-color-hover: #158040 !important; --font-color-hover: #fff !important;
  justify-content: center; gap: 10px; font-weight: 500 !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  white-space: normal !important; text-overflow: clip !important;
}
a.grid-button:is([href*="wa.me"], [href*="api.whatsapp"], [href*="whatsapp.com"])::before,
.wa-flutuante::before {
  content: ''; flex: none; width: 1.25em; height: 1.25em; background: currentColor;
  -webkit-mask: var(--icone-wa) center / contain no-repeat; mask: var(--icone-wa) center / contain no-repeat;
}
:root {
  --icone-wa: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/></svg>");
}
/* botão fixo no canto da tela */
.wa-flutuante {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px; background: #1c9e50; color: #fff; text-decoration: none;
  font-family: Jost, system-ui, sans-serif; font-size: 16px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: background .2s, transform .2s;
}
.wa-flutuante:hover, .wa-flutuante:focus-visible { background: #158040; transform: translateY(-2px); }
.wa-flutuante::before { width: 24px; height: 24px; }
@media (max-width: 920px) {
  /* espaço no fim da página para o botão fixo não cobrir a última linha do rodapé */
  body:has(.wa-flutuante) .site { padding-bottom: 76px; background: rgb(29, 24, 21); }
  body.limiar:has(.wa-flutuante) .site { background: #000; }
  .wa-flutuante { padding: 0; width: 56px; height: 56px; justify-content: center; right: 14px; bottom: 14px; }
  .wa-flutuante span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wa-flutuante::before { width: 30px; height: 30px; }
}

/* Primeira tela no celular: o HTML guardado trazia 215px (altura do topo no computador) no lugar de 129px.
   A foto subia por baixo do topo e cortava a cabeça; com 129px fica igual ao site de hoje. */
section[style*="--header-height-mobile: 215px"] { --header-height-mobile: 129px !important; }

/* Seção "Onde atendo" (só na página inicial, entra com ENDERECO=1 até o Flávio aprovar) */
.onde-atendo { background: rgb(29, 24, 21); color: var(--le-texto-claro); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; padding: 96px max(24px, calc((100% - 1160px) / 2)); }
.onde-atendo__etiqueta { margin: 0 0 14px; font-family: var(--le-serifa); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--le-ouro); }
.onde-atendo h2 { margin: 0 0 32px; font-family: var(--le-serifa); font-weight: 400; font-size: 42px; line-height: 1.12; color: #F3EDE4; }
.onde-atendo__item { padding: 18px 0; border-top: 1px solid rgba(201, 169, 110, .28); }
.onde-atendo__item h3 { margin: 0 0 6px; font-family: var(--le-serifa); font-style: italic; font-weight: 400; font-size: 21px; color: var(--le-ouro); }
.onde-atendo__item p { margin: 0; font-family: var(--le-serifa); font-size: 18px; line-height: 1.55; color: var(--le-texto-claro); }
.onde-atendo__nota { margin: 6px 0 0; padding-top: 18px; border-top: 1px solid rgba(201, 169, 110, .28); font-family: var(--le-serifa); font-size: 16px; color: var(--le-texto-claro); }
.onde-atendo__nota a { color: inherit; text-decoration: none; }
.onde-atendo__nota b { color: var(--le-ouro); letter-spacing: .12em; font-weight: 400; margin-right: 6px; }
.onde-atendo__botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.onde-atendo__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-family: var(--le-serifa); font-size: 17px; text-decoration: none; border: 1px solid var(--le-ouro); color: var(--le-ouro); transition: background .2s, color .2s; }
.onde-atendo__btn:hover, .onde-atendo__btn:focus-visible { background: var(--le-ouro); color: rgb(29, 24, 21); }
.onde-atendo__btn--wa { background: #1c9e50; border-color: #1c9e50; color: #fff; }
.onde-atendo__btn--wa:hover, .onde-atendo__btn--wa:focus-visible { background: #158040; border-color: #158040; color: #fff; }
.onde-atendo__mapa { position: relative; height: 440px; border: 1px solid rgba(201, 169, 110, .35); border-radius: 4px; overflow: hidden; background: #2a231f; }
.onde-atendo__mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35) sepia(.12); }
@media (max-width: 920px) {
  .onde-atendo { grid-template-columns: 1fr; gap: 32px; padding: 64px 20px 56px; }
  .onde-atendo h2 { font-size: 31px; margin-bottom: 24px; }
  .onde-atendo__mapa { height: 300px; }
  .onde-atendo__btn { flex: 1 1 100%; }
}
.onde-atendo .sem-quebra { white-space: nowrap; }

/* página 404 */
.nao-encontrada { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 160px 22px 96px; background: rgb(232, 224, 209); color: rgb(29, 26, 22); font-family: var(--le-serifa); }
.nao-encontrada h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 400; font-style: italic; margin: 8px 0 14px; color: rgb(29, 26, 22); }
.nao-encontrada p { font-size: 19px; line-height: 1.6; max-width: 46ch; margin: 0; }
.nao-encontrada__rotulo { font-size: 13px !important; letter-spacing: .16em; text-transform: uppercase; color: rgb(138, 81, 56); }
.nao-encontrada__links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 26px !important; }
.nao-encontrada__links a { padding: 12px 22px; border: 1px solid rgb(138, 81, 56); border-radius: 999px; color: rgb(29, 26, 22); text-decoration: none; }
.nao-encontrada__links a:first-child { background: rgb(29, 26, 22); color: #F3EDE4; border-color: rgb(29, 26, 22); }
main:has(.nao-encontrada) .top-blocks { background: rgb(18, 15, 13); }

/* Aviso de cookies (LGPD) — js/consentimento.js */
.aviso-cookies { position: fixed; z-index: 60; left: 20px; bottom: 20px; max-width: 440px; padding: 18px 20px; border-radius: 12px;
  background: rgb(29, 24, 21); color: #f3ece4; box-shadow: 0 10px 30px rgba(0,0,0,.28); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.aviso-cookies p { margin: 0 0 14px; }
.aviso-cookies a { color: #e3b59c; text-decoration: underline; text-underline-offset: 2px; }
.aviso-cookies__botoes { display: flex; gap: 10px; justify-content: flex-end; }
.aviso-cookies button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(243,236,228,.35); background: transparent;
  color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.aviso-cookies button:hover { border-color: #f3ece4; }
.aviso-cookies .aviso-cookies__aceitar { background: rgb(138, 81, 56); border-color: rgb(138, 81, 56); color: #fff; }
.aviso-cookies .aviso-cookies__aceitar:hover { background: rgb(116, 66, 44); }
@media (max-width: 920px) {
  .aviso-cookies { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 14px 16px; font-size: 14px; }
  .aviso-cookies p { margin-bottom: 10px; }
  .aviso-cookies button { flex: 1; }
  body.com-aviso-cookies .wa-flutuante { bottom: calc(var(--altura-aviso-cookies, 140px) + 20px); }
}
