/* ═══════════════════════════════════════════════════════════
   Via Impressa — Responsividade Mobile
   assets/css/responsive.css

   Organização:
   1. Tablet largo       → max-width: 1024px
   2. Tablet             → max-width: 900px
   3. Tablet pequeno     → max-width: 820px
   4. Mobile largo       → max-width: 768px
   5. Mobile médio       → max-width: 480px
   6. Mobile pequeno     → max-width: 390px
   7. Mobile mínimo      → max-width: 375px
   8. Tela grande        → min-width: 1920px
   9. Touch / interação
═══════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════
   1. TABLET LARGO — 1024px
   iPads landscape, laptops pequenos
═══════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Viewer */
  #imgZone {
    height: clamp(280px, 58vh, 700px);
    width: min(680px, 86vw);
  }
  #imgWrap img {
    max-height: clamp(280px, 58vh, 700px);
  }

  /* Texto lateral: reduz largura mas mantém posição */
  #textLeft {
    width: min(340px, 30vw);
    padding: 18px 22px;
  }

  /* Lightbox caption */
  #lb-caption .lb-text {
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.45;
  }
}


/* ═══════════════════════════════════════
   2. TABLET — 900px
   Navegação colapsa, grid muda
═══════════════════════════════════════ */
@media (max-width: 900px) {

  /* Nav */
  nav { padding: 0 20px; width: calc(100% - 40px); }
  nav.nav-scrolled { width: calc(100% - 40px); }
  .nlinks { display: none; }

  /* Sections */
  .sec { padding: 48px 28px; }
  .about { grid-template-columns: 1fr; }
  .ac { padding: 40px 28px; border-right: none; border-bottom: 1px solid var(--rule); }
  .ac:last-child { border-bottom: none; }
  .svcs { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(n)       { border-right: 1px solid var(--rule); }
  .svc:nth-child(2n)      { border-right: none; }
  .svc:nth-child(5),
  .svc:nth-child(6)       { border-bottom: none; }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 28px 20px;
  }

  /* CTA */
  .cta-band { padding: 64px 28px; }

  /* Viewer: texto vai abaixo do livro em tablet */
  #textLeft {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 16px;
    width: min(500px, 88vw);
    max-height: 26vh;
    padding: 18px 22px;
    border-radius: 2px;
  }
  #imgZone {
    top: 42%;
    transform: translate(-50%, -50%);
  }
}


/* ═══════════════════════════════════════
   3. TABLET PEQUENO — 820px
   iPads portrait
═══════════════════════════════════════ */
@media (max-width: 820px) {

  /* Hero */
  .hero-title {
    font-size: clamp(42px, 8vw, 72px);
  }

  /* Viewer */
  #imgZone {
    height: clamp(240px, 50vh, 580px);
    width: min(580px, 90vw);
    top: 40%;
  }
  #imgWrap img {
    max-height: clamp(240px, 50vh, 580px);
  }

  /* Texto lateral: mais compacto */
  #textLeft {
    width: min(500px, 92vw);
    max-height: 26vh;
  }
  .tl-lbl { font-size: 11px; letter-spacing: .2em; margin-bottom: 10px; }
  #tlText  { font-size: clamp(14px, 2vw, 17px); line-height: 1.7; }

  /* Lightbox */
  #lb-center img {
    max-height: calc(100vh - 240px);
    max-width: 88%;
  }
  #lb-caption .lb-text {
    font-size: clamp(13px, 1.8vw, 15px);
    line-height: 1.45;
  }
  #lb-caption .lb-lbl {
    font-size: 12px;
    letter-spacing: .18em;
  }

  /* Services */
  .svc { padding: 28px 24px; }
  .svc h3 { font-size: 16px; }
}


/* ═══════════════════════════════════════
   4. MOBILE LARGO — 768px
   A maioria dos celulares landscape
   e tablets menores
═══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  nav { height: 52px; padding: 0 16px; width: calc(100% - 32px); top: 12px; }
  .nlogo-txt { font-size: 12px; }

  /* Hero */
  .hero-title {
    font-size: clamp(38px, 9vw, 60px);
    letter-spacing: -.015em;
  }
  .hero-sub {
    font-size: 10px;
    letter-spacing: .22em;
  }

  /* Viewer — imagem ocupa parte superior, igual ao lightbox */
  #imgZone {
    height: clamp(210px, 46vh, 460px);
    width: 92vw;
    top: 42%;                  /* centralizado na tela */
    transform: translate(-50%, -50%);
  }
  #imgWrap img {
    height: auto;
    max-height: clamp(210px, 46vh, 460px);
    max-width: 90vw;
    object-fit: contain;
  }

  /* Texto logo abaixo da imagem — igual ao caption do lightbox */
  #textLeft {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(42% + clamp(105px, 23vh, 230px) + 16px);  /* logo abaixo da imagem */
    bottom: auto;
    width: 88vw;
    max-height: 28vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.12) transparent;
    padding: 16px 20px;
    border-radius: 2px;
    text-align: center;
  }
  .tl-lbl {
    font-size: 10px;
    letter-spacing: .18em;
    margin-bottom: 8px;
    text-align: center;
  }
  #tlText {
    font-size: clamp(13px, 3.5vw, 16px);
    line-height: 1.7;
    text-align: center;
  }

  /* Sections */
  .sec { padding: 40px 20px; }
  .sec-h { font-size: clamp(22px, 5vw, 34px); }
  .svcs { grid-template-columns: 1fr; }
  .svc { padding: 24px 20px; border-right: none !important; }
  .svc:nth-child(n) { border-bottom: 1px solid var(--rule); }
  .svc:last-child { border-bottom: none; }
  .ac { padding: 32px 20px; }
  .ac-lead { font-size: clamp(15px, 3.5vw, 19px); }

  /* Stats */
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-n { font-size: 30px; }

  /* CTA */
  .cta-band { padding: 52px 20px; }
  .cta-band h2 { font-size: clamp(22px, 5.5vw, 38px); margin-bottom: 12px; }
  .cta-band p {
  white-space: normal;
  max-width: 92vw;
  font-size: clamp(15px, 4vw, 20px);
  line-height: 1.35;
}

  /* Contatos */
  #contato .contact-link {
    font-size: 16px;
    gap: 7px;
    margin-top: 2px;
    padding: 6px 0;    /* maior área de toque */
    min-height: 30px;  /* touch target mínimo */
  }
  #contato .contact-link svg {
    width: 18px;
    height: 18px;
  }

  /* Lightbox mobile — lateral breathing room */
  #lb {
    padding: 48px 8px 24px;   /* lateral padding on container */
    gap: 0;
  }
  #lb-prev, #lb-next {
    flex: 0 0 36px;
  }
  #lb-center {
    padding: 0 4px;
  }
  #lb-center img {
    max-height: calc(100vh - 220px);
    max-width: 90vw;
    width: auto;
  }
  #lb-caption {
  max-width: 92vw;
  padding: 0 16px;
  max-height: none;
  overflow: visible;
}

#lb-caption .lb-lbl {
  font-size: clamp(16px, 5vw, 22px);
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: lowercase;
}

#lb-caption .lb-counter {
  font-size: 10px;
  margin-bottom: 8px;
}

#lb-caption .lb-text {
  font-size: clamp(14px, 4vw, 17px);
  line-height: 1.35;
}
  #lb-caption .lb-lbl {
    font-size: 11px;
    letter-spacing: .16em;
    margin-bottom: 6px;
  }
  #lb-caption .lb-counter {
    font-size: 10px;
    margin-bottom: 8px;
  }
  #lb-caption .lb-text {
    font-size: clamp(12px, 3.2vw, 14px);
    line-height: 1.45;
  }

  /* Zoom topbar */
  #zoom-topbar { height: 44px; padding: 0 14px; }
  #zoom-close-btn { width: 36px; height: 36px; font-size: 20px; }
}


/* ═══════════════════════════════════════
   5. MOBILE MÉDIO — 480px
   iPhone Plus, Android médio
═══════════════════════════════════════ */
@media (max-width: 480px) {

  /* Hero */
  .hero-title { font-size: clamp(34px, 9.5vw, 52px); }
  .hero-inner  { gap: 12px; }
  .hero-inner .hlogo svg { height: 36px; }
  .hero-scroll { bottom: 20px; font-size: 9px; }
  .hero-scroll::after { height: 36px; }

  /* Viewer */
  #imgZone {
    height: clamp(175px, 40vh, 360px);
    width: 92vw;
    top: 41%;
    transform: translate(-50%, -50%);
  }
  #imgWrap img {
    height: auto;
    max-height: clamp(175px, 40vh, 360px);
    max-width: 90vw;
    object-fit: contain;
  }

  /* Texto mobile — logo abaixo da imagem */
  #textLeft {
    top: calc(41% + clamp(88px, 20vh, 180px) + 14px);
    bottom: auto;
    width: 90vw;
    max-height: 30vh;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 14px 18px;
    text-align: center;
  }
  .tl-lbl { text-align: center; }
  #tlText { font-size: clamp(12px, 3.8vw, 15px); line-height: 1.65; text-align: center; }

  /* Dots */
  #dots { bottom: 4px; }
  .dot  { width: 10px; }
  .dot.on { width: 18px; }

  /* Sections */
  .sec { padding: 32px 16px; }
  .sec-lbl { font-size: 9px; }
  .sec-h { font-size: clamp(20px, 5.5vw, 30px); }
  .about { grid-template-columns: 1fr; }
  .ac { padding: 28px 16px; }
  .ac-lead { font-size: clamp(14px, 4vw, 18px); }
  .svc { padding: 20px 16px; }
  .svc h3 { font-size: 15px; }
  .svc p  { font-size: 11px; }
  .stat-n { font-size: 26px; }

  /* CTA / Contato */
  .cta-band { padding: 44px 16px; }
  .cta-band h2 { font-size: clamp(20px, 6vw, 32px); }
  #contato .contact-link { font-size: 15px; }

  /* Footer */
  footer { padding: 22px 16px; gap: 12px; }
  footer .fl { font-size: 13px; }
  footer ul  { justify-content: center; flex-wrap: wrap; gap: 12px; }

  /* Lightbox */
  #lb-close { top: 8px; right: 8px; width: 56px; height: 56px; font-size: 30px; }
  #lb-prev, #lb-next { flex: 0 0 28px; }
  #lb-center { padding: 0 4px; }
  #lb-center img { max-height: 52vh; max-width: 88vw; width: 88vw; }
  #lb-caption { max-height: 30vh; padding: 0 16px; }
  #lb-caption .lb-text { font-size: clamp(13px, 3.8vw, 16px); }
}


/* ═══════════════════════════════════════
   6. MOBILE PADRÃO — 390px
   iPhone 14/15, Google Pixel
═══════════════════════════════════════ */
@media (max-width: 390px) {

  .hero-title { font-size: clamp(32px, 10vw, 48px); }

  #imgZone {
    height: clamp(170px, 40vh, 340px);
    top: 35%;
  }
  #imgWrap img { max-height: clamp(170px, 40vh, 340px); }

  #imgZone { top: 40%; }
  #textLeft {
    top: calc(40% + clamp(82px, 19vh, 170px) + 12px);
    bottom: auto;
    width: 88vw; max-height: 32vh; padding: 12px 16px; text-align: center;
  }
  #tlText { font-size: clamp(11px, 4vw, 14px); text-align: center; }

  .cta-band h2  { font-size: clamp(19px, 6.5vw, 30px); }
  #contato .contact-link { font-size: 14px; }
}


/* ═══════════════════════════════════════
   7. MOBILE MÍNIMO — 375px
   iPhone SE, Android compacto
═══════════════════════════════════════ */
@media (max-width: 375px) {

  .hero-title { font-size: clamp(30px, 10.5vw, 44px); }
  .hero-sub   { font-size: 9px; letter-spacing: .18em; }

  #imgZone {
    height: clamp(160px, 38vh, 320px);
    top: 34%;
  }
  #imgWrap img { max-height: clamp(160px, 38vh, 320px); }

  #imgZone { top: 40%; }
  #textLeft {
    top: calc(40% + clamp(78px, 18vh, 160px) + 10px);
    bottom: auto;
    width: 88vw; max-height: 32vh; padding: 10px 14px; text-align: center;
  }
  #tlText { font-size: 11px; text-align: center; }
  .tl-lbl { font-size: 9px; text-align: center; }

  .sec-h  { font-size: clamp(18px, 6vw, 26px); }
  .ac-lead { font-size: 13px; }
  .svc h3 { font-size: 14px; }
  .stat-n { font-size: 24px; }

  .cta-band { padding: 36px 14px; }
  .cta-band h2 { font-size: clamp(18px, 7vw, 28px); }
  .cta-band p  { font-size: 12px; }
  #contato .contact-link { font-size: 13px; }

  footer ul { gap: 10px; }
  footer .fc { font-size: 9px; }
}


/* ═══════════════════════════════════════
   8. TELA GRANDE — 1920px+
═══════════════════════════════════════ */
@media (min-width: 1920px) {

  #imgZone {
    height: clamp(600px, 78vh, 1100px);
    width: min(900px, 88vw);
  }
  #imgWrap img {
    max-height: clamp(600px, 78vh, 1100px);
  }
  #textLeft {
    width: min(500px, 28vw);
  }
}


/* ═══════════════════════════════════════
   9. TOUCH / INTERAÇÃO MOBILE
   Melhora áreas clicáveis e swipe
═══════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {

  /* Thumb hover desativado em touch */
  .thumb.hovered img { transform: none; }

  /* Livros: sem cursor zoom-in */
  #imgWrap img.on { cursor: pointer; }

  /* Lightbox: setas maiores para toque fácil */
  #lb-prev .arr-btn, #lb-next .arr-btn {
    width: 52px;
    height: 52px;
  }
  #lb-prev .arr-btn svg, #lb-next .arr-btn svg {
    width: 22px;
    height: 22px;
  }

  /* Botão fechar: maior */
  #lb-close {
    width: 64px;
    height: 64px;
    font-size: 36px;
  }

  /* Contatos: área de toque generosa */
  .contact-link {
    min-height: 30px;
    padding: 8px 0;
  }

  /* Zoom: sem cursor grab em touch */
  #zoom-canvas { cursor: default; }
  #zoom-canvas:active { cursor: default; }
}

/* ══ Cover title — MOBILE: title above the image, comfortable gap ══ */

/* 900px: center 42%, half ≈29vh, font ~40px (1-2 lines ≈56px) + 20px gap */
@media (max-width: 900px) {
  #coverTitle {
    top: calc(42% - clamp(130px, 29vh, 360px) - 70px);
    font-size: clamp(28px, 5.8vw, 46px);   /* smaller so it fits above image */
    width: min(520px, 88vw);
    line-height: 1.15;
    transform: translateX(-50%) translateY(-40px) scale(0.78);
  }
}

/* 768px: center 42%, half ≈23vh, font ~28px (1-2 lines ≈64px) + 18px gap */
@media (max-width: 768px) {
  #coverTitle {
    top: calc(42% - clamp(108px, 23vh, 240px) - 82px);
    font-size: clamp(26px, 7vw, 44px);
    width: 88vw;
  }
}

/* 480px: center 41%, half ≈20vh, font ~22px (1-2 lines ≈50px) + 16px gap */
@media (max-width: 480px) {
  #coverTitle {
    top: calc(41% - clamp(90px, 20vh, 195px) - 66px);
    font-size: clamp(24px, 7.2vw, 40px);
    width: 90vw;
  }
}

/* 390px: center 40%, half ≈20vh, font ~20px (1-2 lines ≈46px) + 14px gap */
@media (max-width: 390px) {
  #coverTitle {
    top: calc(40% - clamp(88px, 20vh, 185px) - 60px);
    font-size: clamp(22px, 7.2vw, 36px);
    width: 90vw;
  }
}

/* 375px: center 40%, half ≈19vh, font ~18px (1-2 lines ≈41px) + 12px gap */
@media (max-width: 375px) {
  #coverTitle {
    top: calc(40% - clamp(82px, 19vh, 175px) - 54px);
    font-size: clamp(21px, 7vw, 34px);
    width: 90vw;
  }
}

/* ══ HAMBURGER / MOBILE MENU — responsive ══ */
@media (max-width: 900px) {
  /* Show hamburger, hide desktop links */
  .nav-hamburger { display: flex; }
  .nlinks        { display: none !important; }

  /* Show mobile menu element (visibility controlled by .is-open class) */
  .mobile-menu   { display: block; }
}

/* Hide vertical progress bar on mobile */
@media (max-width: 768px) {
  #prog { display: none; }
}

/* ── HERO MOBILE ── */
@media (max-width: 768px) {
  .vt-hero-title { font-size: clamp(48px, 14vw, 72px); }
  .vt-hero-sub   { font-size: 9px; letter-spacing: .2em; }
  .vt-hero-mark svg { height: 36px !important; }
}

/* ── CATALOG CARDS MOBILE ── */
@media (max-width: 768px) {
  .cat-grid-section { padding: 40px 20px 60px; }
  .cat-grid { gap: 20px; }
  .cat-card { flex: 1 1 100%; max-width: 100%; }
  .cat-card-img { height: 220px; }
}


/* PATCH: não deixar o card do menu virar quadrado no final da página */
nav,
nav.nav-scrolled {
  border-radius: 18px !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

@media (max-width: 900px) {
  nav,
  nav.nav-scrolled {
    border-radius: 16px !important;
  }
}


/* ═══════════════════════════════════════
   PATCH FINAL — Tipografia dos livros / viewer / lightbox
   Mantém o texto descritivo da caixa branca no tamanho atual,
   aumenta os títulos e melhora o contador em todas as telas.
═══════════════════════════════════════ */

/* Tablet largo */
@media (max-width: 1024px) {
  .tl-lbl {
    font-size: clamp(18px, 3.4vw, 26px);
    line-height: 1.16;
    letter-spacing: .08em;
    margin-bottom: 10px;
    text-align: center;
  }

  #lb-caption .lb-lbl {
    font-size: clamp(22px, 4vw, 34px);
    line-height: 1.15;
    letter-spacing: .08em;
    text-transform: lowercase;
  }

  #lb-caption .lb-counter {
    font-size: clamp(14px, 1.8vw, 18px);
    color: var(--ink);
    letter-spacing: .10em;
    margin-bottom: 10px;
  }

  #lb-caption .lb-text {
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.42;
  }
}

/* Tablet */
@media (max-width: 820px) {
  .tl-lbl {
    font-size: clamp(18px, 4.2vw, 26px);
    line-height: 1.16;
    letter-spacing: .08em;
    margin-bottom: 10px;
    text-align: center;
  }

  #lb-caption .lb-lbl {
    font-size: clamp(22px, 5vw, 32px);
    line-height: 1.15;
    letter-spacing: .08em;
  }

  #lb-caption .lb-counter {
    font-size: clamp(14px, 2.2vw, 18px);
    color: var(--ink);
  }

  #lb-caption .lb-text {
    font-size: clamp(17px, 3vw, 22px);
    line-height: 1.42;
  }
}

/* Mobile largo */
@media (max-width: 768px) {
  .tl-lbl {
    font-size: clamp(18px, 4.8vw, 26px);
    line-height: 1.16;
    letter-spacing: .08em;
    margin-bottom: 10px;
    text-align: center;
  }

  #lb-caption {
    max-height: none;
    overflow: visible;
  }

  #lb-caption .lb-lbl {
    font-size: clamp(22px, 5.6vw, 32px);
    line-height: 1.15;
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-transform: lowercase;
  }

  #lb-caption .lb-counter {
    font-size: clamp(14px, 2.8vw, 18px);
    color: var(--ink);
    letter-spacing: .10em;
    margin-bottom: 10px;
  }

  #lb-caption .lb-text {
    font-size: clamp(17px, 4.2vw, 22px);
    line-height: 1.42;
  }
}

/* Mobile médio */
@media (max-width: 480px) {
  .tl-lbl {
    font-size: clamp(17px, 4.8vw, 24px);
    line-height: 1.16;
    letter-spacing: .08em;
    margin-bottom: 10px;
    text-align: center;
  }

  #lb-caption {
    max-height: none;
    overflow: visible;
    padding: 0 16px;
  }

  #lb-caption .lb-lbl {
    font-size: clamp(21px, 5.8vw, 30px);
    line-height: 1.15;
    letter-spacing: .08em;
    margin-bottom: 8px;
  }

  #lb-caption .lb-counter {
    font-size: clamp(13px, 3.2vw, 17px);
    color: var(--ink);
    margin-bottom: 9px;
  }

  #lb-caption .lb-text {
    font-size: clamp(16px, 4.4vw, 21px);
    line-height: 1.42;
  }
}

/* Mobile pequeno */
@media (max-width: 390px) {
  .tl-lbl {
    font-size: clamp(16px, 4.8vw, 22px);
    line-height: 1.16;
    letter-spacing: .08em;
    margin-bottom: 10px;
    text-align: center;
  }

  #lb-caption .lb-lbl {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.15;
    letter-spacing: .08em;
  }

  #lb-caption .lb-counter {
    font-size: clamp(13px, 3.4vw, 16px);
    color: var(--ink);
  }

  #lb-caption .lb-text {
    font-size: clamp(16px, 4.6vw, 20px);
    line-height: 1.42;
  }
}

/* Mobile mínimo */
@media (max-width: 375px) {
  .tl-lbl {
    font-size: clamp(16px, 4.8vw, 21px);
    line-height: 1.16;
    letter-spacing: .08em;
    margin-bottom: 10px;
    text-align: center;
  }

  #lb-caption .lb-lbl {
    font-size: clamp(19px, 6vw, 27px);
    line-height: 1.15;
    letter-spacing: .08em;
  }

  #lb-caption .lb-counter {
    font-size: clamp(12px, 3.4vw, 16px);
    color: var(--ink);
  }

  #lb-caption .lb-text {
    font-size: clamp(15px, 4.6vw, 20px);
    line-height: 1.42;
  }
}
/* FIM PATCH FINAL — Tipografia dos livros */



/* PATCH RESPONSIVO — Viewer de catálogos igual aos livros */
@media (max-width: 768px) {
  #cat-lb {
    padding: 56px 0 28px;
  }

  #cat-lb-topbar {
    height: 56px;
    padding: 0 18px;
  }

  .cat-lb-logo {
    height: 18px;
  }

  #catLbClose {
    width: 56px;
    height: 56px;
    font-size: 30px;
  }

  #catLbPrev,
  #catLbNext {
    flex: 0 0 28px;
  }

  #catLbPrev .arr-btn,
  #catLbNext .arr-btn {
    width: 52px;
    height: 52px;
  }

  #catLbPrev .arr-btn svg,
  #catLbNext .arr-btn svg {
    width: 22px;
    height: 22px;
  }

  #cat-lb-center {
    padding: 0 4px;
    gap: 16px;
  }

  #catLbImg {
    max-height: 52vh;
    max-width: 88vw;
    width: auto;
  }

  #cat-lb-caption {
    max-height: 30vh;
    padding: 0 16px;
  }

  #cat-lb-caption .lb-lbl {
    font-size: clamp(24px, 5.4vw, 34px);
    line-height: 1.12;
    letter-spacing: .06em;
  }

  #cat-lb-caption .lb-counter {
    font-size: clamp(13px, 2.8vw, 16px);
    color: var(--ink);
    margin-bottom: 10px;
  }

  #cat-lb-caption .lb-text {
    font-size: clamp(16px, 3.8vw, 21px);
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  #cat-lb-caption .lb-lbl {
    font-size: clamp(22px, 6vw, 32px);
  }

  #cat-lb-caption .lb-counter {
    font-size: clamp(13px, 3.2vw, 16px);
  }

  #cat-lb-caption .lb-text {
    font-size: clamp(15px, 4vw, 20px);
    line-height: 1.42;
  }
}

@media (max-width: 390px) {
  #cat-lb-caption .lb-lbl {
    font-size: clamp(21px, 6vw, 30px);
  }

  #cat-lb-caption .lb-counter {
    font-size: clamp(12px, 3.2vw, 15px);
  }

  #cat-lb-caption .lb-text {
    font-size: clamp(15px, 4vw, 19px);
  }
}

@media (max-width: 375px) {
  #cat-lb-caption .lb-lbl {
    font-size: clamp(20px, 6vw, 28px);
  }

  #cat-lb-caption .lb-counter {
    font-size: clamp(12px, 3vw, 15px);
  }

  #cat-lb-caption .lb-text {
    font-size: clamp(14px, 4vw, 18px);
  }
}

/* ══════════════════════════════════════════════════════════════════
   CAPAS LONGAS (cavalo crioulo + kenjiro ikoma) — no mobile o título de
   3 linhas encavalava a capa. Em vez de subir o título (ficava colado no
   teto) OU encolher demais a capa, fazemos o equilíbrio: a capa fica só
   um pouco menor E é deslocada para baixo, ocupando o espaço entre o
   título e o texto — sem encostar no texto.
   Só mobile; eu me ensinei, demais livros e desktop ficam intactos.
   AJUSTE FINO:
     • max-height  → tamanho da capa (maior = capa maior)
     • translateY  → quanto desce (o "+NNpx"); maior = desce mais.
       Se a capa encostar no texto de baixo, reduza o translateY (ou o max-height).
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #imgWrap img[data-book="cavalo-crioulo"][data-cover],
  #imgWrap img[data-book="kenjiro-ikoma"][data-cover] {
    max-height: clamp(185px, 39vh, 395px);
    transform: translate(-50%, calc(-50% + 34px));
  }
}
@media (max-width: 480px) {
  #imgWrap img[data-book="cavalo-crioulo"][data-cover],
  #imgWrap img[data-book="kenjiro-ikoma"][data-cover] {
    max-height: clamp(152px, 35vh, 310px);
    transform: translate(-50%, calc(-50% + 30px));
  }
}
@media (max-width: 390px) {
  #imgWrap img[data-book="cavalo-crioulo"][data-cover],
  #imgWrap img[data-book="kenjiro-ikoma"][data-cover] {
    max-height: clamp(150px, 35vh, 298px);
    transform: translate(-50%, calc(-50% + 26px));
  }
}
@media (max-width: 375px) {
  #imgWrap img[data-book="cavalo-crioulo"][data-cover],
  #imgWrap img[data-book="kenjiro-ikoma"][data-cover] {
    max-height: clamp(140px, 33vh, 280px);
    transform: translate(-50%, calc(-50% + 24px));
  }
}
