/* GUIAS SKOLITA — páginas A5 (148 × 210 mm). No ecrã aparecem como cartões, uns por baixo dos outros;
   ao imprimir (e ao gerar o PDF) cada .pg é uma página A5. */
:root {
  --roxo: #6d3df0; --roxo-esc: #4b1fc4; --roxo-fundo: #f3efff; --amarelo: #ffd23f; --tinta: #14213a; --sec: #4e5b73;
  --vinho: #9b1c4a; --pw: 560px; --ph: 794px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #e9e4fb; color: var(--tinta); font-family: 'Nunito', system-ui, sans-serif; font-size: 14px; line-height: 1.5; }
img { display: block; max-width: 100%; }
b, strong { font-weight: 800; }

/* barra do ecrã (não sai no PDF) */
.barra { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid #e4ddfb; }
.barra .in { max-width: var(--pw); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.barra a { color: var(--roxo-esc); font-weight: 800; text-decoration: none; font-size: 15px; }
.barra .pdf { background: var(--amarelo); color: #3a2a00; padding: 9px 16px; border-radius: 999px; box-shadow: 0 3px 0 #e0b100; white-space: nowrap; }
.livro { padding: 18px 12px 40px; }

.pg { position: relative; width: 100%; max-width: var(--pw); min-height: var(--ph); margin: 0 auto 18px; border-radius: 22px; overflow: hidden;
  background: #fff; box-shadow: 0 8px 26px rgba(60, 30, 140, .12); padding: 44px 40px 52px; display: flex; flex-direction: column; }
.num { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 11px; color: #9aa3b5; }
.h { font-family: 'Fredoka', sans-serif; font-weight: 700; line-height: 1.12; margin: 0; }
.kick { font-size: 11.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; }
.logo { width: 150px; }
.logo-b { filter: brightness(0) invert(1); }
.rodape { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; font-weight: 900; }

/* capa e contracapa */
.capa, .contra { background: linear-gradient(160deg, #7b4df5 0%, #5a2ee0 60%, #4318c8 100%); color: #fff; }
.capa .logo { width: 190px; }
.pill { display: inline-block; background: var(--amarelo); color: #3a2a00; font-size: 10px; font-weight: 900; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.pill-b { display: inline-block; border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .14); font-size: 11.5px; font-weight: 800; padding: 3px 11px; border-radius: 999px; }
.capa .sub { font-weight: 800; font-size: 13px; margin: 10px 0 8px; }
.capa h1 { font-size: 40px; margin: 26px 0 12px; }
.capa h1 em, .amar { font-style: normal; color: var(--amarelo); }
.capa .lead { font-weight: 800; font-size: 15.5px; line-height: 1.35; max-width: 250px; }
.capa .masc { position: absolute; right: 18px; top: 280px; width: 205px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .25)); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 30px; }
.chips img { width: 17px; height: 17px; display: inline-block; vertical-align: -3px; margin-right: 3px; }
.chips span { font-size: 11px; font-weight: 800; border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); padding: 4px 11px; border-radius: 999px; }
.capa .rodape { color: var(--amarelo); font-size: 12.5px; margin-top: 18px; }
.contra { align-items: center; justify-content: center; text-align: center; gap: 14px; }
.contra .masc { width: 150px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25)); }
.contra p { font-weight: 800; font-size: 15px; margin: 0; line-height: 1.4; }
.contra .qr { width: 104px; background: #fff; padding: 8px; border-radius: 14px; }
.contra .url { background: var(--amarelo); color: #3a2a00; font-weight: 900; padding: 8px 22px; border-radius: 999px; box-shadow: 0 3px 0 #e0b100; }
.icons { display: flex; gap: 8px; justify-content: center; }
.icons img { width: 36px; height: 36px; background: rgba(255, 255, 255, .9); border-radius: 50%; padding: 4px; }

/* situação (secundário e encarregados) */
.sit { color: #fff; background: var(--fundo); }
.sit .kick { color: rgba(255, 255, 255, .85); }
.sit h2 { font-size: 35px; margin: 0 0 22px; }
.cita { background: #fff; color: var(--tinta); border-radius: 14px; padding: 13px 18px; font-weight: 800; font-size: 15px; max-width: 400px; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.cita small { display: block; color: var(--vinho); font-size: 11.5px; margin-top: 3px; }
.duo { display: flex; gap: 20px; align-items: center; margin-top: 44px; }
.tel { flex: 0 0 45%; border: 7px solid #1d1b2e; border-radius: 26px; overflow: hidden; background: #fff; transform: rotate(-3deg); box-shadow: 0 16px 30px rgba(0, 0, 0, .3); margin-top: 6px; }
.tel img { width: 100%; aspect-ratio: 0.9; object-fit: cover; object-position: top; }
.passos { flex: 1; display: flex; flex-direction: column; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: p; }
.passos li { position: relative; background: #fff; color: var(--tinta); border-radius: 13px; padding: 13px 14px 13px 48px; font-size: 14.5px; line-height: 1.4; box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.passos li::before { counter-increment: p; content: counter(p); position: absolute; left: 12px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--amarelo); color: #3a2a00; font-weight: 900; font-size: 13.5px; display: grid; place-items: center; }
.sit .rodape { flex-direction: column; align-items: stretch; font-size: 21px; line-height: 1.3; gap: 26px; padding-top: 20px; }
.sit .rodape .logo { width: 104px; align-self: flex-end; }

/* páginas claras: pais, listas, «A tua vez» */
.claro { background: var(--roxo-fundo); }
.claro h2 { color: var(--roxo-esc); font-size: 34px; margin: 0 0 24px; }
.claro .kick { color: var(--vinho); }
.lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: l; }
.lista li { position: relative; background: #fff; border-radius: 14px; padding: 13px 15px 13px 50px; font-size: 14px; line-height: 1.45; box-shadow: 0 4px 12px rgba(60, 30, 140, .07); }
.lista li::before { counter-increment: l; content: counter(l); position: absolute; left: 13px; top: 13px; width: 25px; height: 25px; border-radius: 50%; background: var(--roxo); color: #fff; font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.lista.ic li::before { display: none; }
.lista.ic li { padding-left: 58px; min-height: 58px; }
.lista.ic li .e { position: absolute; left: 12px; top: 11px; width: 34px; height: 34px; border-radius: 10px; background: var(--roxo-fundo); display: grid; place-items: center; font-size: 19px; }
.nota { margin-top: 18px; background: #fff; border-left: 4px solid var(--vinho); border-radius: 6px 14px 14px 6px; padding: 13px 16px; font-size: 13.5px; color: var(--sec); }
.dois-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.caixa { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 4px 12px rgba(60, 30, 140, .07); }
.caixa h3 { margin: 0 0 10px; font-size: 18px; font-family: 'Fredoka', sans-serif; }
.caixa ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.caixa li { margin: 5px 0; }
.sim h3 { color: #127a4a; } .nao h3 { color: var(--vinho); }

/* 2.º e 3.º ciclos: texto, capítulos, «A tua vez» */
.txt p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.txt h2 { color: var(--roxo-esc); font-size: 26px; margin: 0 0 16px; }
.txt .kick { color: var(--vinho); }
.fala { color: var(--roxo-esc); font-weight: 800; }
.txt .masc { position: absolute; right: 26px; bottom: 34px; width: 92px; }
.cap-hd { margin: -44px -40px 24px; padding: 30px 40px 18px; display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--cor); background: var(--tom); }
.cap-hd img { width: 56px; }
.cap-hd .kick { color: var(--cor); margin: 0 0 2px; }
.cap-hd .h { font-size: 24px; color: var(--tinta); }
.cap { background: #fff; }
.cap h2 { color: var(--cor); }
.vez { background: var(--tom); }
.vez .lista li::before { background: var(--cor); }
.vez .lista li { font-size: 15.5px; padding-top: 14px; padding-bottom: 14px; }
.vez .lista li::before { top: 14px; }
.dica { margin-top: 14px; border: 1.5px dashed var(--cor); background: #fffdf3; border-radius: 14px; padding: 13px 16px; font-size: 14.5px; }
.porque { margin-top: 10px; background: #fff; border-radius: 14px; padding: 13px 16px; font-size: 14.5px; }
.dica b, .porque b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.feito { margin-top: auto; padding-top: 14px; font-weight: 900; font-size: 12px; color: var(--cor); display: flex; align-items: center; gap: 8px; }
.feito::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--tinta); }
.centro { justify-content: center; text-align: center; }
.centro p { font-size: 18px; color: var(--sec); margin: 0 0 12px; }
.lema { font-family: 'Fredoka', sans-serif; font-weight: 700; color: var(--vinho); font-size: 20px; margin-top: 16px !important; }
.estrada { background: linear-gradient(170deg, #7b4df5, #5226dc); color: #fff; text-align: center; }
.estrada h2 { font-size: 26px; margin: 4px 0 4px; }
.estrada svg { width: 100%; margin-top: 10px; }
.metodo .linha { display: flex; gap: 14px; align-items: center; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; background: var(--tom); }
.metodo .linha img { width: 56px; }
.metodo .linha b { font-family: 'Fredoka', sans-serif; font-size: 19px; display: block; }
.metodo .linha span { font-size: 14.5px; }

/* estrada do estudo */
.mapa { position: relative; width: 100%; aspect-ratio: 480 / 560; margin-top: 14px; }
.mapa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.no { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.no img { width: 84px; height: 84px; border-radius: 50%; background: #fff; padding: 9px; box-shadow: 0 10px 20px rgba(0, 0, 0, .22); }
.no span { background: #fff; color: var(--tinta); font-weight: 900; font-size: 13px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.mapa .masc { position: absolute; width: 78px; transform: translate(-50%, -50%); }

/* voltar à página inicial (27/10, pedido da Zenaida) */
.topo { position:relative; }
.topo .voltar { position:absolute; top:14px; left:16px; color:#fff; font-weight:800; font-size:14px; text-decoration:none; opacity:.95; }
.topo .voltar:hover { text-decoration:underline; }
.fim-guia { text-align:center; margin:-20px 0 34px; font-size:14px; color:var(--sec); }
.fim-guia a { color:var(--roxo-esc); font-weight:800; }
@media print { .fim-guia { display:none; } }

/* página de entrada dos guias (/guias/) */
.entrada { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; }
.topo { background: linear-gradient(160deg, #7b4df5, #5a2ee0); color: #fff; padding: 44px 18px 26px; border-radius: 0 0 32px 32px; text-align: center; }
.topo .logo { margin: 0 auto 10px; width: 150px; }
.topo img.masc { width: 120px; margin: 4px auto 0; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .25)); }
.topo h1 { font-size: 28px; margin: 4px 0 4px; }
.topo p { margin: 0; font-weight: 700; opacity: .95; }
.botoes { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.bt { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 14px 16px; text-decoration: none; color: var(--tinta); box-shadow: 0 6px 18px rgba(60, 30, 140, .1); }
.bt img { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.bt b { font-family: 'Fredoka', sans-serif; font-size: 18px; display: block; line-height: 1.2; }
.bt span { font-size: 13.5px; color: var(--sec); }
.bt::after { content: '›'; margin-left: auto; font-size: 26px; color: var(--roxo); font-weight: 900; }
.bt.app { background: var(--amarelo); box-shadow: 0 4px 0 #e0b100; }
.bt.app span { color: #5a4300; }
.pe { text-align: center; font-size: 13px; color: var(--sec); margin-top: 22px; }
.pe a { color: var(--roxo-esc); font-weight: 800; }

@media (max-width: 480px) {
  .pg { min-height: 0; padding: 28px 20px 46px; }
  .cap-hd { margin: -28px -20px 20px; padding: 22px 20px 14px; }
  .capa h1 { font-size: 34px; }
  .capa .masc { position: static; width: 170px; margin: 10px 0 0 auto; }
  .duo { flex-direction: column; align-items: stretch; }
  .tel { flex: none; width: 72%; margin: 0 auto 10px; }
  .dois-col { grid-template-columns: 1fr; }
  .txt .masc { position: static; width: 80px; margin: 6px 0 0 auto; }
  .no img { width: 58px; height: 58px; padding: 6px; }
  .no span { font-size: 11px; padding: 3px 8px; }
}

@page { size: A5; margin: 0; }
@media print {
  html, body { background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .barra { display: none; }
  .livro { padding: 0; }
  .pg { width: 148mm; max-width: none; height: 210mm; min-height: 0; margin: 0; border-radius: 0; box-shadow: none; break-after: page; }
  .pg:last-child { break-after: auto; }
}

/* auréola clara atrás da mascote nos fundos roxos (como na área da família), para não se fundir com o fundo */
.capa .masc, .contra .masc, .topo .masc, .mapa .masc {
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, .95) 0%, rgba(237, 231, 255, .8) 48%, rgba(214, 200, 255, .3) 86%, rgba(214, 200, 255, 0) 100%);
  border-radius: 50%; filter: none;
}
.capa .masc { width: 262px; padding: 34px; right: 4px; top: 250px; }
.contra .masc { width: 200px; padding: 26px; }
.topo img.masc { width: 120px; padding: 15px; margin-top: 0; }
.mapa .masc { width: 106px; padding: 14px; }
@media (max-width: 480px) { .capa .masc { width: 220px; padding: 28px; } }
