@charset "UTF-8";
/* =====================================================================
   Liorci Clinic — sistema visual
   Ver DESIGN.md. Identidade herdada do site anterior; execução refeita.
   ===================================================================== */

/* ── Tipos de letra (auto-hospedados, variáveis) ───────────────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-latin.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-latin-ext.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-latin.woff2') format('woff2');
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-latin-ext.woff2') format('woff2');
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Fichas de design ──────────────────────────────────────────────── */
:root {
  /* Tinta */
  --ink-900: #21393a; --ink-700: #3c6365; --ink-600: #4e7c7e;
  --ink-500: #5e8f90; --ink-300: #7fb0af;

  /* Papel */
  --paper-000: #fdfbf7; --paper-100: #f7f2eb; --paper-200: #efe7da;
  --paper-300: #ede6dc; --paper-400: #dcd1c0;

  /* Texto */
  --text-900: #241f1a; --text-700: #362f28; --text-500: #443d35;
  --text-400: #5d554b;

  --wa: #25d366;

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --r-sm: 3px; --r-md: 10px; --r-lg: 12px;

  --w-wide: 1180px; --w-mid: 860px;
  /* Medida de leitura. Atenção: 1ch é a largura do dígito "0" (~10.2px no
     Mulish a 17px), bem mais que a média real de um caractere (~8px). Por
     isso 56ch dá ~70 caracteres por linha, o alvo — 68ch dava 86. */
  --w-text: 56ch;

  --pad-sec: clamp(64px, 9vw, 128px);
  --gut: clamp(20px, 5vw, 40px);

  --ease: cubic-bezier(.2, .6, .3, 1);
  --t-fast: 160ms var(--ease);

  --shadow-soft: 0 30px 60px -32px rgba(33, 57, 58, .28);
  --shadow-lift: 0 18px 38px -22px rgba(33, 57, 58, .32);
}

/* ── Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper-100);
  color: var(--text-500);
  font: 400 1.0625rem/1.72 var(--font-body);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; height: auto; }
img { background: var(--paper-200); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink-600);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--ink-300); color: var(--paper-000); }

/* Salta para o conteúdo — teclado e leitores de ecrã */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink-900); color: var(--paper-100);
  padding: var(--s-3) var(--s-5); border-radius: 0 0 var(--r-md) 0;
  font-size: .9375rem; font-weight: 600;
}
.skip:focus { left: 0; }

/* ── Tipografia ────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-900);
  text-wrap: balance;
}

/* Teto de 3.6rem (57.6px): a 5rem o título da home ocupava cinco linhas e
   empurrava o botão para fora do primeiro ecrã em portáteis. */
.h1, h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.015em;
}
.h2, h2 {
  font-size: clamp(1.95rem, 1.3rem + 2.8vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.012em;
}
.h3, h3 {
  font-size: clamp(1.3rem, 1.1rem + .85vw, 1.7rem);
  line-height: 1.22;
  font-weight: 500;
}

p { margin: 0 0 1.1em; max-width: var(--w-text); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.12rem, 1.04rem + .4vw, 1.32rem);
  line-height: 1.7;
  color: var(--text-500);
}

.meta { font-size: .875rem; font-weight: 500; color: var(--text-400); }

strong { font-weight: 600; color: var(--text-700); }
em { font-style: italic; }

/* Rótulo de secção — a assinatura da casa. Usado onde nomeia mesmo
   uma categoria, não como grelha decorativa em toda a secção. */
/* Serve em <p> ou em <h2>: quando o rótulo é o único cabeçalho da secção
   usa-se <h2>, para não saltar níveis. Daí fixar aqui família e tamanho. */
.eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-body);
  font-size: .8125rem; font-weight: 600; line-height: 1.4;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-700);
  margin: 0 0 var(--s-5);
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; flex: none;
  background: var(--ink-300);
}
/* O rótulo é um <p>, e os <p> herdam max-width da medida de leitura (56ch).
   Sem anular isso, o "centrado" centrava dentro de 571px em vez da largura
   toda — e ficava visivelmente à esquerda do título. */
.eyebrow.centered {
  justify-content: center;
  max-width: none; margin-inline: auto;
}
.eyebrow.centered::after {
  content: ''; width: 28px; height: 1px; flex: none;
  background: var(--ink-300);
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--ink-300); }
.on-dark .eyebrow::before, .on-dark .eyebrow::after { background: var(--ink-500); }

/* ── Estrutura ─────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gut); }
.wrap.mid { max-width: var(--w-mid); }

section { padding-block: var(--pad-sec); }

.bg-cream { background: var(--paper-100); }
.bg-paper { background: var(--paper-000); }
.bg-sand  { background: var(--paper-300); }
.bg-dark  { background: var(--ink-900); }

.bg-dark, .on-dark { color: rgba(247, 242, 235, .86); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .on-dark h2, .on-dark h3 { color: var(--paper-100); }

/* Classes que fixam a cor no próprio elemento (.lead, .meta, strong) não
   herdam a cor clara da secção — uma regra no elemento vence sempre a
   herança, por mais específico que o antecessor seja. Daí repô-las aqui. */
.bg-dark .lead,   .on-dark .lead,
.bg-dark .prose,  .on-dark .prose,
.bg-dark p,       .on-dark p,
.bg-dark li,      .on-dark li  { color: rgba(247, 242, 235, .86); }

.bg-dark .meta,   .on-dark .meta { color: rgba(247, 242, 235, .66); }
.bg-dark strong,  .on-dark strong { color: var(--paper-000); }
.bg-dark .prose a, .on-dark .prose a { color: var(--ink-300); }

.sec-head { max-width: 44rem; margin-bottom: var(--s-8); }
.sec-head.centered { margin-inline: auto; text-align: center; }
.sec-head.centered p { margin-inline: auto; }
.sec-head h2 + p { margin-top: var(--s-5); }

.grid { display: grid; gap: var(--s-5); }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); }

.split {
  display: grid; gap: clamp(36px, 6vw, 80px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

hr.rule { border: 0; border-top: 1px solid var(--paper-400); margin: var(--s-8) 0; }

/* Texto principal + coluna lateral (o especialista da área). Junta os dois
   blocos que antes ficavam empilhados, cada um com metade da largura vazia. */
.split-aside {
  display: grid; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 900px) {
  /* A coluna do especialista ganha peso: a 320px o retrato ficava pequeno
     ao lado de um bloco de texto largo. O texto continua limitado a 56ch,
     por isso alargar aqui não prejudica a leitura. */
  .split-aside { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); }

  /* Acompanha o texto ao rolar, em vez de ficar preso no topo com um vazio
     enorme por baixo quando o texto é longo. */
  .split-aside > aside { position: sticky; top: 92px; }
}
.aside-people { display: grid; gap: var(--s-6); max-width: 420px; }
.aside-people .person h3 { font-size: 1.35rem; }
.aside-people .person p { margin-top: var(--s-2); }

/* ── Botões ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  min-height: 46px; padding: var(--s-3) var(--s-6);
  border: 0; border-radius: var(--r-md);
  font: 600 .875rem/1 var(--font-body);
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
}
.btn svg { flex: none; transition: transform var(--t-fast); }

.btn-primary { background: var(--ink-700); color: var(--paper-100); }
.btn-primary:hover { background: var(--ink-900); }
.btn-primary:hover svg { transform: translateX(3px); }

/* Sobre fundo escuro o hover tem de CLAREAR: escurecer levava o botão para
   a mesma cor do cabeçalho (--ink-900) e ele desaparecia. Texto branco em
   vez de creme para manter 4.66:1 sobre o verde mais claro. */
.site-header .btn-primary:hover,
.bg-dark .btn-primary:hover,
.on-dark .btn-primary:hover {
  background: var(--ink-600);
  color: #fff;
}

.btn-ghost {
  background: none; color: var(--ink-900);
  border-bottom: 1px solid var(--paper-400);
  border-radius: 0; padding-inline: 0;
}
.btn-ghost:hover { border-bottom-color: var(--ink-600); color: var(--ink-700); }

.on-dark .btn-ghost, .bg-dark .btn-ghost {
  color: var(--paper-100); border-bottom-color: rgba(247, 242, 235, .32);
}
.on-dark .btn-ghost:hover, .bg-dark .btn-ghost:hover {
  color: var(--paper-000); border-bottom-color: var(--ink-300);
}

.btn-wa { background: var(--wa); color: #06301a; }
.btn-wa:hover { background: #1fbb59; }

/* Ligação com seta — usada nos cartões */
.more {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-700); text-decoration: none;
}
.more svg { transition: transform var(--t-fast); }

/* ── Cabeçalho ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--ink-900);
  transition: box-shadow var(--t-fast);
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(247, 242, 235, .12); }

.header-in {
  max-width: var(--w-wide); margin-inline: auto;
  padding: var(--s-3) var(--gut);
  display: flex; align-items: center; gap: var(--s-5);
  min-height: 68px;
}

.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { width: auto; height: 40px; background: none; }
.brand-txt {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--paper-100); letter-spacing: .01em;
}

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav a {
  padding: var(--s-3) var(--s-4);
  font-size: 1rem; color: rgba(247, 242, 235, .82);
  text-decoration: none; border-radius: var(--r-sm);
  transition: color var(--t-fast);
}
.nav a:hover, .nav a.is-active { color: var(--paper-000); }
.nav a.is-active { font-weight: 600; }

/* Submenu de tratamentos */
.has-sub { position: relative; }
.has-sub > button {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: none; border: 0; cursor: pointer;
  font: 400 .9375rem/1 var(--font-body);
  color: rgba(247, 242, 235, .82);
  transition: color var(--t-fast);
}
.has-sub > button:hover, .has-sub[data-open='true'] > button { color: var(--paper-000); }
.has-sub > button svg { transition: transform var(--t-fast); }
.has-sub[data-open='true'] > button svg { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 290px; padding: var(--s-3);
  background: var(--paper-000);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  display: none; z-index: 95;
}
/* Ponte invisível sobre o intervalo de 6px entre o botão e o submenu.
   Sem ela, quem passa o rato devagar sai da zona sensível a meio caminho
   e o menu fecha-se na cara. Alarga também um pouco para os lados, para
   perdoar o movimento na diagonal até aos itens de baixo. */
.submenu::before {
  content: ''; position: absolute;
  top: -12px; left: -16px; right: -16px; bottom: -8px;
  z-index: -1;
}
.has-sub[data-open='true'] .submenu { display: block; }
.submenu a {
  display: block; padding: var(--s-2) var(--s-3);
  font-size: 1rem; color: var(--text-700);
  border-radius: var(--r-sm);
}
.submenu a:hover { background: var(--paper-100); color: var(--ink-900); }

/* Alternador móvel */
.nav-toggle {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--paper-100);
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-900);
    padding: var(--s-4) var(--gut) var(--s-7);
    max-height: calc(100dvh - 68px); overflow-y: auto;
    display: none;
    border-top: 1px solid rgba(247, 242, 235, .12);
  }
  .nav[data-open='true'] { display: flex; }
  .nav a, .has-sub > button { padding: var(--s-4) 0; width: 100%; text-align: left; }
  .has-sub { width: 100%; }
  .has-sub > button { justify-content: space-between; }
  .submenu {
    position: static; min-width: 0; box-shadow: none;
    background: none; padding: 0 0 var(--s-4) var(--s-4);
  }
  .submenu a { color: rgba(247, 242, 235, .72); }
  .submenu a:hover { background: none; color: var(--paper-000); }
  .header-cta { display: none; }
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(56px, 8vw, 112px); }
.hero .lead { margin-top: var(--s-5); }
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-5); margin-top: var(--s-7);
}
.hero-media { position: relative; }
.hero-media img {
  width: 100%; border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}
/* Moldura deslocada — o gesto do hero */
.hero-media::after {
  content: ''; position: absolute; z-index: -1;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--paper-400);
  border-radius: var(--r-lg);
}
@media (max-width: 640px) { .hero-media::after { display: none; } }

/* Interior das páginas */
.page-hero { padding-block: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 56px); }
.page-hero .lead { margin-top: var(--s-5); }

.crumb {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  font-size: .875rem; color: var(--text-400);
  margin-bottom: var(--s-5); padding: 0; list-style: none;
}
.crumb li { display: flex; gap: var(--s-2); }
.crumb li + li::before { content: '·'; color: var(--paper-400); }
.crumb a { color: var(--ink-700); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ── Cartões ───────────────────────────────────────────────────────── */
/* Elevação declarada UMA vez: borda em repouso, sombra ao pairar. */
.card {
  display: flex; flex-direction: column;
  background: var(--paper-000);
  border: 1px solid var(--paper-400);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              border-color var(--t-fast);
}
.card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-lift);
}
.card:hover .more svg { transform: translateX(4px); }

.card-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.card-body { padding: var(--s-5) var(--s-5) var(--s-6); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: var(--s-3); }
.card-body p { font-size: 1rem; margin-bottom: var(--s-5); }
.card-body .more { margin-top: auto; }

/* Cartão de profissional — a fotografia é o objeto, sem moldura */
.person { text-decoration: none; display: block; }
.person img {
  width: 100%; aspect-ratio: 13 / 10; object-fit: cover;
  object-position: center top;
  border-radius: var(--r-lg);
  transition: transform 320ms var(--ease);
}
.person:hover img { transform: scale(1.02); }
.person h3 { margin: var(--s-4) 0 var(--s-1); font-size: 1.25rem; }
.person .role {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-700);
}
.person p { font-size: .9375rem; margin: var(--s-3) 0 0; }

/* Diferenciais — sem numeração decorativa */
.pillar { padding-top: var(--s-5); border-top: 1px solid var(--paper-400); }
.pillar h3 { margin-bottom: var(--s-3); font-size: 1.35rem; }
.pillar p { font-size: 1rem; margin: 0; }
.bg-dark .pillar { border-top-color: rgba(247, 242, 235, .2); }

/* ── Procedimentos e exames ────────────────────────────────────────────
   Duas colunas no desktop, como no site anterior. Sem separadores: o que
   agrupa os itens é o espaço, não uma linha por cima de cada um. */
.proc-group + .proc-group { margin-top: clamp(56px, 7vw, 88px); }

/* Cabeçalho do grupo: rótulo + título display, centrados sobre a grelha */
.proc-head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.proc-head .eyebrow { margin-bottom: var(--s-4); }
.proc-head h2 { max-width: 22ch; margin-inline: auto; }

.proc-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(32px, 4vw, 52px) clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .proc-list { grid-template-columns: 1fr 1fr; }
}
.proc-list li { margin: 0; }
.proc-list h4 {
  font-size: clamp(1.25rem, 1.08rem + .55vw, 1.55rem);
  font-weight: 500; line-height: 1.25;
  margin-bottom: var(--s-3); color: var(--ink-900);
  text-wrap: balance;
}
.proc-list p { font-size: 1rem; line-height: 1.7; margin: 0; max-width: 46ch; }

/* Cartões de procedimento — usados quando os itens têm fotografia. */
.proc-cards {
  display: grid; gap: var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.proc-card {
  display: flex; flex-direction: column;
  background: var(--paper-000);
  border: 1px solid var(--paper-400);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.proc-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-lift);
}
.proc-card:hover .more svg { transform: translateX(4px); }
.proc-card__img { width: 100%; aspect-ratio: 13 / 10; object-fit: cover; }
.proc-card__body {
  display: flex; flex-direction: column; flex: 1;
  padding: var(--s-5) var(--s-5) var(--s-6);
  border-top: 1px solid var(--paper-400);
}
.proc-card__body h3 {
  font-size: 1.2rem; font-weight: 500; line-height: 1.25;
  margin-bottom: var(--s-3); text-wrap: balance;
}
.proc-card__body p {
  font-size: .9375rem; line-height: 1.65;
  margin: 0 0 var(--s-5); max-width: none;
}
.proc-card__body .more { margin-top: auto; }

/* ── Corpo de texto rico (conteúdo do painel) ──────────────────────── */
.prose { max-width: var(--w-text); }
.prose > * { max-width: 100%; }

/* Centra o bloco de texto quando ele é o único conteúdo da secção. Nas
   páginas de tratamento o .prose divide a linha com a coluna do
   especialista, por isso aí fica encostado à esquerda. */
.wrap:not(.split-aside) > .prose { margin-inline: auto; }

/* Com uma imagem lateral, o contentor alarga para caber imagem + texto.
   Os blocos de texto continuam limitados à medida de leitura, por isso os
   parágrafos que NÃO ficam ao lado da imagem não esticam. */
@media (min-width: 860px) {
  .prose:has(figure.lado) { max-width: min(100%, 900px); }
  .prose:has(figure.lado) > p,
  .prose:has(figure.lado) > ul,
  .prose:has(figure.lado) > ol,
  .prose:has(figure.lado) > dl { max-width: var(--w-text); }
}
.prose h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  margin: var(--s-8) 0 var(--s-4);
}
.prose h3 { margin: var(--s-7) 0 var(--s-3); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--ink-300); }
.prose dl { margin: 0 0 1.1em; }
.prose dt {
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--ink-900); margin-top: var(--s-5);
}
.prose dd { margin: var(--s-1) 0 0; }
.prose a { color: var(--ink-600); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  margin: var(--s-6) 0; padding-left: var(--s-5);
  border-left: 1px solid var(--ink-300);
  font-family: var(--font-display); font-size: 1.3rem;
  line-height: 1.45; color: var(--ink-700);
}

/* ── Formulário ────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); } }

.field { display: grid; gap: var(--s-2); }
.field label {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-400);
}
.field input, .field textarea, .field select {
  width: 100%; padding: var(--s-3) var(--s-4);
  font: 400 1.0625rem/1.5 var(--font-body);
  color: var(--text-900);
  background: var(--paper-000);
  border: 1px solid var(--paper-400);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink-500);
  box-shadow: 0 0 0 3px rgba(94, 143, 144, .16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-400); }
.field[data-error='true'] input, .field[data-error='true'] textarea { border-color: #a4483c; }
.field .err { font-size: .875rem; color: #a4483c; }

.on-dark .field label { color: rgba(247, 242, 235, .62); }
.on-dark .field input, .on-dark .field textarea {
  background: rgba(247, 242, 235, .06);
  border-color: rgba(247, 242, 235, .22);
  color: var(--paper-000);
}
.on-dark .field input::placeholder, .on-dark .field textarea::placeholder { color: rgba(247, 242, 235, .45); }
.on-dark .field input:focus, .on-dark .field textarea:focus {
  border-color: var(--ink-300);
  box-shadow: 0 0 0 3px rgba(127, 176, 175, .2);
}

.alert {
  padding: var(--s-4) var(--s-5); border-radius: var(--r-md);
  font-size: 1rem;
}
.alert-ok  { background: rgba(94, 143, 144, .14); color: var(--ink-700); }
.alert-err { background: rgba(164, 72, 60, .12); color: #8a3a30; }
.on-dark .alert-ok { background: rgba(127, 176, 175, .18); color: var(--paper-100); }

/* ── Contactos ─────────────────────────────────────────────────────── */
.contact-list { list-style: none; margin: 0 0 var(--s-7); padding: 0; display: grid; gap: var(--s-5); }
.contact-list dt {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-300); margin-bottom: var(--s-1);
}
.contact-list dd { margin: 0; font-size: 1.12rem; color: var(--paper-100); }
.contact-list a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(247, 242, 235, .28); }
.contact-list a:hover { border-bottom-color: var(--ink-300); }

.map {
  width: 100%; aspect-ratio: 16 / 9; border: 0;
  border-radius: var(--r-lg); filter: grayscale(1) contrast(.9);
  transition: filter 320ms var(--ease);
  display: block;
}
.map:hover { filter: grayscale(0) contrast(1); }

/* Fachada do mapa — substituída pelo iframe real ao clicar. */
.map-facade {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5);
  background: rgba(247, 242, 235, .06);
  border: 1px solid rgba(247, 242, 235, .18);
  border-radius: var(--r-lg);
  text-decoration: none; color: var(--paper-100);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.map-facade:hover { background: rgba(247, 242, 235, .1); border-color: var(--ink-300); }
.map-facade__pin { flex: none; color: var(--ink-300); display: grid; place-items: center; }
.map-facade__txt {
  display: grid; gap: 2px; font-size: 1rem; line-height: 1.45;
  color: rgba(247, 242, 235, .78);
}
.map-facade__txt strong { color: var(--paper-100); font-weight: 600; }
.map-facade__cta {
  margin-left: auto; flex: none;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-300);
}
@media (max-width: 520px) {
  .map-facade { flex-wrap: wrap; }
  .map-facade__cta { margin-left: 0; width: 100%; }
}

/* ── Rodapé ────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink-900); color: rgba(247, 242, 235, .68); padding-block: var(--s-9) var(--s-6); }
.footer-grid {
  display: grid; gap: var(--s-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(247, 242, 235, .14);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .foot-h {
  font-family: var(--font-body); font-size: .75rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(247, 242, 235, .70); margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.site-footer a { color: rgba(247, 242, 235, .78); text-decoration: none; font-size: 1rem; }
.site-footer a:hover { color: var(--paper-000); }
.site-footer .brand-txt { font-size: 1.6rem; margin-bottom: var(--s-4); display: block; }
.footer-note {
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  justify-content: space-between;
  padding-top: var(--s-6); font-size: .875rem;
  color: rgba(247, 242, 235, .66);
}

/* ── WhatsApp flutuante ────────────────────────────────────────────── */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 28px -8px rgba(6, 48, 26, .45);
  transition: transform var(--t-fast);
  animation: wa-in 420ms var(--ease) 600ms both;
}
.wa-float:hover { transform: scale(1.06); }
@keyframes wa-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }

/* ── Revelação ao scroll — o único momento coreografado ────────────────
   O estado escondido só se aplica quando o JS está vivo (classe .js posta
   no <html> antes do render). Sem JS, o conteúdo aparece normalmente —
   nunca se esconde conteúdo à espera de um script que pode não correr. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.js [data-reveal].shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ── Utilitários ───────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* ── Impressão ─────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .wa-float, .hero-actions { display: none; }
  body { background: #fff; color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ── Imagens dentro do texto rico ─────────────────────────────────────
   As fotografias do site antigo são quase todas em retrato; nada aqui
   força proporção — a imagem manda, só se limita a altura. */
/* As fotografias saem da medida de leitura: o texto continua a 56ch, mas
   a imagem ganha largura. Cabe sempre dentro do .wrap, por isso não
   provoca deslize horizontal. */
.prose figure {
  margin: var(--s-7) 0;
  width: min(780px, calc(100vw - 2 * var(--gut)));
  max-width: none;
}
.prose figure img {
  width: 100%; height: auto;
  max-height: 70vh; object-fit: contain;
  border-radius: var(--r-lg);
  background: var(--paper-200);
}
.prose figure figcaption {
  margin-top: var(--s-3);
  font-size: .875rem; color: var(--text-400); line-height: 1.5;
}
.prose > figure:first-child { margin-top: 0; }

/* Figura ao lado do texto: o texto flui à volta em vez de a imagem
   empurrar tudo para baixo. Em ecrãs estreitos volta a empilhar. */
.prose figure.lado { width: 100%; }
@media (min-width: 860px) {
  .prose figure.lado {
    float: right; width: 340px;
    margin: var(--s-2) 0 var(--s-6) var(--s-7);
    shape-outside: margin-box;
  }
  .prose figure.lado + * { clear: none; }
  /* Um título nunca deve encavalitar-se na imagem flutuante. */
  .prose h2 { clear: both; }
}

/* Capa das páginas livres — no topo, ao lado do título. */
.pagina-capa {
  width: 100%; height: auto;
  max-height: 62vh; object-fit: contain;
  border-radius: var(--r-lg);
  margin-inline: auto;
}
.wrap-mid { max-width: var(--w-mid); }
