/* Seven Woods — blocos adicionados na revisão de Setembro 2026:
   hero em vídeo, pilares, espécies, rastreabilidade, área profissional, filtros do blog. */

/* ---------- Hero em vídeo ---------- */
.hero-video {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(84vh, 760px);
  overflow: hidden;
  background: var(--green-deep);
  color: #fff;
  isolation: isolate;
}
.hero-video-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 35, 24, .88) 0%, rgba(15, 35, 24, .62) 42%, rgba(15, 35, 24, .18) 78%),
    linear-gradient(0deg, rgba(15, 35, 24, .72) 0%, rgba(15, 35, 24, 0) 45%);
}
.hero-video-content {
  position: relative;
  width: 100%;
  padding-top: clamp(72px, 12vh, 140px);
  padding-bottom: clamp(56px, 9vh, 96px);
}
.hero-video-content > * { max-width: 680px; }
.hero-video-eyebrow { letter-spacing: .18em; }
.hero-video h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 4.3rem);
  line-height: 1.04;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.hero-video-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  max-width: 560px;
  opacity: .95;
}
.hero-video .btn-outline {
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(3px);
}
.hero-video .btn-outline:hover { background: #fff; color: var(--green); }
.hero-badges {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px !important;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(242, 163, 97, .55);
  border-radius: 999px;
  background: rgba(15, 35, 24, .45);
  backdrop-filter: blur(4px);
  font-size: .88rem;
  font-weight: 600;
}
.hero-badge-ico { width: 17px; height: 17px; color: var(--gold); flex: none; }
.hero-video-toggle {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(15, 35, 24, .5);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s ease;
}
.hero-video-toggle:hover { background: var(--brown); }
.hero-video-toggle svg { width: 20px; height: 20px; }
.hero-video-toggle .ico-play { display: none; }
.hero-video-toggle[aria-pressed="true"] .ico-play { display: block; }
.hero-video-toggle[aria-pressed="true"] .ico-pause { display: none; }
.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, .8);
  display: grid;
  place-items: center;
  animation: sw-bob 2.2s ease-in-out infinite;
}
.hero-scroll-hint svg { width: 26px; height: 26px; }
@keyframes sw-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint { animation: none; }
}
@media (max-width: 899px) {
  .hero-video { min-height: min(78vh, 640px); }
  .hero-video-overlay {
    background: linear-gradient(0deg, rgba(15, 35, 24, .92) 0%, rgba(15, 35, 24, .6) 55%, rgba(15, 35, 24, .3) 100%);
  }
  .hero-video-content { padding-bottom: 70px; }
  .hero-badges li { font-size: .8rem; padding: 6px 11px 6px 8px; }
  .hero-scroll-hint { display: none; }
  .hero-video-toggle { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

/* A vitrine passa a faixa de campanhas por baixo do vídeo */
.hero-video + .hero-slider--vitrine { border-top: 4px solid var(--gold); }

/* ---------- Pilares ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.pillar-card {
  position: relative;
  padding: 30px 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brown), var(--gold));
}
.pillar-num {
  position: absolute;
  right: 18px;
  top: 10px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(134, 90, 55, .14);
}
.pillar-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  margin-bottom: 16px;
}
.pillar-ico svg { width: 26px; height: 26px; }
.pillar-card h3 { margin: 0 0 8px; font-size: 1.45rem; }
.pillar-card p { margin: 0; color: var(--muted); }

/* ---------- Espécies ---------- */
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.species-card {
  padding: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  overflow: hidden;
}
.species-swatch {
  display: block;
  height: 74px;
  background:
    repeating-linear-gradient(94deg, rgba(0, 0, 0, .09) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(88deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 19px),
    linear-gradient(135deg, #8a3d24, #5c2716);
}
.species-card:nth-child(2) .species-swatch { background-image: repeating-linear-gradient(94deg, rgba(0,0,0,.07) 0 2px, transparent 2px 12px), repeating-linear-gradient(88deg, rgba(255,255,255,.08) 0 1px, transparent 1px 17px), linear-gradient(135deg, #c79a55, #9a6e33); }
.species-card:nth-child(3) .species-swatch { background-image: repeating-linear-gradient(94deg, rgba(0,0,0,.08) 0 2px, transparent 2px 10px), repeating-linear-gradient(88deg, rgba(255,255,255,.06) 0 1px, transparent 1px 21px), linear-gradient(135deg, #9a5a36, #6e3b20); }
.species-card:nth-child(4) .species-swatch { background-image: repeating-linear-gradient(94deg, rgba(0,0,0,.07) 0 2px, transparent 2px 13px), repeating-linear-gradient(88deg, rgba(255,255,255,.08) 0 1px, transparent 1px 18px), linear-gradient(135deg, #b98255, #8a5a34); }
.species-card:nth-child(5) .species-swatch { background-image: repeating-linear-gradient(94deg, rgba(0,0,0,.09) 0 2px, transparent 2px 11px), repeating-linear-gradient(88deg, rgba(255,255,255,.06) 0 1px, transparent 1px 16px), linear-gradient(135deg, #7a2f1e, #4b1a10); }
.species-card h3 { margin: 16px 18px 6px; font-size: 1.3rem; }
.species-card p { margin: 0 18px; color: var(--muted); font-size: .95rem; }
.species-note { margin-top: 20px; color: var(--muted); }
.species-note a { font-weight: 700; color: var(--brown); }

/* ---------- Rastreabilidade ---------- */
.traceability-section {
  background:
    radial-gradient(circle at 85% 15%, rgba(242, 163, 97, .16), transparent 45%),
    var(--green-deep);
  color: #fff;
}
.traceability-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.traceability-copy h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 0 0 14px; }
.traceability-copy p { opacity: .92; max-width: 560px; }
.traceability-signature {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--gold);
  opacity: 1 !important;
}
.traceability-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.traceability-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .05);
}
.traceability-step-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-deep);
}
.traceability-step-ico svg { width: 24px; height: 24px; }
.traceability-step-num {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.traceability-step h3 { color: #fff; margin: 2px 0 4px; font-size: 1.22rem; }
.traceability-step p { margin: 0; opacity: .85; font-size: .95rem; }
@media (max-width: 899px) {
  .traceability-inner { grid-template-columns: 1fr; }
}

/* ---------- Clientes (B2B) ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.client-card {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}
.client-card-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--brown);
  margin-bottom: 12px;
}
.client-card-ico svg { width: 24px; height: 24px; }
.client-card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.client-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.client-note {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 4px solid var(--gold);
  background: #fff;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  color: var(--muted);
}

/* ---------- Área Profissional ---------- */
.topbar-pro { font-weight: 700; margin-right: 14px; }
.pro-teaser { background: var(--green); color: #fff; }
.pro-teaser-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.pro-teaser h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 12px; }
.pro-teaser-copy p { opacity: .92; }
.pro-teaser .btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.pro-teaser .btn-outline:hover { background: #fff; color: var(--green); }
.pro-teaser-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pro-teaser-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .05);
}
.pro-teaser-list strong { display: block; font-size: 1.05rem; }
.pro-teaser-list span { opacity: .85; font-size: .94rem; }
.pro-teaser-ico, .pro-benefit-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-deep);
}
.pro-teaser-ico svg, .pro-benefit-ico svg { width: 22px; height: 22px; opacity: 1; }
.pro-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.pro-benefit-card {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}
.pro-benefit-card h3 { margin: 12px 0 6px; font-size: 1.2rem; }
.pro-benefit-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.pro-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
}
.pro-access-grid--single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.pro-card h2 { margin-top: 0; }
.pro-card select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.pro-form-note { margin: 14px 0 0; font-size: .95rem; }
.pro-form-note a { color: var(--brown); font-weight: 600; }
.pro-form-hint { margin: -4px 0 12px; font-size: .88rem; color: var(--muted); }
.pro-account-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--cream);
  margin-bottom: 22px;
}
.pro-account-bar strong { display: block; font-size: 1.1rem; }
.pro-account-bar span { color: var(--muted); font-size: .93rem; }
.pro-account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pro-account-actions form { margin: 0; }
.pro-cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.pro-cat-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
}
.pro-cat-nav a:hover { border-color: var(--brown); }
.pro-cat-nav em {
  font-style: normal;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--brown);
  font-size: .8rem;
  text-align: center;
}
.pro-cat-nav-ico { width: 17px; height: 17px; color: var(--brown); }
.pro-cat-block { margin-bottom: 38px; scroll-margin-top: 140px; }
.pro-cat-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pro-cat-head h2 { margin: 0; font-size: 1.6rem; }
.pro-cat-head p { margin: 2px 0 0; color: var(--muted); }
.pro-empty {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--muted);
}
.pro-empty p { margin: 0; flex: 1 1 320px; }
.pro-doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pro-doc {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}
.pro-doc-ext {
  flex: none;
  width: 52px;
  padding: 8px 0;
  border-radius: 6px;
  background: var(--green);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
}
.pro-doc-body { flex: 1 1 auto; min-width: 0; }
.pro-doc-body p { margin: 2px 0; color: var(--muted); font-size: .94rem; }
.pro-doc-body small { color: var(--muted); }
@media (max-width: 899px) {
  .pro-teaser-inner, .pro-access-grid { grid-template-columns: 1fr; }
  .pro-doc { flex-wrap: wrap; }
}

/* ---------- Filtros do blog ---------- */
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.blog-filter a {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
}
.blog-filter a:hover { border-color: var(--brown); }
.blog-filter a.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Sobre: distâncias e fases ---------- */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.fact-card {
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  text-align: center;
}
.fact-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--brown);
}
.fact-card span { color: var(--muted); font-size: .92rem; }
.phase-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: phase; }
.phase-list li {
  position: relative;
  padding: 20px 22px 20px 74px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  counter-increment: phase;
}
.phase-list li::before {
  content: counter(phase);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.phase-list h3 { margin: 0 0 4px; font-size: 1.25rem; }
.phase-list p { margin: 0; color: var(--muted); }

/* ---------- Vitrine de vídeo: da floresta ao projecto ---------- */
.film-section { background: var(--green-deep); color: #fff; }
.film-section .section-header h2 { color: #fff; }
.film-section .section-header .eyebrow { color: var(--gold); }
.film-section .section-sub { color: rgba(255, 255, 255, .82); }
.film-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.film-card {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
}
.film-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1a12;
  overflow: hidden;
}
.film-card-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.film-card:hover .film-card-media video { transform: scale(1.04); }
.film-card-step {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
}
.film-card figcaption { padding: 14px 16px 16px; }
.film-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
}
.film-card figcaption span { display: block; margin-top: 4px; opacity: .82; font-size: .94rem; }
.film-note { margin: 18px 0 0; text-align: center; font-size: .85rem; opacity: .6; }
@media (max-width: 999px) { .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .film-grid { grid-template-columns: 1fr; } }

/* ---------- Correcções da auditoria de responsividade (30/09/2026) ---------- */
/* A caixa do checkbox escondido herdava a largura da página e criava scroll lateral. */
.service-pick label { position: relative; }
.service-pick input { width: 1px; height: 1px; left: 0; top: 0; }

/* Legendas e etiquetas abaixo de 12 px */
.cta-chip, .cta-chip span { font-size: .8rem; }
.video-card-badge, .blog-card-topic { font-size: .76rem; }

/* Pontos do slider: alvo de toque maior sem mudar o aspecto */
.hero-dots { padding: 9px 12px; gap: 12px; }
.hero-dot { width: 13px; height: 13px; }

/* Fundos decorativos ligeiramente maiores que a secção não devem gerar scroll */
.europe-block, .quote-cta, .traceability-section, .pro-teaser, .film-section { overflow: hidden; }

@media (max-width: 639px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-layout > * { min-width: 0; max-width: 100%; }
  .legal-rail { overflow: hidden; }
  .legal-nav { display: flex; overflow-x: auto; max-width: 100%; }
}

@media (max-width: 640px) {
  /* Barra inferior: nunca mais larga que o ecrã; etiquetas encurtam em vez de empurrar */
  .dock-nav { width: calc(100% - 16px) !important; max-width: calc(100vw - 16px); box-sizing: border-box; }
  .dock-item { flex: 1 1 0 !important; min-width: 0 !important; padding-left: 2px; padding-right: 2px; }
  .dock-item > span:last-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock-cta { min-width: 0 !important; }
  html, body { overflow-x: clip; }
}
/* ---------- Revisão visual (01/10/2026) ---------- */
/* O menu lateral fechado deixava a sombra visível como uma faixa cinzenta na margem direita. */
.site-nav { box-shadow: none; visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.site-nav.open { box-shadow: -16px 0 40px rgba(0, 0, 0, .28); visibility: visible; transition: transform .25s ease, visibility 0s; }
/* Página de produto: duas colunas no desktop, imagem por cima do texto no telemóvel */
.service-detail { display: grid; gap: 28px; align-items: start; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.service-detail--single { grid-template-columns: minmax(0, 1fr); }
.service-detail-img { border-radius: 10px; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.service-detail .prose h3 { margin-top: 1.4em; }
@media (max-width: 899px) {
  .service-detail { grid-template-columns: minmax(0, 1fr); }
  .service-detail-img { order: -1; }
}
/* Sobre: o cartão de Valores é muito mais alto que Missão e Visão — passa a ocupar a linha inteira */
.about-mvv-grid .about-card--values { grid-column: 1 / -1; }
.about-card--values .about-values { columns: 2; column-gap: 32px; margin: 0; padding-left: 1.1em; }
.about-card--values .about-values li { break-inside: avoid; margin-bottom: .7em; }
@media (max-width: 899px) {
  .about-card--values .about-values { columns: 1; }
  /* texto justificado abre "rios" em ecrãs estreitos */
  .about-story-copy, .about-story-copy p, .prose, .prose p, .legal-doc p { text-align: left; }
}.about-mvv-section .about-mvv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 699px) { .about-mvv-section .about-mvv-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Alinhamento com o manual de marca (02/10/2026) ---------- */
/* Títulos na letra mais próxima da "Golden" do logótipo: caixa mista, sem negrito artificial. */
h1, h2, h3, h4 { text-transform: none; font-weight: 400; letter-spacing: .005em; font-synthesis: none; }
.hero-video h1 { letter-spacing: 0; }
.eyebrow { font-weight: 400; }
.fact-card strong, .pillar-num, .film-card figcaption strong { font-weight: 400; }

/* Mosaico gráfico da identidade visual */
.brand-mosaic {
  height: 64px;
  background: var(--cream) var(--mosaic) left center / auto 100% repeat-x;
}
@media (max-width: 699px) { .brand-mosaic { height: 44px; } }

/* Tenor Sans só tem um peso: sem negrito sintético em botões, menus e etiquetas */
html { font-synthesis-weight: none; }

/* ---------- Revisão UX e layout (15/10/2026) ---------- */
/* Âncoras (#blog, #localizacao, skip-link…) não ficam escondidas sob o cabeçalho fixo */
html { scroll-padding-top: calc(var(--header-offset, 96px) + 12px); }

/* Selector de idioma: na barra superior (desktop) e na faixa de contactos (mobile).
   O orbe flutuante "Idioma" no canto inferior direito deixou de existir. */
.dock-lang { display: none !important; }
.topbar-lang { margin-left: 0; margin-right: 4px; }
.lang-flag .lang-flag-label { display: none; }
.lang-flag .lang-flag-short { display: inline; }
.mobile-lang { margin-left: 0; gap: 4px; }
.mobile-lang .lang-flag { padding: .2rem .4rem; font-size: .66rem; }
.mobile-lang .lang-flag .flag-svg { width: 18px; height: 12px; }

/* Faixa de contactos em mobile: já não está dentro do cabeçalho fixo (ver header.php); fica mais compacta */
@media (max-width: 1099px) {
  .header-mobile-tools-inner { padding-top: 6px; padding-bottom: 6px; gap: 6px 10px; }
  .mobile-topbar-left { gap: 6px 10px; }
  .mobile-socials { gap: 6px; }
  .mobile-socials .topbar-social { width: 28px; height: 28px; }
  .mobile-socials .topbar-social svg { width: 14px; height: 14px; }
}
@media (max-width: 759px) {
  .header-inner { min-height: 72px; padding-top: 6px; padding-bottom: 6px; }
  .brand-logo { height: 58px; }
}

/* Cookie banner compacto em mobile: ocupava ~260 px do ecrã */
@media (max-width: 759px) {
  .cookie-banner { padding: 12px 12px 10px; gap: 10px; border-radius: 14px; }
  .cookie-banner-text p { font-size: .8rem; line-height: 1.35; }
  .cookie-banner-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie-banner-actions .btn { width: 100%; padding: 10px 8px; font-size: .78rem; letter-spacing: .04em; justify-content: center; }
}

/* Dock inferior em mobile: a etiqueta "Orçamento" não cabia no botão de destaque */
@media (max-width: 560px) {
  .dock-cta { flex: 1.35 1 0 !important; padding: 7px 4px !important; }
  .dock-cta > span:last-child { font-size: 8.5px; letter-spacing: 0; }
}

/* Desktop (≥1100): o dock flutuante completo (Catálogo, Contactos, Blog, Galeria, Orçamento + orbe WhatsApp)
   mantém-se por decisão da agência (17/10/2026); a compensação de 120 px no body continua a evitar que tape o rodapé. */

/* ---------- Revisão visual por página (15/10/2026) ---------- */
/* Tablet (760–1099): o menu horizontal não cabia e sobrepunha-se ao logótipo — o menu lateral já cobre tudo */
@media (max-width: 1099px) {
  .header-nav { display: none !important; }
}
/* Tablet: o orbe de WhatsApp do dock ficava meio fora do ecrã (left:-112px) */
@media (min-width: 561px) and (max-width: 1099px) {
  .dock-wa { left: 12px; bottom: calc(100% + 12px); width: auto; }
}

/* Botões: texto centrado quando quebra em duas linhas; em mobile todos os botões de uma pilha têm a mesma largura */
.btn { text-align: center; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 12.5px; }
@media (max-width: 1099px) {
  .hero-actions { max-width: none !important; }
}
@media (max-width: 640px) {
  .hero-actions .btn,
  .section-actions .btn,
  .quote-cta-actions .btn,
  .footer-location-actions .btn,
  .cta-stack .btn { width: 100%; max-width: 440px; }
}

/* Eyebrows: laranja sobre branco tinha contraste 2,1:1 — castanho da marca em fundos claros, dourado em fundos escuros */
.eyebrow { color: var(--brown); }
.eyebrow.light,
.hero-video .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .hero-slide-content .eyebrow,
.pro-teaser .eyebrow, .traceability-section .eyebrow, .film-section .eyebrow, .europe-block .eyebrow,
.quote-cta .eyebrow, .section-dark .eyebrow, .site-footer .eyebrow, .video-section .eyebrow,
.hero-video-copy .eyebrow { color: var(--gold); }
.footer-location-head .eyebrow { color: var(--brown); }

/* Caixas de verificação (consentimento RGPD, newsletter): não herdam a largura total dos campos */
input[type="checkbox"], input[type="radio"] { width: auto !important; min-height: 0; height: auto; margin: 3px 0 0; flex: 0 0 auto; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; text-align: left; }

/* FAQ: indicador de abrir/fechar (o marcador nativo estava escondido sem substituto) */
.faq-item summary { position: relative; padding-right: 2.6rem; }
.faq-item summary::after {
  content: ""; position: absolute; right: 1.1rem; top: 1.25rem; width: 9px; height: 9px;
  border-right: 2px solid var(--brown); border-bottom: 2px solid var(--brown);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 1.45rem; }

/* Grelhas sem cartões órfãos no tablet */
@media (min-width: 700px) {
  .pillar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 999px) {
  .home-diff-grid { grid-template-columns: repeat(6, 1fr); }
  .home-diff-card:nth-child(1), .home-diff-card:nth-child(2), .home-diff-card:nth-child(3) { grid-column: span 2; }
  .home-diff-card:nth-child(4) { grid-column: 1 / span 3; }
  .home-diff-card:nth-child(5) { grid-column: 4 / span 3; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .species-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .species-card { grid-column: span 2; }
  .species-card:nth-child(4) { grid-column: 2 / span 2; }
}
@media (min-width: 1100px) {
  .species-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pro-benefit-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.home-diff-card h3 { max-width: none; }
.species-card h3 { font-size: clamp(1rem, 1.15vw, 1.25rem); }

/* Rodapé: 5 colunas em desktop (Empresa deixa de ficar empilhada em Produtos); botões sem quebra de linha */
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.35fr .8fr .95fr .8fr 1fr; gap: 32px; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
.footer-cta-stack .btn { font-size: .76rem; letter-spacing: .04em; padding: 0 12px; white-space: nowrap; }
.footer-cta.btn-primary, .footer-cta.btn-primary:hover { color: var(--green-deep) !important; }
.footer-cta.btn-primary svg { color: var(--green-deep); }

/* Localização: mesma largura das outras secções; mapa com a altura do cartão ao lado */
.footer-location-inner { max-width: none; }
.footer-location-map { display: flex; }
.footer-map-frame { flex: 1; display: flex; flex-direction: column; }
.footer-map-frame iframe { flex: 1; height: auto; min-height: 420px; }

/* Dock inferior em mobile: rótulos legíveis */
@media (max-width: 560px) {
  .dock-item { font-size: 10px; letter-spacing: 0; }
}
/* Galeria: dica de zoom discreta em mobile; artes de redes sociais (4:5) sem corte do texto */
@media (max-width: 699px) {
  .gallery-zoom-hint { opacity: .55 !important; transform: scale(.85); }
}
.gallery-card img[src*="/social/"], .gallery-item img[src*="/social/"], .gallery-strip img[src*="/social/"] {
  object-fit: contain; background: var(--cream);
}

/* Artigos: largura de leitura confortável */
.post-body, .post-content, .article-body { max-width: 72ch; }
.blog-post-footer-nav { padding-top: 0; }

/* Orçamento: escolha de produtos em 2 colunas no telemóvel (eram 9 cartões a toda a largura, ~2 100 px de scroll) */
.service-pick { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.service-pick img { aspect-ratio: 4 / 3; }
@media (max-width: 640px) {
  .service-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .service-pick span { font-size: .78rem; padding: 7px 8px; }
}

/* Título da secção de vídeos na home alinhado com as outras secções */
.video-section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

/* ---------- Acessibilidade: contraste e foco (15/10/2026) ---------- */
/* Texto branco sobre laranja/verde WhatsApp tinha contraste ~2:1 — passa a verde-escuro (≥ 8:1) */
.btn-primary { background: var(--gold); color: var(--green-deep); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--brown); color: #fff; }
.btn-primary svg, .btn-whatsapp svg { color: currentColor; }
.btn-whatsapp, .btn-whatsapp:hover, .wa-chat-send { color: var(--green-deep); }
.skip-link { background: var(--green-deep); color: #fff; }
.service-card .learn-more, .partner-card .learn-more, .partners-carousel-card .learn-more { color: var(--brown); }
.pill { color: var(--brown); }
/* Foco visível em campos e nos cartões de produto do orçamento */
.form-group input:focus-visible, .form-group textarea:focus-visible, .form-group select:focus-visible,
.pro-card input:focus-visible, .pro-card select:focus-visible, .consent-label input:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px; border-color: var(--green);
}
.service-pick label:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
/* Alvos tácteis */
.hero-dot { width: 16px; height: 16px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.hero-dots { gap: 14px; padding: 12px 14px; }
.wa-chat-x { width: 44px; height: 44px; }
.hero-dot.is-active { background: var(--gold); }
.form-hint { display: block; margin-top: 6px; color: var(--muted); font-size: .85rem; }
/* Vitrine de cenas: botão de pausa */
.film-toggle { margin: 16px auto 0; display: inline-flex; }

/* Orçamento: campos em 2 colunas a partir do tablet (a 768 px ficavam todos a toda a largura) */
@media (min-width: 640px) {
  .quote-meta-grid { grid-template-columns: 1fr 1fr; gap: 0 16px; }
}

/* Contactos: 6 cartões de canais em 2 filas de 3 (eram 4 + 2) */
@media (min-width: 900px) {
  .channel-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Catálogo: 9 produtos em 3 colunas (em 4 colunas sobrava um cartão órfão na última fila) */
@media (min-width: 1000px) {
  .page-catalog .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Ronda de desempenho e mobile (17/10/2026) ---------- */
/* Tablet: o cookie banner sobrepunha-se ao dock e ao orbe WhatsApp */
@media (min-width: 760px) and (max-width: 1099px) {
  .cookie-banner { left: auto; right: 16px; bottom: calc(118px + env(safe-area-inset-bottom, 0px)); }
}
/* Mobile: enquanto o banner de cookies está aberto, o orbe WhatsApp (que ele tapava) fica escondido */
@media (max-width: 759px) {
  body:has(#cookie-banner:not([hidden])) .dock-wa { visibility: hidden; }
}
/* Tablet 700–899: pilares em 2 colunas (a 3 colunas "Sustentabilidade" era cortado) */
@media (min-width: 700px) and (max-width: 899px) {
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pillar-card h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); overflow-wrap: anywhere; hyphens: auto; }
/* Dock em ecrãs pequenos: 5 itens (Blog fica no menu) e rótulos legíveis */
@media (max-width: 560px) {
  .dock-nav .dock-item[href$="blog.php"] { display: none; }
  .dock-item > span:last-child, .dock-cta > span:last-child { font-size: 10.5px; letter-spacing: 0; }
}
/* Faixa de contactos mobile: uma só fila (as redes sociais estão no rodapé) e alvos tácteis ≥ 32 px */
@media (max-width: 640px) {
  .header-mobile-tools .mobile-socials { display: none; }
  .mobile-topbar-left .topbar-item { min-height: 36px; padding: 6px 0; }
  .mobile-lang .lang-flag { min-height: 32px; padding: .3rem .55rem; }
}
.hero-nav { width: 44px; height: 44px; }
.hero-dot { width: 18px; height: 18px; }
/* Home no telemóvel tinha ~29 000 px: espécies, diferenciais, produtos, cenas e galeria em 2 colunas */
@media (max-width: 560px) {
  .species-grid, .home-diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .species-card { padding-bottom: 14px; }
  .species-card h3 { font-size: 1rem; }
  .species-card p, .home-diff-card p { font-size: .84rem; }
  .home-diff-card { padding: 18px 12px 16px; }
  .home-diff-card h3 { font-size: 1rem; min-height: 0; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .service-card-body { padding: 12px 12px 14px; }
  .service-card h3 { font-size: 1.02rem; }
  .service-card p { font-size: .84rem; }
  .service-card .learn-more { font-size: .78rem; }
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .film-card figcaption span { display: none; }
  .film-card figcaption strong { font-size: .9rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .gallery-item figcaption { padding: 8px 10px; }
  .gallery-item figcaption span { display: none; }
  .gallery-item figcaption strong { font-size: .86rem; }
}
/* Rodapé mobile: listas de links em 2 colunas e menos espaço vazio na localização */
@media (max-width: 759px) {
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .footer-location { padding-bottom: 48px; }
}
/* Ritmo vertical: os 120 px de compensação do dock já existem no body */
.video-section, .blog-section, .quote-cta { padding-bottom: 72px; }
/* Sobre: texto justificado em mobile abria "rios" (a regra anterior perdia em especificidade) */
@media (max-width: 899px) {
  .about-story-copy.prose p { text-align: left; hyphens: manual; }
}
/* Largura de leitura em desktop */
.blog-prose, .about-story-copy { max-width: 70ch; }
/* Produtos relacionados (3) em 3 colunas */
@media (min-width: 1000px) {
  .card-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* FAQ: cartão lateral fixo abaixo do cabeçalho real */
.faq-aside-card { top: calc(var(--header-offset, 108px) + 16px); }
/* Candidatura: botão "Continuar" a toda a largura no telemóvel, como os outros formulários */
@media (max-width: 640px) {
  .careers-nav .btn { width: 100%; }
}

/* ---------- Finalização (17/10/2026) ---------- */
/* Trilho de navegação nas páginas de produto e artigo */
.breadcrumb { font-size: .82rem; margin: 0 0 14px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; opacity: .6; }
.breadcrumb a { color: inherit; opacity: .85; text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { opacity: 1; text-decoration: underline; }
.breadcrumb [aria-current="page"] { opacity: .95; }
.page-hero .breadcrumb { color: rgba(255, 255, 255, .9); }
/* Cabeçalhos de secção: um só padrão (centrado) em vez de alternar sem critério */
.section-header { text-align: center; }
.section-header .section-sub { margin-left: auto; margin-right: auto; }
.section-header .rule { margin-left: auto; margin-right: auto; }
.section-header.left, .section-header--left { text-align: left; }
.section-header.left .section-sub, .section-header.left .rule, .section-header--left .section-sub, .section-header--left .rule { margin-left: 0; }

/* Mapa: o botão "Abrir no Google Maps" tapava os controlos e o logótipo do mapa — passa para baixo do mapa */
.footer-map-frame .footer-map-open { position: static; align-self: flex-end; margin: 10px 12px 12px; }
.footer-map-frame { background: #fff; }

/* ---------- Ajustes de 17/10/2026 (pedidos da agência) ---------- */
/* Vitrine em mobile/tablet: setas e pontos passam para uma faixa por baixo da arte — nada tapa a imagem */
@media (max-width: 899px) {
  .hero-slider--vitrine { padding-bottom: 54px; }
  .hero-slider--vitrine .hero-dots { bottom: 12px; background: rgba(25,52,37,.2); }
  .hero-slider--vitrine .hero-nav {
    top: auto; bottom: 9px; transform: none;
    width: 36px; height: 36px; opacity: 1;
    background: rgba(25,52,37,.6);
  }
  .hero-slider--vitrine .hero-nav:hover { transform: none; }
  .hero-slider--vitrine .hero-nav svg { width: 20px; height: 20px; }
  .hero-slider--vitrine .hero-nav--prev { left: 12px; }
  .hero-slider--vitrine .hero-nav--next { right: 12px; }
  .hero-slider--vitrine .hero-progress { bottom: 54px; }
}
/* Dock mais fino em tablet e desktop, para tapar menos o vídeo e a vitrine */
@media (min-width: 760px) {
  .dock-nav {
    width: auto; max-width: calc(100% - 48px);
    padding: 5px 8px; gap: 2px; bottom: 14px;
    background: rgba(255,255,255,.92);
  }
  .dock-item { font-size: 10px; padding: 6px 11px; letter-spacing: .05em; }
  .dock-item svg, .dock-nav-svg { width: 20px; height: 20px; }
  .dock-cta { min-width: 0; padding: 6px 14px; }
  .dock-wa-orb { width: 52px; height: 52px; }
}
@media (min-width: 1100px) {
  .dock-wa { left: -108px; bottom: 0; width: 92px; }
}/* Página de vídeos em telemóvel: títulos dos cartões mais contidos e vídeos da marca em 2 colunas (9:16) */
@media (max-width: 719px) {
  .video-card-meta { padding: 12px 12px 14px; }
  .video-card-meta h3 { font-size: 1rem; line-height: 1.3; }
  .video-card-meta p { font-size: .84rem; margin-top: 6px; }
  .video-gallery-grid--local { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .video-card-player--local { aspect-ratio: 9 / 16; }
}/* Logótipo maior em telemóvel e tablet (pedido da agência, 17/10/2026) */
@media (max-width: 759px) {
  .header-inner { min-height: 84px; }
  .brand-logo { height: 70px; max-width: min(240px, 60vw); }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .header-inner { min-height: 104px; }
  .brand-logo { height: 92px; max-width: min(300px, 40vw); }
}
/* Ícone "voltar" nos botões: seta invertida que recua no hover */
.btn-with-ico .btn-ico-back { transform: scaleX(-1); }
.btn-with-ico:hover .btn-ico-back { transform: scaleX(-1) translateX(3px); }/* Banner de cookies em telemóvel: os ícones dos botões faziam o texto quebrar em 2 linhas */
@media (max-width: 759px) {
  .cookie-banner-actions .btn svg { display: none; }
  .cookie-banner-actions .btn { gap: 0; }
}/* Botões com ícone: espaço uniforme ícone→texto e ícones proporcionais nos botões pequenos */
.btn-with-ico .btn-inline-ico { margin-right: 0; }
.btn-sm.btn-with-ico { gap: 8px; padding-inline: 16px; }
.btn-sm.btn-with-ico svg { width: 16px; height: 16px; }
.btn-sm.btn-with-ico .btn-ico-arrow { width: 14px; height: 14px; }
/* ===== Grelhas sempre completas (17/10/2026) =====
   Regras genéricas por número de colunas, com :has():
   · 2 colunas e total ímpar → o último cartão fica centrado com a largura de uma coluna;
   · 3 colunas: resto 1 → os últimos 4 cartões ficam em 2+2; resto 2 → os últimos 2 ficam mais largos
     (a grelha passa a 6 colunas, cartões a span 2 e os últimos a span 3). */

/* --- 2 colunas --- */
@media (min-width: 700px) and (max-width: 899px) {
  .pillar-grid { --gg: 22px; }
  .pillar-grid > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--gg, 20px) / 2); max-width: 100%;
  }
}
@media (min-width: 800px) and (max-width: 1099px) {
  .solution-grid > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); max-width: 100%;
  }
}
@media (min-width: 700px) and (max-width: 999px) {
  .why-grid > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); max-width: 100%;
  }
}
@media (max-width: 999px) {
  .card-grid:not(.card-grid--related) > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); max-width: 100%;
  }
}
@media (max-width: 560px) {
  .card-grid:not(.card-grid--related) > :last-child:nth-child(odd):not(:only-child) { width: calc(50% - 5px); }
  .species-grid > :last-child:nth-child(odd):not(:only-child),
  .home-diff-grid > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); max-width: 100%;
  }
}
@media (min-width: 700px) and (max-width: 1019px) {
  .blog-grid > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); max-width: 100%;
  }
}
@media (max-width: 719px) {
  .video-gallery-grid:not(.video-gallery-grid--local) > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); max-width: 100%;
  }
}
@media (max-width: 1099px) {
  .video-gallery-grid--local > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); max-width: 100%;
  }
}
@media (min-width: 560px) and (max-width: 899px) {
  .channel-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-card-grid > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); max-width: 100%;
  }
}
@media (min-width: 600px) and (max-width: 999px) {
  .film-grid > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); max-width: 100%;
  }
}

/* --- 3 colunas --- */
@media (min-width: 900px) {
  .pillar-grid:has(> :nth-child(3n+1):last-child:not(:only-child)),
  .pillar-grid:has(> :nth-child(3n+2):last-child),
  .channel-card-grid:has(> :nth-child(3n+1):last-child:not(:only-child)),
  .channel-card-grid:has(> :nth-child(3n+2):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pillar-grid:has(> :nth-child(3n+1):last-child:not(:only-child)) > *,
  .pillar-grid:has(> :nth-child(3n+2):last-child) > *,
  .channel-card-grid:has(> :nth-child(3n+1):last-child:not(:only-child)) > *,
  .channel-card-grid:has(> :nth-child(3n+2):last-child) > * { grid-column: span 2; }
  .pillar-grid:has(> :nth-child(3n+1):last-child:not(:only-child)) > :nth-last-child(-n+4),
  .pillar-grid:has(> :nth-child(3n+2):last-child) > :nth-last-child(-n+2),
  .channel-card-grid:has(> :nth-child(3n+1):last-child:not(:only-child)) > :nth-last-child(-n+4),
  .channel-card-grid:has(> :nth-child(3n+2):last-child) > :nth-last-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 1000px) {
  .card-grid:not(.card-grid--related) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid:not(.card-grid--related):has(> :nth-child(3n+1):last-child:not(:only-child)),
  .card-grid:not(.card-grid--related):has(> :nth-child(3n+2):last-child),
  .why-grid:has(> :nth-child(3n+1):last-child:not(:only-child)),
  .why-grid:has(> :nth-child(3n+2):last-child),
  .film-grid:has(> :nth-child(3n+1):last-child:not(:only-child)),
  .film-grid:has(> :nth-child(3n+2):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card-grid:not(.card-grid--related):has(> :nth-child(3n+1):last-child:not(:only-child)) > *,
  .card-grid:not(.card-grid--related):has(> :nth-child(3n+2):last-child) > *,
  .why-grid:has(> :nth-child(3n+1):last-child:not(:only-child)) > *,
  .why-grid:has(> :nth-child(3n+2):last-child) > *,
  .film-grid:has(> :nth-child(3n+1):last-child:not(:only-child)) > *,
  .film-grid:has(> :nth-child(3n+2):last-child) > * { grid-column: span 2; }
  .card-grid:not(.card-grid--related):has(> :nth-child(3n+1):last-child:not(:only-child)) > :nth-last-child(-n+4),
  .card-grid:not(.card-grid--related):has(> :nth-child(3n+2):last-child) > :nth-last-child(-n+2),
  .why-grid:has(> :nth-child(3n+1):last-child:not(:only-child)) > :nth-last-child(-n+4),
  .why-grid:has(> :nth-child(3n+2):last-child) > :nth-last-child(-n+2),
  .film-grid:has(> :nth-child(3n+1):last-child:not(:only-child)) > :nth-last-child(-n+4),
  .film-grid:has(> :nth-child(3n+2):last-child) > :nth-last-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 1020px) {
  .blog-grid:has(> :nth-child(3n+1):last-child:not(:only-child)),
  .blog-grid:has(> :nth-child(3n+2):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .blog-grid:has(> :nth-child(3n+1):last-child:not(:only-child)) > *,
  .blog-grid:has(> :nth-child(3n+2):last-child) > * { grid-column: span 2; }
  .blog-grid:has(> :nth-child(3n+1):last-child:not(:only-child)) > :nth-last-child(-n+4),
  .blog-grid:has(> :nth-child(3n+2):last-child) > :nth-last-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 1100px) {
  .solution-grid:has(> :nth-child(3n+1):last-child:not(:only-child)),
  .solution-grid:has(> :nth-child(3n+2):last-child),
  .video-gallery-grid--local:has(> :nth-child(3n+1):last-child:not(:only-child)),
  .video-gallery-grid--local:has(> :nth-child(3n+2):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .solution-grid:has(> :nth-child(3n+1):last-child:not(:only-child)) > *,
  .solution-grid:has(> :nth-child(3n+2):last-child) > *,
  .video-gallery-grid--local:has(> :nth-child(3n+1):last-child:not(:only-child)) > *,
  .video-gallery-grid--local:has(> :nth-child(3n+2):last-child) > * { grid-column: span 2; }
  .solution-grid:has(> :nth-child(3n+1):last-child:not(:only-child)) > :nth-last-child(-n+4),
  .solution-grid:has(> :nth-child(3n+2):last-child) > :nth-last-child(-n+2),
  .video-gallery-grid--local:has(> :nth-child(3n+1):last-child:not(:only-child)) > :nth-last-child(-n+4),
  .video-gallery-grid--local:has(> :nth-child(3n+2):last-child) > :nth-last-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 720px) {
  .video-gallery-grid:not(.video-gallery-grid--local):has(> :nth-child(3n+1):last-child:not(:only-child)),
  .video-gallery-grid:not(.video-gallery-grid--local):has(> :nth-child(3n+2):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .video-gallery-grid:not(.video-gallery-grid--local):has(> :nth-child(3n+1):last-child:not(:only-child)) > *,
  .video-gallery-grid:not(.video-gallery-grid--local):has(> :nth-child(3n+2):last-child) > * { grid-column: span 2; }
  .video-gallery-grid:not(.video-gallery-grid--local):has(> :nth-child(3n+1):last-child:not(:only-child)) > :nth-last-child(-n+4),
  .video-gallery-grid:not(.video-gallery-grid--local):has(> :nth-child(3n+2):last-child) > :nth-last-child(-n+2) { grid-column: span 3; }
}
/* --- casos específicos apontados pelo inventário das grelhas --- */
/* Pilares e clientes (3 cartões): nunca em 2 colunas — 1 coluna até 699 px */
@media (max-width: 699px) {
  .pillar-grid, .client-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Espécies (5): a grelha de 6 faixas (3+2 centrado) passa a valer desde 561 px */
@media (min-width: 561px) and (max-width: 699px) {
  .species-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .species-card { grid-column: span 2; }
  .species-card:nth-child(4) { grid-column: 2 / span 2; }
}
/* Produtos relacionados (3): 3 colunas desde 700 px; abaixo, último ímpar centrado */
@media (min-width: 700px) and (max-width: 999px) {
  .card-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .card-grid--related > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); max-width: 100%;
  }
}
/* Orçamento — escolha de produtos (9) em 2 colunas: último centrado */
@media (max-width: 693px) {
  .service-pick > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); max-width: 100%;
  }
}
/* Área Profissional — categorias (5): 2 colunas + último centrado até 699; 3+2 centrado entre 700 e 1099 */
@media (min-width: 482px) and (max-width: 699px) {
  .pro-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-benefit-grid > :last-child:nth-child(odd):not(:only-child) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); max-width: 100%;
  }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .pro-benefit-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pro-benefit-card { grid-column: span 2; }
  .pro-benefit-card:nth-child(4) { grid-column: 2 / span 2; }
}
/* Sobre — distâncias (4): 2 ou 4 colunas, nunca 3 */
.fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .fact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Galeria (8 na home, 36 na página): colunas explícitas 2 / 4 — sem a faixa de 3 colunas (3+3+2) */
@media (max-width: 731px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 732px) and (max-width: 965px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
/* Herói em vídeo — 4 pastilhas em 2+2 no telemóvel */
@media (max-width: 640px) {
  .hero-badges li { flex: 1 1 calc(50% - 10px); justify-content: center; }
}
/* Rodapé em telemóvel — listas em 2 colunas: um link ímpar no fim ocupa a fila */
@media (max-width: 759px) {
  .footer-links li:last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; }
}
/* Banner de cookies (18/10/2026): enquanto está aberto, o dock e o orbe ficam escondidos até 1099 px e o banner
   desce ao fundo do ecrã — na primeira visita tapa muito menos o herói em vídeo. */
@media (max-width: 1099px) {
  body:has(#cookie-banner:not([hidden])) .dock-nav { visibility: hidden; }
  body:has(#cookie-banner:not([hidden])) .cookie-banner { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
/* Tablet (600–1099): o banner passa a barra horizontal a toda a largura — texto numa linha e botões ao lado */
@media (min-width: 600px) and (max-width: 1099px) {
  .cookie-banner { left: 16px; right: 16px; max-width: none; flex-wrap: nowrap; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 14px; }
  .cookie-banner-text { flex: 1 1 auto; }
  .cookie-banner-text p { font-size: .84rem; line-height: 1.35; }
  .cookie-banner-actions { flex: 0 0 auto; display: flex; flex-wrap: nowrap; gap: 8px; }
  .cookie-banner-actions .btn { white-space: nowrap; }
}