/* ============================================================
   SECÇÕES - uma regra por bloco, pela ordem do documento
   ============================================================ */

/* ------------------------------------------------------------
   01 - HERO
   Fundo em <img> real (nunca url() em custom property),
   com camada de overlay irmã por cima.
   ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 945px;
  padding: 184px var(--gutter) 60px;
  overflow: hidden;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }

/* Os slides do carrossel ficam empilhados no mesmo sítio e trocam só
   por opacidade — nada se mexe, por isso não há salto de layout nem
   segundo repaint da imagem. O primeiro traz .is-active do HTML, de
   modo que sem JS a secção continua com fundo. O zoom lento do scroll
   é escrito pelo js/gallery.js em todos os slides ao mesmo tempo:
   se só o de baixo o recebesse, a imagem saltava a meio do fade. */
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
  opacity: 0;
  transition: opacity 1200ms var(--e-out);
}
.hero__media img.is-active { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(42, 37, 32, .80) 0%, rgba(42, 37, 32, .58) 52%, rgba(42, 37, 32, .84) 100%);
}

.hero__container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 128px;
  color: var(--c-white);
}

.hero__head { width: 100%; }

.hero__title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 630px;
}

.hero__title { color: var(--c-white); }

.hero__cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero__video {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 238px;
  padding: 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-white-20);
  background: var(--c-white-10);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  overflow: hidden;
}
.hero__video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--c-white-10);
}
.hero__video-fallback,
.hero__video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video-fallback { z-index: 0; }
.hero__video-el { z-index: 1; background: transparent; }
.hero__video-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 4px 4px;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 430px;
  text-wrap: pretty;
}

/* ------------------------------------------------------------
   02 - SOBRE + estatísticas
   ------------------------------------------------------------ */
.about {
  padding: var(--section-y) var(--gutter);
  background: var(--c-sage);
  overflow: hidden;
}

.about__container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.about__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}
.about__title { flex: 1 1 0; max-width: 900px; }

.about__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* A legenda mais longa (a dos expositores) esticava a última coluna e
   desequilibrava a fila toda. Com um limite de largura quebra em duas
   linhas e as quatro colunas voltam a ter proporções parecidas. */
.stat p { max-width: 30ch; }

.stat__divider {
  width: 3px;
  height: 86px;
  flex: 0 0 auto;
  background: var(--c-deep);
  transform-origin: top;
}

/* ------------------------------------------------------------
   03 - SOLUÇÕES
   ------------------------------------------------------------ */
.solutions {
  padding: var(--section-y) var(--gutter);
  background: var(--c-off);
  overflow: hidden;
}

.solutions__container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
  width: 100%;
}

.s-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  padding: 24px;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}
.s-card__media { position: absolute; inset: 0; z-index: -2; }
.s-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--e-out);
}
.s-card:hover .s-card__media img { transform: scale(1.06); }

/* O título e o parágrafo ocupam o terço de cima do card. Com uma queda
   direta de .82 para transparente aos 62%, o parágrafo caía já na zona
   clara e perdia-se sobre fotos luminosas (a parede branca do Dia das
   Escolas, o ecrã de projeção do seminário). O patamar aos 32% mantém
   a faixa do texto escura e só depois abre para a fotografia. */
.s-card__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(42, 37, 32, .88) 0%, rgba(42, 37, 32, .62) 32%,
                                       rgba(42, 37, 32, 0) 72%, rgba(42, 37, 32, .18) 100%);
}

.s-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 120px;
  height: 100%;
  color: var(--c-white);
}
.s-card__text { display: flex; flex-direction: column; gap: 12px; max-width: 34ch; }
.s-card__tags { display: flex; flex-wrap: wrap; gap: 10px 13px; }

/* ------------------------------------------------------------
   04 - SERVIÇOS (pilha sticky)
   Altura total = nº painéis × 100vh; um wrapper sticky
   contém todos os painéis sobrepostos.
   ------------------------------------------------------------ */
.services {
  position: relative;
  background: var(--c-sage);
}

.services__sticky {
  position: sticky;
  top: 64px;
  z-index: 1;
  height: calc(100vh - 128px);
  min-height: 560px;
  width: 100%;
}

.services__stack {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.sv-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px var(--gutter);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity .7s var(--e-out),
              transform .9s var(--e-out),
              visibility 0s linear .7s;
}
.sv-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity .7s var(--e-out),
              transform .9s var(--e-out),
              visibility 0s linear 0s;
}

.sv-panel__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.sv-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.sv-panel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 37, 32, .76) 0%, rgba(42, 37, 32, .52) 100%);
}

.sv-panel__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  height: 100%;
}

.sv-panel__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.sv-panel__body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.sv-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 655px;
  height: 100%;
  max-height: 640px;
  padding: 12px 12px 20px;
  border-radius: var(--r-lg);
  background: var(--c-sage);
  overflow: hidden;
}
.sv-card__media {
  width: 100%;
  /* absorve o espaço que sobra depois do texto: assim o texto nunca
     fica de fora, aconteça o que acontecer à altura do painel */
  flex: 1 1 auto;
  min-height: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.sv-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sv-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline: 12px;
  text-align: center;
}
/* descritivos dos painéis numa só linha: a caixa alargou e o corpo
   desceu de 19,2px para 18px */
.sv-card__text p { font-size: 1rem; }

.sv-pager {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  color: var(--c-white);
}
.sv-pager__count {
  display: flex;
  align-items: center;
  font-size: var(--fs-h6);
}
.sv-pager__sep { opacity: .5; margin-inline: 2px; }
.sv-pager__total { opacity: .5; }
.sv-pager__hint {
  font-size: var(--fs-h6);
  white-space: nowrap;
  animation: pulse-hint 2.4s var(--e-inout) infinite;
}

.services__trigger { height: 100vh; width: 100%; }

/* ------------------------------------------------------------
   05 - DESTAQUES
   ------------------------------------------------------------ */
.features {
  padding: var(--section-y) var(--gutter);
  background: var(--c-sage);
  overflow: hidden;
}

.features__container {
  display: flex;
  align-items: stretch;
  gap: 48px;
}

/* coluna esquerda: texto + cartões */
.features__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 60px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 599px;
}

/* coluna direita: imagem que acompanha a altura da coluna esquerda.
   A <img> é absoluta para não ter altura intrínseca - de outro modo
   seria ela a ditar a altura da secção em vez de a acompanhar. */
.features__media {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  align-self: stretch;
  min-height: 420px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.features__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1 1 0;
  min-width: 0;
}

/* no original os dois cartões ficam lado a lado sob o texto */
.features__cards {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-card);
  width: 100%;
}

.f-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 0;
  min-width: 0;
}
.f-card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 30px;
  background: var(--c-accent);
  color: var(--c-deep);
  transition: transform var(--t-base) var(--e-out);
}
.f-card:hover .f-card__icon { transform: rotate(-8deg) scale(1.06); }
.f-card__text { display: flex; flex-direction: column; gap: 8px; }

/* ------------------------------------------------------------
   06 - COMO FUNCIONA
   ------------------------------------------------------------ */
.how {
  padding: var(--section-y) var(--gutter);
  background: var(--c-off);
  overflow: hidden;
}

.how__container {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
  width: 100%;
}

/* cartão compacto: o número encosta ao painel em vez de ficarem
   afastados pelas pontas de um cartão alto */
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--c-sage);
  overflow: hidden;
  isolation: isolate;
}
.step__media { position: absolute; inset: 0; z-index: -1; }
.step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  transition: transform .8s var(--e-out);
}
.step:hover .step__media img { transform: scale(1.05); }

.step__num { color: var(--c-deep); }

.step__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;          /* encosta ao fundo quando o cartão é esticado pela grelha */
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--c-white);
}

.how__cta {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ------------------------------------------------------------
   07 - GALERIA (4 colunas com parallax)
   ------------------------------------------------------------ */
.gallery {
  padding: var(--section-y) 0 60px;
  background: var(--c-sage);
  overflow: hidden;
}

.gallery__head {
  padding-inline: var(--gutter);
  margin-bottom: 52px;
}

.gallery__strip {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 993px;
  overflow: hidden;
}

.gallery__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 30%;
  height: 100%;
  will-change: transform;
}

.g-item {
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--e-out), filter var(--t-base) var(--e-out);
}
.g-item:hover img { transform: scale(1.06); }

.gallery__col:not(.gallery__col--tall) .g-item:nth-child(1) { aspect-ratio: 1.125 / 1; }
.gallery__col:not(.gallery__col--tall) .g-item:nth-child(2) { aspect-ratio: .835 / 1; }
.g-item--full { height: 100%; }

/* ------------------------------------------------------------
   08 - EQUIPA
   ------------------------------------------------------------ */
.team {
  padding: 60px var(--gutter) var(--section-y);
  background: var(--c-sage);
  overflow: hidden;
}

.team__container {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
  width: 100%;
}

.t-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: .797 / 1;
  padding: 14px;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}
.t-card__media { position: absolute; inset: 0; z-index: -1; }
.t-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--e-out);
}
.t-card:hover .t-card__media img { transform: scale(1.06); }

.t-card__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 20px;
  border-radius: var(--r-xs);
  background: var(--c-white);
  transform: translate3d(0, 0, 0);
  transition: transform var(--t-base) var(--e-out);
}
.t-card:hover .t-card__label { transform: translate3d(0, -6px, 0); }

/* ------------------------------------------------------------
   09 - TESTEMUNHOS
   ------------------------------------------------------------ */
.testimonials {
  padding: var(--section-y) var(--gutter) 160px;
  background: var(--c-off);
}

.testimonials__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}

/* ------------------------------------------------------------
   10 - FAQ
   ------------------------------------------------------------ */
.faq {
  padding: var(--section-y) var(--gutter);
  background: var(--c-white);
  overflow: hidden;
}

.faq__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}

.faq__content {
  display: flex;
  align-items: stretch;
  gap: var(--gap-card);
  width: 100%;
}

.faq__media {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 648px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   PÁGINA LEGAL (política de privacidade e cookies)
   ------------------------------------------------------------ */
.legal {
  padding: 200px var(--gutter) var(--section-y);
  background: var(--c-off);
}

.legal__container {
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 820px;   /* medida de leitura confortável */
}

.legal__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.legal__index {
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: var(--c-sage);
}
.legal__index ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  counter-reset: none;
}
.legal__index a { font-size: var(--fs-16); }

.legal__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 140px;
}
.legal__section p { line-height: 1.7; }
.legal__section strong { font-weight: 600; }
.legal__section code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--c-sage);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
}

.legal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
  list-style: disc;
}
.legal__list li { line-height: 1.7; }

/* a tabela rola dentro do próprio contentor, nunca na página */
.legal__table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r-sm);
}
.legal__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--fs-14);
  background: var(--c-white);
}
.legal__table th,
.legal__table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-hairline);
}
.legal__table th {
  font-weight: 600;
  background: var(--c-sage);
}
.legal__table tr:last-child td { border-bottom: 0; }

.legal__back { margin-top: 8px; }

@media (max-width: 767.98px) {
  .legal { padding-top: 130px; }
  .legal__container { gap: 34px; }
  .legal__index { padding: 22px 20px; }
}

/* ------------------------------------------------------------
   COMO CHEGAR (vias de acesso + mapa)
   ------------------------------------------------------------ */
.getting {
  padding: var(--section-y) var(--gutter);
  background: var(--c-sage);
  overflow: hidden;
}

.getting__container {
  display: flex;
  flex-direction: column;
  gap: 52px;
}
.getting__container .section-head p { max-width: 680px; }

.getting__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
  width: 100%;
}

.way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--c-white);
}
.way__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  margin-bottom: 4px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-deep);
  transition: transform var(--t-base) var(--e-out);
}
.way:hover .way__icon { transform: rotate(-8deg) scale(1.06); }

@media (max-width: 1199.98px) {
  .getting__grid { grid-template-columns: repeat(2, 1fr); }
  .getting__grid > :last-child { grid-column: span 2; }
}

@media (max-width: 767.98px) {
  .getting__container { gap: 36px; }
  .getting__grid { grid-template-columns: 1fr; }
  .getting__grid > :last-child { grid-column: auto; }
  .way { padding: 24px; }
}

/* ------------------------------------------------------------
   ONDE FICAR E ONDE COMER (separadores + lista filtrável)

   São quase 90 estabelecimentos. Postos em página aberta davam uma
   secção interminável, por isso ficam dentro de uma caixa com scroll
   próprio: a secção ocupa sempre a mesma altura, independentemente
   de quantas entradas as folhas de cálculo trouxerem.
   ------------------------------------------------------------ */
.locais {
  padding: var(--section-y) var(--gutter);
  background: var(--c-off);
  overflow: hidden;
}

.locais__container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.locais__painel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-deep-10);
  background: var(--c-white);
}

/* --- separadores --- */
.locais__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.locais__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--c-deep-10);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-deep);
  font-size: var(--fs-16);
  cursor: pointer;
  transition: background var(--t-fast) var(--e-out),
              color var(--t-fast) var(--e-out),
              border-color var(--t-fast) var(--e-out);
}
.locais__tab:hover { background: var(--c-sage); }
.locais__tab.is-active {
  background: var(--c-deep);
  border-color: var(--c-deep);
  color: var(--c-white);
}

.locais__conta {
  font-size: var(--fs-14);
  opacity: .6;
  font-variant-numeric: tabular-nums;
}

/* --- caixa de pesquisa --- */
.locais__busca {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.locais__input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 12px 18px;
  border: 1px solid var(--c-deep-10);
  border-radius: var(--r-pill);
  background: var(--c-off);
  color: var(--c-deep);
  font: inherit;
  font-size: var(--fs-16);
}
.locais__input::placeholder { color: var(--c-deep); opacity: .45; }
.locais__input:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.locais__resultado { flex: 0 0 auto; font-variant-numeric: tabular-nums; }

/* --- lista --- */
.locais__caixa {
  max-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--c-deep-10);
}

/* O atributo hidden não chega: qualquer display declarado a seguir
   ganha-lhe. É a classe que manda, e o hidden fica só para leitores
   de ecrã e para o caso de o JS não correr. */
.locais__lista { display: none; }
.locais__lista.is-active { display: block; }

.local {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 24px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--c-deep-10);
}
.local:last-child { border-bottom: 0; }
.local[hidden] { display: none; }

.local__nome {
  grid-column: 1;
  font-size: var(--fs-16);
}

.local__meta {
  grid-column: 1;
  font-size: var(--fs-14);
  line-height: 1.5;
  opacity: .65;
}

/* Os contactos alinham à direita e ocupam as duas linhas da grelha,
   para ficarem à altura do nome em vez de caírem para baixo. */
.local__contactos {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  text-align: right;
  font-size: var(--fs-14);
  line-height: 1.6;
}

.local__link {
  color: var(--c-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--c-deep-10);
  transition: border-color var(--t-fast) var(--e-out);
}
.local__link:hover { border-bottom-color: var(--c-deep); }

.local__sep { padding: 0 8px; opacity: .35; }

.locais__vazio {
  padding: 28px 4px;
  font-size: var(--fs-16);
  opacity: .65;
}

.locais__fonte { max-width: 72ch; }

@media (max-width: 767.98px) {
  .locais__container { gap: 36px; }
  .locais__painel { padding: 20px; }

  /* Três separadores não cabem lado a lado num telemóvel; passam a
     uma fila que se arrasta na horizontal, contida aqui dentro e
     nunca no documento. */
  .locais__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin: 0 -20px;
    padding: 0 20px;
  }
  .locais__tabs::-webkit-scrollbar { display: none; }
  .locais__tab { flex: 0 0 auto; padding: 9px 14px; font-size: var(--fs-14); }

  .locais__caixa { max-height: 460px; }

  /* Sem espaço para duas colunas: nome, detalhes e contactos
     empilham e os contactos voltam a alinhar à esquerda. */
  .local {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 2px;
  }
  .local__contactos {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    text-align: left;
  }
  .local__sep { padding: 0 6px; }
}

/* ------------------------------------------------------------
   O RECINTO (fotografia + morada + mapa)

   Fecha a secção Como Chegar. A fotografia é conteúdo, não
   decoração — mostra o pavilhão e o espaço à volta — por isso
   leva alt a sério e não fica aria-hidden.
   ------------------------------------------------------------ */
.venue {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--c-off);
}

.venue__media {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-sage);
}
.venue__media img {
  display: block;
  width: 100%;
  height: auto;
}

.venue__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.venue__text p:last-of-type { max-width: 46ch; }

@media (max-width: 1199.98px) {
  .venue { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 767.98px) {
  .venue { padding: 16px; gap: 20px; }
}
