/* Loja Viva · lojaviva.app · folha de estilo única (tokens da marca v1) */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fontes/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --tinta: #1B1A17; --papel: #F6F1E7; --vermelho: #E63B1F; --telha: #B32D14;
  --atlantico: #1E4B5A; --granito: #5C574F; --seixo: #A39C90; --pedra: #D8D0C2;
  --branco: #FFFFFF; --sucesso: #1F7A4A;
  --fonte: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --raio-1: 4px; --raio-2: 8px; --raio-3: 16px; --raio-arco: 999px 999px 0 0;
  --sombra-1: 0 1px 2px rgba(27,26,23,.08); --sombra-2: 0 8px 24px rgba(27,26,23,.12);
  --largura: 1200px; --margem: 16px;
}
@media (min-width: 720px) { :root { --margem: 32px; } }
@media (min-width: 1100px) { :root { --margem: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--fonte); font-size: 18px; line-height: 28px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--atlantico); outline-offset: 3px; border-radius: 2px; }
.escuro :focus-visible, .rodape :focus-visible, .contacto-c :focus-visible { outline-color: var(--papel); }

.saltar { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--tinta); color: var(--papel); padding: 12px 18px; border-radius: var(--raio-2); font-weight: 700; text-decoration: none; }
.saltar:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.envolve { max-width: calc(var(--largura) + 2 * var(--margem)); margin: 0 auto; padding: 0 var(--margem); }
.sobre { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--granito); margin-bottom: 16px; }
.sobre .ponto { margin-right: 8px; }
.ponto { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--vermelho); vertical-align: .1em; }
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 34px; line-height: 38px; max-width: 22ch; text-wrap: balance; }
h3 { font-size: 22px; line-height: 28px; }
@media (min-width: 900px) { h2 { font-size: 48px; line-height: 52px; } h3 { font-size: 24px; line-height: 30px; } }
.intro { font-size: 18px; line-height: 28px; color: var(--granito); max-width: 60ch; margin-top: 16px; }
@media (min-width: 900px) { .intro { font-size: 20px; line-height: 30px; } }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border-radius: var(--raio-2); font: 700 18px/1.2 var(--fonte); text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; transition: background-color .15s, color .15s, border-color .15s; }
.btn .i { width: 20px; height: 20px; }
.btn-telha { background: var(--telha); color: var(--branco); }
.btn-telha:hover { background: #8F2410; }
.btn-tinta { background: var(--tinta); color: var(--papel); }
.btn-tinta:hover { background: #000; }
.btn-linha { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn-linha:hover { background: var(--tinta); color: var(--papel); }
.btn-papel { background: var(--papel); color: var(--tinta); }
.btn-papel:hover { background: var(--branco); }
.btn-linha-clara { border-color: var(--papel); color: var(--papel); background: transparent; }
.btn-linha-clara:hover { background: var(--papel); color: var(--tinta); }

/* Cabeçalho */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(246,241,231,.96); border-bottom: 1px solid var(--pedra); }
.topo .envolve { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.marca { display: inline-flex; align-items: center; min-height: 44px; }
.marca img { width: 124px; height: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 16px; font-weight: 500; text-decoration: none; border-radius: var(--raio-2); }
.nav a:hover { background: rgba(27,26,23,.06); }
.topo .btn { min-height: 44px; padding: 10px 12px; font-size: 15px; white-space: nowrap; }
.menu { position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--tinta); border-radius: var(--raio-2); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: 52px; background: var(--branco); border: 1px solid var(--pedra); border-radius: var(--raio-3); box-shadow: var(--sombra-2); padding: 8px; width: 240px; }
.menu a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; text-decoration: none; font-weight: 500; border-radius: var(--raio-2); }
.menu a:hover { background: var(--papel); }
.topo-dir { display: flex; align-items: center; gap: 8px; }
.cta-curto { display: inline; } .cta-longo { display: none; }
@media (min-width: 420px) { .marca img { width: 144px; } .topo .btn { padding: 10px 16px; font-size: 16px; } }
.tel-topo { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; border-radius: var(--raio-2); }
.tel-topo:hover { background: rgba(27,26,23,.06); }
.tel-topo .i { width: 20px; height: 20px; }
@media (min-width: 1000px) {
  .topo .envolve { height: 80px; }
  .marca img { width: 168px; }
  .tel-topo { display: inline-flex; }
  .cta-curto { display: none; } .cta-longo { display: inline; }
}
@media (min-width: 1240px) {
  .nav { display: block; }
  .menu { display: none; }
}

/* Primeira dobra */
.hero { padding: 24px 0 56px; }
.credito { margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--granito); }
.foto-hero .credito { text-align: right; }
.hero .envolve { display: grid; gap: 40px; }
.hero h1 { font-size: 40px; line-height: 42px; letter-spacing: -.03em; }
.hero h1 span { color: var(--granito); }
.hero .lead { font-size: 19px; line-height: 29px; margin-top: 20px; max-width: 34em; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.acoes .btn { flex: 1 1 260px; }
.precos-faixa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; border-top: 2px solid var(--tinta); margin-top: 32px; padding-top: 14px; max-width: 760px; }
.precos-faixa a { text-decoration: none; display: block; }
.precos-faixa b { display: block; font-size: 16px; line-height: 22px; font-weight: 700; }
.precos-faixa strong { font-size: 30px; line-height: 36px; font-weight: 800; letter-spacing: -.02em; }
.precos-faixa small { font-size: 15px; color: var(--granito); }
.nota { margin-top: 14px; font-size: 16px; line-height: 24px; color: var(--granito); }
.nota .ponto { margin-right: 8px; }
.foto-hero { position: relative; max-width: 340px; width: 100%; justify-self: center; }
.arco { border-radius: var(--raio-arco); overflow: hidden; background: var(--pedra); }
.arco img { width: 100%; height: 100%; object-fit: cover; }
.foto-hero .arco { aspect-ratio: 3 / 4; }
.diag-nota { margin-top: 14px; font-size: 16px; line-height: 24px; color: var(--granito); max-width: 36em; }
.diag-nota b { color: var(--tinta); }
.selo { position: absolute; left: 12px; right: 12px; bottom: 16px; background: var(--tinta); color: var(--papel); padding: 16px 20px; border-radius: var(--raio-3); box-shadow: var(--sombra-2); }
.selo b { display: block; font-size: 21px; line-height: 26px; font-weight: 800; letter-spacing: -.01em; }
.selo span { font-size: 15px; line-height: 22px; color: var(--seixo); }
@media (max-width: 559px) {
  .hero .lead { font-size: 18px; line-height: 27px; margin-top: 14px; }
  .precos-faixa { margin-top: 20px; padding-top: 10px; gap: 8px 12px; }
  .precos-faixa strong { font-size: 26px; line-height: 30px; }
  .hero .acoes { margin-top: 20px; }
}
.foto-hero .selo { bottom: 42px; }
@media (min-width: 1100px) { .foto-hero .selo { bottom: 90px; } }

/* Livro de Reclamações (rodapé) */
.lre { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; min-height: 52px; padding: 10px 16px; background: var(--papel); color: var(--tinta); border-radius: var(--raio-2); font-weight: 700; font-size: 16px; line-height: 20px; text-decoration: none; }
.lre:hover { background: var(--branco); }
.rodape .lre:focus-visible { outline-color: var(--papel); }
@media (min-width: 700px) { .hero h1 { font-size: 56px; line-height: 58px; } }
@media (min-width: 1100px) {
  .hero { padding: 72px 0 96px; }
  .hero .envolve { grid-template-columns: 1fr 440px; gap: 64px; align-items: center; }
  .foto-hero { max-width: 480px; }
  .hero h1 { font-size: 72px; line-height: 74px; }
  .hero .lead { font-size: 21px; line-height: 32px; }
  .acoes .btn { flex: 0 0 auto; }
  .selo { left: -40px; right: auto; bottom: 64px; width: 290px; }
}

/* Secções */
.seccao { padding: 64px 0; }
@media (min-width: 900px) { .seccao { padding: 112px 0; } }
.seccao-branca { background: var(--branco); }
.escuro { background: var(--tinta); color: var(--papel); }
.escuro .sobre, .escuro .intro { color: var(--seixo); }

/* Serviços */
.servicos { display: grid; gap: 16px; margin-top: 40px; }
.servico { background: var(--branco); border: 1px solid var(--pedra); border-radius: var(--raio-3); padding: 24px; }
.servico .icone { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--papel); margin-bottom: 16px; }
.servico .icone .i { color: var(--vermelho); }
.servico p { margin-top: 8px; color: var(--granito); font-size: 17px; line-height: 26px; }
.servico .plano { margin-top: 14px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--granito); }
.extras { margin-top: 24px; font-size: 17px; line-height: 26px; color: var(--granito); max-width: 70ch; }
@media (min-width: 640px) { .servicos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .servicos { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Planos */
.planos { display: grid; gap: 16px; margin-top: 40px; }
.plano-c { background: var(--branco); border: 1px solid var(--pedra); border-radius: var(--raio-3); padding: 28px 24px; display: flex; flex-direction: column; }
.plano-c.destaque { border: 2px solid var(--tinta); }
.plano-c h3 { font-size: 24px; }
.plano-c .para { margin-top: 6px; color: var(--granito); font-size: 16px; line-height: 24px; min-height: 48px; }
.preco { margin: 18px 0 4px; font-size: 52px; line-height: 56px; font-weight: 800; letter-spacing: -.03em; }
.preco small { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--granito); }
.iva { font-size: 14px; line-height: 20px; color: var(--granito); }
.inclui { margin: 20px 0 24px; border-top: 1px solid var(--pedra); padding-top: 16px; display: grid; gap: 10px; flex: 1; }
.inclui li { display: flex; gap: 10px; font-size: 16px; line-height: 24px; }
.inclui .i { width: 20px; height: 20px; margin-top: 2px; color: var(--vermelho); }
.inclui .base { font-weight: 700; }
.plano-c .btn { width: 100%; }

@media (min-width: 700px) { .planos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .planos { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.condicoes { margin-top: 32px; display: grid; gap: 12px; }
.condicoes li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 26px; }
.condicoes .i { color: var(--vermelho); margin-top: 1px; }
@media (min-width: 900px) { .condicoes { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.fotos-extra { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; background: var(--papel); border-radius: var(--raio-3); padding: 20px 24px; }
.fotos-extra .i { color: var(--vermelho); }
.fotos-extra p { flex: 1 1 280px; font-size: 17px; line-height: 26px; }

.etiqueta { display: inline-flex; align-items: center; gap: 6px; border: 1px solid currentColor; border-radius: 12px; padding: 2px 10px; font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: .02em; vertical-align: middle; }
.etiqueta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vermelho); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Exemplo de diagnóstico */
.diag-bloco { display: grid; gap: 32px; margin-top: 56px; align-items: center; }
@media (min-width: 900px) { .diag-bloco { grid-template-columns: 1fr 440px; gap: 64px; } }
.prova { font-size: 22px; line-height: 32px; font-weight: 500; max-width: 26em; }
.prova strong { font-weight: 800; }
.exemplo { background: var(--papel); border: 1px solid var(--pedra); border-radius: var(--raio-3); padding: 24px; }
.exemplo-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--tinta); padding-bottom: 12px; }
.exemplo-topo span { font-size: 16px; font-weight: 700; }
.exemplo-topo strong { font-size: 48px; line-height: 48px; font-weight: 800; letter-spacing: -.03em; }
.exemplo-topo strong small { font-size: 18px; color: var(--granito); font-weight: 500; letter-spacing: 0; }
.exemplo ul { margin-top: 16px; display: grid; gap: 16px; }
.exemplo li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 16px; line-height: 22px; }
.exemplo li b { font-weight: 700; }
.exemplo li .pts { font-weight: 700; }
.exemplo li .barra { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--pedra); overflow: hidden; }
.exemplo li .barra i { display: block; height: 100%; background: var(--vermelho); }
.exemplo li .porque { grid-column: 1 / -1; color: var(--granito); }
.exemplo .legenda { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--granito); }
.w30 { width: 30%; } .w33 { width: 33%; } .w43 { width: 43%; }

/* Como funciona */
.passos { display: grid; gap: 32px; margin-top: 48px; counter-reset: passo; }
.passo { border-top: 2px solid var(--tinta); padding-top: 20px; }
.passo .num { display: block; font-size: 64px; line-height: 64px; font-weight: 800; letter-spacing: -.04em; color: var(--vermelho); margin-bottom: 12px; }
.passo p { margin-top: 10px; color: var(--granito); }
@media (min-width: 900px) { .passos { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Sobre */
.sobre-grelha { display: grid; gap: 40px; align-items: center; }
.sobre-grelha figure .arco { aspect-ratio: 4 / 3; border-radius: var(--raio-3); }
.sobre-grelha p + p { margin-top: 16px; }
.sobre-grelha .texto p { color: var(--granito); }
.sobre-grelha .texto p.forte { margin-top: 20px; color: var(--tinta); font-size: 20px; line-height: 30px; font-weight: 500; }
.factos { margin-top: 28px; display: grid; gap: 12px; }
.factos li { display: flex; gap: 12px; align-items: flex-start; }
.factos .i { color: var(--vermelho); margin-top: 2px; }
@media (min-width: 900px) { .sobre-grelha { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Perguntas */
.perguntas { margin-top: 40px; border-top: 2px solid var(--tinta); max-width: 860px; }
.perguntas details { border-bottom: 1px solid var(--pedra); }
.perguntas summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; font-size: 19px; line-height: 26px; font-weight: 700; cursor: pointer; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; font-size: 28px; font-weight: 500; flex: none; width: 24px; text-align: center; }
.perguntas details[open] summary::after { content: "\2212"; }
.perguntas details p { padding: 0 0 20px; color: var(--granito); max-width: 70ch; }

/* Diagnóstico e contacto */
.diag-grelha { display: grid; gap: 48px; }
@media (min-width: 1000px) { .diag-grelha { grid-template-columns: 1fr 380px; gap: 72px; } }
.form { margin-top: 32px; display: grid; gap: 20px; }
.campo label, .campo legend { display: block; font-size: 16px; line-height: 22px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.campo .ajuda { font-weight: 400; color: var(--granito); }
.campo input[type=text], .campo input[type=tel], .campo textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: 400 18px/26px var(--fonte); color: var(--tinta); background: var(--branco); border: 2px solid var(--granito); border-radius: var(--raio-1); }
.campo textarea { min-height: 112px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: 3px solid var(--atlantico); outline-offset: 1px; border-color: var(--tinta); }
fieldset.campo { border: 0; margin: 0; padding: 0; min-width: 0; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcoes label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 12px; background: var(--branco); border: 2px solid var(--pedra); border-radius: var(--raio-2); font-weight: 500; margin: 0; cursor: pointer; }
.opcoes input { width: 24px; height: 24px; accent-color: var(--tinta); margin: 0; }
.opcoes label:has(input:checked) { border-color: var(--tinta); }
.duas { display: grid; gap: 20px; }
@media (min-width: 640px) { .duas { grid-template-columns: 1fr 1fr; } }
.form .acoes { margin-top: 4px; }
.aviso-dados { font-size: 15px; line-height: 22px; color: var(--granito); }
.erro-form { display: none; color: #B3261E; font-weight: 700; font-size: 16px; }
.erro-form.ver { display: block; }
.contacto-c { background: var(--tinta); color: var(--papel); border-radius: var(--raio-3); padding: 28px 24px; align-self: start; }
.contacto-c h3 { font-size: 24px; }
.contacto-c .pessoa { margin-top: 6px; color: var(--seixo); font-size: 16px; }
.contacto-c ul { margin-top: 20px; display: grid; gap: 4px; }
.contacto-c a, .contacto-c .linha { display: flex; align-items: center; gap: 12px; min-height: 52px; text-decoration: none; font-size: 18px; font-weight: 700; border-radius: var(--raio-2); }
.contacto-c a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contacto-c .linha { font-weight: 500; }
.contacto-c .sub { margin: -8px 0 8px 36px; }
.contacto-c small { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--seixo); }
.contacto-c .i { color: var(--papel); }
.horario { margin-top: 16px; padding-top: 16px; border-top: 1px solid #4A4740; font-size: 15px; line-height: 22px; color: var(--seixo); }

/* Rodapé */
.rodape { background: var(--tinta); color: var(--papel); padding: 56px 0 32px; border-top: 1px solid #33312C; }
.rodape-grelha { display: grid; gap: 32px; }
.rodape-marca img { width: 168px; height: auto; }
.rodape-marca p { margin-top: 16px; color: var(--seixo); font-size: 16px; line-height: 24px; max-width: 30ch; }
.rodape h2 { font-size: 13px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--seixo); margin-bottom: 8px; }
.rodape li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-size: 16px; }
.rodape li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rodape-fim { margin-top: 40px; padding-top: 20px; border-top: 1px solid #4A4740; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; line-height: 20px; color: var(--seixo); }
@media (min-width: 800px) { .rodape-grelha { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Barra fixa no telemóvel */
.barra-movel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--papel); border-top: 1px solid var(--pedra); box-shadow: 0 -4px 16px rgba(27,26,23,.08); }
.barra-movel .btn { min-height: 48px; padding: 10px 12px; font-size: 17px; }
body.com-barra .rodape { padding-bottom: 104px; }
@media (min-width: 1000px) { .barra-movel { display: none; } body.com-barra .rodape { padding-bottom: 32px; } }

/* Páginas legais */
.legal { padding: 48px 0 80px; }
.legal .envolve > * { max-width: 760px; }
.legal h1 { font-size: 40px; line-height: 44px; letter-spacing: -.03em; }
.legal .atual { margin-top: 12px; color: var(--granito); font-size: 16px; }
.legal h2 { font-size: 26px; line-height: 32px; margin-top: 40px; max-width: none; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 24px; }
.legal li + li { margin-top: 6px; }
.legal a { text-underline-offset: 3px; }
.legal table { margin-top: 16px; border-collapse: collapse; width: 100%; font-size: 16px; line-height: 24px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--pedra); }
.legal th { font-weight: 700; }
@media (max-width: 599px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { border-bottom: 2px solid var(--tinta); padding: 8px 0; }
  .legal td { border: 0; padding: 6px 0; }
  .legal td::before { content: attr(data-rotulo); display: block; font-weight: 700; }
}
@media (min-width: 900px) { .legal { padding: 72px 0 112px; } .legal h1 { font-size: 56px; line-height: 60px; } }
.voltar { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; margin-bottom: 16px; }
.voltar .i { transform: rotate(180deg); width: 20px; height: 20px; }
