/* =====================================================================
   BIBLIOTECA MUNDOCOOP: aparência
   Visual inspirado no tema Bookory: fundos suaves, capas com cantos
   bem arredondados, botões em formato de pílula, acento em coral e
   rodapé escuro. As cores e a fonte da página inteira ficam nas
   variáveis abaixo.
   ===================================================================== */

:root {
  /* cores (medidas nas telas do Bookory) */
  --preto: #000;
  --coral: #E46756;          /* acento: detalhes e botões grandes */
  --coral-texto: #C8402F;    /* coral mais escuro, para texto pequeno */
  --coral-botao: #CC4A38;    /* coral dos botões com texto branco (contraste de leitura) */
  --cinza: #6E6E6E;          /* texto secundário */
  --linha: #E6E6E6;
  --creme: #FEF8F3;
  --lilas: #F9F8FD;
  --gelo: #F5F7FE;
  --painel: #F0F1F5;
  --menta: #DBE2D6;
  --rosa: #D32B76;          /* rosa do banner em destaque (texto branco, contraste 4,8:1) */
  --escuro: #282828;         /* rodapé */
  --escuro-texto: #A3A3A3;

  /* fonte do Bookory (Sora). Para trocar, mude aqui e no <link> do index.html */
  --f: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* medidas */
  --largura: 1200px;
  --margem: clamp(16px, 4vw, 40px);
  --altura-topo: 72px;
  --raio-capa: clamp(12px, 1.4vw, 18px);
  --raio-bloco: 28px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.travado { overflow: hidden; }

body {
  margin: 0;
  background: #fff;
  color: var(--preto);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--preto); outline-offset: 4px; }

/* ---------- topo ---------- */
.topo {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--linha);
}
.topo-in {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--margem);
  height: var(--altura-topo);
  display: flex;
  align-items: center;
  gap: 8px;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--preto);
  text-decoration: none;
  white-space: nowrap;
}
.marca img { width: 30px; height: 30px; }

.menu { display: flex; align-items: center; gap: 2px; }
.menu > a, .menu-botao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--preto);
  font: 500 15px/1 var(--f);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.menu > a:hover, .menu-botao:hover, .menu-botao[aria-expanded="true"] { background: var(--creme); color: var(--coral-texto); }
.menu-botao svg { transition: transform .25s; }
.menu-botao[aria-expanded="true"] svg { transform: rotate(180deg); }

/* painel das categorias (alinhado à direita do conteúdo) */
.menu-painel {
  position: absolute;
  top: calc(100% + 8px);
  right: calc(max(0px, (100% - var(--largura)) / 2) + var(--margem));
  width: min(720px, calc(100vw - 2 * var(--margem)));
  padding: 12px;
  border: 1px solid var(--linha);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .35);
}
.menu-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.menu-cats a, .menu-cats .cat-vazia {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--preto);
  text-decoration: none;
}
.menu-cats a { transition: background-color .2s; }
.menu-cats a:hover { background: var(--creme); }
.cat-nome { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.cat-desc { font-size: 13px; line-height: 1.5; color: var(--cinza); text-wrap: pretty; }
.cat-vazia .cat-nome { color: #7A7A7A; }
.cat-breve {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--painel);
  color: #5F5F5F;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.topo-acoes { display: flex; align-items: center; gap: 2px; }
.icone {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--preto);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.icone:hover, .icone[aria-expanded="true"] { background: var(--creme); color: var(--coral-texto); }
.icone-menu { display: none; }
.icone-menu .ic-fechar { display: none; }
.icone-menu[aria-expanded="true"] .ic-fechar { display: block; }
.icone-menu[aria-expanded="true"] .ic-abrir { display: none; }

/* ---------- busca ---------- */
.busca { position: relative; }
.busca-faixa {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px calc(max(0px, (100% - var(--largura)) / 2) + var(--margem));
  background: var(--coral);
}
.busca-form { position: relative; flex: 1; min-width: 0; }
.busca-form input {
  width: 100%;
  height: 56px;
  padding: 0 68px 0 28px;
  border: 0;
  border-radius: 999px;
  background: #F6F6F6;
  color: #2B2B2B;
  font: 400 17px/1 var(--f);
  -webkit-appearance: none;
  appearance: none;
}
.busca-form input::placeholder { color: #666; opacity: 1; }
.busca-form input::-webkit-search-cancel-button { display: none; }
.busca-form input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(0, 0, 0, .35); }
.busca-enviar {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--preto);
  cursor: pointer;
}
.busca-enviar:hover { background: #E9E9E9; }
.busca-fechar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .14);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s;
}
.busca-fechar:hover { background: rgba(0, 0, 0, .3); }
.busca :focus-visible { outline-color: #fff; }
.busca-res :focus-visible, .busca-lista :focus-visible { outline-color: var(--preto); }

.busca-res {
  max-height: min(66dvh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px calc(max(0px, (100% - var(--largura)) / 2) + var(--margem)) 18px;
  background: #fff;
  box-shadow: 0 28px 40px -26px rgba(0, 0, 0, .4);
}
.busca-info { padding: 14px 0 8px; font-size: 14px; line-height: 1.4; color: var(--cinza); }
.busca-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.busca-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s;
}
.busca-item:hover, .busca-item:focus-visible { background: var(--creme); }
.busca-capa img, .busca-capa .capa-falha { width: 46px; height: auto; border-radius: 6px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.busca-capa .capa-falha { padding: 4px; aspect-ratio: 3 / 4; }
.busca-capa .capa-falha-texto { font-size: 6px; }
.busca-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.busca-titulo {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- abertura: foto em movimento ---------- */
.abertura { padding: clamp(12px, 2vw, 24px) 0 0; background: #fff; }
.abertura-in { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }
.abertura-quadro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(520px, 44vw, 620px);
  border-radius: var(--raio-bloco);
  background: var(--creme);
  overflow: hidden;
  isolation: isolate;
}
.abertura-texto {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: start;
  width: min(48%, 36rem);
  padding: clamp(36px, 5vw, 72px) 0 clamp(36px, 5vw, 72px) clamp(32px, 5vw, 72px);
}
.abertura-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--coral-texto);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.abertura-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.abertura h1 {
  position: relative;
  isolation: isolate;
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.traco { position: relative; display: inline-block; white-space: nowrap; }
.traco svg {
  position: absolute;
  z-index: -1;
  left: -5%;
  bottom: -.2em;
  width: 110%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.traco path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: tracejar .9s cubic-bezier(.5, 0, .2, 1) forwards;
  animation-delay: calc(.75s + var(--n) * .3s);
}
.traco path + path { stroke-width: 5; }
.abertura-sub {
  margin-top: 24px;
  max-width: 23rem;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--cinza);
  text-wrap: pretty;
}
.abertura-texto > * { animation: sobe .8s cubic-bezier(.2, .7, .2, 1) both; }
.abertura-texto > :nth-child(2) { animation-delay: .08s; }
.abertura-texto > :nth-child(3) { animation-delay: .18s; }

/* a cena da foto ocupa a direita do quadro; no celular fica embaixo */
.abertura-cena { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 64%; }
.abertura-foto {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  animation: foto-entra 1.4s ease-out both;
}
.abertura-mov { position: absolute; inset: -32px; will-change: transform; }
.abertura-mov picture { display: block; width: 100%; height: 100%; }
.abertura-mov img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 46%;
  transform-origin: 62% 46%;
  will-change: transform;
  animation: zoom-lento 28s ease-in-out infinite alternate;
}

/* marca-página: cai do alto da foto e balança */
.marcador {
  position: absolute;
  z-index: 3;
  top: 0;
  right: clamp(20px, 2.8vw, 40px);
  width: clamp(58px, 5.4vw, 72px);
  filter: drop-shadow(0 16px 14px rgba(120, 30, 20, .38));
  animation: marcador-cai 1.2s cubic-bezier(.3, 1.35, .5, 1) .55s both;
}
.marcador-fita {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: clamp(220px, 17vw, 236px);
  padding-top: 24px;
  background: linear-gradient(100deg, #F08270 0%, var(--coral) 46%, #D2503F 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 22px), 0 100%);
  color: #fff;
  transform-origin: 50% 0;
  animation: balanco 6s ease-in-out 1s infinite alternate;
}
/* costura e brilho da fita */
.marcador-fita::before {
  content: "";
  position: absolute;
  inset: 7px 7px 34px;
  border: 1.5px dashed rgba(255, 255, 255, .5);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}
.marcador-fita::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20%;
  width: 11%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0));
}
.marcador-simbolo { position: relative; z-index: 1; width: 42%; height: auto; fill: #fff; }
.marcador-texto {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* cartão "mais recente": pilha de folhas em vidro, brilho que passa e inclinação com o mouse */
.novo {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 3.4vw, 44px);
  bottom: clamp(20px, 3.4vw, 44px);
  width: min(364px, calc(100% - 40px));
  perspective: 900px;
  animation: flutua 7s ease-in-out infinite;
}
.novo-folha {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 26px;
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.novo-folha--a { transform: translate(10px, -10px) rotate(2.6deg); opacity: .9; }
.novo-folha--b { transform: translate(-9px, -19px) rotate(-3.4deg); opacity: .55; }
.novo:hover .novo-folha--a, .novo:focus-within .novo-folha--a { transform: translate(15px, -14px) rotate(4.2deg); }
.novo:hover .novo-folha--b, .novo:focus-within .novo-folha--b { transform: translate(-14px, -26px) rotate(-5.2deg); }

.novo-cartao {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 18px 16px 16px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(40, 40, 48, .66), rgba(18, 18, 22, .52));
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .28);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transform: rotateX(var(--gy, 0deg)) rotateY(var(--gx, 0deg));
  transition: transform .25s ease-out;
}
.novo-cartao:focus-visible { outline-color: #fff; }
.novo-topo { display: flex; align-items: center; gap: 10px; }
.novo-ping { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.novo-ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--coral);
  animation: ping 2.4s ease-out infinite;
}
.novo-rotulo { color: #FFC9C1; font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.novo-titulo {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.novo-base { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.novo-categoria {
  min-width: 0;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.novo-ler { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.novo-seta {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--coral-texto);
  transition: transform .25s;
}
.novo-cartao:hover .novo-seta { transform: translateX(3px); }
.novo-brilho {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: translateX(-140%) skewX(-20deg);
  pointer-events: none;
  animation: brilho 7s ease-in-out 2.2s infinite;
}

/* quando a abertura sai da tela, as animações pausam */
.abertura.fora .abertura-mov img, .abertura.fora .marcador-fita, .abertura.fora .novo,
.abertura.fora .novo-brilho, .abertura.fora .novo-ping::after { animation-play-state: paused; }

@keyframes zoom-lento {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.15) translate3d(-1.6%, -1.2%, 0); }
}
@keyframes marcador-cai { from { transform: translateY(-105%); } to { transform: none; } }
@keyframes balanco { from { transform: rotate(-3.4deg); } to { transform: rotate(3.4deg); } }
@keyframes flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ping { 0% { transform: scale(1); opacity: .75; } 75%, 100% { transform: scale(3.4); opacity: 0; } }
@keyframes brilho { 0%, 52% { transform: translateX(-140%) skewX(-20deg); } 86%, 100% { transform: translateX(420%) skewX(-20deg); } }
@keyframes tracejar { to { stroke-dashoffset: 0; } }
@keyframes sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes foto-entra { from { opacity: 0; } to { opacity: 1; } }

/* ---------- banners ---------- */
.banners { padding: clamp(24px, 4vw, 40px) 0 0; }
.banners-in { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }
.banners-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 270px;
  padding: 32px;
  border: 0;
  border-radius: var(--raio-bloco);
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  color: var(--preto);
  isolation: isolate;
}
.banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}
.banner-coral { background: var(--coral); color: #fff; }
.banner-lilas { background: #D9D2FB; }
.banner-menta { background: var(--menta); }
.banner-rosa { background: var(--rosa); color: #fff; }
.banner-chamada { font-size: 14px; font-weight: 400; }
.banner-titulo {
  font-size: clamp(22px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.04em;
  max-width: 15em;
  text-wrap: balance;
}
.banner-botao {
  align-self: flex-start;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--preto);
  font-size: 15px;
  font-weight: 600;
  transition: background-color .2s, color .2s;
}
.banner-botao svg { color: var(--coral-texto); transition: color .2s; }
.banner:hover .banner-botao { background: var(--preto); color: #fff; }
.banner:hover .banner-botao svg { color: #fff; }
.banner-capa {
  position: absolute;
  z-index: -1;
  right: 22px;
  bottom: -34px;
  width: 40%;
  max-width: 150px;
  height: auto;
  border-radius: 14px;
  transform: rotate(7deg);
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .45);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.banner:hover .banner-capa { transform: rotate(4deg) translateY(-8px); }
.banner-com-capa .banner-titulo { max-width: 58%; font-size: clamp(20px, 1.8vw, 24px); }

/* ---------- prateleiras (uma por categoria): título, linha, "Ver todos" e cartões pastel ---------- */
.ancora, .secao-ancora { scroll-margin-top: var(--altura-topo); }
.prateleira {
  --gap: clamp(14px, 2vw, 24px);
  --conteudo: calc(min(100vw, var(--largura)) - 2 * var(--margem));
  padding: clamp(32px, 4.5vw, 64px) 0 clamp(24px, 3.5vw, 48px);
  background: #fff;
  overflow-x: clip; /* a fileira de cartões vaza até a borda da tela, sem criar rolagem na página */
  scroll-margin-top: var(--altura-topo);
}
.prateleira:last-child { padding-bottom: clamp(48px, 6vw, 80px); }
.prateleira-in { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }

.prateleira-cab {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  margin-bottom: clamp(22px, 3vw, 36px);
}
.prateleira h2, .parceiros h2 {
  flex: 0 1 auto;
  min-width: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.linha { flex: 1 1 24px; height: 1px; min-width: 24px; background: var(--linha); }
.prateleira-acoes { flex: none; display: flex; align-items: center; gap: 12px; }
.prateleira-setas { display: flex; gap: 8px; }
.prateleira-seta {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--linha);
  border-radius: 50%;
  background: #fff;
  color: var(--preto);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.prateleira-seta--voltar svg { transform: scaleX(-1); }
.prateleira-seta:hover:not(:disabled) { background: var(--preto); border-color: var(--preto); color: #fff; }
.prateleira-seta:disabled { opacity: .35; cursor: default; }
.pilula {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 14px 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--coral-botao);
  color: #fff;
  font: 600 15px/1 var(--f);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s;
}
.pilula svg { transition: transform .25s; }
.pilula:hover { background: var(--preto); }
.prateleira--aberta .pilula svg { transform: rotate(-90deg); }
/* em telas de toque basta deslizar: as setas ficam só para mouse e teclado */
@media (hover: none) and (pointer: coarse) { .prateleira-setas { display: none; } }

/* fileira de cartões: 2 inteiros e um pedaço do terceiro, que vaza até a borda da tela */
.grade {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((var(--conteudo) - var(--gap)) / 2.1);
  gap: var(--gap);
  margin: 0 calc(-1 * max(var(--margem), (100vw - var(--largura)) / 2 + var(--margem))) 0 0;
  padding: 2px 0 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.grade::-webkit-scrollbar { display: none; }
.grade li { display: flex; min-width: 0; scroll-snap-align: start; }

/* "Ver todos": os cartões passam para uma grade, sem rolagem lateral */
.prateleira--aberta .grade {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-right: 0;
  overflow: visible;
}

.item {
  --tom: #FBF4F2;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  width: 100%;
  padding: clamp(18px, 2.2vw, 28px);
  border: 0;
  border-radius: var(--raio-bloco);
  background: var(--tom);
  text-align: left;
  cursor: pointer;
}
.item[data-tom="1"] { --tom: #F3F8EF; }
.item[data-tom="2"] { --tom: #F4F6FD; }
.capa-caixa {
  flex: none;
  display: flex;
  align-items: center;
  width: 38%;
  aspect-ratio: 760 / 1086; /* a capa mais alta; as outras ficam centralizadas */
}
.capa-caixa img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--raio-capa);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 14px 26px -14px rgba(0, 0, 0, .4);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}
.item:hover .capa-caixa img, .item:focus-visible .capa-caixa img {
  transform: translateY(-5px) rotate(-1.4deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 24px 36px -16px rgba(0, 0, 0, .45);
}
.item-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.item-titulo {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
.item-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--cinza);
  text-wrap: pretty;
}
.item-acao {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--coral-texto);
}
.item-acao svg { transition: transform .25s; }
.item:hover .item-acao svg { transform: translateX(4px); }
.categoria { font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--cinza); }

/* ---------- formato "grade": capas lado a lado (4 por linha), como na versão anterior ---------- */
.prateleira--grade { padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.prateleira--grade .prateleira-cab {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(24px, 1fr) auto;
  grid-template-areas: "t l c" "d d d";
  align-items: center;
  column-gap: clamp(16px, 3vw, 40px);
  row-gap: 10px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.prateleira--grade .prateleira-cab h2 { grid-area: t; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; }
.prateleira--grade .prateleira-cab .linha { grid-area: l; }
.prateleira--grade .prateleira-conta { grid-area: c; font-size: 15px; color: var(--cinza); white-space: nowrap; }
.prateleira--grade .prateleira-desc { grid-area: d; max-width: 34rem; font-size: 15px; line-height: 1.55; color: var(--cinza); text-wrap: pretty; }

.vitrine {
  --pad: clamp(14px, 1.8vw, 28px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 calc(-1 * var(--pad));
}
.vitrine li {
  padding: 0 var(--pad) clamp(36px, 4vw, 52px);
  border-right: 1px solid var(--linha);
}
.vitrine li:nth-child(4n), .vitrine li:last-child { border-right: 0; }
.vitrine-item {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.vitrine-capa {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 760 / 1086; /* a capa mais alta; as outras se apoiam na base */
}
.vitrine-capa img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  border-radius: var(--raio-capa);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 12px 24px -12px rgba(0, 0, 0, .35);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.vitrine-item:hover .vitrine-capa img, .vitrine-item:focus-visible .vitrine-capa img {
  transform: translateY(-6px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 22px 34px -14px rgba(0, 0, 0, .42);
}
.vitrine-texto { display: flex; flex-direction: column; gap: 6px; }
.vitrine-titulo {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.03em;
  text-wrap: pretty;
}
.vitrine-acao { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--coral-texto); }
.vitrine-item:hover .vitrine-titulo { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (max-width: 1023px) {
  .vitrine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vitrine li:nth-child(4n) { border-right: 1px solid var(--linha); }
  .vitrine li:nth-child(3n), .vitrine li:last-child { border-right: 0; }
}
@media (max-width: 639px) {
  .vitrine { grid-template-columns: repeat(2, minmax(0, 1fr)); --pad: 8px; }
  .vitrine li:nth-child(3n) { border-right: 1px solid var(--linha); }
  .vitrine li:nth-child(2n), .vitrine li:last-child { border-right: 0; }
  .vitrine-item { gap: 16px; }
  .vitrine-titulo { font-size: 15px; }
  .prateleira--grade .prateleira-cab { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "d" "c"; row-gap: 8px; }
  .prateleira--grade .prateleira-cab .linha { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vitrine-capa img { transition: none; }
  .vitrine-item:hover .vitrine-capa img, .vitrine-item:focus-visible .vitrine-capa img { transform: none; }
}

/* capa que não carregou: título em uma capa neutra */
.capa-falha {
  display: flex;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 18px;
  border-radius: var(--raio-capa);
  background: linear-gradient(160deg, #4A4A4A, var(--escuro));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 12px 24px -12px rgba(0, 0, 0, .35);
}
.capa-falha-texto { font-size: clamp(14px, 1.5vw, 17px); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: #fff; text-align: left; }

/* ---------- botão ---------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--preto);
  color: #fff;
  font: 600 15px/1 var(--f);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s;
}
.botao:hover { background: var(--coral-texto); }
.botao:focus-visible { outline-color: var(--coral-texto); }
.botao-largo { width: 100%; }
.botao-inativo, .botao-inativo:hover { background: #B8B8B8; cursor: not-allowed; }

/* ---------- mais acessados (Top 5 + banner em destaque) ---------- */
.mais-acessados { background: var(--gelo); padding: clamp(56px, 7vw, 88px) 0; scroll-margin-top: var(--altura-topo); }
.mais-in {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--margem);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
.mais-in.sem-destaque { grid-template-columns: minmax(0, 1fr); }
.top5 { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--raio-bloco); background: var(--painel); }
.top5 h2 {
  padding-bottom: 20px;
  border-bottom: 1px solid #DDDFE6;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.12;
}
.top5-lista { display: grid; }
.top5-lista li + li { border-top: 1px solid #DDDFE6; }
.top5-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.top5-capa { position: relative; display: block; width: 84px; }
.top5-capa img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .35);
}
.top5-num {
  position: absolute;
  z-index: 1;
  top: -9px;
  left: -9px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--cor, #D1D3E2);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
.top5-lista li:nth-child(1) { --cor: #D1D3E2; }
.top5-lista li:nth-child(2) { --cor: #EFDFAE; }
.top5-lista li:nth-child(3) { --cor: #A0DACF; }
.top5-lista li:nth-child(4) { --cor: #BDE7FC; }
.top5-lista li:nth-child(5) { --cor: #CBBFFA; }
.top5-texto { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.top5-titulo { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.03em; text-wrap: pretty; }
.top5-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cinza);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.top5-seta {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--coral-texto);
  transition: background-color .2s, color .2s;
}
.top5-item:hover .top5-seta { background: var(--preto); color: #fff; }
.top5-item:hover .top5-titulo { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- banner em destaque: a estante da Biblioteca ---------- */
.banner-bib {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(28px, 3vw, 36px) clamp(24px, 3vw, 36px) 0;
  border-radius: var(--raio-bloco);
  background: var(--rosa);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.banner-bib::before, .banner-bib::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.banner-bib::before { width: 360px; height: 360px; right: -150px; top: -170px; background: rgba(255, 255, 255, .13); }
.banner-bib::after { width: 240px; height: 240px; left: -110px; bottom: 90px; background: rgba(255, 255, 255, .08); }
.banner-bib-brilho { position: absolute; z-index: -1; color: #fff; pointer-events: none; transform-origin: center; }
.banner-bib-brilho--a { width: 34px; height: 34px; right: 30px; top: 30px; animation: brilha 3.6s ease-in-out infinite; }
.banner-bib-brilho--b { width: 18px; height: 18px; right: 78px; top: 78px; opacity: .75; animation: brilha 3.6s ease-in-out 1.2s infinite; }
@keyframes brilha {
  0%, 100% { transform: scale(.7) rotate(0deg); opacity: .55; }
  50% { transform: scale(1.12) rotate(18deg); opacity: 1; }
}
.banner-bib-fala { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.banner-bib-chamada {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
}
.banner-bib-titulo {
  margin-top: 16px;
  max-width: 7em;
  font-size: clamp(36px, 3.7vw, 48px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.banner-bib-frase {
  margin-top: 16px;
  max-width: 17em;
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.banner-bib-texto { margin-top: 10px; max-width: 30em; font-size: 14.5px; line-height: 1.65; }

.estante-bloco { margin: auto calc(-1 * clamp(24px, 3vw, 36px)) 0; display: flex; flex-direction: column; gap: 22px; }
.estante-linha { display: flex; flex-direction: column; gap: 0; }
.estante {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: clamp(180px, 18vw, 250px);
  padding: 0 clamp(24px, 3vw, 36px);
}
.estante-tabua { height: 12px; background: #1D1D1D; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14); }
.lombada {
  --h: 80%;
  --c: #EFDFAE;
  --t: var(--preto);
  --y: 0px;
  --giro: 0deg;
  flex: 1 1 0;
  min-width: 0;
  max-width: 66px;
  height: var(--h);
  transform: translateY(var(--y)) rotate(var(--giro));
  transform-origin: 50% 100%;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.lombada[data-k="0"] { --h: 78%; --c: #EFDFAE; }
.lombada[data-k="1"] { --h: 100%; --c: #FFFFFF; }
.lombada[data-k="2"] { --h: 70%; --c: #A0DACF; }
.lombada[data-k="3"] { --h: 90%; --c: #CBBFFA; }
.lombada[data-k="4"] { --h: 82%; --c: #BDE7FC; }
.lombada[data-k="5"] { --h: 96%; --c: #282828; --t: #fff; }
.lombada[data-k="6"] { --h: 76%; --c: #E46756; }
.lombada--inclinada { --giro: 8deg; margin-left: 6px; }
.lombada:hover, .lombada:focus-within { --y: -14px; }
.lombada-in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 30px 0;
  border-radius: 10px 10px 3px 3px;
  background: var(--c);
  color: var(--t);
  box-shadow: inset -5px 0 0 rgba(0, 0, 0, .08);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  writing-mode: vertical-rl;
  overflow: hidden;
}
.lombada-in::before, .lombada-in::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  opacity: .16;
}
.lombada-in::before { top: 12px; }
.lombada-in::after { bottom: 12px; }
a.lombada-in { cursor: pointer; }
a.lombada-in:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.estante-base {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 10px 20px;
  background: #1D1D1D;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .12);
}
.estante-dica { font-size: 12.5px; line-height: 1.4; color: #E9E9E9; text-align: center; }

/* as lombadas sobem quando o banner aparece */
.banner-bib:not(.pre) .lombada { animation: sobe .75s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.banner-bib.pre .lombada { opacity: 0; }
@keyframes sobe { from { opacity: 0; transform: translateY(46px) rotate(var(--giro)); } }

/* ---------- depoimentos ---------- */
.depoimentos {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #EFCDB9;
  padding: clamp(56px, 8vw, 104px) 0;
}
.dep-fundo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dep-onda { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 80%; display: block; }
.dep-onda path { fill: #CC9172; }
.dep-brilho {
  position: absolute;
  left: clamp(12px, 11vw, 170px);
  top: clamp(20px, 4.5vw, 60px);
  width: clamp(34px, 4vw, 54px);
  height: auto;
  color: #fff;
  animation: gira-lento 16s linear infinite;
}
@keyframes gira-lento { to { transform: rotate(360deg); } }
.depoimentos-in {
  position: relative;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--margem);
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.dep-cartao {
  position: relative;
  padding: clamp(36px, 4.4vw, 56px) clamp(24px, 4vw, 52px) 26px;
  border-radius: var(--raio-bloco);
  background: #fff;
  text-align: center;
  box-shadow: 0 34px 60px -38px rgba(110, 54, 28, .55);
}
.dep-rotulo { font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; color: #6E6E6E; }
.dep-linha { display: block; width: 56px; height: 2px; margin: 18px auto 32px; background: var(--coral); }
.depoimentos-palco { position: relative; display: grid; }
.depoimento {
  grid-area: 1 / 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.depoimento.ativo { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.depoimento blockquote {
  margin: auto 0;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.depoimento-autor { position: relative; z-index: 1; max-width: 26em; font-size: 13px; line-height: 1.55; color: #6E6E6E; text-wrap: balance; }
.depoimento-autor strong { font-weight: 500; color: var(--preto); text-transform: uppercase; letter-spacing: .01em; }
.dep-aspas { position: absolute; z-index: 0; left: 50%; bottom: -30px; width: 96px; height: 96px; transform: translateX(-50%); color: #EEEEEE; }
.dep-onda--m { display: none; }
.depoimentos-pontos { margin-top: 44px; display: flex; justify-content: center; gap: 2px; }
.ponto {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.ponto::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #DADADA;
  transition: width .25s, background-color .25s;
}
.ponto:hover::before { background: #BDBDBD; }
.ponto[aria-current="true"]::before { width: 26px; background: var(--coral); }

/* cena da direita */
.dep-cena { position: relative; display: grid; place-items: center; min-height: 340px; }
.dep-cena-fundo { position: absolute; left: 50%; top: 50%; width: min(118%, 640px); height: auto; transform: translate(-50%, -50%); overflow: visible; }
.dep-mancha { fill: #BBB9C8; }
.dep-mancha--clara { fill: #D3D1DE; opacity: .8; }
.dep-orbita { fill: none; stroke: #E18F6D; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 13; animation: marcha 24s linear infinite; }
.dep-orbita--b { animation-direction: reverse; }
@keyframes marcha { to { stroke-dashoffset: -210; } }
.dep-ponto { fill: #EC8457; }
.dep-ponto--3 { fill: #6C97E8; }
.dep-anel { fill: none; stroke: #6C97E8; stroke-width: 3; }
.dep-seixo { fill: #fff; }
.dep-ponto, .dep-anel, .dep-seixo { transform-box: fill-box; transform-origin: center; animation: flutua-dep 6s ease-in-out infinite; }
.dep-ponto--2 { animation-delay: -2s; animation-duration: 7s; }
.dep-ponto--3 { animation-delay: -4s; }
.dep-anel { animation-delay: -1s; animation-duration: 8s; }
.dep-ponto--4 { animation-delay: -3s; }
.dep-seixo--1 { animation-delay: -2.5s; animation-duration: 9s; }
.dep-seixo--2 { animation-delay: -5s; animation-duration: 10s; }
@keyframes flutua-dep { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.dep-ilustracao {
  position: relative;
  width: min(100%, 470px);
  height: auto;
  animation: flutua-ilu 7s ease-in-out infinite;
}
@keyframes flutua-ilu { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.depoimentos.fora .dep-brilho, .depoimentos.fora .dep-orbita, .depoimentos.fora .dep-ponto, .depoimentos.fora .dep-anel,
.depoimentos.fora .dep-seixo, .depoimentos.fora .dep-ilustracao { animation-play-state: paused; }

/* ---------- parceiros: só logotipos ---------- */
.parceiros { background: #fff; padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); scroll-margin-top: var(--altura-topo); }
.parceiros-in { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }
.parceiros .prateleira-cab { margin-bottom: clamp(24px, 3.4vw, 40px); }
.parceiros-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.parceiro {
  display: grid;
  place-items: center;
  min-height: 124px;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--lilas);
  transition: background-color .25s;
}
.parceiro a { display: grid; place-items: center; width: 100%; height: 100%; }
.parceiro:has(a):hover { background: var(--creme); }
.parceiro img { width: auto; height: auto; max-width: 100%; max-height: 52px; object-fit: contain; }
.parceiro-nome { font-size: 15px; font-weight: 600; color: #7A7A7A; text-align: center; }

/* ---------- rodapé ---------- */
.rodape { background: var(--escuro); color: var(--escuro-texto); border-radius: var(--raio-bloco) var(--raio-bloco) 0 0; }
.rodape-in {
  max-width: var(--largura);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--margem) clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 2fr);
  gap: 48px clamp(40px, 7vw, 112px);
}
.rodape-marca { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.rodape-marca img { width: 200px; height: auto; }
.rodape-marca p { max-width: 22rem; font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.redes { display: flex; gap: 8px; margin-left: -4px; }
.redes a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #494949;
  border-radius: 50%;
  color: #D0D0D0;
  transition: color .2s, background-color .2s, border-color .2s;
}
.redes a:hover { color: var(--escuro); background: #fff; border-color: #fff; }
.redes svg { width: 18px; height: 18px; fill: currentColor; }

.rodape-nav {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, .95fr) minmax(0, .7fr);
  gap: 40px clamp(24px, 4vw, 56px);
}
.rodape-col h2 { margin-bottom: 22px; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.rodape-links { display: grid; gap: 12px; font-size: 15px; }
.rodape-links a { color: var(--escuro-texto); text-decoration: none; transition: color .2s; }
.rodape-nav .rodape-links { grid-auto-rows: min-content; }
.rodape-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.rodape-links .em-breve { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: #929292; }
.rodape-links .em-breve .cat-breve { background: #3A3A3A; color: #C2C2C2; }

.rodape-base { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }
.rodape-base-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 22px 0 clamp(28px, 4vw, 40px);
  border-top: 1px solid #3F3F3F;
  font-size: 14px;
}
.voltar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #494949;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.voltar:hover { background: #fff; color: var(--escuro); border-color: #fff; }
.rodape :focus-visible { outline-color: #fff; }

.aviso {
  max-width: 40rem;
  margin: 64px auto;
  padding: 20px var(--margem);
  background: var(--painel);
  border-radius: 18px;
}

/* ---------- janela do ebook ---------- */
dialog.janela {
  padding: 0;
  border: 0;
  color: var(--preto);
  background: #fff;
  border-radius: var(--raio-bloco);
  width: min(940px, calc(100vw - 32px));
  max-width: none;
  max-height: min(640px, calc(100dvh - 32px));
  overflow: hidden;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .5);
  overscroll-behavior: contain;
}
dialog.janela::backdrop {
  background: rgba(20, 20, 30, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
dialog.janela[open] { animation: janela-entra .28s cubic-bezier(.2, .8, .2, 1); }
dialog.janela[open]::backdrop { animation: fundo-entra .28s ease-out; }
@keyframes janela-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes folha-entra { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fundo-entra { from { opacity: 0; } to { opacity: 1; } }

.janela-fechar {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--preto);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .16);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.janela-fechar:hover { background: var(--preto); color: #fff; }

.janela-corpo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: minmax(0, 1fr);
  max-height: inherit;
}
.janela-capa {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background:
    radial-gradient(circle at 50% 40%, #fff 0, rgba(255, 255, 255, 0) 60%),
    var(--lilas);
}
.janela-capa img {
  width: min(100%, 320px);
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--raio-capa);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18), 0 28px 50px -16px rgba(0, 0, 0, .5);
}
.janela-capa .capa-falha { width: min(100%, 300px); }
.janela-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 56px 52px 52px;
  overflow-y: auto;
}
.janela-texto .categoria { font-size: 14px; font-weight: 600; color: var(--coral-texto); }
.janela-texto h2 {
  margin-top: 10px;
  font-size: clamp(24px, 2.7vw, 31px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.janela-descricao { margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--cinza); max-width: 34rem; }
.janela-texto .botao { margin-top: 32px; }
.janela-nota { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--cinza); text-wrap: balance; }

/* ---------- poucos ebooks: os cartões dividem a linha ---------- */
@media (min-width: 720px) {
  .prateleira--curta .grade, .prateleira--solo .grade {
    grid-auto-columns: minmax(0, 1fr);
    margin-right: 0;
    overflow: visible;
  }
  /* um único ebook: cartão em largura total, com mais ar */
  .prateleira--solo .item { gap: clamp(28px, 4vw, 64px); padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 56px); }
  .prateleira--solo .capa-caixa { width: clamp(170px, 19vw, 230px); }
  .prateleira--solo .item-texto { max-width: 40rem; gap: 14px; }
  .prateleira--solo .item-titulo { font-size: clamp(22px, 2.3vw, 30px); }
  .prateleira--solo .item-desc { font-size: 16px; -webkit-line-clamp: 5; }
}

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .rodape-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 959px) {
  .abertura-quadro { display: flex; flex-direction: column; min-height: 0; }
  .abertura-texto { width: auto; max-width: 38rem; align-self: flex-start; padding: clamp(32px, 6vw, 48px) clamp(24px, 5vw, 40px) 12px; }
  .abertura-cena { position: relative; width: 100%; aspect-ratio: 16 / 10; }
  .abertura-foto {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%);
    mask-image: linear-gradient(180deg, transparent 0, #000 26%);
  }
  .abertura-mov img { object-position: 58% 44%; transform-origin: 60% 44%; }
  .marcador { right: auto; left: clamp(20px, 5vw, 40px); }
}
@media (max-width: 899px) {
  /* banners viram uma fileira deslizante */
  .banners-grade {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--margem));
    padding: 0 var(--margem) 8px;
    scroll-padding-inline: var(--margem);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .banners-grade::-webkit-scrollbar { display: none; }
  .banner { flex: 0 0 min(80vw, 340px); scroll-snap-align: start; min-height: 250px; }
  .mais-in { grid-template-columns: minmax(0, 1fr); }
  .banner-bib { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: end; column-gap: 28px; padding-top: 36px; }
  .banner-bib-fala { align-self: start; padding-bottom: 36px; }
  .estante-bloco { margin: 0 calc(-1 * clamp(24px, 3vw, 36px)) 0 0; }
  .estante-bloco { gap: 16px; }
  .estante { padding-left: 0; padding-right: clamp(24px, 3vw, 36px); height: 170px; }
  .depoimentos-in { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 640px; }
  .dep-cena { order: -1; min-height: 0; width: min(100%, 360px); margin: 0 auto; }
  .dep-ilustracao { width: min(86%, 320px); }
  .dep-cena-fundo { width: 112%; }
  .dep-cena::before { content: ""; display: block; padding-top: 88%; grid-area: 1 / 1; }
  .dep-ilustracao, .dep-cena-fundo { grid-area: 1 / 1; }
  .dep-onda { height: 58%; }
  .dep-onda--d { display: none; }
  .dep-onda--m { display: block; }
}

/* ---------- celular ---------- */
@media (max-width: 719px) {
  :root { --altura-topo: 64px; }
  .marca { font-size: 17px; gap: 10px; }
  .icone-menu { display: grid; }

  /* o menu vira um painel sob o topo */
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--altura-topo));
    overflow-y: auto;
    padding: 8px var(--margem) 20px;
    background: #fff;
    border-bottom: 1px solid var(--linha);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35);
  }
  html.menu-aberto .menu { display: flex; }
  .menu > a, .menu-botao { width: 100%; min-height: 52px; padding: 0 8px; justify-content: space-between; border-radius: 12px; font-size: 16px; }
  .menu-cat { display: contents; }
  .menu-painel {
    position: static;
    width: auto;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .menu-cats { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .menu-cats a, .menu-cats .cat-vazia { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 8px 12px 20px; border-radius: 12px; }
  .cat-desc { display: none; }

  .busca-faixa { padding-top: 12px; padding-bottom: 12px; }
  .busca-form input { height: 52px; font-size: 16px; padding-left: 22px; }
  .busca-enviar { top: 4px; }
  .busca-lista { grid-template-columns: minmax(0, 1fr); }
  .busca-res { max-height: calc(100dvh - var(--altura-topo) - 76px); }

  .abertura-quadro { border-radius: 24px; }
  .abertura-cena { aspect-ratio: 6 / 5; }
  .marcador { width: 54px; }
  .marcador-fita { height: 116px; padding-top: 22px; }
  .marcador-texto { display: none; }
  .novo { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .novo-cartao { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 8px; padding: 14px 14px 14px 18px; border-radius: 22px; }
  .novo-folha { border-radius: 22px; }
  .novo-topo, .novo-titulo { grid-column: 1; }
  .novo-titulo { font-size: 15px; -webkit-line-clamp: 2; }
  .novo-base { display: contents; }
  .novo-categoria, .novo-ler-txt { display: none; }
  .novo-ler { grid-column: 2; grid-row: 1 / span 2; }
  .prateleira-cab { flex-wrap: wrap; row-gap: 14px; }
  .prateleira-cab .linha { display: none; }
  .prateleira-acoes { margin-left: auto; }
  .prateleira--aberta .grade { grid-template-columns: minmax(0, 1fr); }
  .grade { grid-auto-columns: calc(var(--conteudo) * .9); }
  .item { gap: 16px; padding: 16px; }
  .capa-caixa { width: 36%; }
  .item-texto { gap: 8px; }
  .item-titulo { font-size: 16px; }
  .item-desc { font-size: 13px; line-height: 1.6; -webkit-line-clamp: 3; }
  .item-acao { font-size: 15px; margin-top: 2px; }

  dialog.janela {
    width: 100%;
    margin: auto 0 0;
    max-height: 92dvh;
    border-radius: var(--raio-bloco) var(--raio-bloco) 0 0;
  }
  dialog.janela[open] { animation: folha-entra .32s cubic-bezier(.2, .8, .2, 1); }
  .janela-fechar { top: 12px; right: 12px; }
  .janela-corpo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    overflow-y: auto;
    max-height: 92dvh;
  }
  .janela-capa { padding: 36px 24px 28px; }
  .janela-capa img { width: min(46%, 190px); max-height: 34dvh; }
  .janela-texto { overflow: visible; padding: 24px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .janela-descricao { font-size: 15px; }
  .top5-desc { display: none; }
  .top5-item { gap: 16px; }
  .top5-capa { width: 68px; }
  .top5-titulo { font-size: 16px; }
  .banner-bib { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 28px 22px 0; }
  .banner-bib-fala { padding-bottom: 0; }
  .estante-bloco { margin: 0 -22px; }
  .estante-bloco { gap: 16px; }
  .estante { height: 160px; padding: 0 22px; gap: 6px; }
  .lombada-in { font-size: 13px; padding: 26px 0; }
  .depoimento-sep { display: none; }
  .depoimento-cargo { display: block; }
  .parceiros-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .parceiro { min-height: 96px; padding: 20px 18px; }
  .parceiro img { max-height: 40px; }
}
@media (max-width: 639px) {
  .rodape-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rodape-col-cats { grid-column: 1 / -1; }
  .rodape-duas { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .rodape-base-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 459px) {
  .rodape-duas { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  dialog.janela[open], dialog.janela[open]::backdrop { animation: none; }
  .abertura-texto > *, .abertura-foto, .abertura-mov img, .marcador, .marcador-fita, .novo, .novo-brilho, .novo-ping::after { animation: none !important; }
  .novo-cartao { transform: none !important; }
  .traco path { animation: none; stroke-dashoffset: 0; }
  .capa-caixa img, .banner-capa, .novo-seta, .lombada, .depoimento, .ponto::before, .novo-folha, .item-acao svg { transition: none; }
  .item:hover .capa-caixa img, .item:focus-visible .capa-caixa img { transform: none; }
  .banner-bib-brilho, .dep-brilho, .dep-orbita, .dep-ponto, .dep-anel, .dep-seixo, .dep-ilustracao, .banner-bib .lombada { animation: none !important; }
  .banner-bib.pre .lombada { opacity: 1; }
}


/* =====================================================================
   BLOG (blog.html)
   Mesmo topo, busca e rodapé da página inicial. Aqui ficam só a faixa de
   abertura, os cartões da lista, o texto aberto e o convite da newsletter.
   ===================================================================== */

/* item do menu da página aberta */
.menu > a[aria-current="page"] { background: var(--creme); color: var(--coral-texto); }

/* ---------- faixa de abertura ---------- */
.blog-topo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--creme);
  border-radius: 0 0 var(--raio-bloco) var(--raio-bloco);
}
.blog-topo-in {
  position: relative;
  z-index: 1;
  max-width: var(--largura);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 100px) var(--margem) clamp(44px, 6vw, 84px);
}
.blog-topo h1 {
  max-width: 14em;
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.blog-lead {
  max-width: 34rem;
  margin-top: 22px;
  color: #4F4F4F;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}
.blog-topo-forma { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.blog-topo-forma--1 {
  width: clamp(200px, 26vw, 380px);
  aspect-ratio: 1;
  right: clamp(-70px, -3vw, -24px);
  top: -20%;
  background: var(--coral);
  opacity: .9;
}
.blog-topo-forma--2 {
  width: clamp(110px, 15vw, 210px);
  aspect-ratio: 1;
  right: clamp(150px, 24vw, 340px);
  bottom: -14%;
  background: #D9D2FB;
}

/* ---------- lista ---------- */
.blog-lista { padding: clamp(44px, 6vw, 80px) 0 clamp(48px, 6vw, 80px); }
.blog-lista--mais { padding-top: clamp(32px, 5vw, 64px); }
.blog-in { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }
.blog-secao-cab {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  margin-bottom: clamp(24px, 3.4vw, 44px);
}
.blog-secao-titulo {
  flex: 0 1 auto;
  min-width: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.blog-vazio { color: var(--cinza); font-size: 18px; }

.blog-grade {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
}
.blog-grade--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- cartão ---------- */
.post-cartao { position: relative; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.post-cartao-foto {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--raio-bloco);
  background: var(--painel);
}
.post-cartao-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.post-cartao:hover .post-cartao-foto img { transform: scale(1.045); }
.post-cartao-texto { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }

.post-etiqueta {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--creme);
  color: var(--coral-texto);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
}
.post-cartao-titulo {
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.post-cartao-titulo a { color: inherit; text-decoration: none; transition: color .2s; }
/* o cartão inteiro é clicável, mas só o título é o link para leitores de tela */
.post-cartao-titulo a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-cartao-titulo a:focus-visible { outline: none; }
.post-cartao:has(.post-cartao-titulo a:focus-visible) .post-cartao-foto { outline: 3px solid var(--preto); outline-offset: 4px; }
.post-cartao:hover .post-cartao-titulo a { color: var(--coral-texto); }
.post-cartao-resumo {
  color: var(--cinza);
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--cinza); font-size: 13px; line-height: 1.5; }
.post-meta-sep { opacity: .7; }
.post-cartao-acao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
}
.post-cartao-acao svg { transition: transform .25s; }
.post-cartao:hover .post-cartao-acao svg { transform: translateX(4px); }

/* primeiro texto em destaque (quando há 3 ou mais) */
.post-cartao--destaque {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}
.post-cartao--destaque .post-cartao-titulo { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; }
.post-cartao--destaque .post-cartao-resumo { font-size: 16px; -webkit-line-clamp: 5; }

/* ---------- texto aberto ---------- */
.post-col { max-width: 48rem; margin: 0 auto; padding: 0 var(--margem); }
.post-cab { display: flex; flex-direction: column; align-items: flex-start; padding-top: clamp(28px, 4.5vw, 56px); }
.post-cab .post-etiqueta { margin-top: 14px; }
.post-trilha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-left: -4px;
  color: var(--coral-texto);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.post-trilha:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-titulo {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.post-resumo { margin-top: 18px; color: #4F4F4F; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; text-wrap: pretty; }
.post-cab .post-meta { margin-top: 22px; font-size: 14px; }

.post-foto { max-width: var(--largura); margin: clamp(28px, 4vw, 48px) auto 0; padding: 0 var(--margem); }
.post-foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--raio-bloco);
  background: var(--painel);
}
.post-foto figcaption { margin-top: 12px; color: var(--cinza); font-size: 13px; line-height: 1.5; }

.post-corpo { margin-top: clamp(32px, 5vw, 56px); font-size: clamp(17px, 1.5vw, 18.5px); line-height: 1.78; color: #1E1E1E; }
.post-corpo p { margin: 0 0 1.3em; text-wrap: pretty; }
.post-corpo h2 {
  margin: 2.1em 0 .7em;
  font-size: clamp(24px, 2.6vw, 31px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.post-corpo ul { margin: 0 0 1.5em; }
.post-corpo li { position: relative; padding-left: 28px; margin-bottom: .65em; }
.post-corpo li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

/* ebook da Biblioteca ligado ao tema */
.post-ebook {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--raio-bloco);
  background: var(--creme);
}
.post-ebook-capa {
  flex: none;
  width: clamp(84px, 12vw, 116px);
  overflow: hidden;
  border-radius: var(--raio-capa);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 18px 28px -14px rgba(0, 0, 0, .4);
  background: var(--painel);
}
.post-ebook-capa img { width: 100%; height: auto; aspect-ratio: 760 / 1086; object-fit: cover; }
.post-ebook-texto { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.post-ebook-chamada { color: var(--coral-texto); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.post-ebook-titulo { font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.post-ebook-desc {
  color: var(--cinza);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.botao-menor { min-height: 46px; padding: 0 24px; margin-top: 6px; font-size: 14px; }

/* fontes */
.post-fontes {
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--raio-bloco);
  background: var(--gelo);
}
.post-fontes h2 { font-size: 20px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.post-fontes ol { margin-top: 18px; counter-reset: fonte; }
.post-fontes li {
  position: relative;
  counter-increment: fonte;
  padding-left: 36px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.post-fontes li::before {
  content: counter(fonte);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--coral-texto);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.post-fontes a { color: var(--preto); text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .3); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.post-fontes a:hover { color: var(--coral-texto); text-decoration-color: currentColor; }
.post-fontes-nota { margin-top: 18px; color: var(--cinza); font-size: 13px; line-height: 1.5; }

.blog-nao-encontrado { display: flex; flex-direction: column; align-items: flex-start; max-width: 48rem; }
.blog-nao-encontrado .post-titulo { margin-top: 0; }
.blog-nao-encontrado .botao { margin-top: 28px; }

/* ---------- convite da newsletter ---------- */
.blog-cta { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem) clamp(56px, 7vw, 96px); }
.blog-cta-caixa {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: clamp(28px, 4.4vw, 52px) clamp(24px, 5vw, 64px);
  border-radius: var(--raio-bloco);
  background: var(--coral-botao);
  color: #fff;
}
.blog-cta-caixa::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  right: -90px;
  top: -140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.blog-cta-chamada { font-size: 14px; font-weight: 400; }
.blog-cta-titulo {
  margin-top: 6px;
  max-width: 18em;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.blog-cta-botao {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  background: #fff;
  color: var(--preto);
  font: 600 15px/1 var(--f);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.blog-cta-botao:hover { background: var(--preto); color: #fff; }
.blog-cta-botao:focus-visible { outline-color: #fff; }

/* ---------- blog: tablet e celular ---------- */
@media (max-width: 899px) {
  .post-cartao--destaque { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .blog-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .blog-topo { border-radius: 0 0 22px 22px; }
  .blog-topo-forma--1 { top: -34%; right: -70px; opacity: .85; }
  .blog-topo-forma--2 { right: auto; left: -40px; bottom: -60px; }
  .blog-grade, .blog-grade--2 { grid-template-columns: minmax(0, 1fr); }
  .post-cartao-resumo { -webkit-line-clamp: 5; }
  .post-ebook { align-items: flex-start; }
  .post-ebook-desc { -webkit-line-clamp: 3; }
  .blog-cta-caixa { flex-direction: column; align-items: flex-start; }
  .blog-cta-botao { width: 100%; }
}
@media (max-width: 519px) {
  .post-cab .post-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .post-cab .post-meta-sep { display: none; }
}
@media (max-width: 459px) {
  .post-ebook { flex-direction: column; }
  .post-ebook-capa { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-cartao-foto img, .post-cartao-acao svg, .post-cartao-titulo a { transition: none; }
  .post-cartao:hover .post-cartao-foto img { transform: none; }
}
