/* Marta Horta Design Studio — estilos partilhados por todas as páginas da bio */

:root {
  --amarelo: #FDE922;
  --turquesa: #14B8B4;
  --laranja: #D2500C;
  --carmim: #CF2F55;
  --magenta: #C234C9;
  --escuro: #111;
  --painel: rgba(84, 10, 52, 0.30);
  --titulo: "Roboto Slab", Rockwell, Georgia, serif;
  --fonte: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --margem: 20px;
  --coluna: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--turquesa);
  color: var(--amarelo);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
h1, h2, h3 { font-family: var(--titulo); }
ul, ol { padding: 0; list-style: none; }

/* Fundo: manchas de cor que derivam devagar, cada uma ao seu ritmo */
.fundo { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--turquesa); }
.fundo span {
  position: absolute;
  width: 130vmax;
  height: 130vmax;
  border-radius: 50%;
  will-change: transform;
  animation: deriva var(--t) ease-in-out infinite alternate;
}
.fundo .a { background: radial-gradient(closest-side, var(--laranja) 0%, var(--laranja) 25%, transparent 100%); top: -70vmax; left: -60vmax; --t: 23s; --x: 45vmax; --y: 35vmax; }
.fundo .b { background: radial-gradient(closest-side, var(--magenta) 0%, var(--magenta) 25%, transparent 100%); bottom: -80vmax; left: -30vmax; --t: 29s; --x: 35vmax; --y: -40vmax; }
.fundo .c { background: radial-gradient(closest-side, var(--carmim) 0%, var(--carmim) 15%, transparent 100%); top: 10vmax; right: -90vmax; --t: 19s; --x: -50vmax; --y: 25vmax; }
.fundo .d { background: radial-gradient(closest-side, var(--turquesa) 0%, var(--turquesa) 30%, transparent 100%); top: -30vmax; right: -50vmax; width: 95vmax; height: 95vmax; --t: 31s; --x: -30vmax; --y: 55vmax; }
@keyframes deriva {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(var(--x), var(--y)) scale(1.15); }
}

.dentro { width: 100%; max-width: var(--coluna); margin: 0 auto; padding: 0 var(--margem); }

/* Topo */
.topo { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.topo .nome { font-family: var(--titulo); font-weight: 700; text-decoration: none; }
.topo .falar { font-family: var(--titulo); font-weight: 500; text-underline-offset: 4px; white-space: nowrap; }

/* Abertura: linhas de texto a correr em sentidos opostos, fotografia por cima */
.faixas { position: relative; padding: 8px 0; overflow: hidden; }
.faixa { overflow: hidden; white-space: nowrap; }
.faixa .pista {
  display: inline-flex;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: clamp(4.25rem, 23vw, 9rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  animation: correr 38s linear infinite;
}
.faixa .pista span { padding-right: 0.32em; }
.faixa:nth-child(even) .pista { animation-direction: reverse; }
.faixa:nth-child(2) .pista { animation-delay: -9s; }
.faixa:nth-child(3) .pista { animation-delay: -17s; }
.faixa:nth-child(4) .pista { animation-delay: -4s; }
.faixa:nth-child(5) .pista { animation-delay: -26s; }
.faixa:nth-child(6) .pista { animation-delay: -13s; }
@keyframes correr { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.foto {
  background: #17131a;
  color: var(--amarelo);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  font-size: 0.9375rem;
  overflow: hidden;
}
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.faixas .foto {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(66vw, 400px);
  aspect-ratio: 4 / 5;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

/* Apresentação */
.apresentacao { padding: 56px 0 64px; }
.apresentacao h1 { font-size: clamp(2.4rem, 10.5vw, 4.75rem); line-height: 1.02; letter-spacing: -0.02em; }
.apresentacao h1 span { display: block; }
.apresentacao h1 .leve { font-weight: 300; }
.apresentacao h1 .forte { font-weight: 800; }
.apresentacao .intro { margin-top: 24px; font-size: 1.1875rem; max-width: 40ch; }
.botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.botao {
  display: inline-block;
  padding: 15px 22px;
  font-family: var(--titulo);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--amarelo);
  border-radius: 8px;
  background: transparent;
  color: var(--amarelo);
  cursor: pointer;
}
.botao.cheio { background: var(--amarelo); color: var(--escuro); }
.botao:hover { background: var(--amarelo); color: var(--escuro); }
.botao.cheio:hover { background: #fff; border-color: #fff; }

/* Secções */
section { padding: 56px 0; }
section h2 { font-size: clamp(1.9rem, 7vw, 2.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; }
section .entrada { margin-top: 14px; max-width: 46ch; }

/* Serviços: linhas de fio a fio, como no biosite */
.servicos { margin-top: 28px; border-top: 1.5px solid var(--amarelo); }
.servicos a { display: block; padding: 22px var(--margem); text-decoration: none; border-bottom: 1.5px solid var(--amarelo); }
.servicos .tipo { display: block; font-size: 0.9375rem; }
.servicos h3 { font-size: clamp(1.6rem, 6.4vw, 2.1rem); font-weight: 400; line-height: 1.15; margin-top: 2px; }
.servicos .desc { display: block; margin-top: 6px; max-width: 44ch; }
.servicos .acao { display: inline-block; margin-top: 10px; font-family: var(--titulo); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.servicos a:hover { background: rgba(0, 0, 0, 0.14); }
.servicos a:hover h3 { font-weight: 700; }
.servicos-largura { max-width: calc(var(--coluna) - 2 * var(--margem)); margin: 0 auto; }

/* Painéis translúcidos */
.painel { background: var(--painel); border-radius: 10px; padding: 28px 22px; }
.painel h2 + p, .painel p + p { margin-top: 16px; }
.painel p { max-width: 48ch; }
.sobre .foto { margin-top: 24px; aspect-ratio: 4 / 5; max-width: 300px; border-radius: 6px; }

/* Diagnóstico */
.opcoes { display: grid; gap: 10px; margin-top: 24px; }
.opcoes button {
  font-family: var(--titulo);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  color: var(--amarelo);
  border: 2px solid var(--amarelo);
  border-radius: 8px;
  cursor: pointer;
}
.opcoes button:hover { background: rgba(0, 0, 0, 0.16); }
.opcoes button[aria-pressed="true"] { background: var(--amarelo); color: var(--escuro); }
.resultado { margin-top: 20px; padding: 24px 20px; background: var(--amarelo); color: var(--escuro); border-radius: 8px; display: none; }
.resultado.visivel { display: block; }
.resultado h3 { font-size: 1.4375rem; font-weight: 700; line-height: 1.2; }
.resultado p { margin-top: 8px; max-width: 44ch; }
.resultado .botao { margin-top: 18px; background: var(--escuro); border-color: var(--escuro); color: var(--amarelo); }
.resultado .botao:hover { background: #333; border-color: #333; }

/* Testemunhos */
.testemunhos figure { margin-top: 28px; max-width: 50ch; }
.testemunhos blockquote { font-family: var(--titulo); font-weight: 300; font-size: 1.3125rem; line-height: 1.4; }
.testemunhos figcaption { margin-top: 10px; font-size: 0.9375rem; font-weight: 500; }

/* Newsletter e fecho */
.manifesto .painel, .fecho .painel { text-align: center; }
.manifesto h2, .fecho h2 { margin: 0 auto; }
.manifesto p, .fecho p { margin-left: auto; margin-right: auto; max-width: 40ch; }
.manifesto .botoes, .fecho .botoes { justify-content: center; }

footer { padding: 28px 0 48px; font-size: 0.9375rem; }
footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--titulo); font-weight: 500; }
footer a { text-underline-offset: 4px; }
footer .legal { margin-top: 18px; }

@media (min-width: 760px) {
  :root { --margem: 32px; }
  body { font-size: 1.125rem; }
  .apresentacao { padding: 80px 0 88px; }
  section { padding: 72px 0; }
  .painel { padding: 44px 40px; }
  .opcoes { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fundo span, .faixa .pista { animation: none; }
  .faixa:nth-child(even) .pista { transform: translateX(-18%); }
}

/* ---------- Páginas interiores ---------- */

.topo .voltar { font-family: var(--titulo); font-weight: 500; text-underline-offset: 4px; white-space: nowrap; }

.cabeca { padding: 40px 0 24px; }
.cabeca .tipo { font-size: 1rem; }
.cabeca h1 { margin-top: 6px; font-size: clamp(2.4rem, 10.5vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.cabeca h1 span { display: block; }
.cabeca h1 .leve { font-weight: 300; }
.cabeca h1 .forte { font-weight: 800; }
.cabeca .intro { margin-top: 22px; font-size: 1.1875rem; max-width: 40ch; }

/* Áreas do serviço */
.areas { margin-top: 24px; }
.areas li { padding: 20px 0; border-top: 1.5px solid var(--amarelo); }
.areas li:last-child { border-bottom: 1.5px solid var(--amarelo); }
.areas h3 { font-size: clamp(1.5rem, 6vw, 1.9rem); font-weight: 400; line-height: 1.15; }
.areas p { margin-top: 6px; max-width: 46ch; }

/* Projetos */
.projetos { display: grid; gap: 28px; margin-top: 28px; }
.projeto .foto { aspect-ratio: 4 / 3; border-radius: 6px; }
.projeto .tipo { display: block; margin-top: 14px; font-size: 0.9375rem; }
.projeto h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-top: 2px; }
.projeto .frase { margin-top: 6px; font-family: var(--titulo); font-weight: 300; font-size: 1.1875rem; line-height: 1.35; max-width: 34ch; }

/* Processo: é mesmo uma sequência, por isso leva números */
.passos { margin-top: 24px; counter-reset: passo; }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 2.2em 1fr; column-gap: 12px; padding: 18px 0; border-top: 1.5px solid var(--amarelo); }
.passos li::before { content: counter(passo); font-family: var(--titulo); font-weight: 800; font-size: 1.75rem; line-height: 1; }
.passos h3 { font-size: 1.3125rem; font-weight: 700; line-height: 1.2; }
.passos p { margin-top: 4px; max-width: 44ch; }

.nota { margin-top: 18px; font-size: 0.9375rem; max-width: 46ch; }
.nota a { text-underline-offset: 3px; }

/* ---------- Conversa gratuita: perguntas passo a passo ---------- */

.questionario { margin-top: 8px; }
.progresso { display: flex; gap: 6px; margin-bottom: 22px; }
.progresso span { flex: 1; height: 4px; border-radius: 2px; background: rgba(253, 233, 34, 0.3); }
.progresso span.feito { background: var(--amarelo); }
.passo-q { display: none; }
.passo-q.ativo { display: block; }
.passo-q .contador { font-size: 0.9375rem; }
.passo-q h2 { margin-top: 6px; }
.passo-q .opcoes { grid-template-columns: 1fr; }
.passo-q .opcoes.duas { grid-template-columns: 1fr; }
.navegacao { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.navegacao .recuar { font: inherit; font-family: var(--titulo); font-weight: 500; background: none; border: 0; color: var(--amarelo); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px 0; }
.navegacao .recuar[hidden] { display: none; }

.campos { display: grid; gap: 16px; margin-top: 22px; }
.campo label { display: block; font-family: var(--titulo); font-weight: 500; margin-bottom: 6px; }
.campo .opcional { font-family: var(--fonte); font-weight: 300; }
.campo input, .campo textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: var(--amarelo);
  background: rgba(0, 0, 0, 0.12);
  border: 2px solid var(--amarelo);
  border-radius: 8px;
  padding: 13px 14px;
}
.campo textarea { min-height: 120px; resize: vertical; }
.campo input::placeholder, .campo textarea::placeholder { color: rgba(253, 233, 34, 0.65); }
.campo input:focus-visible, .campo textarea:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 2px; }
.consentimento { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.9375rem; }
.consentimento input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amarelo); }
.consentimento a { text-underline-offset: 3px; }
.erro { margin-top: 12px; font-weight: 500; min-height: 1.5em; }

.fim h2 { max-width: 20ch; }
.fim p { margin-top: 14px; max-width: 44ch; }

@media (min-width: 760px) {
  .projetos { grid-template-columns: repeat(2, 1fr); }
  .passo-q .opcoes.duas { grid-template-columns: repeat(2, 1fr); }
  .cabeca { padding: 64px 0 32px; }
}

@media (min-width: 760px) {
  .opcoes .larga { grid-column: 1 / -1; }
}

/* Cabeçalho: em ecrãs estreitos, nome e chamada partem em duas linhas equilibradas */
@media (max-width: 480px) {
  .topo { font-size: 0.9375rem; line-height: 1.3; }
  .topo .nome { text-wrap: balance; }
  .topo .falar { white-space: normal; text-align: right; max-width: 11em; }
}

/* ---------- Projetos: cartão clicável e detalhe em janela ---------- */

.projeto-abrir {
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.projeto-abrir .foto { aspect-ratio: 4 / 3; border-radius: 6px; transition: transform 0.25s ease; }
.projeto-abrir .tipo { display: block; margin-top: 14px; font-size: 0.9375rem; }
.projeto-abrir .nome { display: block; font-family: var(--titulo); font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-top: 2px; }
.projeto-abrir .frase { display: block; margin-top: 6px; font-family: var(--titulo); font-weight: 300; font-size: 1.1875rem; line-height: 1.35; max-width: 34ch; }
.projeto-abrir .ver { display: inline-block; margin-top: 10px; font-family: var(--titulo); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.projeto-abrir:hover .foto { transform: scale(1.015); }
.projeto-abrir:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 6px; }

html.sem-scroll { overflow: hidden; }

dialog.caso {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #4A0A30;
  color: var(--amarelo);
}
dialog.caso::backdrop { background: rgba(74, 10, 48, 0.8); }
.caso-dentro { position: relative; padding: 64px var(--margem) 40px; max-width: 980px; margin: 0 auto; }
.caso .fechar {
  position: absolute;
  top: 16px;
  right: var(--margem);
  font: inherit;
  font-family: var(--titulo);
  font-weight: 500;
  color: var(--amarelo);
  background: none;
  border: 2px solid var(--amarelo);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.caso .fechar:hover { background: var(--amarelo); color: var(--escuro); }

.galeria {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 6px;
}
.galeria::-webkit-scrollbar { display: none; }
.galeria:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }
.galeria .foto {
  flex: 0 0 100%;
  aspect-ratio: 3 / 2;
  max-width: 100%;
  scroll-snap-align: start;
  margin: 0;
  background: #661A47;
}
.galeria-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.galeria-nav button {
  font: inherit;
  font-family: var(--titulo);
  font-weight: 500;
  color: var(--amarelo);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 0;
  cursor: pointer;
}
.galeria-nav button:disabled { opacity: 0.35; cursor: default; }
.galeria-nav .conta { font-variant-numeric: tabular-nums; font-size: 0.9375rem; }

.caso-texto { margin-top: 24px; max-width: 60ch; }
.caso-texto .tipo { font-size: 0.9375rem; }
.caso-texto h2 { margin-top: 4px; font-size: clamp(1.9rem, 7vw, 2.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.caso-texto .frase { margin-top: 10px; font-family: var(--titulo); font-weight: 300; font-size: 1.3125rem; line-height: 1.35; }
.caso-texto p + p { margin-top: 14px; }
.caso-texto .botoes { margin-top: 26px; }

@media (min-width: 760px) {
  .caso-dentro { padding-top: 80px; }
  .galeria .foto { aspect-ratio: auto; height: min(62vh, 600px); }
}
.galeria .foto img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .projeto-abrir .foto { transition: none; }
}

/* ---------- Serviços que abrem em janela, preços e faixas alternadas ---------- */

.servicos button.linha {
  display: block;
  width: 100%;
  padding: 22px var(--margem);
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1.5px solid var(--amarelo);
  cursor: pointer;
}
.servicos button.linha .servicos-largura { display: block; }
.servicos .nome-servico { display: block; font-family: var(--titulo); font-size: clamp(1.6rem, 6.4vw, 2.1rem); font-weight: 400; line-height: 1.15; margin-top: 2px; }
.servicos button.linha:hover { background: rgba(0, 0, 0, 0.14); }
.servicos button.linha:hover .nome-servico { font-weight: 700; }
.servicos button.linha:focus-visible { outline: 3px solid var(--amarelo); outline-offset: -3px; }
.servicos .preco { display: block; margin-top: 8px; font-family: var(--titulo); font-weight: 700; font-variant-numeric: tabular-nums; }
.apresentacao .intro + .intro { margin-top: 12px; }

/* ---------- Design à mão: pacotes e perguntas frequentes ---------- */

.pacotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 24px; }
.pacotes li { display: flex; }
.pacotes button { flex: 1; display: flex; flex-direction: column; align-items: flex-start; font: inherit; text-align: left; color: var(--amarelo); background: transparent; border: 2px solid var(--amarelo); border-radius: 8px; padding: 18px 16px; cursor: pointer; }
.pacotes button:hover { background: rgba(0, 0, 0, 0.16); }
.pacotes button[aria-pressed="true"] { background: var(--amarelo); color: var(--escuro); }
.pacotes button:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }
.pacote-detalhe { margin-top: 14px; padding: 22px 20px; background: var(--painel); border-radius: 8px; }
.pacote-detalhe h3 { font-size: 1.4375rem; font-weight: 700; line-height: 1.2; }
.pacote-detalhe p { margin-top: 6px; max-width: 48ch; }
.pacote-detalhe .pacote-cabe { margin-top: 14px; font-family: var(--titulo); font-weight: 500; }
.pacote-detalhe ul { margin-top: 6px; }
.pacote-detalhe li { padding: 6px 0 6px 18px; position: relative; max-width: 48ch; }
.pacote-detalhe li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 2px; background: var(--amarelo); }
.pacotes .horas { font-family: var(--titulo); font-weight: 800; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pacotes .unidade { margin-top: 6px; font-size: 0.9375rem; }
.pacotes .extra { margin-top: 10px; font-family: var(--titulo); font-weight: 700; font-size: 0.875rem; line-height: 1.3; }

.faq { margin-top: 20px; border-top: 1.5px solid var(--amarelo); }
.faq details { border-bottom: 1.5px solid var(--amarelo); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  position: relative;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-weight: 300; font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 2px; }
.faq details p { padding-bottom: 18px; max-width: 52ch; }
@media (max-width: 640px) {
  .pacotes { grid-template-columns: repeat(2, 1fr); }
  .pacotes li:last-child { grid-column: 1 / -1; }
}
.pacote-detalhe:not([hidden]) { animation: surgir 0.18s ease-out; }
@keyframes surgir { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pacote-detalhe:not([hidden]) { animation: none; } }

/* Testemunhos: aspas grandes para se perceber logo que é uma citação */
.testemunhos figure { position: relative; padding-top: 34px; }
.testemunhos figure::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: -2px;
  font-family: var(--titulo);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1;
}
.caso-texto .preco-caso { margin-top: 16px; font-family: var(--titulo); font-weight: 800; font-size: 1.75rem; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* SOS Marca: lista de situações e bloco de investimento */
.lista-traco { margin-top: 20px; }
.lista-traco li { font-family: var(--titulo); font-weight: 300; font-size: 1.3125rem; line-height: 1.3; padding: 14px 0; border-top: 1.5px solid var(--amarelo); max-width: 36ch; }
.lista-traco li:last-child { border-bottom: 1.5px solid var(--amarelo); }
.investimento .tipo { font-size: 0.9375rem; }
.investimento .preco-caso { margin-top: 4px; font-family: var(--titulo); font-weight: 800; font-size: clamp(2.6rem, 10vw, 3.5rem); line-height: 1; font-variant-numeric: tabular-nums; }

/* Fotografias reais: sem margem interior nem moldura de espaço reservado */
.foto:has(> img) { padding: 0; border: 0; }
.painel .foto + p { margin-top: 20px; }
.pacotes .valor { margin-top: 10px; font-family: var(--titulo); font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.investimento .iva { margin-top: 4px; font-size: 0.9375rem; }

/* Galerias com imagens reais: mostrar a imagem inteira */
.galeria .foto img { object-fit: contain; }
.galeria .foto:has(> img) { background: transparent; }
.galeria-nav[hidden] { display: none; }
.projeto-abrir .foto img { width: 100%; height: 100%; object-fit: cover; }

/* Serviços agrupados */
.faixa-grupo { margin-top: 48px; background: rgba(84, 10, 52, 0.40); border-top: 1.5px solid var(--amarelo); }
.grupo {
  padding: 12px 0;
  color: var(--amarelo);
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
}
#servicos .faixa-grupo + .servicos { margin-top: 0; border-top: 0; }
#servicos > .dentro:first-child + .faixa-grupo { margin-top: 24px; }
section h2 + .dentro .grupo, #servicos > .dentro:first-child + .dentro .grupo { margin-top: 20px; }
.grupo + * { margin-top: 0; }
#servicos .dentro + .servicos { margin-top: 12px; }
.servicos.compacto .nome-servico { font-size: clamp(1.25rem, 5vw, 1.5rem); }
.servicos.compacto button.linha { padding-top: 16px; padding-bottom: 16px; }

/* Cabeçalho fixo: acompanha sempre o scroll */
.topo { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.topo::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: rgba(74, 10, 48, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: -1;
}
[id] { scroll-margin-top: 84px; }

/* Sugestão do diagnóstico: janela pequena por cima da página */
dialog.sugestao {
  width: min(calc(100vw - 32px), 460px);
  max-width: none;
  margin: auto;
  padding: 28px 24px 26px;
  border: 0;
  border-radius: 12px;
  background: var(--amarelo);
  color: var(--escuro);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
dialog.sugestao::backdrop { background: rgba(74, 10, 48, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.sugestao[open] { animation: surgir 0.2s ease-out; }
.sugestao .tipo { display: block; font-size: 0.9375rem; padding-right: 80px; }
.sugestao h3 { margin-top: 6px; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.sugestao p { margin-top: 10px; }
.sugestao .botao { margin-top: 20px; background: var(--escuro); border-color: var(--escuro); color: var(--amarelo); }
.sugestao .botao:hover { background: #333; border-color: #333; color: var(--amarelo); }
.fechar-sugestao {
  position: absolute;
  top: 16px;
  right: 16px;
  font: inherit;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--escuro);
  background: none;
  border: 1.5px solid var(--escuro);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.fechar-sugestao:focus-visible, .sugestao .botao:focus-visible { outline: 3px solid var(--escuro); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { dialog.sugestao[open] { animation: none; } }

/* Galerias verticais (espaço, cadernos): fotografias 4:5 e vídeos ao alto */
.galeria.vertical .foto { display: block; overflow: hidden; aspect-ratio: 4 / 5; padding: 0; border: 0; background: transparent; }
.galeria .foto video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; background: #661A47; }
@media (min-width: 760px) {
  .galeria.vertical .foto { aspect-ratio: auto; height: min(70vh, 640px); }
  .galeria .foto video { object-fit: contain; background: transparent; }
}

/* Três projetos: o primeiro em destaque, a toda a largura */
@media (min-width: 760px) {
  .projetos .projeto:first-child { grid-column: 1 / -1; }
  .projetos .projeto:first-child .foto { aspect-ratio: 16 / 9; }
}
.sem-quebra { white-space: nowrap; }
/* Vídeo inteiro, sem cortes: barras de lado quando o formato não coincide */
.galeria .foto.video video { object-fit: contain; background: transparent; }

/* Saudação antes do título */
.apresentacao .ola { font-family: var(--titulo); font-weight: 400; font-size: clamp(1.375rem, 5.5vw, 1.875rem); line-height: 1.2; margin-bottom: 10px; }

/* ---------- Computador: aproveitar a largura do ecrã ---------- */
@media (min-width: 1000px) {
  :root { --coluna: 1180px; --margem: 40px; }

  /* Início e cabeçalhos das páginas: título à esquerda, texto e botões à direita */
  .apresentacao .dentro, .cabeca .dentro, .fecho:not(:has(.painel)) .dentro {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: 72px;
    align-items: end;
  }
  .apresentacao-titulo, .cabeca-titulo { grid-column: 1; }
  .apresentacao-texto, .cabeca-texto { grid-column: 2; padding-bottom: 6px; }
  .apresentacao .ola { font-size: 2.125rem; }
  .apresentacao h1 { font-size: 5rem; }
  .cabeca h1 { font-size: 5rem; }
  .apresentacao-texto .intro:first-child, .cabeca-texto .intro:first-child { margin-top: 0; }
  .fecho:not(:has(.painel)) h2 { max-width: 14ch; margin: 0; }
  .fecho-texto p { margin-left: 0; margin-right: 0; }
  .fecho-texto .botoes { justify-content: flex-start; }
  .fecho-texto .entrada { margin-top: 0; }
  .apresentacao { padding: 96px 0 104px; }

  /* Serviços: cada grupo numa fila, com divisórias verticais */
  .servicos {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    padding-inline: max(0px, calc((100% - var(--coluna)) / 2 + var(--margem) - 28px));
    border-bottom: 1.5px solid var(--amarelo);
  }
  .servicos li { display: flex; }
  .servicos li + li { border-left: 1.5px solid var(--amarelo); }
  .servicos a, .servicos button.linha { flex: 1; border-bottom: 0; padding: 28px; }
  .servicos-largura { max-width: none; margin: 0; }
  .servicos .desc { max-width: 36ch; }
  .servicos.compacto button.linha { padding-top: 22px; padding-bottom: 22px; }

  /* Sobre: fotografia ao lado do texto */
  .sobre .painel { display: grid; grid-template-columns: 340px minmax(0, 1fr); column-gap: 56px; align-content: start; padding: 48px; }
  .sobre .painel > * { grid-column: 2; }
  .sobre .painel > .foto { grid-column: 1; grid-row: 1 / span 4; margin-top: 0; max-width: none; align-self: start; }
  .sobre .painel h2 { max-width: 20ch; }
  .sobre .painel .foto + p { margin-top: 20px; }

  /* Diagnóstico: pergunta à esquerda, opções à direita */
  .diagnostico .painel { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: 56px; align-items: start; padding: 48px; }
  .diagnostico .painel > h2, .diagnostico .painel > .entrada { grid-column: 1; }
  .diagnostico .opcoes { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; grid-template-columns: 1fr; }

  /* Testemunhos lado a lado */
  .testemunhos .dentro { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .testemunhos .dentro:has(> figure:nth-of-type(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testemunhos .dentro:has(> figure:nth-of-type(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .testemunhos .dentro > h2 { grid-column: 1 / -1; }

  /* Newsletter */
  .manifesto .painel { padding: 56px 48px; }

  /* Páginas interiores */
  .areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 48px; }
  .areas li:last-child { border-bottom: 0; }
  .areas p { max-width: 40ch; }
  .passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: 28px; }
  .passos li { display: block; padding-top: 20px; }
  .passos li::before { display: block; margin-bottom: 10px; }
  .lista-traco { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .lista-traco li:last-child { border-bottom: 0; }
  .projetos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .projetos .projeto:first-child { grid-column: auto; }
  .projetos .projeto:first-child .foto { aspect-ratio: 4 / 3; }
  .faq, .pacote-detalhe { max-width: 860px; }
  .investimento { max-width: 720px; }
  .questionario { max-width: 760px; margin-left: auto; margin-right: auto; }
  .fecho .painel { padding: 56px 48px; }

  /* Rodapé numa só linha */
  footer .dentro { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
  footer .legal { margin-top: 0; }
}

/* Galerias: a imagem ajusta-se sempre à caixa, inteira, sem cortes em baixo */
.galeria .foto:has(> img), .galeria .foto:has(> video) { display: block; overflow: hidden; padding: 0; }
.galeria .foto > img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.galeria.vertical .foto { aspect-ratio: 3 / 4; }
@media (min-width: 760px) { .galeria.vertical .foto { aspect-ratio: auto; } }

/* O atributo hidden esconde sempre */
[hidden] { display: none !important; }
