/* ==========================================================================
   IDELMA — Iluminações e Decorações da Madeira, Lda.
   Folha de estilos principal · Tema claro com acento vermelho
   --------------------------------------------------------------------------
   PARA TROCAR AS CORES DA MARCA: edite apenas o bloco :root abaixo.
   ========================================================================== */

:root {
  /* --- PALETA DA MARCA --------------------------------------------------
     O vermelho foi medido diretamente no ficheiro do logótipo (#D5030C).
     Os outros dois tons derivam dele e existem por razões de contraste:
     ver a nota mais abaixo, na secção .section--alt.
     ---------------------------------------------------------------------- */
  --brand-red:       #D5030C;   /* vermelho do logótipo — acento e faixas */
  --brand-red-deep:  #A00209;   /* mais escuro — hover e texto sobre pedra */
  --brand-red-mid:   #F2404A;   /* mais claro — texto sobre fundo escuro */
  --brand-red-tint:  #FCF1F1;   /* fundo levemente rosado */
  --brand-ink:       #111114;   /* preto do logótipo — texto */

  /* --- SUPERFÍCIES ------------------------------------------------------
     Quatro tons bem separados, para as secções não se confundirem umas
     com as outras. A ordem de contraste é: branco → pedra → carvão → vermelho.
     ---------------------------------------------------------------------- */
  --surface:      #FFFFFF;      /* 1 · branco */
  --surface-alt:  #EDE6E1;      /* 2 · pedra quente — visivelmente distinta */
  --surface-ink:  #17181D;      /* 3 · carvão — secção de destaque */
  --surface-dark: #0E0F13;      /* 4 · rodapé, mais fundo que o carvão */

  /* --- TEXTO ------------------------------------------------------------ */
  --text:          #1C1D22;
  --text-mute:     #63676F;
  --text-on-red:   #FFFFFF;
  --text-on-red-mute: rgba(255, 255, 255, .82);
  --text-on-dark:      #E9EAEE;
  --text-on-dark-mute: #9A9EA8;

  /* --- LINHAS E SOMBRAS ------------------------------------------------- */
  --border:       rgba(28, 29, 34, .11);
  --border-strong:rgba(28, 29, 34, .20);
  --border-on-red:rgba(255, 255, 255, .26);
  --border-on-dark: rgba(255, 255, 255, .12);

  --shadow-sm: 0 1px 3px rgba(28, 29, 34, .06), 0 1px 2px rgba(28, 29, 34, .04);
  --shadow-md: 0 8px 24px rgba(28, 29, 34, .09);
  --shadow-lg: 0 20px 50px rgba(28, 29, 34, .14);
  --shadow-red: 0 8px 22px rgba(213, 3, 12, .28);

  --radius:    14px;
  --radius-lg: 20px;
  --maxw:      1180px;
  --gutter:    24px;

  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; }

::selection { background: var(--brand-red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--tight { padding: clamp(48px, 6vw, 78px) 0; }
.section--tint { background: var(--brand-red-tint); }

/* Pedra quente — o degrau mais suave */
.section--alt {
  background: var(--surface-alt);
  border-top: 1px solid rgba(28, 29, 34, .07);
  border-bottom: 1px solid rgba(28, 29, 34, .07);
}

/* Sobre pedra, o vermelho normal só atinge 4.06:1 — abaixo do mínimo AA.
   O texto vermelho colocado diretamente neste fundo usa o tom escuro (5.93:1).
   Dentro de cartões brancos o vermelho normal mantém-se. */
.section--alt > .container .eyebrow,
.section--alt .timeline b { color: var(--brand-red-deep); }
.section--alt > .container .eyebrow::before { background: var(--brand-red-deep); }

/* Carvão — usar uma vez por página, na secção mais importante.
   É o que dá ritmo ao site e evita a sensação de folha branca contínua. */
.section--dark {
  position: relative;
  background: var(--surface-ink);
  color: var(--text-on-dark);
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 380px at 86% 4%,  rgba(213, 3, 12, .20), transparent 62%),
    radial-gradient(520px 320px at 6%  98%, rgba(213, 3, 12, .10), transparent 60%);
  pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 2; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: var(--text-on-dark-mute); }
.section--dark .eyebrow { color: var(--brand-red-mid); }
.section--dark .eyebrow::before { background: var(--brand-red-mid); }

.section--dark .card {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .11);
  color: var(--text-on-dark);
  box-shadow: none;
}
.section--dark .card:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(242, 64, 74, .55);
}
.section--dark .card p { color: var(--text-on-dark-mute); }
.section--dark .card-num { color: var(--brand-red-mid); }
.section--dark .card-icon {
  background: rgba(213, 3, 12, .20);
  border-color: rgba(242, 64, 74, .38);
  color: var(--brand-red-mid);
}
.section--dark .check-list li { color: var(--text-on-dark-mute); }

.section--dark .btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .30);
  color: #fff;
}
.section--dark .btn--outline:hover { background: #fff; border-color: #fff; color: var(--brand-ink); }

.section--dark .filters button {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .15);
  color: var(--text-on-dark-mute);
}
.section--dark .filters button:hover { color: #fff; border-color: var(--brand-red-mid); }
.section--dark .filters button.is-active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.section--dark .shot {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
}
.section--dark .timeline p { color: var(--text-on-dark-mute); }

/* Secção vermelha cheia — usar com moderação, é o que fixa a marca */
.section--red {
  position: relative;
  background: linear-gradient(140deg, var(--brand-red) 0%, var(--brand-red-deep) 100%);
  color: var(--text-on-red);
  overflow: hidden;
}
.section--red::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 88% 8%,  rgba(255, 255, 255, .16), transparent 62%),
    radial-gradient(560px 320px at 4%  96%, rgba(0, 0, 0, .16), transparent 60%);
  pointer-events: none;
}
.section--red > .container { position: relative; z-index: 2; }
.section--red h1, .section--red h2, .section--red h3, .section--red h4 { color: #fff; }
.section--red .lead { color: var(--text-on-red-mute); }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.stack-center { text-align: center; }
.measure { max-width: 62ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }

/* ==========================================================================
   COMPONENTES DE TEXTO
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 3px;
  background: var(--brand-red);
  border-radius: 2px;
}
.section--red .eyebrow { color: #fff; }
.section--red .eyebrow::before { background: #fff; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-mute);
}

.section-head { margin-bottom: clamp(36px, 5vw, 54px); }

/* ==========================================================================
   BOTÕES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .97rem;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease),
              background .24s var(--ease), color .24s var(--ease),
              border-color .24s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn--primary:hover {
  background: var(--brand-red-deep);
  border-color: var(--brand-red-deep);
  box-shadow: 0 12px 30px rgba(213, 3, 12, .38);
}

.btn--outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: #fff;
}
.btn--outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* Botão sobre fundo vermelho */
.btn--ghost {
  border-color: var(--border-on-red);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.btn--ghost:hover { background: #fff; color: var(--brand-red); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   HEADER / NAVEGAÇÃO
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}

/* --- LOGO ---------------------------------------------------------------
   Para usar o logo real, substitua o ficheiro assets/logo.svg
   (ou troque o src das tags <img class="logo-mark">).
   ------------------------------------------------------------------------ */
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
/* O logótipo é preto: no cabeçalho (branco) usa-se a versão a cores,
   no rodapé (escuro) a versão em negativo. São ficheiros diferentes. */
.brand .logo-mark { height: 40px; width: auto; display: block; }
@media (max-width: 420px) { .brand .logo-mark { height: 33px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 10px 15px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .94rem;
  font-weight: 500;
  color: var(--text-mute);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface-alt); }
.nav-links a[aria-current="page"] { color: var(--brand-red); font-weight: 600; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-red);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button {
  border: 0;
  background: none;
  padding: 7px 13px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-mute);
  transition: background .2s, color .2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.is-active { background: var(--brand-red); color: #fff; }

.nav-cta { padding: 11px 22px; font-size: .9rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 16px; font-size: 1rem; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  padding: clamp(74px, 11vw, 132px) 0 clamp(66px, 9vw, 116px);
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 84% 6%,  rgba(213, 3, 12, .11), transparent 62%),
    radial-gradient(600px 380px at 2%  94%, rgba(213, 3, 12, .07), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.hero > .container { position: relative; z-index: 3; }

.hero--page { padding: clamp(58px, 8vw, 96px) 0 clamp(52px, 7vw, 82px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 5vw, 62px);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 .accent { color: var(--brand-red); }
.hero .lead { max-width: 54ch; }

/* Luzes decorativas — pequenos pontos vermelhos, como luzes de festa */
.bokeh { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bokeh i {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 12px 3px rgba(213, 3, 12, .28);
  opacity: .34;
  animation: twinkle 4.2s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .10; transform: scale(.75); }
  50%      { opacity: .48; transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .bokeh i { animation: none; opacity: .22; }
  html { scroll-behavior: auto; }
}

/* Cartão de estatísticas do hero */
.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 1.05rem; margin-bottom: 20px; }

.stat-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.stat-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.stat-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-list b {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-red);
  line-height: 1;
}
.stat-list span { font-size: .93rem; color: var(--text-mute); }

/* ==========================================================================
   CARTÕES
   ========================================================================== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(213, 3, 12, .40);
}

/* Cartões dentro de uma secção vermelha */
.section--red .card {
  background: rgba(255, 255, 255, .10);
  border-color: var(--border-on-red);
  color: var(--text-on-red);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.section--red .card:hover {
  background: rgba(255, 255, 255, .17);
  border-color: rgba(255, 255, 255, .45);
}
.section--red .card p { color: var(--text-on-red-mute); }
.section--red .card-num { color: #fff; }

.card p { color: var(--text-mute); font-size: .97rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--brand-red-tint);
  border: 1px solid rgba(213, 3, 12, .22);
  color: var(--brand-red);
}
.section--red .card-icon {
  background: rgba(255, 255, 255, .16);
  border-color: var(--border-on-red);
  color: #fff;
}
.card-icon svg { width: 26px; height: 26px; }

.card-num {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--brand-red);
  margin-bottom: 12px;
}

/* Lista de verificação */
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: .95rem;
  color: var(--text-mute);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(213, 3, 12, .13);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4.6px; top: .78em;
  width: 6.5px; height: 3.5px;
  border-left: 1.8px solid #fff;
  border-bottom: 1.8px solid #fff;
  transform: rotate(-45deg);
}
.section--red .check-list li { color: var(--text-on-red-mute); }
.section--red .check-list li::before { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.section--red .check-list li::after  { border-color: var(--brand-red); }

/* ==========================================================================
   FAIXA DE ESTATÍSTICAS (vermelha — âncora de marca)
   ========================================================================== */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-red);
}
.stat-band > div {
  background: linear-gradient(140deg, var(--brand-red), var(--brand-red-deep));
  padding: 34px 24px;
  text-align: center;
  color: #fff;
}
.stat-band strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-band span { font-size: .88rem; color: var(--text-on-red-mute); }

/* ==========================================================================
   PORTEFÓLIO / GALERIA
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }

.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.shot:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(213, 3, 12, .42);
}
/* Fundo do marcador de posição (visível enquanto não há foto) */
.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(380px 240px at 72% 22%, rgba(213, 3, 12, .16), transparent 66%),
    radial-gradient(300px 200px at 14% 84%, rgba(213, 3, 12, .07), transparent 62%),
    repeating-linear-gradient(45deg, rgba(28,29,34,.024) 0 12px, transparent 12px 24px);
}
/* Marcador de posição sobre fundo escuro */
.section--dark .shot::before {
  background:
    radial-gradient(380px 240px at 72% 22%, rgba(213, 3, 12, .30), transparent 66%),
    radial-gradient(300px 200px at 14% 84%, rgba(213, 3, 12, .12), transparent 62%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 12px, transparent 12px 24px);
}

.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Véu por baixo da legenda, para o texto ser legível sobre qualquer foto */
.shot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 62%;
  background: linear-gradient(to top, rgba(28, 29, 34, .88) 6%, rgba(28, 29, 34, .18) 60%, transparent);
}
.shot-meta { position: relative; z-index: 2; color: #fff; }
.shot-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.shot-meta span {
  font-size: .85rem;
  color: rgba(255, 255, 255, .84);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

.ph-note {
  position: absolute;
  z-index: 3;
  top: 14px; right: 14px;
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-red);
  background: #fff;
  border: 1px solid rgba(213, 3, 12, .30);
  padding: 5px 10px;
  border-radius: 999px;
}

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filters button {
  padding: 9px 19px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-mute);
  transition: all .22s var(--ease);
}
.filters button:hover { border-color: var(--brand-red); color: var(--brand-red); }
.filters button.is-active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}

/* ==========================================================================
   LINHA TEMPORAL
   ========================================================================== */
.timeline { position: relative; margin: 0; padding: 0 0 0 34px; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-red), rgba(213, 3, 12, .14));
}
.timeline li { position: relative; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -34px; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 5px rgba(213, 3, 12, .15);
}
.timeline b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--brand-red);
  margin-bottom: 5px;
}
.timeline p { margin: 0; font-size: .96rem; color: var(--text-mute); }

/* ==========================================================================
   FORMULÁRIO
   ========================================================================== */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: var(--shadow-md);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #FCFCFD;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(213, 3, 12, .13);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .87rem;
  color: var(--text-mute);
  margin-bottom: 24px;
}
.consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--brand-red); }

.form-note { margin-top: 18px; font-size: .85rem; color: var(--text-mute); }
.form-note a { color: var(--brand-red); font-weight: 500; }

.form-ok {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--brand-red-tint);
  border: 1px solid rgba(213, 3, 12, .32);
  border-left: 4px solid var(--brand-red);
  font-size: .93rem;
  color: var(--text);
}

/* Blocos de contacto */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.contact-ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red);
  color: #fff;
  flex: none;
  box-shadow: var(--shadow-red);
}
.contact-ico svg { width: 20px; height: 20px; }
.contact-list b {
  display: block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 4px;
}
.contact-list a, .contact-list p { color: var(--text); margin: 0; }
.contact-list a { font-weight: 500; }
.contact-list a:hover { color: var(--brand-red); }

.map-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ==========================================================================
   CHAMADA PARA AÇÃO (faixa vermelha)
   ========================================================================== */
.cta-band {
  position: relative;
  background: linear-gradient(140deg, var(--brand-red) 0%, var(--brand-red-deep) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(38px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-red);
  color: var(--text-on-red);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 300px at 50% -8%, rgba(255, 255, 255, .20), transparent 66%),
    radial-gradient(400px 260px at 8% 108%, rgba(0, 0, 0, .16), transparent 62%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: var(--text-on-red-mute); margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }
.cta-band .btn--primary { background: #fff; border-color: #fff; color: var(--brand-red); box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.cta-band .btn--primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark-mute);
  padding: clamp(52px, 7vw, 78px) 0 28px;
  border-top: 5px solid var(--brand-red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border-on-dark);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { font-size: .93rem; transition: color .2s; }
.site-footer a:hover { color: var(--brand-red-mid); }
.site-footer p { font-size: .93rem; }

.footer-brand .logo-mark { height: 54px; width: auto; margin-bottom: 20px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  font-size: .84rem;
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   BARRA DE CONTACTO FIXA (apenas telemóvel)
   ========================================================================== */
.action-bar {
  position: fixed;
  z-index: 90;
  left: 0; right: 0; bottom: 0;
  display: none;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(28, 29, 34, .12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.action-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 10px;
  background: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
}
.action-bar a svg { width: 19px; height: 19px; flex: none; }
.action-bar a.is-primary { background: var(--brand-red); color: #fff; }
.action-bar a.is-wa { background: #25D366; color: #fff; }

@media (max-width: 760px) {
  .action-bar { display: flex; }
  body { padding-bottom: 62px; }
}

/* ==========================================================================
   GRINALDA DE LUZES
   ========================================================================== */
.garland {
  position: absolute;
  z-index: 2;
  top: 0; left: 0; right: 0;
  height: 84px;
  pointer-events: none;
  overflow: hidden;
}
.garland svg { width: 100%; height: 100%; display: block; }
.garland .wire { fill: none; stroke: rgba(28, 29, 34, .17); stroke-width: 1.6; }

.garland .bulb {
  transform-box: fill-box;
  transform-origin: center;
  animation: bulb-on .5s var(--ease) both, bulb-glow 3.4s ease-in-out infinite;
}
@keyframes bulb-on {
  from { opacity: 0; transform: scale(.2); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes bulb-glow {
  0%, 100% { opacity: .78; }
  50%      { opacity: 1; }
}
.garland .halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: halo-on .8s var(--ease) both, halo-pulse 3.4s ease-in-out infinite;
}
@keyframes halo-on   { from { opacity: 0; } to { opacity: .5; } }
@keyframes halo-pulse{ 0%, 100% { opacity: .3; } 50% { opacity: .62; } }

@media (prefers-reduced-motion: reduce) {
  .garland .bulb, .garland .halo { animation: none; opacity: 1; }
}
.hero--page .garland { height: 54px; }
@media (max-width: 620px) { .garland { height: 52px; } }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 19, 23, .93);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }

.lightbox figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  width: auto; height: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.lightbox figcaption { text-align: center; color: #fff; }
.lightbox figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.lightbox figcaption span { font-size: .88rem; color: rgba(255, 255, 255, .7); }

.lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  transition: background .2s, border-color .2s;
}
.lb-btn:hover { background: var(--brand-red); border-color: var(--brand-red); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-btn { width: 42px; height: 42px; }
}

/* O cartão só é clicável quando tem fotografia */
.shot.has-photo { cursor: zoom-in; }

/* ==========================================================================
   FORMULÁRIO — DETALHES OPCIONAIS
   ========================================================================== */
.more-fields { margin-bottom: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.more-fields > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand-red);
  padding: 4px 0;
}
.more-fields > summary::-webkit-details-marker { display: none; }
.more-fields > summary::before {
  content: "";
  width: 18px; height: 18px;
  flex: none;
  border: 2px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center/8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 8px no-repeat;
  transition: transform .25s var(--ease);
}
.more-fields[open] > summary::before {
  transform: rotate(135deg);
  background: linear-gradient(currentColor, currentColor) center/8px 2px no-repeat;
}
.more-fields[open] > summary { margin-bottom: 18px; }

.form-msg {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: .93rem;
  border: 1px solid;
}
.form-msg--ok  { background: #F0F9F1; border-color: #A8D8B0; border-left: 4px solid #2E7D3A; color: #1E5427; }
.form-msg--err { background: var(--brand-red-tint); border-color: rgba(213,3,12,.4); border-left: 4px solid var(--brand-red); color: var(--brand-red-deep); }

.btn[aria-busy="true"] { opacity: .65; pointer-events: none; }

/* ==========================================================================
   PERGUNTAS FREQUENTES
   Acordeão nativo com <details> — funciona sem JavaScript.
   ========================================================================== */
.faq { max-width: 78ch; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq details[open] {
  border-color: rgba(213, 3, 12, .38);
  box-shadow: var(--shadow-md);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-red); }

/* Sinal + / − desenhado em CSS, sem imagens */
.faq summary::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow:
    inset 0 0 0 20px var(--brand-red),
    0 0 0 4px rgba(213, 3, 12, .12);
  position: relative;
}
.faq summary::after {
  content: "";
  position: absolute;
  left: 30px;
  margin-top: 12px;
  width: 10px; height: 10px;
  background:
    linear-gradient(#fff, #fff) center/10px 2px no-repeat,
    linear-gradient(#fff, #fff) center/2px 10px no-repeat;
  transition: transform .25s var(--ease);
  pointer-events: none;
}
.faq details[open] summary::after {
  background: linear-gradient(#fff, #fff) center/10px 2px no-repeat;
  transform: rotate(180deg);
}

.faq .faq-a {
  padding: 0 24px 22px 62px;
  margin: 0;
  font-size: .97rem;
  color: var(--text-mute);
}

@media (max-width: 560px) {
  .faq summary { padding: 17px 18px; font-size: .98rem; }
  .faq summary::after { left: 24px; }
  .faq .faq-a { padding: 0 18px 20px 56px; }
}

/* ==========================================================================
   PÁGINAS LEGAIS
   ========================================================================== */
.legal { max-width: 74ch; }
.legal h2 {
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(28, 29, 34, .12);
}
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p { color: var(--text-mute); }
.legal a { color: var(--brand-red-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--brand-red); }
.legal strong { color: var(--text); }
.legal .check-list { margin-top: 14px; }
.legal-note {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--brand-red);
  background: rgba(255, 255, 255, .6);
  border-radius: 0 10px 10px 0;
  font-size: .93rem;
}

/* ==========================================================================
   ALVOS DE TOQUE
   --------------------------------------------------------------------------
   Num ecrã tátil, tudo o que se clica tem de ter pelo menos 44x44 px — é a
   medida a partir da qual um dedo acerta de forma fiável. Vários elementos
   ficavam abaixo disso quando dimensionados só para rato:
     seletor PT/EN ≈32px · filtros ≈38px · ligações do rodapé ≈26px
   A consulta `pointer: coarse` apanha telemóveis e tablets independentemente
   da largura, o que é mais fiável do que assumir pelo tamanho do ecrã.
   ========================================================================== */
@media (pointer: coarse), (max-width: 980px) {

  .lang-switch button {
    min-height: 44px;
    padding-inline: 17px;
  }

  .filters button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 46px;
  }

  .nav-cta { padding: 14px 22px; }

  /* Ligações do rodapé: espaçadas o suficiente para não se tocar na errada.
     9px de padding + a altura de linha do texto dá 45px. */
  .site-footer ul a {
    display: inline-block;
    padding: 9px 0;
  }
  .site-footer ul { gap: 2px; }

  .footer-bottom a { display: inline-block; padding: 9px 0; }
}

/* ==========================================================================
   UTILITÁRIOS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand-red);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Armadilha anti-robô: fora do ecrã, sem ocupar espaço.
   Não se usa display:none nem visibility:hidden porque muitos robôs
   ignoram campos escondidos dessa forma — e o objetivo é que a preencham. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[hidden] { display: none !important; }
