/* ==========================================================================
   Bibi do Inglês — Versão 2.1 (páginas internas — arquivo internas.css)
   Usado só por aulas, jogos, materiais, cursos, sobre e contato.
   Depende de style.css (cores, fontes, cabeçalho, botões e rodapé).
   ========================================================================== */

/* ---------- Faixa de título (cabeçalho simples da página) ---------- */
.pg-hero {
  --hero-bg: var(--pink);
  --art-w: clamp(240px, 27vw, 390px);   /* largura da arte do banner */
  --art-r: 0.75;                        /* altura / largura da arte (PNG 1448 x 1086) */
  --art-w-m: clamp(220px, 68vw, 340px); /* largura da arte no celular */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero-bg);
  padding: clamp(36px, 5.5vw, 68px) 0 calc(var(--tear-h) + clamp(30px, 4.5vw, 54px));
  min-height: calc(var(--art-w) * var(--art-r) + var(--tear-h) + 28px);
}
.pg-hero--aulas { --art-w: clamp(220px, 25vw, 360px); --art-r: 0.785; --art-w-m: clamp(150px, 42vw, 240px); } /* colagem original, sem mudança */
.pg-hero--sobre { --art-w: clamp(220px, 23vw, 330px); }
.pg-hero__paper {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.pg-hero__paper--beige {
  left: -4%;
  top: 0;
  width: 38%;
  height: 100%;
  background: rgba(255, 251, 245, 0.45);
  clip-path: var(--torn-b);
}
.pg-hero__paper--navy {
  right: 0;
  top: 0;
  width: clamp(40px, 6vw, 90px);
  height: 100%;
  background: var(--navy);
  clip-path: var(--torn-a);
}
.pg-hero__star {
  position: absolute;
  z-index: -1;
  color: var(--burgundy);
  pointer-events: none;
}
.pg-hero__star--a { width: 26px; height: 26px; top: 26px; left: min(46%, 520px); }
.pg-hero__star--b { width: 14px; height: 14px; bottom: calc(var(--tear-h) + 22px); left: 10px; }
.pg-hero__london {
  position: absolute;
  z-index: -1;
  right: clamp(30px, 7vw, 110px);
  bottom: 0;
  width: var(--art-w);
  aspect-ratio: 922 / 724;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 22%);
  mask: linear-gradient(90deg, transparent 0, #000 22%);
}
.pg-hero__london img {
  display: block;
  width: 235.57%;
  max-width: none;
  margin-left: -135.57%;
}
/* colagens PNG aprovadas (jogos, materiais, cursos, sobre, contato): imagem inteira, sem corte */
.pg-hero__png {
  position: absolute;
  z-index: -1;
  right: clamp(24px, 6vw, 96px);
  bottom: 0;
  width: var(--art-w);
  aspect-ratio: 1448 / 1086;
  pointer-events: none;
}
.pg-hero__png img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pg-hero__inner { position: relative; }
.pg-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  font: 600 0.78rem/1.2 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.55);
}
.pg-title {
  max-width: 17ch;
  font: 800 clamp(2.2rem, 5.2vw, 3.7rem)/1.06 var(--font-heading);
  color: var(--navy);
  letter-spacing: -0.01em;
}
.pg-title--wide { max-width: 22ch; }
.pg-title__accent { position: relative; display: inline-block; color: var(--burgundy); }
.pg-title__accent .underline { color: var(--red); }
.pg-lead {
  max-width: 34em;
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--navy);
}

/* ---------- Seções ---------- */
.pg-section {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0;
  background: var(--cream);
  overflow-x: clip;
}
.pg-section--beige { background: var(--beige); }
.pg-section--tight-top { padding-top: clamp(30px, 4vw, 48px); }
.pg-head { margin-bottom: clamp(26px, 4vw, 44px); max-width: 44em; }
.pg-h2 {
  font: 800 clamp(1.7rem, 3.4vw, 2.5rem)/1.12 var(--font-heading);
  color: var(--navy);
}
.pg-h2 em { font-style: italic; color: var(--burgundy); }
.pg-sub { margin-top: 12px; font-size: 1.05rem; color: var(--navy); opacity: 0.86; }

/* ---------- Cartões de produto (jogos) ---------- */
.pg-product { display: flex; flex-direction: column; background: #FFFBF5; border: 1.5px dashed rgba(122, 15, 41, 0.4); border-radius: 22px; overflow: hidden; }
.pg-product__img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--burgundy);
  background: repeating-linear-gradient(135deg, rgba(244, 215, 217, 0.55) 0 14px, rgba(244, 215, 217, 0.28) 14px 28px); }
.pg-product__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-product__img svg { width: 54px; height: 54px; opacity: 0.8; }
.pg-product__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.pg-product__title { margin-top: 10px; font: 800 1.3rem/1.2 var(--font-heading); color: var(--navy); }
.pg-product__level { margin-top: 8px; font-size: 0.85rem; font-weight: 600; color: var(--burgundy); }
.pg-product__text { margin-top: 10px; line-height: 1.55; font-size: 0.97rem; flex: 1; }
.pg-product__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pg-product__actions .btn { min-height: 44px; padding: 0.5em 1.1em; font-size: 0.92rem; flex: 1 1 120px; }
.pg-product__actions .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Cartões ---------- */
.pg-grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid--catalog { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.pg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  background: #FFFBF5;
  border: 1px solid rgba(14, 42, 71, 0.1);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(14, 42, 71, 0.08);
}
.pg-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: -1px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: var(--burgundy);
}
.pg-card--navy::before { background: var(--navy); }
.pg-card--pink::before { background: var(--pink-hot); }
.pg-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--burgundy);
}
.pg-icon svg { width: 30px; height: 30px; }
.pg-icon--blue { background: var(--sky); color: var(--navy); }
.pg-card__title { font: 800 clamp(1.35rem, 2.2vw, 1.7rem)/1.2 var(--font-heading); color: var(--navy); }
.pg-card__text { margin-top: 10px; line-height: 1.65; }
.pg-list { margin-top: 18px; display: grid; gap: 10px; }
.pg-list li { position: relative; padding-left: 28px; line-height: 1.5; }
.pg-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  background: var(--burgundy);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* ---------- Passos (como funcionam as aulas) ---------- */
.pg-steps { counter-reset: passo; }
.pg-step {
  position: relative;
  padding: 26px 24px 28px;
  background: rgba(255, 251, 245, 0.7);
  border-radius: 20px;
  border: 1px dashed rgba(122, 15, 41, 0.35);
}
.pg-step::before {
  counter-increment: passo;
  content: counter(passo);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  font: 800 1.25rem/1 var(--font-heading);
}
.pg-step h3 { font: 800 1.3rem/1.2 var(--font-heading); color: var(--navy); }
.pg-step p { margin-top: 8px; line-height: 1.6; }

/* ---------- Faixa de chamada ---------- */
.pg-cta { margin-top: clamp(30px, 4vw, 48px); display: flex; justify-content: center; }

/* ---------- Espaços reservados (jogos e materiais) ---------- */
.pg-ph {
  display: flex;
  flex-direction: column;
  background: #FFFBF5;
  border: 1.5px dashed rgba(122, 15, 41, 0.4);
  border-radius: 22px;
  overflow: hidden;
}
.pg-ph__thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, rgba(244, 215, 217, 0.55) 0 14px, rgba(244, 215, 217, 0.28) 14px 28px);
  color: var(--burgundy);
}
.pg-ph__thumb svg { width: 54px; height: 54px; opacity: 0.8; }
.pg-ph__thumb--pdf {
  aspect-ratio: 3 / 3.4;
  background: var(--sky);
}
.pg-ph__sheet {
  position: relative;
  display: grid;
  place-items: center;
  width: 54%;
  aspect-ratio: 3 / 4;
  background: #fff;
  box-shadow: 0 10px 22px rgba(14, 42, 71, 0.2);
  color: var(--burgundy);
  clip-path: polygon(0 0, 78% 0, 100% 18%, 100% 100%, 0 100%);
}
.pg-ph__sheet svg { width: 40px; height: 40px; opacity: 0.85; }
.pg-ph__sheet::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22%;
  aspect-ratio: 1;
  background: linear-gradient(225deg, transparent 50%, var(--beige) 50%);
}
.pg-ph__body { padding: 18px 20px 22px; }
.pg-badge {
  display: inline-block;
  padding: 4px 12px;
  font: 600 0.74rem/1.3 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--pink);
  border-radius: 999px;
}
.pg-ph__text { margin-top: 10px; line-height: 1.55; font-size: 0.97rem; }

.pg-area + .pg-area { margin-top: clamp(44px, 6vw, 76px); }
.pg-area__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.pg-area__head .pg-icon { margin: 0; flex-shrink: 0; }
.pg-area__head p { margin-top: 4px; opacity: 0.86; }

/* ---------- Cursos ---------- */
.pg-soon {
  position: relative;
  padding: clamp(30px, 5vw, 56px);
  text-align: center;
  background: #FFFBF5;
  border: 1px solid rgba(14, 42, 71, 0.1);
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(14, 42, 71, 0.09);
}
.pg-soon .pg-icon { margin-inline: auto; width: 72px; height: 72px; }
.pg-soon .pg-icon svg { width: 38px; height: 38px; }
.pg-badge--big { margin-top: 6px; padding: 8px 20px; font-size: 0.9rem; background: var(--burgundy); color: #fff; }
.pg-soon p { max-width: 36em; margin: 18px auto 0; line-height: 1.7; font-size: 1.05rem; }
.pg-tiles { margin-top: clamp(28px, 4vw, 44px); }
.pg-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 251, 245, 0.75);
  border-radius: 18px;
  border: 1px solid rgba(14, 42, 71, 0.1);
  font-weight: 600;
}
.pg-tile .pg-icon { margin: 0; width: 46px; height: 46px; flex-shrink: 0; }
.pg-tile .pg-icon svg { width: 24px; height: 24px; }
.pg-links { margin-top: clamp(28px, 4vw, 42px); display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Sobre ---------- */
.pg-about { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.pg-photo { position: relative; isolation: isolate; isolation: isolate; max-width: 380px; width: 100%; justify-self: center; padding: 0 0 0 0; }
.pg-photo::before,
.pg-photo::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.pg-photo::before {
  inset: 10px -22px -22px 22px;
  background: var(--navy);
  clip-path: var(--torn-c);
  transform: none;
}
.pg-photo::after {
  inset: -18px 26px auto -20px;
  height: 46%;
  background: var(--pink);
  clip-path: var(--torn-a);
  z-index: -1;
}
.pg-photo picture { position: relative; z-index: 1; display: block; }
.pg-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  object-position: 50% 34%;
  border: 12px solid #FFFBF5;
  border-radius: 5px;
  box-shadow: 0 18px 34px rgba(14, 42, 71, 0.28);
}
.pg-photo__tape {
  position: absolute;
  z-index: 2;
  top: -14px;
  left: 50%;
  width: 92px;
  height: 28px;
  margin-left: -46px;
  background: rgba(244, 170, 186, 0.85);
  transform: rotate(-4deg);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 100% 0, 96% 50%, 100% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%, 3% 50%);
}
.pg-photo__star { position: absolute; z-index: 2; right: -18px; top: 38%; width: 28px; height: 28px; color: var(--burgundy); }
.pg-prose p { line-height: 1.75; font-size: clamp(1.02rem, 1.4vw, 1.14rem); }
.pg-prose p + p { margin-top: 18px; }
.pg-quote {
  margin-top: 26px !important;
  padding: 18px 0 18px 22px;
  border-left: 4px solid var(--burgundy);
  font: italic 800 clamp(1.4rem, 2.6vw, 2rem)/1.25 var(--font-heading) !important;
  color: var(--burgundy);
}
.pg-prose .btn { margin-top: 28px; }

/* ---------- Contato ---------- */
.pg-contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  margin-inline: auto;
  /* o aviso fica fora do fluxo; o espaço dele foi somado ao padding para manter a altura */
  padding: calc(clamp(28px, 5vw, 56px) + 21.4px) clamp(28px, 5vw, 56px);
  text-align: center;
  background: #FFFBF5;
  border: 1px solid rgba(14, 42, 71, 0.1);
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(14, 42, 71, 0.09);
}
.pg-contact__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}
.pg-contact__buttons .btn { min-width: 220px; }
.pg-contact__buttons .btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.pg-contact__note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--burgundy);
  font-weight: 500;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .pg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pg-hero__star--a { display: none; }
  .pg-hero { min-height: 0; padding-bottom: calc(var(--tear-h) + var(--art-w-m) * var(--art-r) + 26px); }
  .pg-hero__london { width: var(--art-w-m); right: clamp(14px, 5vw, 36px); bottom: calc(var(--tear-h) + 2px); }
  .pg-hero__png { width: var(--art-w-m); right: auto; left: 50%; transform: translateX(-50%); bottom: calc(var(--tear-h) + 2px); }
  .pg-hero__star--b { display: none; }
  .pg-about { grid-template-columns: minmax(0, 1fr); }
  .pg-photo { max-width: 320px; margin-bottom: 14px; }
}
@media (max-width: 720px) {
  .pg-grid--2,
  .pg-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .pg-hero__paper--beige { width: 70%; }
  .pg-hero__paper--navy { width: 12px; }
  .pg-ph__thumb--pdf { aspect-ratio: 16 / 10; }
  .pg-ph__sheet { width: 34%; }
  .pg-contact__buttons { grid-template-columns: minmax(0, 1fr); }
  .pg-contact__buttons .btn { width: 100%; min-width: 0; }
  .pg-photo__star { right: -6px; }
  .pg-area__head { align-items: flex-start; }
}

/* Contato: alternância vinho / branco apenas no celular. Desktop preservado. */
@media (max-width: 720px) {
  .pg-contact__buttons .btn:nth-child(3) {
    --btn-bg: var(--burgundy);
    --btn-fg: #fff;
    --btn-bd: transparent;
    box-shadow: 0 6px 16px rgba(122, 15, 41, 0.28);
  }
  .pg-contact__buttons .btn:nth-child(3):hover {
    --btn-bg: var(--burgundy-dark);
  }
  .pg-contact__buttons .btn:nth-child(4) {
    --btn-bg: transparent;
    --btn-fg: var(--burgundy);
    --btn-bd: var(--burgundy);
    box-shadow: none;
  }
  .pg-contact__buttons .btn:nth-child(4):hover {
    --btn-bg: var(--burgundy);
    --btn-fg: #fff;
  }
}

/* Card de material gratuito: thumbnail vertical e download direto. */
.pg-ph--resource { border: 1px solid rgba(122, 15, 41, .22); background: #FFFBF5; }
.pg-resource__preview img { display:block; width:100%; height:auto; }
.pg-resource__actions { padding: 14px 16px 18px; }
.pg-resource__download { display:flex; justify-content:center; align-items:center; text-align:center; width:100%; min-width:0; white-space:normal; }
