/* Raiz & Brisa — mecânica comum das versões 2 a 5 (pedido do Vítor, 04/12/2026).
   Cada versão define as variáveis e o desenho da página inicial na sua folha (draft-N.css), carregada a seguir.
   Sem JavaScript: o menu do telemóvel e a caixa da galeria abrem por :target. */

:root {
  --fundo: #fff; --fundo-2: #f4f5f7; --texto: #1d242c; --suave: #5b6570; --linha: #dde1e6;
  --pri: #3D5675; --pri-2: #2f445e; --sobre-pri: #fff; --foco: #3D5675;
  --cab-fundo: #fff; --cab-texto: #1d242c; --cab-linha: #dde1e6; --menu-fundo: #fff; --menu-texto: #1d242c;
  --rod-fundo: #1d242c; --rod-texto: rgba(255, 255, 255, .86); --rod-linha: rgba(255, 255, 255, .18);
  --letra-t: system-ui, sans-serif; --letra-c: system-ui, sans-serif; --peso-t: 600; --espaco-t: -.01em;
  --raio: 4px; --raio-foto: 4px;
  --largura: 76rem; --margem: clamp(1.25rem, 5vw, 3rem); --seccao: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 1.0625rem/1.65 var(--letra-c); -webkit-font-smoothing: antialiased; }
body:has(.caixa:target) { overflow: hidden; }
img, picture, video { display: block; max-width: 100%; }
picture img { width: 100%; height: auto; }
a { color: var(--pri); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--letra-t); font-weight: var(--peso-t); letter-spacing: var(--espaco-t); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
[id] { scroll-margin-top: 5.5rem; }
.contem { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }
.salto { position: absolute; left: -999px; top: 0; }
.salto:focus { left: 1rem; top: 1rem; z-index: 60; background: #fff; color: #1d242c; padding: .6rem 1rem; }
.ancora { position: absolute; top: 0; }
.visivel-so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.barra { display: none; }
.confirmar { display: inline-block; margin-left: .35em; padding: 0 .45em; border: 1px dashed #b07a2a; border-radius: 3px; font: 500 .78rem/1.6 var(--letra-c);
  color: #8a5a16; background: #fff8eb; white-space: nowrap; vertical-align: .1em; }
.foto-caixa { overflow: hidden; background: var(--fundo-2); border-radius: var(--raio-foto); }
.foto-caixa picture, .foto-caixa img { width: 100%; height: 100%; object-fit: cover; }

/* botões */
.botao { display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.35em; border-radius: var(--raio); font: 600 1rem/1.2 var(--letra-c); text-decoration: none;
  background: var(--pri); color: var(--sobre-pri); border: 1px solid var(--pri); transition: background-color .2s, color .2s, border-color .2s; }
.botao:hover { background: var(--pri-2); border-color: var(--pri-2); }
.botao svg { width: 1.15em; height: 1.15em; flex: none; }
.botao.contorno { background: transparent; color: var(--pri); }
.botao.contorno:hover { background: var(--fundo-2); }
.botao.branco { background: #fff; color: var(--pri); border-color: #fff; }
.botao.branco:hover { background: rgba(255, 255, 255, .86); }
.botao.claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.botao.claro:hover { background: rgba(255, 255, 255, .12); }
.acoes { display: flex; flex-wrap: wrap; gap: .75rem; }

/* cabeçalho e menu */
.cabecalho { width: 100%; color: var(--cab-texto); background: var(--cab-fundo); border-bottom: 1px solid var(--cab-linha); }
.cab { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.cabecalho .logo { display: block; flex: none; }
.cabecalho .logo img { height: 2.4rem; width: auto; }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu ul { display: flex; gap: 1.5rem; }
.menu ul a { color: inherit; text-decoration: none; font-size: .97rem; }
.menu ul a:hover { text-decoration: underline; }
.menu-fechar, .menu-abrir { display: none; }
.menu .menu-reservar { padding: .55em 1.1em; font-size: .95rem; background: var(--pri); color: var(--sobre-pri); border-color: var(--pri); }
.menu .menu-reservar:hover { background: var(--pri-2); }
.linguas { display: flex; gap: .15rem; padding-left: 1.1rem; border-left: 1px solid var(--cab-linha); }
.linguas a, .linguas span.lingua-off { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .4rem; color: inherit; text-decoration: none;
  font-size: .82rem; letter-spacing: .03em; border-bottom: 1px solid transparent; }
.linguas a[aria-current] { border-bottom-color: currentColor; }
.linguas span.lingua-off { opacity: .4; cursor: not-allowed; }
.bandeira { width: 1.15rem; height: .78rem; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }

/* secções */
.seccao { padding: var(--seccao) 0; }
.lista-pontos li { position: relative; padding: .3rem 0 .3rem 1.4rem; }
.lista-pontos li::before { content: ""; position: absolute; left: .1rem; top: .95em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--pri); }

/* mapa (comum: a zona é um círculo sobre o meio da rua, nunca um marcador no prédio) */
.mapa > a { position: relative; display: block; overflow: hidden; background: var(--fundo-2); border-radius: var(--raio-foto); }
.mapa img { aspect-ratio: 3 / 2; object-fit: cover; }
.mapa-zona { position: absolute; left: 50%; top: 50%; width: 32%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 86, 117, .26) 0, rgba(61, 86, 117, .18) 55%, rgba(61, 86, 117, 0) 72%); box-shadow: inset 0 0 0 2px rgba(61, 86, 117, .55); }
.mapa-rua { position: absolute; left: 50%; top: calc(50% + 17%); transform: translateX(-50%); padding: .3rem .7rem; background: var(--pri); color: var(--sobre-pri);
  font-size: .85rem; white-space: nowrap; border-radius: var(--raio); }
.mapa figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-top: .6rem; font-size: .9rem; }
.mapa figcaption span a { color: var(--suave); }

/* citações (o texto fica na língua original) */
.citacao blockquote { margin: 0; }
.citacao blockquote p { margin: 0; }
.citacao blockquote p::before { content: "“"; }
.citacao blockquote p::after { content: "”"; }
.citacao figcaption span { display: block; color: var(--suave); font-size: .88rem; }
.datas { font-size: .9rem; color: var(--suave); margin: 2rem 0 0; }

/* rodapé */
.rodape { background: var(--rod-fundo); color: var(--rod-texto); font-size: .95rem; }
.rodape .contem { padding-top: 3.2rem; padding-bottom: 2.5rem; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.rodape .logo { display: inline-block; margin-bottom: 1rem; }
.rodape .logo img { height: 2.3rem; width: auto; }
.rodape a { color: #fff; }
.rodape p { margin: 0 0 .5rem; }
.rodape li { margin-bottom: .5rem; }
.rodape .reclamacoes { display: inline-block; padding: .35rem .7rem; border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--raio); text-decoration: none; }
.rodape .reclamacoes:hover { background: rgba(255, 255, 255, .1); }
.rodape :focus-visible { outline-color: #fff; }
.credito { grid-column: 1 / -1; border-top: 1px solid var(--rod-linha); padding-top: 1.5rem; margin: .5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .9rem; max-width: none; }
.credito a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; color: #fff; }
.credito .setsampa-logo { width: 1.2rem; height: 1.2rem; }
.credito .credito-cta { background: linear-gradient(90deg, #ddd3ff, #a5ecfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.credito .credito-cta svg { width: 1rem; height: 1rem; stroke: #a5ecfa; }
.credito .credito-cta:hover { text-decoration: underline; text-decoration-color: #a5ecfa; }

/* páginas da galeria e de texto */
.cabecalho.solido { position: sticky; top: 0; z-index: 30; }
.voltar { margin: 0 0 1.5rem; font-size: .95rem; }
.voltar a { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }
.voltar a:hover { text-decoration: underline; }
.voltar svg { width: 1rem; height: 1rem; }
.gal-cabeca { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.gal-cabeca h1, .texto-legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; margin-bottom: 1rem; }
.gal-cabeca > p:not(.voltar) { font-size: 1.25rem; line-height: 1.45; color: var(--suave); max-width: 40ch; }
.indice { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 0; }
.indice a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--linha); border-radius: var(--raio); text-decoration: none; font-size: .95rem; }
.indice a:hover { border-color: var(--pri); }
.grupo { padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.grupo-cabeca { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; margin-bottom: 1.3rem; padding-bottom: .8rem; border-bottom: 1px solid var(--linha); }
.grupo-cabeca h2 { font-size: 1.7rem; }
.grupo-cabeca p { margin: 0; color: var(--suave); }
/* vídeos: cada um tem a versão horizontal e a vertical; só uma aparece (a outra, com preload="none", não descarrega) */
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.video video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #20252c; object-fit: cover; }
.video .video-alto { display: none; aspect-ratio: 9 / 16; max-height: 82vh; max-height: 82svh; margin: 0 auto; }
.video figcaption { margin-top: .6rem; color: var(--suave); }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }
@media (max-width: 600px) and (orientation: portrait) {
  .video .video-largo { display: none; }
  .video .video-alto { display: block; }
}
.fotos { columns: 3 15rem; column-gap: .6rem; }
.fotos li { break-inside: avoid; margin-bottom: .6rem; }
.fotos a { display: block; overflow: hidden; border-radius: var(--raio-foto); background: var(--fundo-2); }
.fotos a:hover img { opacity: .9; }
.pagina-galeria main, .pagina-texto main { padding-bottom: var(--seccao); }
.texto-legal { max-width: 46rem; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.texto-legal .intro { font-size: 1.25rem; line-height: 1.45; color: var(--suave); }
.texto-legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }

/* caixa de fotografia (só CSS) */
.caixa { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(15, 19, 25, .96); color: #fff; place-items: center; padding: 3.5rem 5rem; }
.caixa:target { display: grid; }
.caixa-fundo { position: absolute; inset: 0; }
.caixa figure { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.caixa picture { display: contents; }
.caixa img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); object-fit: contain; background: #2a3038; }
.caixa figcaption { margin-top: .9rem; font-size: .95rem; color: rgba(255, 255, 255, .88); text-align: center; max-width: 60ch; }
.caixa figcaption span { display: block; font-size: .82rem; color: rgba(255, 255, 255, .6); margin-top: .15rem; }
.caixa-ant, .caixa-seg, .caixa-fechar { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); }
.caixa-ant:hover, .caixa-seg:hover, .caixa-fechar:hover { background: rgba(255, 255, 255, .2); }
.caixa-ant svg, .caixa-seg svg, .caixa-fechar svg { width: 1.4rem; height: 1.4rem; }
.caixa-ant { left: 1rem; top: 50%; transform: translateY(-50%); }
.caixa-seg { right: 1rem; top: 50%; transform: translateY(-50%); }
.caixa-fechar { right: 1rem; top: 1rem; }
.caixa :focus-visible { outline-color: #fff; }

/* tablet e telemóvel */
@media (max-width: 1060px) {
  .menu ul { gap: 1.1rem; }
  .linguas { padding-left: .7rem; }
  .linguas a > span, .linguas .lingua-off > span { display: none; }
}
@media (max-width: 900px) {
  .cabecalho .logo img { height: 2.1rem; }
  .menu-abrir { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; color: inherit; text-decoration: none; font-size: .85rem; letter-spacing: .04em;
    border: 1px solid currentColor; border-radius: var(--raio); }
  .menu-abrir svg { width: 1.3rem; height: 1.3rem; }
  .menu { position: fixed; inset: 0; z-index: 40; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2rem;
    padding: 5rem var(--margem) 3rem; background: var(--menu-fundo); color: var(--menu-texto); visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
  .menu:target { visibility: visible; opacity: 1; }
  body:has(.menu:target) { overflow: hidden; }
  .menu ul { flex-direction: column; gap: .8rem; }
  .menu ul a { font-family: var(--letra-t); font-weight: var(--peso-t); font-size: 2rem; letter-spacing: var(--espaco-t); }
  .menu-fechar { display: grid; place-items: center; position: absolute; top: 1.1rem; right: var(--margem); width: 3rem; height: 3rem; border-radius: 50%;
    color: inherit; background: rgba(127, 127, 127, .16); }
  .menu-fechar svg { width: 1.4rem; height: 1.4rem; }
  .linguas { padding: 1.2rem 0 0; border-left: 0; border-top: 1px solid currentColor; flex-wrap: wrap; }
  .linguas a > span, .linguas .lingua-off > span { display: inline; }
  .linguas a, .linguas span.lingua-off { font-size: .95rem; padding: .4rem .55rem; }
  .rodape .contem { grid-template-columns: 1fr; }
  .caixa { padding: 3.5rem 1rem 5.5rem; }
  .caixa img { max-height: calc(100vh - 12rem); max-height: calc(100dvh - 12rem); }
  .caixa-ant, .caixa-seg { top: auto; bottom: 1rem; transform: none; }
  .caixa-ant { left: calc(50% - 3.5rem); }
  .caixa-seg { right: calc(50% - 3.5rem); }
}
@media (max-width: 480px) {
  .fotos { columns: 2; column-gap: .4rem; }
  .fotos li { margin-bottom: .4rem; }
  .botao { padding: .8em 1.1em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
