/* Ibersuisse, direção "O Armazém".
   Tema claro fixo. Títulos em letra condensada (como nas capas dos catálogos),
   a ilustração do armazém como imagem de marca, e as três cores dos catálogos
   (dourado, azul, verde) ao lado do vermelho Ibersuisse.
   Cantos: painéis 36px, cartões 24px, campos 12px, botões e etiquetas em pílula. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/bigshoulders.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fdfdfc;
  --white: #ffffff;
  --tint: #f3f4f6;
  --ink: #14161b;
  --ink-soft: #454a53;
  --muted: #6b717c;
  --line: #e4e6eb;
  --field: #8b919b;
  --red: #d02127;
  --red-deep: #a8181d;
  --gold: #ac843e;
  --blue: #65bdcf;
  --green: #73a449;
  --display: "Big Shoulders", "Geist", system-ui, sans-serif;
  --r-panel: 36px;
  --r-card: 24px;
  --r-field: 12px;
  --r-pill: 999px;
  --max: 1320px;
  --gutter: clamp(18px, 3.4vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-pack: drop-shadow(0 18px 16px rgba(20, 22, 27, 0.3));
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-bottom: o elemento focado com Tab nunca fica por baixo dos botões flutuantes (lista, idioma) */
a, button, summary, label, select, input[type="checkbox"] { touch-action: manipulation; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, dt, figure, blockquote, address { margin: 0; padding: 0; }
/* Uma palavra que sozinha não cabe (palavras compostas alemãs, letra aumentada no browser) parte-se em vez de
   empurrar a página para o lado; só atua nesse caso. Nos títulos é "anywhere" porque muitos estão dentro de
   flex/grid, onde "break-word" não reduz a largura mínima do contentor. */
body { overflow-wrap: break-word; }
h1, h2, h3, h4, .footer-claim, .cxh-kicker { overflow-wrap: anywhere; }
ul { list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* Ecrã de entrada, só na primeira página da visita. O logótipo monta-se por partes: o marcador da esquerda cai,
   o arco desenha-se até à direita, o segundo marcador cai, a palavra sobe e aparece a frase. Depois uma cortina
   sobe, com uma faixa vermelha atrás (ver js/site.js). Se o JavaScript falhar, desaparece sozinho aos 3,2 s. */
:root { --intro: 0s; }
.js:not(.no-intro) { --intro: 1.5s; }
.loader { display: none; }
.js:not(.no-intro) .loader { position: fixed; inset: 0; z-index: 200; display: block; animation: loader-gone 0s linear 3.2s forwards; }
.loader-red, .loader-sheet { position: absolute; inset: 0; }
.loader-red { background: var(--red); }
.loader-sheet { background: var(--bg); display: grid; place-items: center; align-content: center; gap: 22px; padding: 24px; }
.loader-mark { width: clamp(230px, 24vw, 330px); color: var(--ink); }
.loader-mark .logo-svg { width: 100%; height: auto; display: block; overflow: visible; }
.loader .logo-pin { transform-box: fill-box; transform-origin: 50% 100%; animation: pin-drop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.loader .logo-pin-l { animation-delay: 0.05s; }
.loader .logo-pin-r { animation-delay: 0.7s; }
.loader .logo-arc { animation: arc-draw 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.22s both; }
.loader .logo-word { transform-box: fill-box; animation: word-up 0.8s var(--ease) 0.4s both; }
.loader-tag { font-size: 0.98rem; font-weight: 500; color: var(--ink-soft); text-align: center; animation: tag-in 0.6s var(--ease) 0.8s both; }
.loader.is-done .loader-sheet { animation: curtain 0.85s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
.loader.is-done .loader-red { animation: curtain 0.85s cubic-bezier(0.76, 0, 0.24, 1) 0.13s forwards; }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-70%) scale(0.5); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes arc-draw { from { clip-path: inset(-40% 100% -40% 0); } to { clip-path: inset(-40% 0 -40% 0); } }
@keyframes word-up { from { clip-path: inset(100% 0 0 0); transform: translateY(35%); } to { clip-path: inset(0); transform: none; } }
@keyframes tag-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes curtain { to { transform: translateY(-100%); } }
@keyframes loader-gone { to { visibility: hidden; opacity: 0; } }

/* Passagem entre páginas. Browsers com transições entre documentos (Chrome, Edge, Safari recente): o menu fica
   parado e o conteúdo sai a subir enquanto o novo entra. Nos restantes, js/site.js faz o mesmo efeito à mão. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out 0.32s cubic-bezier(0.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in 0.6s var(--ease) 0.08s both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-18px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(28px); } }
  .no-vt main, .no-vt .site-footer { transition: opacity 0.3s ease, transform 0.3s ease; }
  .no-vt.no-intro main { animation: vt-in 0.6s var(--ease) both; }
  .no-vt.is-leaving main, .no-vt.is-leaving .site-footer { opacity: 0; transform: translateY(-18px); }
}

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
/* Painel arredondado dentro da página. A borda fica um pouco para fora da coluna de texto,
   para que o conteúdo do painel alinhe pela mesma margem esquerda dos títulos das outras secções. */
.shell { --pad: max(var(--gutter) - 12px, 14px); width: min(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px), var(--max)); margin-inline: auto; padding-inline: var(--pad); border-radius: var(--r-panel); }
@media (min-width: 84.0625em) { .shell { --pad: var(--gutter); } }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: var(--r-pill); z-index: 100; }
.skip-link:focus { left: 8px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 8px 30px; max-width: 100%;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  /* Rótulos curtos ficam numa linha; um rótulo longo (traduzido ou com o nome de uma família) parte em
     duas linhas equilibradas em vez de empurrar a página para fora do ecrã. */
  text-align: center; text-wrap: balance; overflow-wrap: break-word;
  text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); border-radius: var(--r-pill); background: transparent; color: var(--ink);
  transition: transform 0.4s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-ghost { background: var(--bg); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253, 253, 252, 0.93); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); transition: box-shadow 0.3s; }
.site-header.is-stuck { box-shadow: 0 14px 30px -22px rgba(20, 22, 27, 0.3); }
.site-header .container { max-width: none; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: block; width: 170px; color: var(--ink); flex: none; }
.logo-svg { display: block; width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav-list { display: flex; gap: clamp(4px, 0.8vw, 10px); }
.nav-list a { display: block; text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 8px 14px; border-radius: var(--r-pill); transition: background-color 0.25s; }
.nav-list a:hover, .nav-list a[aria-current] { background: var(--tint); }
.nav-list a[aria-current] { font-weight: 600; }
.lang-list { display: flex; gap: 10px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.lang-list a { text-decoration: none; color: var(--muted); }
.lang-list a:hover { color: var(--ink); }
.lang-current { color: var(--red); }
.lang-soon { color: var(--muted); opacity: 0.5; cursor: default; }
.btn-nav { min-height: 46px; padding: 0 24px; }
.nav-toggle { display: none; }
.nav-langs { display: none; }

/* Hero: título a toda a largura, armazém à direita, painel de texto à esquerda */
.hero { position: relative; overflow: clip; min-height: calc(100dvh - var(--header-h)); display: grid; grid-template-rows: auto 1fr;
  --hue: -47deg; --sat: 2.1; --accent: var(--red); }
.hero[data-tone="gold"] { --hue: 0deg; --sat: 1; --accent: #a67c2e; }
.hero[data-tone="blue"] { --hue: 150deg; --sat: 1.05; --accent: #2f9ab3; }
.hero[data-tone="green"] { --hue: 55deg; --sat: 1; --accent: #5c8d33; }
.hero-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 8.8vw; line-height: 0.86; letter-spacing: -0.008em; padding: clamp(28px, 5.5vh, 60px) var(--gutter) 0; position: relative; z-index: 5; }
.hero-title span { display: block; white-space: nowrap; }
.hero-title b { font-weight: inherit; }
.hero-title em { font-style: normal; color: var(--accent); transition: color 0.8s var(--ease); }
.hero-stage { position: relative; min-height: clamp(410px, 50vh, 620px); }
.hero-building {
  position: absolute; right: -5vw; top: -3vh; width: 66vw; height: auto; max-width: none; mix-blend-mode: multiply;
  filter: hue-rotate(var(--hue)) saturate(var(--sat)); transition: filter 0.9s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%);
}
.hero-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 11%; background: linear-gradient(to bottom, rgba(253, 253, 252, 0), var(--bg)); pointer-events: none; z-index: 4; }
.hero-panel { position: absolute; left: var(--gutter); bottom: clamp(24px, 6vh, 64px); width: min(440px, 86vw); z-index: 6; }
.hero-sub { font-size: clamp(1.04rem, 1.3vw, 1.22rem); line-height: 1.55; color: var(--ink-soft); }
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.tone-picker { margin-top: 34px; }
.tone-picker-label { display: block; font-size: 0.8rem; font-weight: 600;  color: var(--ink-soft); margin-bottom: 10px; }
.tone-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tone-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 14px; border-radius: var(--r-pill); background: var(--white); border: 1.5px solid var(--line); font-weight: 600; text-decoration: none; transition: border-color 0.25s, transform 0.4s var(--ease); }
.tone-chip:hover, .tone-chip:focus-visible { border-color: var(--ink); transform: translateY(-2px); }
.tone-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); }

/* Secções */
.section { padding-block: clamp(64px, 7.5vw, 112px); position: relative; background: var(--bg); }
.section-panel { padding-block: clamp(14px, 2vw, 28px); background: var(--bg); position: relative; }
.soft-panel { background: var(--tint); padding-block: clamp(48px, 6vw, 88px); }
.section-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 1.04; letter-spacing: -0.006em; text-wrap: balance; }
.section-title em { font-style: normal; color: var(--red); }
.section-lede { margin-top: 18px; max-width: 52ch; color: var(--ink-soft); font-size: 1.14rem; }
.section-head { margin-bottom: clamp(28px, 4vw, 52px); }

/* Catálogos: um catálogo por ecrã, em painéis que deslizam uns sobre os outros.
   Fundo quase branco com um tom muito leve do catálogo; a cor forte só aparece na barra do título.
   Texto à esquerda, capa e dois produtos à direita, sem sobreposições com o texto. */
.cats-head { padding-block: clamp(64px, 7.5vw, 112px) clamp(22px, 2.6vw, 36px); background: var(--bg); position: relative; }
.cat-stack { padding-bottom: clamp(8px, 1.4vw, 20px); }
.tone-gold { --tone: var(--gold); --soft: #f8f3e8; }
.tone-blue { --tone: var(--blue); --soft: #ecf6f9; }
.tone-green { --tone: var(--green); --soft: #f0f6ea; }
/* Vinhos e Congelados: grupos só da vista (tools/exportar-produtos.py), com cor própria para se distinguirem de Bebidas e Frescos */
.tone-wine { --tone: #8c2f45; --soft: #f7edf0; }
.tone-ice { --tone: #4f86c6; --soft: #ebf1f9; }
/* Painéis empilhados: o que tem o foco do teclado passa à frente, para os botões não ficarem tapados pelo painel
   seguinte (WCAG 2.4.11, foco não ocultado) */
/* Só com foco de teclado (:focus-visible): com :focus-within, ao fechar a janela do catálogo o foco volta à ligação do
   painel (sem ser por teclado) e esse painel ficava para sempre por cima dos seguintes. Ordem base: cada painel
   por cima do anterior. */
.cat-panel:has(:focus-visible) { z-index: 20; }
.cat-panel {
  z-index: calc(var(--n, 0) + 1);
  position: sticky; top: calc(var(--header-h) + 14px + var(--n, 0) * 16px);
  min-height: min(620px, calc(100dvh - var(--header-h) - 96px));
  display: grid; align-items: center; margin-bottom: 20px;
  background: var(--soft); color: var(--ink); overflow: hidden;
  
  scroll-margin-top: calc(var(--header-h) + 14px);
}
.cat-panel-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 88px); align-items: center; padding-block: clamp(32px, 5vh, 56px); }
.cat-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 3.9vw, 4rem); line-height: 1.04; letter-spacing: -0.008em; text-wrap: balance; padding-top: 22px; border-top: 8px solid var(--tone); }
.cat-text { margin-top: 22px; max-width: 44ch; font-size: 1.16rem; color: var(--ink-soft); }
.cat-note { margin-top: 8px; max-width: 44ch; font-weight: 600; }
.cat-files-label { margin-top: 28px; font-size: 0.8rem; font-weight: 700;  color: var(--ink-soft); }
.cat-files { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 26px; max-width: 100%;
  background: var(--ink); color: var(--white); border: 2px solid var(--ink); border-radius: var(--r-pill);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-wrap: balance;
  transition: background-color 0.25s, color 0.25s, transform 0.4s var(--ease);
}
.pill::after { content: "\2192"; transition: transform 0.35s var(--ease); }
.pill:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.pill:hover::after { transform: translateX(4px); }
.pill.is-ext::after { content: "\2197"; } /* abre noutro separador */
.pill.is-ext:hover::after { transform: translate(3px, -3px); }

/* Capa e produtos em trio: círculo suave no tom do catálogo, capa ao centro, um produto em cada
   canto inferior. As medidas usam cqw (percentagem da largura da composição), por isso a proporção
   entre capa e produtos é a mesma em qualquer ecrã. */
.cat-art { position: relative; container-type: inline-size; aspect-ratio: 1 / 0.86; width: 100%; max-width: 600px; margin-inline: auto; }
.cat-art::before { content: ""; position: absolute; left: 50%; top: 50%; width: 88cqw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: color-mix(in srgb, var(--tone) 17%, var(--soft)); }
.cat-cover { position: absolute; left: 50%; top: 1.5cqw; height: 76cqw; width: auto; max-width: none; border-radius: 1.2cqw; translate: -50% 0; rotate: -4deg; transform-origin: 50% 80%;
  box-shadow: 0 5cqw 8cqw -4cqw rgba(20, 22, 27, 0.5), 0 0 0 1px rgba(20, 22, 27, 0.08); transition: rotate 0.9s var(--ease), translate 0.9s var(--ease); }
.cat-prod { position: absolute; bottom: 0; width: calc(var(--w) * 1cqw); height: auto; max-width: none; filter: var(--shadow-pack); transition: rotate 0.9s var(--ease), translate 0.9s var(--ease); }
.cat-prod-1 { left: max(0cqw, calc(19cqw - var(--w) * 0.5cqw)); rotate: -5deg; transform-origin: 50% 100%; }
.cat-prod-2 { right: max(0cqw, calc(19cqw - var(--w) * 0.5cqw)); rotate: 5deg; transform-origin: 50% 100%; }
.cat-panel:hover .cat-cover { rotate: -1.5deg; translate: -50% -1.5%; }
.cat-panel:hover .cat-prod-1 { rotate: -8deg; translate: 2% -5%; }
.cat-panel:hover .cat-prod-2 { rotate: 8deg; translate: -2% -5%; }

/* Perfis: três colunas simples, com ícone, nome e descrição */
.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.audience-item { padding-top: clamp(20px, 2.2vw, 30px); border-top: 2px solid var(--ink); transition: border-color 0.3s; }
.audience-icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: var(--tint); color: var(--ink); transition: background-color 0.3s, color 0.3s, transform 0.6s var(--ease); }
.icon { width: 32px; height: 32px; display: block; }
.audience-title { margin-top: clamp(18px, 2vw, 28px); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.04; }
.audience-text { margin-top: 12px; color: var(--ink-soft); font-size: 1.08rem; max-width: 34ch; }
.audience-item:hover { border-color: var(--red); }
.audience-item:hover .audience-icon { background: var(--red); color: var(--white); transform: translateY(-4px); }
.profiles-cta { margin-top: clamp(32px, 4vw, 56px); }

/* Marcas: duas filas de cartões brancos a deslizar em sentidos opostos, dentro de um painel suave */
.brands-panel { overflow: hidden; }
.brand-rows { margin-bottom: -26px; margin-inline: calc(var(--pad) * -1); display: grid; gap: clamp(10px, 1.2vw, 16px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
/* Botão pausar/retomar do carrossel (criado em js/site.js) */
.brand-pause-wrap { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.brand-pause { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.brand-pause:hover { border-color: var(--ink); }
.brand-pause svg { fill: currentColor; }
.brand-pause .bp-play, .brand-pause[aria-pressed="true"] .bp-pause { display: none; }
.brand-pause[aria-pressed="true"] .bp-play { display: inline; }
.brand-row { overflow: hidden; padding: 16px 0 40px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
/* Só a linha de baixo sobe, para aproximar as duas; a caixa da faixa mantém a altura toda, senão a máscara corta a sombra */
.brand-row + .brand-row { margin-top: -28px; }
.brand-row.is-dragging { cursor: grabbing; }
.brand-row.is-dragging .brand-tile { pointer-events: none; }
.brand-track { will-change: transform; }
.brand-tile img { -webkit-user-drag: none; user-select: none; }
.brand-track { display: flex; width: max-content; }
.brand-group { display: flex; gap: clamp(10px, 1.2vw, 16px); padding-right: clamp(10px, 1.2vw, 16px); }
.brand-tile { flex: none; width: clamp(132px, 12.5vw, 184px); aspect-ratio: 1.56 / 1; display: grid; place-items: center; background: var(--white); border-radius: var(--r-card);  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), opacity 0.5s var(--ease); }
.brand-tile img { width: var(--w); max-height: 72%; object-fit: contain; transition: transform 0.7s var(--ease); }
.brand-tile:hover { transform: translateY(-9px) scale(1.06); box-shadow: 0 26px 30px -20px rgba(20, 22, 27, 0.5); }
.brand-tile:hover img { transform: scale(1.1) rotate(-2deg); }
/* O cartão apontado destaca-se; os restantes recuam */
.brand-rows:has(.brand-tile:hover) .brand-tile:not(:hover) { opacity: 0.45; }

/* Prova: números (2 x 2) à esquerda e cartão de testemunhos à direita, no mesmo painel */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
.figure-grid { margin-top: clamp(28px, 3.4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(16px, 2vw, 32px); }
@media (min-width: 64em) {
  .figure-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.figure { padding: 4px 0 0 clamp(14px, 1.8vw, 26px); border-left: 2px solid var(--ink); }
.figure-value { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 6.6vw, 6.2rem); line-height: 0.82; font-variant-numeric: tabular-nums; }
@media (min-width: 64em) { .figure-value { font-size: clamp(3rem, 4.4vw, 4.6rem); } }
.figure-value .plus { color: var(--red); }
.figure-label { margin-top: 14px; color: var(--ink-soft); font-size: 1.02rem; max-width: 20ch; }

/* ---------- Números com ilustração (partials/stat-visual.html.twig) ----------
   No HTML a legenda (dt) vem antes do valor (dd); aqui a ordem visual é: ilustração, número, legenda.
   Sem JavaScript ou com "reduzir movimento", vê-se o estado final; a animação corre uma vez quando o número entra no
   ecrã (.is-in, de data-reveal) e para (WCAG 2.2.2). */
.figure { display: flex; flex-direction: column; }
.figure .figure-value { order: 1; }
.figure .figure-label { order: 2; }
.sv { display: block; height: clamp(78px, 7.4vw, 104px); margin-bottom: clamp(14px, 1.6vw, 22px); }
svg.sv { width: auto; max-width: 100%; overflow: visible; }
/* só o mapa usa 100%: o contentor (span.sv-mapa) tem altura definida; num svg dentro do dd, 100% criava um ciclo de layout */
.sv-mapa svg { display: block; height: 100%; width: auto; max-width: 100%; overflow: visible; }
.figure-value { white-space: nowrap; }
/* um intervalo ("24 a 48h") é mais largo do que os outros números: em colunas estreitas encolhe para caber numa linha */
@media (max-width: 40em) { .figure.is-range .figure-value { font-size: clamp(2.3rem, 10.5vw, 3.4rem); } }
.range-sep { font-size: 0.42em; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-soft); vertical-align: 0.62em; margin: 0 0.14em; }
/* fornecedores */
.sv-link { stroke: var(--ink); stroke-width: 1.4; stroke-opacity: 0.26; stroke-linecap: round; }
.sv-node { fill: var(--ink); }
.sv-packet { fill: var(--red); opacity: 0; }
.sv-hub-bg { fill: var(--red); }
.sv-hub-house { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sv-hub-ring { fill: none; stroke: var(--red); stroke-width: 2; opacity: 0; }
/* referências */
.sv-cell.t-gold { fill: var(--gold); }
.sv-cell.t-blue { fill: var(--blue); }
.sv-cell.t-green { fill: var(--green); }
.sv-shelf { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
/* entrega */
.sv-arc { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 9; }
.sv-arc-draw { fill: none; stroke: #fff; stroke-width: 12; }
.sv-pin { fill: var(--red); }
.sv-ground { fill: var(--ink); opacity: 0.12; }
.sv-clock-face { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.sv-clock-tick { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.sv-clock-hand { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.sv-clock-pivot { fill: var(--red); }
/* cobertura */
.mm-canton { fill: var(--red); stroke: var(--white); stroke-width: 5; stroke-linejoin: round; }
.mm-dot { fill: var(--ink); stroke: var(--white); stroke-width: 6; }
.mm-pulse { fill: none; stroke: var(--ink); stroke-width: 5; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .js .figure .sv-node, .js .figure .sv-hub, .js .figure .sv-hub-ring, .js .figure .sv-cell,
  .js .figure .mm-pulse { transform-box: fill-box; transform-origin: center; }
  /* Depois da entrada, cada ilustração mantém um movimento ambiente contínuo e sem emendas (ciclos que acabam
     como começam, sem recomeçar nem desvanecer). O botão de pausa (js/site.js) põe --amb: paused no .figure-grid;
     só as animações ambiente o usam (a entrada, a 1.ª de cada lista, corre sempre). */

  /* fornecedores: os pontos aparecem, as ligações desenham-se até ao armazém, cada fornecedor envia uma
     encomenda (ponto vermelho) e o armazém "recebe" (pulso). ~2,3 s */
  .js .figure .sv-node { transform: scale(0); }
  .js .figure.is-in .sv-node { animation: sv-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(var(--i) * 40ms); }
  .js .figure .sv-link { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
  .js .figure.is-in .sv-link { animation: sv-draw 0.7s var(--ease) both; animation-delay: calc(250ms + var(--i) * 40ms); }
  .js .figure.is-in .sv-packet { animation: sv-send 3.4s cubic-bezier(0.55, 0, 0.45, 1) infinite; animation-delay: calc(950ms + var(--i) * 240ms); animation-play-state: var(--amb, running); }
  .js .figure .sv-hub { transform: scale(0.4); opacity: 0; }
  .js .figure.is-in .sv-hub { animation: sv-hub 2.4s var(--ease) both, sv-breathe 4.2s ease-in-out 2.4s infinite; animation-play-state: running, var(--amb, running); }
  .js .figure.is-in .sv-hub-ring { animation: sv-ring 3.4s ease-out 1.85s infinite; animation-play-state: var(--amb, running); }

  /* referências: as prateleiras desenham-se e os produtos arrumam-se, de baixo para cima e da esquerda para a direita */
  .js .figure .sv-shelf { stroke-dasharray: 100; stroke-dashoffset: 100; }
  .js .figure.is-in .sv-shelf { animation: sv-draw 0.6s var(--ease) both; animation-delay: calc(var(--k) * 150ms); }
  .js .figure .sv-cell { opacity: 0; }
  .js .figure.is-in .sv-cell { animation: sv-stock 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) calc(200ms + var(--d) * 1ms) both, sv-wave 4.2s ease-in-out calc(1.8s + var(--d) * 3ms) infinite; animation-play-state: running, var(--amb, running); }

  /* entrega: o pino de origem aparece, o arco desenha-se (1,5 s) enquanto o relógio dá duas voltas, e o pino
     de destino cai no sítio */
  .js .figure .sv-arc-draw { stroke-dasharray: 100; stroke-dashoffset: 100; }
  .js .figure.is-in .sv-arc-draw { animation: sv-draw 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.35s both; }
  .js .figure .sv-clock-m, .js .figure .sv-clock-h { transform-origin: 120px 72px; }
  .js .figure.is-in .sv-clock-m { animation: sv-spin 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.35s both, sv-tick 6s linear 1.85s infinite; animation-play-state: running, var(--amb, running); --voltas: 720deg; }
  .js .figure.is-in .sv-clock-h { animation: sv-spin 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.35s both, sv-tick-h 36s linear 1.85s infinite; animation-play-state: running, var(--amb, running); --voltas: 60deg; }
  /* encomenda que viaja pelo arco, do armazém ao cliente, sem parar */
  .js .figure .sv-parcel { offset-path: path('M34,50 Q120,-22 206,50'); offset-rotate: 0deg; }
  .js .figure.is-in .sv-parcel { animation: sv-travel 4.5s ease-in-out 2.4s infinite; animation-play-state: var(--amb, running); }
  /* = transform="translate(34,52) scale(0.8)" do SVG, escrito para crescer a partir da ponta do pino (34,88) */
  .js .figure .sv-pin-a { transform: translate(34px, 88px) scale(0) translate(0, -45px); }
  .js .figure.is-in .sv-pin-a { animation: sv-pin-a 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  .js .figure .sv-pin-drop { opacity: 0; }
  .js .figure.is-in .sv-pin-drop { animation: sv-drop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.75s both; }
  .js .figure .sv-ground-b { transform-box: fill-box; transform-origin: center; opacity: 0; }
  .js .figure.is-in .sv-ground-b { animation: sv-shadow 0.6s ease-out 1.75s both; }

  /* cobertura: os cantões acendem-se da sede (Vernier) para fora; no fim, um pulso na sede */
  .js .figure .mm-canton { fill: var(--line); }
  .js .figure.is-in .mm-canton { animation: sv-canton 0.5s ease calc(250ms + var(--o) * 55ms) both, sv-spread 4.8s ease-in-out calc(2.6s + var(--o) * 130ms) infinite; animation-play-state: running, var(--amb, running); }
  .js .figure.is-in .mm-pulse { animation: sv-pulse-big 2.4s ease-out 1.8s infinite; animation-play-state: var(--amb, running); }
}
@keyframes sv-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes sv-draw { to { stroke-dashoffset: 0; } }
@keyframes sv-send {
  0% { opacity: 0; transform: translate(0, 0); }
  15%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)); }
}
@keyframes sv-hub {
  0% { opacity: 0; transform: scale(0.4); }
  14% { opacity: 1; transform: scale(1); }
  78% { transform: scale(1); }
  86% { transform: scale(1.14); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes sv-ring { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes sv-stock { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: none; } }
@keyframes sv-spin { from { transform: rotate(0deg); } to { transform: rotate(var(--voltas)); } }
@keyframes sv-pin-a { from { transform: translate(34px, 88px) scale(0) translate(0, -45px); } to { transform: translate(34px, 88px) scale(0.8) translate(0, -45px); } }
@keyframes sv-drop {
  0% { opacity: 0; transform: translateY(-26px); }
  40% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes sv-shadow { 0% { opacity: 0; transform: scale(0.3); } 100% { opacity: 0.12; transform: scale(1); } }
@keyframes sv-canton { from { fill: var(--line); } to { fill: var(--red); } }
/* ambiente (sem emendas: o fim de cada ciclo é igual ao início) */
@keyframes sv-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes sv-wave { 0%, 34%, 100% { opacity: 0.78; transform: none; } 14% { opacity: 1; transform: translateY(-4.5px) scale(1.12); } }
@keyframes sv-tick { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sv-tick-h { from { transform: rotate(60deg); } to { transform: rotate(420deg); } }
@keyframes sv-spread { 0%, 40%, 100% { fill: var(--red); } 12% { fill: #f19a9e; } }
@keyframes sv-pulse-big { 0% { opacity: 0.65; transform: scale(1); } 100% { opacity: 0; transform: scale(6); } }
@keyframes sv-travel { 0% { offset-distance: 0%; opacity: 0; } 12%, 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.figure-grid.is-paused { --amb: paused; }
.sv-parcel { fill: var(--red); opacity: 0; }

.quote-card { align-self: center; background: var(--white); border-radius: var(--r-card); padding: clamp(24px, 2.8vw, 40px); display: grid; grid-template-rows: auto auto; gap: clamp(14px, 1.6vw, 22px);  }
.quote-card-label { font-size: 0.9rem; font-weight: 600;  color: var(--ink-soft); }
.quote-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.quote-rail::-webkit-scrollbar { display: none; }
.quote { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr auto; }
.quote::before { content: "\201C"; display: block; height: 0.5em; font-family: var(--display); font-size: clamp(5rem, 7vw, 7rem); line-height: 0.9; font-weight: 800; color: var(--red); }
.quote-text { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; padding-top: 0.5em; }
.quote-by { margin-top: clamp(22px, 2.6vw, 36px); display: flex; align-items: center; gap: 14px; color: var(--ink-soft); line-height: 1.35; align-self: end; }
.quote-by strong { color: var(--ink); }
/* faixa horizontal: aspas | texto | autor (em ecrãs largos) */
@media (min-width: 64em) {
  .quote-card { grid-template-rows: auto; padding: 28px clamp(32px, 3.4vw, 56px); gap: 16px; }
  .quote { grid-template-rows: auto; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: clamp(20px, 2.6vw, 40px); }
  .quote::before { height: auto; font-size: 5rem; line-height: 0.7; padding-top: 0.28em; }
  .quote-text { padding-top: 0; font-size: clamp(1.3rem, 1.8vw, 1.65rem); }
  .quote-by { margin-top: 0; }
}
.quote-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-weight: 700; letter-spacing: 0.02em; }

/* Cobertura: mapa da Suíça */
.map-wrap { max-width: min(760px, 100%); margin-inline: auto; }
.swiss-map { display: block; width: 100%; height: auto; overflow: visible; }
.swiss-map .canton { fill: #f6cdcf; stroke: var(--bg); stroke-width: 1.6; stroke-linejoin: round; transition: fill 0.25s; }
.swiss-map .canton:hover { fill: #eb9da1; }
.swiss-map .canton.is-base, .swiss-map .canton.is-base:hover { fill: var(--red); }
.swiss-map .lake { fill: var(--bg); pointer-events: none; }
.pin-dot { fill: var(--ink); stroke: var(--white); stroke-width: 2; }
.pin-pulse { fill: none; stroke: var(--red); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; align-items: center; color: var(--ink-soft); font-size: 0.98rem; }
.map-legend { display: inline-flex; align-items: center; gap: 10px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--red); }
.swatch-soft { background: #f6cdcf; }
.map-caption { min-width: 14ch; font-weight: 700; color: var(--ink); }

/* Contacto: painel vermelho com a ilustração do armazém em fundo */
.contact-panel { position: relative; overflow: hidden; background: var(--red); color: var(--white); padding-block: clamp(40px, 5.5vw, 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.contact-panel::before { content: ""; position: absolute; left: -8%; bottom: -30%; width: 58%; aspect-ratio: 1245 / 1075; background: url("../images/armazem-mono.webp") center / contain no-repeat; mix-blend-mode: multiply; opacity: 0.34; pointer-events: none; }
.contact-copy, .form-card { position: relative; }
.contact { padding-bottom: clamp(48px, 6vw, 88px); }
.contact-panel .section-title { color: var(--white); }
.contact-panel .section-lede { color: rgba(255, 255, 255, 0.94); }
.contact-card { margin-top: 30px; display: grid; gap: 4px; font-weight: 600; }
.contact-card a { color: var(--white); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; width: fit-content; }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--r-card); padding: clamp(20px, 3vw, 38px); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 8px; }
.field-wide, .form .btn { grid-column: 1 / -1; }
.form .btn { justify-self: start; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field-opt { font-weight: 400; color: var(--ink-soft); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-foot .btn { grid-column: auto; }
.form-privacy { flex: 1 1 260px; max-width: 52ch; font-size: 0.86rem; color: var(--ink-soft); }
.form-privacy a { color: inherit; text-underline-offset: 3px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--field); border-radius: var(--r-field); padding: 12px 14px; min-height: 50px; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 22, 27, 0.14); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notices { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-field); background: #eaf5e4; color: #24521a; font-weight: 600; }
.notices.is-error { background: #fdeceb; color: var(--red-deep); }
.notices p { margin: 0; }

/* Páginas de texto: painel de abertura, índice lateral fixo e texto */
.page-hero-wrap { padding-top: clamp(14px, 2vw, 28px); }
.page-hero { position: relative; overflow: hidden; min-height: clamp(300px, 34vw, 430px); display: grid; align-items: end; padding-block: clamp(36px, 5vw, 72px); }
.page-hero-copy { position: relative; z-index: 2; max-width: min(100%, 720px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: clamp(18px, 2.4vw, 32px); }
/* Alvo de toque com pelo menos 24px (WCAG 2.5.8) sem mudar o espaçamento visual: padding compensado por margem negativa */
.crumbs a { display: inline-block; padding-block: 8px; margin-block: -8px; color: var(--ink); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.page-title em { font-style: normal; color: var(--red); }
.catalogs.is-headless { padding-top: clamp(28px, 3.6vw, 48px); }
.page-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.8rem, 6.4vw, 5.8rem); line-height: 1.04; letter-spacing: -0.006em; max-width: 13ch; text-wrap: balance; }
.page-updated { display: inline-flex; margin-top: 22px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--white); font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.page-hero-actions { margin-top: 26px; }
.page-hero-art { position: absolute; right: -4%; top: -6%; height: 132%; width: auto; max-width: none; mix-blend-mode: multiply; filter: hue-rotate(-47deg) saturate(2.1); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 46%); mask-image: linear-gradient(90deg, transparent 4%, #000 46%); }
/* ---------- Página de marca ----------
   --bt é a cor da marca (extraída do logótipo pelo gerador). Usa-se em tons suaves (fundo, brilho) e em
   pequenos acentos (ponto, linhas, contagens); o texto fica sempre na tinta do site, para manter o contraste. */
.bh-wrap { padding-top: clamp(14px, 2vw, 28px); }
.bh { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: clamp(380px, 34vw, 480px); padding-block: clamp(36px, 4.6vw, 64px); border-radius: var(--r-panel);
  background: radial-gradient(120% 90% at 85% 40%, color-mix(in srgb, var(--bt) 16%, var(--white)) 0%, color-mix(in srgb, var(--bt) 6%, var(--tint)) 55%, var(--tint) 100%); }
.bh-copy { position: relative; z-index: 2; }
.bh-kicker { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(20px, 2.6vw, 32px); padding: 7px 14px 7px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.8); font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.bh-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--bt); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bt) 22%, transparent); }
.bh-title { margin-top: clamp(18px, 2vw, 26px); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(3.2rem, 7.4vw, 6.8rem); line-height: 1.04; letter-spacing: -0.006em; text-wrap: balance; }
.bh-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(18px, 2.2vw, 26px); }
.bh-facts li { padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.75);  font-size: 0.92rem; color: var(--ink-soft); }
.bh-facts strong { color: var(--ink); font-weight: 700; }
.bh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 2.6vw, 32px); }
.bh-actions .btn, .bp-cta-actions .btn { gap: 10px; }
.bh-add-all.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Logótipo no fundo: grande, do lado direito, transparente e a desvanecer-se para a esquerda.
   O próprio cartão já tem o tom da marca, por isso basta uma opacidade baixa para se ler como marca d'água. */
.bh-mark { position: absolute; z-index: 1; right: clamp(-2%, 2vw, 4%); top: 50%; translate: 0 -50%; width: min(50%, 620px); height: 78%; pointer-events: none; user-select: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bt) 70%, var(--white)), var(--bt) 70%);
  /* Duas máscaras cruzadas: a silhueta do logótipo e um gradiente que a desvanece para o lado do texto */
  -webkit-mask: var(--mark) right center / contain no-repeat, linear-gradient(90deg, rgba(0, 0, 0, 0.3), #000 45%); -webkit-mask-composite: source-in;
  mask: var(--mark) right center / contain no-repeat, linear-gradient(90deg, rgba(0, 0, 0, 0.3), #000 45%); mask-composite: intersect;
  opacity: 0.16; transition: opacity 0.9s var(--ease), translate 1.2s var(--ease); }
.bh:hover .bh-mark { opacity: 0.22; translate: -1.5% -50%; }

/* Opção "cartão" (?logo=cartao): o logótipo original, a cores, num cartão branco ligeiramente inclinado,
   com um segundo cartão na cor da marca por trás. Não repete o nome em grande (o título já o diz) e
   mostra o logótipo tal como é. Logótipos brancos (header.logo_claro) usam um cartão escuro. */
.bh-plate { position: relative; z-index: 1; justify-self: center; width: min(100%, 380px); aspect-ratio: 5 / 4; margin: 0; }
.bh-plate-back, .bh-plate-card { position: absolute; inset: 0; border-radius: 30px; transition: rotate 0.9s var(--ease), translate 0.9s var(--ease), box-shadow 0.9s var(--ease); }
.bh-plate-back { background: var(--bt); rotate: 7deg; translate: 4% 3%; opacity: 0.9; }
.bh-plate-card { display: grid; place-items: center; background: var(--white); rotate: -3deg;
  box-shadow: 0 1px 0 rgba(20, 22, 27, 0.04), 0 40px 60px -36px color-mix(in srgb, var(--bt) 70%, rgba(20, 22, 27, 0.6)); }
.bh-plate-card img { width: var(--w); max-height: 64%; object-fit: contain; }
.bh-plate.is-dark .bh-plate-card { background: var(--ink); }
.bh:hover .bh-plate-card { rotate: 0deg; translate: 0 -2%; }
.bh:hover .bh-plate-back { rotate: 10deg; translate: 6% 4%; }

/* Opção "padrão" (?logo=padrao): a silhueta repetida em pequeno, em quincôncio, a cobrir o lado direito e a
   desvanecer-se para o texto, com um deslizar muito lento. Funciona com qualquer forma de logótipo —
   nomes compridos ficam textura, não um segundo título. */
.bh-pattern { position: absolute; z-index: 1; inset: 0 0 0 auto; width: 62%; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }
.bh-pattern-grid { position: absolute; inset: -30% -20%; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 3vw, 44px) clamp(28px, 4vw, 60px); align-content: center; rotate: -14deg; animation: pattern-drift 4s var(--ease) both; /* um só movimento: nada se mexe sozinho mais de 5 s */ }
.bh-pattern-grid span { aspect-ratio: 2 / 1; background: color-mix(in srgb, var(--bt) 85%, var(--ink)); opacity: var(--po, 0.13);
  -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.bh-pattern-grid span:nth-child(8n+5), .bh-pattern-grid span:nth-child(8n+6), .bh-pattern-grid span:nth-child(8n+7), .bh-pattern-grid span:nth-child(8n+8) { translate: 50% 0; }
/* Logótipos brancos/claros (header.logo_claro): padrão a preto, em vez do tom acinzentado da marca */
.bh-pattern.is-ink .bh-pattern-grid span { background: var(--ink); opacity: var(--po, 0.2); }
@keyframes pattern-drift { to { transform: translate(-8%, 6%); } }
@media (prefers-reduced-motion: reduce) { .bh-pattern-grid { animation: none; } }

/* Atalhos das famílias, fixos por baixo do cabeçalho */
.brand-page { padding-bottom: clamp(48px, 6vw, 88px); scroll-margin-top: calc(var(--header-h) + 12px); }
.bp-nav { position: sticky; top: var(--header-h); z-index: 20; padding-block: 12px; background: rgba(253, 253, 252, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bp-nav-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.bp-nav-row::-webkit-scrollbar { display: none; }
.bp-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; font-size: 0.93rem; text-decoration: none; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.bp-chip span { font-size: 0.78rem; font-weight: 700; color: var(--bt); }
.bp-chip:hover { border-color: var(--ink); }
.bp-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.bp-chip.is-on span { color: color-mix(in srgb, var(--bt) 40%, var(--white)); }

.bp-group { padding-top: clamp(28px, 3.6vw, 48px); scroll-margin-top: calc(var(--header-h) + 72px); }
.bp-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: clamp(16px, 2vw, 24px); border-bottom: 2px solid var(--ink); position: relative; }
.bp-group-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--bt); }
.bp-group-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.04; }
.bp-group-count { font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.brand-page .p-card .p-thumb { background: color-mix(in srgb, var(--bt) 7%, var(--tint)); }
.bp-status { padding-top: 28px; color: var(--ink-soft); font-weight: 600; }

/* Chamada final na cor da marca (escurecida, para o texto branco ter contraste) */
.bp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: clamp(32px, 4vw, 56px); border-radius: var(--r-panel);
  background: color-mix(in srgb, var(--bt) 72%, #0d0e11); color: var(--white); }
.bp-cta-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; }
.bp-cta-text { margin-top: 10px; color: rgba(255, 255, 255, 0.82); max-width: 46ch; }
.bp-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-cta .bh-add-all.is-on { background: var(--white); color: var(--ink); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Outras marcas: faixa a deslizar sozinha (reaproveita o motor de arraste/inércia do marquee de marcas da
   home — basta ter as classes .brand-row/.brand-track/.brand-group; ver a leitura genérica em site.js) em
   vez de uma grelha, para não deixar uma última fila incompleta por mostrar menos de uma linha cheia. */
.bo-title { margin-bottom: clamp(16px, 2.4vw, 24px); }
.bo-rows { margin-top: clamp(8px, 1.5vw, 16px); }
.bo-row { overflow: hidden; padding: 6px 0 30px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); }
.bo-row.is-dragging { cursor: grabbing; }
.bo-row.is-dragging .bo-tile { pointer-events: none; }
.bo-group { padding-right: clamp(10px, 1.2vw, 16px); }
.bo-tile { position: relative; flex: none; width: clamp(168px, 13vw, 204px); display: grid; place-items: center; overflow: hidden; height: clamp(124px, 9.5vw, 144px); padding: 16px 16px 30px; border-radius: var(--r-card); background: var(--white); box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), outline-color 0.4s; outline: 1px solid transparent; outline-offset: -1px; }
.bo-tile img { width: auto; height: auto; max-width: 76%; max-height: 64px; object-fit: contain; transition: transform 0.6s var(--ease); }
.bo-count { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.bo-tile::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; translate: -50% 0; border-radius: 3px; background: var(--bt); transition: width 0.5s var(--ease); }
/* Brilho que atravessa cada cartão em cascata, de vez em quando — o mesmo truque do carrossel da home */
.bo-tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.7) 50%, transparent 65%); translate: -120% 0; animation: tile-shine 3s var(--ease) 1; animation-delay: calc(min(var(--i, 0), 5) * 0.3s + 0.6s); } /* uma passagem, acaba antes dos 5 s */
.bo-tile:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px transparent, 0 24px 34px -24px rgba(20, 22, 27, 0.45); outline-color: color-mix(in srgb, var(--bt) 40%, transparent); }
.bo-tile:hover img { transform: scale(1.08) rotate(-2deg); }
.bo-tile:hover::after { width: 44%; }
/* Marca sem página (ainda sem produtos associados): cartão visível mas sem indícios de ser clicável */
/* Logótipos brancos/claros (header.logo_claro): ficam a preto sobre o cartão branco, em vez de um cartão escuro */
.bo-tile.is-ink img, .brand-tile.is-ink img { filter: brightness(0); }
/* marca sem página: só o logótipo esbatido; o nome e a contagem ficam legíveis (a opacidade no cartão dava ~3,2:1) */
.bo-tile.is-static { cursor: default; }
.bo-tile.is-static img { opacity: 0.55; filter: grayscale(1); }
.bo-tile.is-static::before { display: none; }
.bo-tile.is-static:hover { transform: none; box-shadow: 0 0 0 1px var(--line); }
.bo-tile.is-static:hover img { transform: none; }

/* Modo "Por marca" da página Produtos (partials/brand-directory.html.twig): grupos por catálogo, de A a Z.
   Pesquisa e separadores reaproveitam .ex-field/.ex-tab da pesquisa de produtos. */
.explore-brands { padding-bottom: clamp(48px, 6vw, 88px); }
.am-group + .am-group { margin-top: clamp(36px, 5vw, 64px); }
.am-group[hidden] { display: none; }
.am-group-title { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(14px, 1.8vw, 22px); padding-bottom: 12px; border-bottom: 2px solid var(--line); font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem); text-transform: uppercase; letter-spacing: -0.004em; line-height: 1; }
.am-group-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--tone, var(--ink-soft)); flex: none; }
.am-group-title.tone-soon { --tone: var(--line); color: var(--ink-soft); }
.am-group-n { font-family: "Geist", system-ui, sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.am-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.am-list .bo-tile { width: auto; }
.am-list .bo-tile::before { display: none; } /* grelha estática: sem o brilho usado na faixa "Outras marcas" */
.am-item--filtered-out, .am-item[hidden] { display: none; }
.am-empty { margin-top: 32px; text-align: center; color: var(--ink-soft); }
@media (max-width: 40em) { .am-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bo-more { margin-top: clamp(20px, 3vw, 32px); text-align: center; }
.bo-more a { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 2px; transition: border-color 0.3s; }
.bo-more a:hover { border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .bo-tile::before { animation: none; display: none; } }

@media (max-width: 56.25em) {
  .bh { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .bh-mark { width: 70%; height: 60%; top: 18%; translate: 0 0; opacity: 0.12; }
  .bh-plate { justify-self: start; width: min(62%, 240px); margin: 8px 0 18px 6px; }
  .bh:hover .bh-mark { translate: 0 0; }
}
@media (max-width: 40em) {
  .bh-title { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .bp-cta { flex-direction: column; align-items: flex-start; }
  .bo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Marcas clicáveis no carrossel: seta no canto sempre visível, brilho que percorre os cartões de vez em
   quando e, ao passar o rato, uma faixa na cor da marca com o nº de produtos. As marcas sem página ficam quietas. */
.brand-hint { display: inline-flex; align-items: flex-start; gap: 10px; max-width: 100%; margin-top: 18px; padding: 10px 18px 10px 14px; border-radius: 24px; line-height: 1.45; text-align: left; background: var(--white); font-size: 0.9rem; font-weight: 600; color: var(--ink);  }
.brand-hint-dot { position: relative; flex: none; margin-top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.brand-hint-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: hint-ping 2.2s var(--ease) 2; }
@keyframes hint-ping { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

.brand-tile.has-link { position: relative; padding: 0; overflow: hidden; outline: 1px solid transparent; outline-offset: -1px; transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), opacity 0.5s var(--ease), outline-color 0.4s; }
.brand-tile a { position: relative; display: grid; place-items: center; width: 100%; height: 100%; color: inherit; text-decoration: none; }
.brand-tile.has-link img { transition: transform 0.6s var(--ease), translate 0.6s var(--ease); }
.brand-go { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--bt) 10%, var(--white)); color: var(--bt); transition: background-color 0.35s, color 0.35s, transform 0.5s var(--ease); }
/* fundo escuro fixo (a cor da marca pode ser clara: dourados, amarelos) e a cor da marca numa faixa por cima (WCAG 1.4.3) */
.brand-cta { position: absolute; inset: auto 0 0; padding: 7px 10px; background: var(--ink); border-top: 3px solid var(--bt); color: var(--white); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.01em; text-align: center; white-space: nowrap; translate: 0 101%; transition: translate 0.45s var(--ease); }
@keyframes tile-shine { 0% { translate: -120% 0; } 12%, 100% { translate: 120% 0; } }

.brand-tile.has-link:hover, .brand-tile.has-link:focus-within { cursor: pointer; outline-color: color-mix(in srgb, var(--bt) 45%, transparent); }
.brand-tile.has-link:hover img, .brand-tile.has-link:focus-within img { transform: scale(1.04); translate: 0 -12%; rotate: none; }
.brand-tile.has-link:hover .brand-cta, .brand-tile.has-link:focus-within .brand-cta { translate: 0 0; }
/* Em toque não há hover: sem isto, a informação "Ver N produtos" (e a confirmação de que a marca tem
   página própria) nunca chega a aparecer no telemóvel — só a seta pequena. */
@media (hover: none) {
  /* Recomposição para toque: a faixa fica por baixo do logótipo (no fluxo, não sobreposta) e o cartão
     cresce um pouco para o logótipo manter o tamanho. No computador continua a ser revelada ao passar o rato. */
  .brand-tile.has-link { aspect-ratio: 1.3 / 1; }
  .brand-tile.has-link a { grid-template-rows: minmax(0, 1fr) auto; }
  .brand-tile.has-link img { grid-row: 1; max-height: 80%; }
  .brand-tile.has-link .brand-cta { position: static; grid-row: 2; align-self: end; width: 100%; translate: none; }
  .brand-go { display: none; } /* a faixa já indica que é um link; a seta tapava a ponta dos logótipos largos */
}
.brand-tile.has-link:hover .brand-go, .brand-tile.has-link:focus-within .brand-go { background: var(--bt); color: var(--white); transform: rotate(45deg); }
.brand-tile.has-link a:focus-visible { outline: none; }
/* foco do teclado bem visível (o contorno de 1px semitransparente quase não se via, WCAG 2.4.7); por dentro do cartão
   para não ser cortado pela faixa do carrossel */
.brand-tile.has-link:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; }
/* Sem página própria: não levanta nem roda, para não parecer clicável */
.brand-tile:not(.has-link):hover { transform: none; box-shadow: 0 1px 0 rgba(20, 22, 27, 0.04); }
.brand-tile:not(.has-link):hover img { transform: none; }
.brand-rows:has(.brand-tile:not(.has-link):hover) .brand-tile { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .brand-hint-dot::after { animation: none; display: none; }
}

.page-article { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.doc-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.doc-aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 28px; }
.doc-aside-title { font-size: 0.8rem; font-weight: 600;  color: var(--ink-soft); margin-bottom: 14px; }
.toc-list { display: grid; list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc-list a { display: block; padding: 8px 0 8px 18px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; font-weight: 500; line-height: 1.35; transition: color 0.25s, border-color 0.25s, padding-left 0.4s var(--ease); }
.toc-list a:hover { color: var(--ink); padding-left: 22px; }
.toc-list a.is-current { color: var(--ink); font-weight: 700; border-left-color: var(--red); }
.help-card { background: var(--tint); border-radius: var(--r-card); padding: clamp(20px, 2.2vw, 30px); }
.help-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1.04; }
.help-card p { margin-block: 10px 18px; color: var(--ink-soft); }
.help-card .btn { min-height: 48px; padding: 0 20px; font-size: 0.95rem; max-width: 100%; }

.prose { max-width: 760px; font-size: 1.1rem; }
.prose > * + * { margin-top: 1.05em; }
.prose > p:first-child { font-size: 1.22rem; color: var(--ink-soft); }
.prose h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.04; margin-top: clamp(40px, 4.4vw, 64px); padding-top: clamp(20px, 2.2vw, 28px); border-top: 2px solid var(--ink); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose > h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: 0.8em; }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color 0.25s; }
.prose a:hover { color: var(--red); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--red); }
.prose code { font-size: 0.92em; background: var(--tint); padding: 2px 6px; border-radius: 6px; }

.social-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; width: fit-content; transition: color 0.25s, transform 0.4s var(--ease); }
.social-link .icon { width: 22px; height: 22px; }
.social-link:hover { transform: translateY(-2px); }
.contact-card .social-link { margin-top: 6px; text-decoration: none; }

/* Rodapé escuro: frase da marca e botão, quatro colunas, logótipo em grande, barra final */
.site-footer { --f-text: #f4f4f2; --f-muted: #a3a8b2; --f-line: rgba(255, 255, 255, 0.14); --f-hover: #ff7b80;
  position: relative; background: var(--ink); color: var(--f-text); border-radius: var(--r-panel) var(--r-panel) 0 0; padding-top: clamp(48px, 6vw, 88px); }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-bottom: clamp(36px, 4.6vw, 64px); }
.footer-claim { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 4.8vw, 4.6rem); line-height: 1.04; max-width: 24ch; text-wrap: balance; }
.footer-claim em { font-style: normal; color: var(--red); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.footer-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); padding-block: clamp(36px, 4.6vw, 64px); }
.footer-h { font-size: 0.8rem; font-weight: 600;  color: var(--f-muted); margin-bottom: 18px; }
.footer-address { display: grid; gap: 2px; color: var(--f-muted); margin-bottom: 16px; }
.footer-address strong { color: var(--f-text); font-weight: 600; }
.footer-list { display: grid; gap: 10px; align-content: start; }
.footer-list a { display: inline-flex; align-items: center; gap: 10px; color: var(--f-text); text-decoration: none; font-weight: 500; transition: color 0.25s, transform 0.4s var(--ease); }
.footer-list a:hover { color: var(--f-hover); transform: translateX(4px); }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.footer-list .footer-strong { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--red); }
.footer-cat .tone-dot { width: 12px; height: 12px; background: var(--tone); transition: transform 0.4s var(--ease); }
.footer-cat:hover .tone-dot { transform: scale(1.5); }

.footer-mark { color: var(--f-text); padding-block: 0 clamp(28px, 3.4vw, 44px); }
.footer-mark .logo-svg { width: clamp(200px, 22vw, 300px); height: auto; display: block; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 28px; color: var(--f-muted); font-size: 0.9rem; }
.to-top { display: inline-flex; align-items: center; gap: 10px; color: var(--f-text); text-decoration: none; font-weight: 600; }
.to-top span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--f-line); transition: background-color 0.25s, border-color 0.25s, transform 0.4s var(--ease); }
.to-top:hover span { background: var(--red); border-color: var(--red); transform: translateY(-4px); }

/* ---------- Pesquisa de produtos, lista de interesse e WhatsApp ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { position: relative; display: inline-block; width: 14px; height: 14px; flex: none; }
.ico-plus::before, .ico-plus::after, .ico-close::before, .ico-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: currentColor; translate: -50% -50%; }
.ico-plus::after { rotate: 90deg; }
.ico-close::before { rotate: 45deg; } .ico-close::after { rotate: -45deg; }
.ico-check::before { content: ""; position: absolute; left: 2px; top: 1px; width: 6px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; }

/* Botão de pesquisa no cabeçalho */
.search-open { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); font: inherit; font-size: 0.95rem; cursor: pointer; transition: border-color 0.25s, color 0.25s, box-shadow 0.4s var(--ease); }
.search-open .icon { width: 18px; height: 18px; }
.search-open:hover { border-color: var(--ink); color: var(--ink); box-shadow: 0 8px 18px -14px rgba(20, 22, 27, 0.5); }
.search-kbd, .search-keys kbd { font: 600 0.75rem/1 "Geist", system-ui, sans-serif; padding: 5px 7px; border-radius: 6px; background: var(--tint); color: var(--ink-soft); border: 1px solid var(--line); }
@media (max-width: 86.25em) { .search-open-label { display: none; } }

.notices-list { margin: 8px 0 0; padding-left: 1.2em; }
.notices-list li { margin-top: 4px; }
.form-req { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* Visualizador de catálogos (caixa com o catálogo externo dentro de uma moldura) */
.cat-dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; margin: auto; width: min(1240px, calc(100vw - 24px)); height: min(920px, calc(100dvh - 24px)); }
.cat-dialog::backdrop { background: rgba(20, 22, 27, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cat-viewer { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100%; background: var(--bg); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(20, 22, 27, 0.6); }
.cat-viewer-bar { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--line); }
.cat-viewer-title { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-viewer-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
html:has(.cat-dialog[open]) { overflow: hidden; }
@media (max-width: 40em) {
  .cat-dialog { width: 100vw; height: 100dvh; }
  .cat-viewer { border-radius: 0; }
}

/* Diálogo de pesquisa */
.search-dialog, .list-drawer { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
.search-dialog::backdrop, .list-drawer::backdrop { background: rgba(20, 22, 27, 0.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-dialog { --sd-top: clamp(56px, 10vh, 120px); width: min(760px, calc(100vw - 24px)); margin: var(--sd-top) auto auto; }
.search-box { background: var(--bg); border-radius: var(--r-card); box-shadow: 0 40px 80px -30px rgba(20, 22, 27, 0.6); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); max-height: min(calc(100dvh - var(--sd-top) - 12px), 760px); grid-template-rows: auto auto auto 1fr auto; }
.search-field { display: flex; align-items: center; gap: 14px; padding: 18px 18px 14px 22px; border-bottom: 1px solid var(--line); }
.search-field > .icon { width: 22px; height: 22px; color: var(--ink-soft); flex: none; }
.search-field:focus-within { box-shadow: inset 0 -2px 0 var(--ink); }
.search-input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.2rem; color: var(--ink); outline: none; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tint); color: var(--ink); cursor: pointer; flex: none; transition: background-color 0.25s; }
.search-close .icon { width: 18px; height: 18px; }
.search-close:hover { background: var(--line); }
.search-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 4px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.filter-chip .tone-dot { width: 10px; height: 10px; background: var(--tone); }
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.search-status { padding: 8px 22px; font-size: 0.9rem; color: var(--ink-soft); }
.search-results { overflow-y: auto; overscroll-behavior: contain; padding: 0 10px 10px; }
.search-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 16px; cursor: pointer; outline: none; transition: background-color 0.2s; }
.search-row:hover, .search-row:focus-visible { background: var(--tint); }
.search-row:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.p-thumb { position: relative; display: block; aspect-ratio: 1; background: var(--white); border-radius: 12px; overflow: hidden; }
.p-thumb img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.search-row .p-thumb { width: 56px; }
.search-txt { display: grid; gap: 4px; min-width: 0; }
.search-name { font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; } /* 2 linhas: produtos parecidos distinguem-se pelo fim do nome */
.search-meta { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--ink-soft); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cat-badge { display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 100%; overflow-wrap: anywhere; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.cat-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.search-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--white); font-size: 0.86rem; color: var(--ink-soft); }
.search-all { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.search-all .icon { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.search-all:hover .icon { transform: translateX(4px); }
.search-keys { display: flex; align-items: center; gap: 6px; }

/* Botão "Juntar à lista" */
.add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 0.88rem; font-weight: 700; line-height: 1.15; text-align: center; max-width: 100%; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.4s var(--ease); }
.add-btn:hover { background: var(--ink); color: var(--white); }
.add-btn:active { transform: scale(0.96); }
.add-btn.is-on { background: var(--red); border-color: var(--red); color: var(--white); }
.add-btn.is-compact { padding: 0 12px; }
@media (max-width: 40em) { .add-btn.is-compact .add-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .add-btn.is-compact { width: 40px; padding: 0; } }

/* Página Produtos: pesquisa, separadores por catálogo, famílias em cartões e produtos */
.explore { padding-block: clamp(32px, 4vw, 56px) clamp(56px, 7vw, 104px); }
.ex-search { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; text-align: center; }
.ex-field { display: flex; align-items: center; gap: 14px; width: min(100%, 720px); min-height: 64px; padding: 0 24px; border-radius: var(--r-pill); background: var(--white); box-shadow: 0 0 0 1.5px var(--line), 0 24px 40px -30px rgba(20, 22, 27, 0.45); transition: box-shadow 0.3s; }
.ex-field:focus-within { box-shadow: 0 0 0 2px var(--ink), 0 24px 40px -30px rgba(20, 22, 27, 0.45); }
.ex-field .icon { width: 22px; height: 22px; color: var(--ink-soft); flex: none; }
.ex-input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 1.15rem; color: var(--ink); }
.ex-suggest { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 0.92rem; }
.ex-suggest > span { margin-right: 4px; }
.ex-sugg { min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background-color 0.25s, border-color 0.25s, transform 0.4s var(--ease); }
.ex-sugg:hover { border-color: var(--ink); transform: translateY(-2px); }

.ex-tabs { display: flex; flex-wrap: wrap; justify-content: safe center; gap: clamp(6px, 1.4vw, 14px); margin-block: clamp(32px, 4.4vw, 56px) clamp(24px, 3vw, 40px); }
.ex-tab { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-family: var(--display); font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 800; text-transform: uppercase; cursor: pointer; transition: background-color 0.35s var(--ease), border-color 0.35s, color 0.35s, transform 0.4s var(--ease); }
.ex-tab .tone-dot { width: 12px; height: 12px; background: var(--tone); }
.ex-tab-n { font-family: "Geist", system-ui, sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
.ex-tab:hover { border-color: var(--ink); transform: translateY(-2px); }
.ex-tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.ex-tab.is-on .ex-tab-n { color: rgba(255, 255, 255, 0.7); }
.ex-loading { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* Famílias: cada cartão é uma pequena montra. Círculo de luz no tom do catálogo, produtos em leque com sombra
   no chão, inclinação 3D e paralaxe a seguir o rato (js/produtos.js define --rx, --ry, --mx, --my, --px, --py). */
.fam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.fam-cell { perspective: 1100px; }
.fam-tile {
  --rx: 0deg; --ry: 0deg; --mx: 0px; --my: 0px; --px: 50%; --py: 30%; --lift: 0px;
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  width: 100%; height: 100%; min-height: clamp(300px, 22vw, 330px); padding: clamp(18px, 1.8vw, 26px);
  border: 0; border-radius: var(--r-card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; overflow: hidden;
  background: linear-gradient(165deg, color-mix(in srgb, var(--tone) 8%, var(--white)) 0%, color-mix(in srgb, var(--tone) 22%, var(--white)) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent);
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease), box-shadow 0.6s var(--ease);
}
.fam-tile.is-tracking { transition: transform 0.18s ease-out, box-shadow 0.6s var(--ease); }
/* Círculo de luz por trás dos produtos */
.fam-tile::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -30%; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone) 34%, var(--white)) 0%, color-mix(in srgb, var(--tone) 20%, transparent) 55%, transparent 72%);
  translate: -50% 0; transition: scale 0.8s var(--ease); }
/* Brilho que segue o cursor */
.fam-tile::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; opacity: 0;
  background: radial-gradient(circle at var(--px) var(--py), rgba(255, 255, 255, 0.55), transparent 42%); transition: opacity 0.4s; }
.fam-tile:hover, .fam-tile:focus-visible { --lift: -6px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent), 0 34px 50px -34px color-mix(in srgb, var(--tone) 60%, rgba(20, 22, 27, 0.6)); }
.fam-tile:hover::before, .fam-tile:focus-visible::before { scale: 1.12; }
.fam-tile:hover::after { opacity: 1; }

.fam-name { position: relative; z-index: 4; display: block; max-width: min(13ch, calc(100% - 48px)); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.55rem, 2.1vw, 2rem); line-height: 1.04; text-wrap: balance; }
.fam-count { position: relative; z-index: 4; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.72); font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.fam-count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }

/* Produtos em leque, com sombra no chão e paralaxe.
   Todos ocupam a mesma área: largura = 32% da área x raiz da proporção (--s), limitada pela altura disponível
   (--r x 90% da altura) e por um máximo de 40%. Assim uma garrafa estreita e um pack largo pesam o mesmo. */
.fam-fan { position: absolute; left: 0; right: 0; bottom: 0; top: 130px; z-index: 2; container-type: size;
  display: flex; align-items: flex-end; justify-content: center; padding: 0 3% 8%;
  --base: 32cqw; --cap: 31cqw;
  transform: translate(var(--mx), var(--my)); transition: transform 0.7s var(--ease); }
.is-tracking .fam-fan { transition: transform 0.18s ease-out; }
.fam-fan::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 5%; height: 9%; border-radius: 50%; background: radial-gradient(ellipse, rgba(20, 22, 27, 0.24), transparent 70%); z-index: 0; transition: transform 0.7s var(--ease), opacity 0.7s; }
.fam-fan img { position: relative; z-index: 1; flex: none; height: auto; max-width: none;
  width: min(calc(var(--s, 1) * var(--base)), calc(var(--r, 1) * 90cqh), var(--cap));
  margin-inline: -2cqw;
  transform-origin: 50% 100%; filter: drop-shadow(0 12px 10px rgba(20, 22, 27, 0.22)); transition: transform 0.75s var(--ease); }
.fam-fan img:nth-child(1) { transform: translateX(8%) rotate(-7deg) scale(0.92); }
.fam-fan img:nth-child(2) { z-index: 3; transform: scale(1.06); filter: drop-shadow(0 18px 14px rgba(20, 22, 27, 0.3)); }
.fam-fan img:nth-child(3) { z-index: 2; transform: translateX(-8%) rotate(7deg) scale(0.92); }
.fam-tile:hover .fam-fan img:nth-child(1), .fam-tile:focus-visible .fam-fan img:nth-child(1) { transform: translate(-6%, -4%) rotate(-13deg) scale(0.94); }
.fam-tile:hover .fam-fan img:nth-child(2), .fam-tile:focus-visible .fam-fan img:nth-child(2) { transform: translateY(-8%) scale(1.13); }
.fam-tile:hover .fam-fan img:nth-child(3), .fam-tile:focus-visible .fam-fan img:nth-child(3) { transform: translate(6%, -4%) rotate(13deg) scale(0.94); }
.fam-tile:hover .fam-fan::after { transform: scaleX(1.25); opacity: 0.7; }

.fam-go { position: absolute; z-index: 6; top: clamp(16px, 1.6vw, 22px); right: clamp(16px, 1.6vw, 22px); width: 42px; height: 42px; border-radius: 50%; background: var(--white); box-shadow: 0 8px 16px -10px rgba(20, 22, 27, 0.5); transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease); }
.fam-go::before { content: "\2192"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; }
.fam-tile:hover .fam-go, .fam-tile:focus-visible .fam-go { background: var(--ink); color: var(--white); transform: rotate(-45deg) scale(1.08); }

/* Cartão de ajuda: só aparece se a última linha ficar incompleta */
.fam-help-cell { grid-column: span var(--span, 1); }
.fam-help { height: 100%; min-height: clamp(300px, 22vw, 330px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: clamp(18px, 1.8vw, 26px); border-radius: var(--r-card); background: var(--tint); }
.fam-help-text { color: var(--ink-soft); max-width: 34ch; }
.fam-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fam-help .btn { min-height: 46px; padding: 0 22px; }
@media (max-width: 56.25em) { .fam-help-cell { grid-column: 1 / -1; } .fam-help { min-height: 0; } }

/* Vista de uma família ou de resultados */
.fam-head { display: grid; justify-items: start; gap: 14px; margin-bottom: clamp(20px, 2.6vw, 32px); }
.ex-back { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: border-color 0.25s, transform 0.4s var(--ease); }
.ex-back:hover { border-color: var(--ink); transform: translateX(-3px); }
.ex-back-arrow::before { content: "\2190"; font-weight: 700; }
.fam-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1.04; }
.fam-head.tone-gold .fam-title, .fam-head.tone-blue .fam-title, .fam-head.tone-green .fam-title, .fam-head.tone-wine .fam-title, .fam-head.tone-ice .fam-title { padding-bottom: 6px; border-bottom: 6px solid var(--tone); }
.fam-title.is-small { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.fam-head.is-empty .fam-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1; }
.ex-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.fam-subs { padding: 0; }
.chip-n { font-size: 0.78rem; font-weight: 600; opacity: 0.75; } /* 0,75 cumpre 4,5:1 no filtro claro e no ativo (escuro) */

/* Produtos */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.p-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px; }
.p-media { position: relative; }
.p-card .p-thumb { aspect-ratio: 4 / 5; border-radius: var(--r-card); background: var(--tint); transition: background-color 0.4s; }
.p-card .p-thumb img { transition: transform 0.7s var(--ease); }
.p-card:hover .p-thumb { background: color-mix(in srgb, var(--ink) 7%, var(--tint)); }
.p-card:hover .p-thumb img { transform: translateY(-3%) scale(1.06); }
.p-card .cat-badge { margin-top: 6px; }
.p-name { margin-top: 6px; font-size: 0.95rem; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Até 2 linhas: em cartões estreitos (2 colunas no telemóvel) a referência, que é o que o cliente usa para encomendar, não fica cortada */
.p-meta { font-size: 0.84rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.add-btn.is-round { position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; min-height: 0; padding: 0; border: 0; background: var(--white); color: var(--ink); box-shadow: 0 10px 20px -12px rgba(20, 22, 27, 0.6); }
.add-btn.is-round .ico { width: 16px; height: 16px; }
.add-btn.is-round:hover { background: var(--ink); color: var(--white); transform: scale(1.08); }
.add-btn.is-round.is-on { background: var(--red); color: var(--white); }
.ex-more-wrap { margin-top: 36px; text-align: center; }
.fly-ghost { position: fixed; z-index: 300; object-fit: contain; pointer-events: none; filter: drop-shadow(0 16px 14px rgba(20, 22, 27, 0.35)); }

/* Botões flutuantes e painel da lista */
.floaters { position: fixed; right: calc(clamp(14px, 2vw, 28px) + env(safe-area-inset-right, 0px)); bottom: calc(clamp(14px, 2vw, 28px) + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.float-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; border-radius: var(--r-pill); border: 0; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; box-shadow: 0 20px 34px -18px rgba(20, 22, 27, 0.6); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.float-btn .icon { width: 22px; height: 22px; }
.float-btn:hover { transform: translateY(-3px); }
/* Anel claro: invisível sobre o fundo claro, mas destaca o botão quando passa por cima do rodapé (também escuro) */
.float-list { background: var(--ink); color: var(--white); box-shadow: 0 0 0 2px var(--white), 0 20px 34px -18px rgba(20, 22, 27, 0.6); }
.float-list[hidden] { display: none; }
.list-count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: var(--r-pill); background: var(--red); color: var(--white); font-size: 0.85rem; }
.float-list.is-bump { animation: bump 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes bump { 40% { transform: scale(1.12); } }
.float-wa { width: 56px; padding: 0; justify-content: center; background: #25d366; color: #fff; }
.float-wa .icon { width: 28px; height: 28px; }

.list-drawer { margin: 0 0 0 auto; height: 100dvh; width: min(440px, 100vw); }
.list-drawer[open] { animation: drawer-in 0.5s var(--ease); }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer-box { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; background: var(--bg); box-shadow: -30px 0 60px -30px rgba(20, 22, 27, 0.5); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 6px; }
.drawer-head h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2.2rem; line-height: 1.04; }
.drawer-intro { padding: 0 22px 14px; color: var(--ink-soft); font-size: 0.95rem; }
.drawer-items { overflow-y: auto; overscroll-behavior: contain; padding: 0 14px; display: grid; gap: 6px; align-content: start; }
.drawer-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--white); }
.drawer-item .p-thumb { width: 52px; background: var(--tint); }
.drawer-txt { display: grid; gap: 2px; min-width: 0; }
.drawer-name { font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
.drawer-code { font-size: 0.8rem; color: var(--muted); }
.drawer-rm { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }
.drawer-rm:hover { background: var(--tint); color: var(--red); }
/* Ecrãs baixos (telemóvel deitado, teclado aberto): a explicação sai e o espaço vai para a lista */
@media (max-height: 30em) { .drawer-intro { display: none; } .drawer-head { padding-bottom: 12px; } }
.drawer-empty { display: none; padding: 20px 22px; color: var(--ink-soft); }
.list-drawer.is-empty .drawer-empty { display: block; }
.list-drawer.is-empty .drawer-send, .list-drawer.is-empty .drawer-wa, .list-drawer.is-empty .drawer-clear { display: none; }
.drawer-foot { display: grid; gap: 10px; padding: 18px calc(22px + env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) 22px; border-top: 1px solid var(--line); background: var(--white); }
.drawer-foot .btn { width: 100%; gap: 10px; }
.drawer-foot .btn .icon { width: 20px; height: 20px; }
.drawer-clear { justify-self: center; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: 0.9rem; cursor: pointer; }
.drawer-clear .icon { width: 16px; height: 16px; }
.drawer-clear:hover { color: var(--red); }

/* Lista no formulário de contacto */
.form-list { padding: 14px 16px; border-radius: var(--r-field); background: var(--tint); }
.form-list[hidden] { display: none; }
.form-list-label { font-weight: 700; font-size: 0.95rem; }
.form-list-label .list-count { display: inline-grid; margin-left: 2px; }
.form-list-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-height: 140px; overflow-y: auto; }
.form-list-item { padding: 5px 10px; border-radius: var(--r-pill); background: var(--white); font-size: 0.84rem; }

/* Movimento: só com JS e sem pedido de movimento reduzido */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  @keyframes line-up { from { transform: translateY(108%); } to { transform: none; } }
  .js .hero-title span { overflow: hidden; }
  .js .hero-title b { display: block; animation: line-up 1s var(--ease) both; }
  .js .hero-title span:nth-child(2) b { animation-delay: 0.1s; }
  .js:not(.no-intro) .hero-title b { animation-delay: var(--intro); }
  .js:not(.no-intro) .hero-title span:nth-child(2) b { animation-delay: calc(var(--intro) + 0.1s); }
  .js:not(.no-intro) .hero-building { animation-delay: calc(var(--intro) + 0.15s); }
  /* Abertura das páginas interiores */
  @keyframes rise-in { from { opacity: 0; transform: translateY(26px); } }
  @keyframes art-in { from { opacity: 0; transform: translateX(5%) scale(1.04); } }
  .js .page-hero-copy > * { animation: rise-in 0.85s var(--ease) both; animation-delay: calc(var(--intro) + 0.12s); }
  .js .page-hero-copy > :nth-child(2) { animation-delay: calc(var(--intro) + 0.2s); }
  .js .page-hero-copy > :nth-child(3) { animation-delay: calc(var(--intro) + 0.28s); }
  .js .page-hero-copy > :nth-child(n+4) { animation-delay: calc(var(--intro) + 0.36s); }
  .js .page-hero-art { animation: art-in 1.2s var(--ease) both; animation-delay: calc(var(--intro) + 0.1s); }
  @keyframes draw-in { from { opacity: 0; transform: translateX(6%) scale(1.03); } to { opacity: 1; transform: none; } }
  .js .hero-building { animation: draw-in 1.4s var(--ease) 0.2s both; }

  @keyframes card-in { from { opacity: 0; transform: translateY(18px); } }
  .p-card, .fam-cell { animation: card-in 0.6s var(--ease) both; animation-delay: calc(min(var(--i, 0), 16) * 35ms); }
  ::view-transition-old(root) { animation-duration: 0.25s; }
  ::view-transition-new(root) { animation-duration: 0.45s; }
  .search-dialog[open] .search-box { animation: card-in 0.35s var(--ease); }
  @keyframes marquee { to { transform: translateX(-50%); } }
  /* sem JavaScript não há botão de pausa: a faixa fica parada e percorre-se com scroll */
  html:not(.js) .brand-row { overflow-x: auto; }

  .js .swiss-map .canton { opacity: 0; transition: opacity 0.6s var(--ease), fill 0.25s; transition-delay: calc(var(--d, 0) * 45ms), 0s; }
  .js .map-wrap.is-in .canton { opacity: 1; }
  @keyframes pulse { 0% { opacity: 0.9; scale: 0.5; } 100% { opacity: 0; scale: 2.4; } }
  .map-wrap.is-in .pin-pulse { animation: pulse 1.8s ease-out 1.2s 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-row { overflow-x: auto; cursor: auto; touch-action: auto; }
}

/* Responsivo. Os pontos de quebra estão em em (1em = 16px com a letra normal: 40em = 640px, 61.25em = 980px):
   assim acompanham o tamanho de letra escolhido no browser, e quem lê com letra maior recebe o layout
   mais estreito em vez de um cabeçalho que já não cabe. O menu passa a "Menu" a 61.25em (980px). */
@media (max-width: 61.25em) {
  .hero { min-height: 0; }
  .hero-title { font-size: 10.4vw; padding-top: 24px; }
  .hero-title span { white-space: normal; }
  .hero-stage { min-height: 0; display: flex; flex-direction: column; }
  .hero-stage::after { display: none; }
  .hero-building { position: relative; right: auto; top: auto; width: 128%; margin-left: -6%; margin-top: 4px; order: 1; }
  /* o degradê do ::after está desligado em ecrã pequeno: a própria imagem desvanece no fundo, sem corte seco contra o texto */
  .hero-building { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 99%); mask-image: linear-gradient(to bottom, #000 62%, transparent 99%); margin-bottom: -6%; }
  .hero-panel { position: relative; left: auto; bottom: auto; width: auto; padding: 22px var(--gutter) 40px; order: 2; }

  .cat-panel { position: relative; top: auto; min-height: 0; margin-bottom: 14px; box-shadow: none; }
  .cat-panel-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cat-art { order: -1; max-width: 460px; }

  .audience { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .audience-item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .audience-icon { grid-row: 1 / span 2; width: 56px; height: 56px; }
  .audience-title { margin-top: 4px; }
  .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-aside { display: contents; }
  .toc { order: 1; }
  .prose { order: 2; }
  .help-card { order: 3; }
  .page-hero-art { height: 100%; top: 0; right: -34%; opacity: 0.2; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nav-toggle { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-pill); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 18px; padding: 16px var(--gutter) 26px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(20, 22, 27, 0.4); }
  /* O menu fica preso ao cabeçalho: limitado à altura do ecrã e com scroll próprio, senão em paisagem
     (390px de altura) a pesquisa, o "Pedir proposta" e as línguas ficavam fora de alcance. */
  .site-nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
  .site-nav.is-open { display: flex; }
  .nav-langs { display: flex; gap: 8px; margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); }
  .nav-lang { display: grid; place-items: center; min-width: 52px; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none; }
  .nav-lang.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 12px 14px; font-size: 1.08rem; }
  .btn-nav { width: 100%; }
}

@media (max-width: 40em) {
  :root { --r-panel: 26px; --r-card: 20px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .brand { width: 140px; }
}

/* Pesquisa e produtos em ecrãs pequenos (no fim do ficheiro para prevalecer sobre as regras-base) */
@media (max-width: 56.25em) and (min-width: 40.0625em) { .fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 61.25em) {
  .search-open { justify-content: flex-start; min-height: 50px; padding-inline: 16px; font-size: 1.05rem; }
  .search-open .search-open-label { display: inline; }
  .search-kbd { display: none; }
}
@media (max-width: 40em) {
  .search-keys { display: none; }
  .ex-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .ex-tabs::-webkit-scrollbar { display: none; }
  .ex-tab { flex: none; min-height: 48px; padding: 0 16px; }
  .ex-field { min-height: 56px; }
  .fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fam-tile { min-height: 240px; padding: 14px; }
  .fam-fan { top: 104px; }
  .fam-name { font-size: 1.3rem; }
  .fam-go { width: 32px; height: 32px; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fam-subs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + var(--gutter)); }
  .fam-subs .filter-chip { flex: none; }
  .search-dialog { --sd-top: 12px; }
  /* filtros numa só faixa com scroll (como os separadores da página Produtos): sobra altura para os resultados com o teclado aberto */
  .search-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
  .search-filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .float-list span:not(.list-count) { display: none; }
  .float-list { width: 56px; padding: 0; justify-content: center; position: relative; }
  .float-list .list-count { position: absolute; top: -4px; right: -4px; }
}

/* Selo "Marca própria" (lista own_brands em home.pt.md): fita diagonal vermelha no canto do cartão, com um
   brilho dourado que a atravessa de poucos em poucos segundos e uma estrela a cintilar. O cartão tem
   overflow: hidden, por isso a fita é cortada pelo próprio canto arredondado. */
.own-badge { position: absolute; z-index: 3; top: 30px; left: -46px; width: 170px; rotate: -45deg; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 0; overflow: hidden;
  background: linear-gradient(90deg, var(--red-deep), var(--red) 50%, var(--red-deep)); color: var(--white);
  font-size: 0.54rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
  box-shadow: 0 4px 10px -4px rgba(168, 24, 29, 0.7); pointer-events: none; }
.own-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 226, 150, 0.85) 50%, transparent 70%); translate: -110% 0; animation: own-shine 4.2s var(--ease) 1; }
.own-badge svg { color: #ffd166; flex: none; animation: own-twinkle 2.1s ease-in-out 2; }
@keyframes own-shine { 0%, 55% { translate: -110% 0; } 85%, 100% { translate: 110% 0; } }
@keyframes own-twinkle { 0%, 100% { scale: 1; rotate: 0deg; } 50% { scale: 1.35; rotate: 72deg; } }
/* Ao passar o rato no cartão, a fita fica mais intensa */
.bo-tile:hover .own-badge, .brand-tile:hover .own-badge { box-shadow: 0 6px 16px -4px rgba(208, 33, 39, 0.85); }

.bh-kicker.is-own { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--red-deep), var(--red)); color: var(--white); box-shadow: 0 10px 24px -14px rgba(208, 33, 39, 0.8); }
.bh-kicker.is-own::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 226, 150, 0.6) 50%, transparent 70%); translate: -110% 0; animation: own-shine 4.5s var(--ease) 1; }
.bh-kicker.is-own .bh-dot { background: #ffd166; box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.3); animation: own-twinkle 2.1s ease-in-out 2; }
@media (prefers-reduced-motion: reduce) {
  .own-badge::after, .bh-kicker.is-own::after { display: none; }
  .own-badge svg, .bh-kicker.is-own .bh-dot { animation: none; }
}

/* Com o item "Marcas" o menu tem 6 entradas: nunca parte "Sobre nós" em duas linhas e aperta o espaçamento em ecrãs médios */
.nav-list a { white-space: nowrap; }
@media (min-width: 61.3125em) and (max-width: 80em) { .nav-list a { padding-inline: 10px; font-size: 0.94rem; } .nav-list { gap: 2px; } }
@media (min-width: 61.3125em) and (max-width: 75em) {
  .search-kbd { display: none; }
  .lang-list { gap: 0; }
  .lang-list li > * { padding-inline: 5px; }
  .btn-nav { padding-inline: 16px; font-size: 0.92rem; }
  .site-nav { gap: 8px; }
}
@media (min-width: 61.3125em) and (max-width: 66.25em) { .site-nav > .btn-nav { display: none; } }

/* Seletor "Por produto / Por marca" no topo da página Produtos: dois botões numa cápsula, com uma pílula
   escura que desliza para o lado ativo (data-mode na .ex-mode, definido em js/site.js). */
.ex-mode-wrap { position: relative; z-index: 2; padding-top: clamp(28px, 4vw, 52px); padding-bottom: 0; }
.ex-mode { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 460px); margin-inline: auto; padding: 6px; border-radius: var(--r-pill); background: var(--white); box-shadow: 0 0 0 1.5px var(--line), 0 18px 34px -26px rgba(20, 22, 27, 0.45); }
.ex-mode-pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: var(--r-pill); background: var(--ink); transition: translate 0.6s cubic-bezier(0.65, 0, 0.2, 1); will-change: translate; box-shadow: 0 10px 22px -12px rgba(20, 22, 27, 0.7); }
.ex-mode[data-mode="marcas"] .ex-mode-pill { translate: 100% 0; }
.ex-mode-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); font: inherit; font-family: var(--display); font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 800; text-transform: uppercase; cursor: pointer; transition: color 0.45s cubic-bezier(0.65, 0, 0.2, 1); }
.ex-mode-btn .icon { width: 20px; height: 20px; flex: none; }
.ex-mode-btn.is-on { color: var(--white); }
.ex-mode-btn:not(.is-on):hover { color: var(--red); }
.ex-mode-n { font-family: "Geist", system-ui, sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0; padding: 2px 8px; border-radius: var(--r-pill); background: var(--tint); color: var(--ink-soft); } /* contagem, não alerta: o vermelho fica para ações */
.ex-mode-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
/* Painel que entra ao trocar de vista: fade curto com uma subida mínima */
.is-entering { animation: pane-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .ex-mode-pill { transition: none; } .is-entering { animation: none; } }

/* Home: a pílula de ajuda do carrossel de marcas é agora o acesso a todas as marcas */
a.brand-hint { text-decoration: none; transition: box-shadow 0.3s, transform 0.4s var(--ease); }
a.brand-hint strong { font-weight: 800; }
.brand-hint-cta { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; vertical-align: bottom; color: var(--red); font-weight: 800; }
.brand-hint-cta .icon { width: 16px; height: 16px; transition: translate 0.35s var(--ease); }
a.brand-hint:hover { box-shadow: 0 0 0 1.5px var(--ink), 0 14px 26px -18px rgba(20, 22, 27, 0.5); transform: translateY(-2px); }
a.brand-hint:hover .brand-hint-cta .icon { translate: 4px 0; }
.ex-mode-btn { text-align: center; line-height: 1.05; padding-block: 6px; }
@media (max-width: 32.5em) { .ex-mode-btn { gap: 7px; padding: 0 10px; font-size: 1rem; } .ex-mode-btn .icon { width: 16px; height: 16px; } }

/* Marcas reconhecidas dentro de cada produtor: chips no topo da página, títulos por marca na grelha e linha no cartão */
.bh-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: clamp(14px, 1.8vw, 20px); max-width: 60ch; }
.bh-brands-label { margin-right: 4px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.bh-brand-chip { padding: 5px 11px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--bt) 12%, var(--white)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bt) 28%, transparent); font-size: 0.84rem; font-weight: 700; color: var(--ink); }
.bp-group-title { display: flex; align-items: baseline; gap: 10px; margin: clamp(28px, 3.6vw, 44px) 0 14px; padding-bottom: 10px; border-bottom: 2px solid color-mix(in srgb, var(--bt) 30%, var(--line)); font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem); text-transform: uppercase; line-height: 1; }
.bp-group-title:first-of-type { margin-top: 0; }
.bp-group-n { font-family: "Geist", system-ui, sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.bo-alias { position: absolute; left: 10px; right: 10px; bottom: 28px; text-align: center; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-alias.is-hit { color: var(--red); font-weight: 800; }
.bo-tile:has(.bo-alias) img { max-height: 56px; margin-top: -8px; }

/* Páginas geradas por tools/gerar-paginas-produto.py: catálogo, família e ficha de produto */
.p-name a { color: inherit; text-decoration: none; }
.p-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.p-link { display: block; }
.cf { padding-bottom: clamp(48px, 6vw, 88px); }
.cf-nav { margin-bottom: clamp(20px, 3vw, 32px); }
.cf-nav .filter-chip { text-decoration: none; }
.cf-group { scroll-margin-top: calc(var(--header-h) + 16px); }
.cf-group + .cf-group { margin-top: clamp(36px, 5vw, 60px); }
.cf-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--tone); font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem); text-transform: uppercase; line-height: 1; }
.cf-n { font-family: "Geist", system-ui, sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.cf-back { margin-top: clamp(28px, 4vw, 44px); text-align: center; }
a.fam-tile { text-decoration: none; color: inherit; }

.pp-wrap { padding-top: clamp(14px, 2vw, 28px); }
.pp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(28px, 4vw, 56px); }
.pp-media { position: relative; margin: 0; aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--r-card); background: var(--white); background: var(--tint); overflow: hidden; }
.pp-media img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.pp-info .crumbs { margin-bottom: 18px; flex-wrap: wrap; }
.pp-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); }
.pp-title { margin-top: 14px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; text-wrap: balance; }
.pp-brand { margin-top: 14px; font-size: 1.05rem; color: var(--ink-soft); }
.pp-brand strong { color: var(--ink); }
.pp-brand a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.pp-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pp-facts li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--tint); }
.pp-facts span { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.pp-facts strong { font-size: 0.98rem; }
.pp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.pp-add .add-btn { min-height: 52px; padding: 6px 22px; font-size: 1rem; background: var(--ink); color: var(--white); }
.pp-add .add-btn.is-on { background: var(--white); color: var(--ink); }
.pp-note { margin-top: 12px; font-size: 0.86rem; color: var(--ink-soft); }
.pp-langs { margin-top: 18px; font-size: 0.9rem; }
.pp-langs summary { cursor: pointer; font-weight: 600; }
.pp-langs dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin-top: 10px; color: var(--ink-soft); }
.pp-langs dt { font-weight: 700; color: var(--ink); }
.pp-rel-title { margin-bottom: clamp(18px, 2.6vw, 28px); }
@media (max-width: 56.25em) { .pp { grid-template-columns: minmax(0, 1fr); } .pp-media { max-width: 420px; width: 100%; justify-self: center; } }
.px-index { padding-bottom: clamp(48px, 6vw, 80px); }
.px-index-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 18px; }
.px-index-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); padding-top: 18px; border-top: 1.5px solid var(--line); }
.px-col h3 a { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.px-col .tone-dot { width: 10px; height: 10px; background: var(--tone); }
.px-col ul { margin-top: 10px; display: grid; gap: 4px; }
.px-col li a { font-size: 0.92rem; color: var(--ink-soft); text-decoration: none; }
.px-col li a:hover { color: var(--ink); text-decoration: underline; }
.px-col li span { font-size: 0.78rem; color: var(--muted); } /* cor e não opacidade: 4,8:1 (a opacidade dava 3,9:1, WCAG 1.4.3) */
@media (max-width: 47.5em) { .px-index-cols { grid-template-columns: minmax(0, 1fr); } }

/* Seletor de idioma no cabeçalho (computador). No telemóvel as línguas estão no menu (.nav-langs). */
.lang-menu { position: relative; flex: none; }
/* mesma cápsula do botão de pesquisa (.search-open): os dois controlos do cabeçalho leem-se como um par */
.lang-menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; transition: border-color 0.25s, box-shadow 0.4s var(--ease); }
.lang-menu-btn .icon { width: 18px; height: 18px; color: var(--ink-soft); }
.lang-menu-btn:hover, .lang-menu-btn[aria-expanded="true"] { border-color: var(--ink); }
.lang-menu-chev { color: var(--ink-soft); transition: transform 0.3s var(--ease); }
.lang-menu-btn[aria-expanded="true"] .lang-menu-chev { transform: rotate(180deg); }
.lang-menu-list { position: absolute; z-index: 70; top: calc(100% + 8px); right: 0; display: grid; gap: 2px; min-width: 200px; margin: 0; padding: 6px; list-style: none; border-radius: var(--r-card); background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -22px rgba(20, 22, 27, 0.55); transform-origin: top right; animation: lang-pop 0.25s var(--ease); }
.lang-menu-list[hidden] { display: none; }
.lang-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 12px 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
a.lang-menu-item:hover, a.lang-menu-item:focus-visible { background: var(--tint); }
.lang-menu-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-soft); }
.lang-menu-item.is-on { font-weight: 800; }
.lang-menu-item.is-on .icon { width: 16px; height: 16px; color: var(--red); }
.lang-menu-item.is-soon { opacity: 0.5; cursor: default; }
.lang-menu-item small { font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); }
@keyframes lang-pop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .lang-menu-list { animation: none; } .lang-menu-chev { transition: none; } }
/* Abaixo de 980px o cabeçalho passa a "Menu" e as línguas vão lá para dentro (.nav-langs) */
@media (max-width: 61.25em) { .lang-menu { display: none; } }
/* A lista de interesse é o único botão flutuante: a última linha do rodapé fica fora da sua zona */
@media (min-width: 61.3125em) { .footer-base { padding-right: 260px; } }

/* ---------- Contacto: passos "como funciona", cartão de contacto com ícones e formulário em secções ----------
   (sobrepõe as regras base de .contact-card, .form-card e .field mais acima) */
.contact-steps { margin-top: clamp(22px, 3vw, 34px); }
.contact-steps-title { margin-bottom: 14px; font-size: 0.9rem; font-weight: 700;  color: rgba(255, 255, 255, 0.8); }
.contact-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; line-height: 1.4; color: rgba(255, 255, 255, 0.92); }
.contact-steps li strong { display: block; color: var(--white); font-weight: 700; }
.contact-step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--red); font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.contact-steps li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 38px; bottom: -14px; width: 2px; background: rgba(255, 255, 255, 0.35); }

.contact-card { margin-top: clamp(22px, 3vw, 34px); padding: 18px 20px; display: grid; gap: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24); font-style: normal; font-weight: 600; }
.contact-card > * { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.contact-card a { text-decoration: none; width: auto; }
.contact-card a:hover span, .contact-card a[href^="mailto"]:hover, .contact-card a[href^="tel"]:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-card > span:first-child::before, .contact-card a[href^="mailto"]::before, .contact-card a[href^="tel"]::before { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.18) center / 16px no-repeat; }
.contact-card > span:first-child::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.contact-card a[href^="mailto"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.contact-card a[href^="tel"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.contact-card > span:nth-child(2) { margin-top: -10px; padding-left: 44px; min-height: 0; }
.contact-card .social-link svg { flex: none; width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }

.form-card { padding: clamp(24px, 3.2vw, 44px); }
.form { gap: 16px; counter-reset: sec; }
.form-req { font-size: 0.86rem; }
.form-sec { grid-column: 1 / -1; counter-increment: sec; display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 0.9rem; font-weight: 700; line-height: 1;  }
.form-sec::before { content: counter(sec); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--white); letter-spacing: 0; }
.form-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { gap: 7px; }
.field label { font-size: 0.86rem; font-weight: 600; }
.field input, .field select, .field textarea { background-color: #f4f5f7; border: 1.5px solid transparent; border-radius: 12px; padding: 13px 16px; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: #eceef2; }
.field input:focus, .field select:focus, .field textarea:focus { background-color: var(--white); border-color: var(--red); box-shadow: 0 0 0 4px rgba(208, 33, 39, 0.14); }
.field select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.form-foot { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 4px; }
.form-foot .btn { width: 100%; min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.05rem; }
.form-foot .btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.form-foot .btn:hover svg { transform: translateX(4px); }
.form-privacy { flex: none; max-width: none; text-align: center; }

/* Nomes de marca com "/" (ex.: Fundação Eugénio de Almeida / Adega Cartuxa): a barra da letra de títulos é altíssima e
   atravessava as linhas vizinhas; fica pequena e a meio. A entrelinha dos títulos é 1.04 (e não 0.9) para os acentos e a
   cedilha (Ç, Ã, É) não tocarem na linha de cima ou de baixo. */
.bh-sep { display: inline-block; font-size: 0.6em; font-weight: 500; vertical-align: 0.22em; padding-inline: 0.15em; opacity: 0.55; }

