/* ============================================================
   Motards Douro — folha de estilos
   Preto, amarelo e papel. Editorial, grande tipografia.
   ============================================================ */

:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --ink-3: #1e1e21;
  --paper: #f5f2ea;
  --paper-2: #ebe6da;
  --card: #fffdf8;
  --yellow: #ffd400;
  --yellow-2: #ffe45c;
  --yellow-deep: #d9b400;
  --text: #141416;
  --muted: #5d5d61;
  --on-dark: #f4f1ea;
  --on-dark-muted: #a7a7ab;
  --line: #d9d3c5;
  --line-dark: rgba(255, 255, 255, 0.14);
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1220px;
  --pad: clamp(1.15rem, 4vw, 2.6rem);
  --ease: cubic-bezier(0.22, 0.7, 0.16, 1);
  --shadow: 0 30px 60px -30px rgba(11, 11, 12, 0.35);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
}

p {
  margin: 0 0 1.05em;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.breadcrumb,
.form__note,
figcaption,
.site-foot__grid p,
.site-foot__grid li,
.site-foot__bottom,
.hero__meta,
.filters,
.eyebrow,
.btn,
.feature p,
.pillar p,
.product__note,
.ledger__head,
.ledger__row,
.stats__item span {
  text-align: left;
  hyphens: none;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 96px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  z-index: 200;
  font-weight: 600;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.site-head.is-stuck {
  border-color: var(--line);
  box-shadow: 0 18px 40px -34px rgba(11, 11, 12, 0.6);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}

.brand img {
  width: 46px;
  height: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand__text small {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-block;
  padding: 0.5rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 2px;
  position: relative;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  text-shadow: 0 0 0.55px currentColor, 0 0 0.55px currentColor;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* botão do cabeçalho: mais pequeno do que o .btn padrão (que vem depois no ficheiro) */
.site-head .head-cta {
  padding: 0.75rem 0.85rem;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-align: center;
  border-width: 1px;
}

/* botão que só aparece dentro do menu deslizante */
.nav__cta-item {
  display: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn--yellow:hover {
  background: var(--yellow-2);
  transform: translateY(-2px);
}

.btn--ink {
  background: var(--ink);
  color: var(--on-dark);
}

.btn--ink:hover {
  background: var(--ink-3);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--on-dark);
}

.btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}

/* sem hover em ecrãs táteis: o estado ficava preso depois do toque */
@media (hover: hover) {
  .btn--outline:hover {
    background: var(--ink);
    color: var(--yellow);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 92%;
  filter: saturate(0.92) contrast(1.05);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(11, 11, 12, 0.72) 0%,
      rgba(11, 11, 12, 0.28) 38%,
      rgba(11, 11, 12, 0.86) 100%
    ),
    linear-gradient(90deg, rgba(11, 11, 12, 0.7) 0%, rgba(11, 11, 12, 0) 65%);
}

.hero__inner {
  position: relative;
  width: 100%;
  padding-block: clamp(3.5rem, 9vw, 6rem) clamp(2rem, 4vw, 3rem);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.4rem;
}

.hero__kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--yellow);
}

.hero h1 {
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  margin-bottom: 1.2rem;
  max-width: 14ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero__lede {
  max-width: 52ch;
  color: #e7e3d8;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  margin-bottom: 1.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__meta {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.hero__meta div b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
  color: var(--yellow);
}

.hero__meta div span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-top: 0.45rem;
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(3.6rem, 7vw, 6.4rem);
}

.section--tight-bottom {
  padding-block-end: clamp(2.6rem, 5vw, 4rem);
}

.section--paper2 {
  background: var(--paper-2);
}

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--yellow);
}

.section--dark .eyebrow {
  color: var(--on-dark-muted);
}

.h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
  max-width: 20ch;
}

.h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 0.6rem;
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1.4rem;
}

.section--dark .lede {
  color: var(--on-dark-muted);
}

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.8rem, 3vw, 2.8rem);
}

.head-row .h2 {
  margin-bottom: 0.4rem;
}

/* ---------- grid ---------- */

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- pillars ---------- */

.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.pillar:hover {
  transform: translateY(-6px);
  border-top-color: var(--yellow);
  box-shadow: var(--shadow);
}

.pillar__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--yellow-deep);
  display: block;
  margin-bottom: 2.6rem;
}

.pillar h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-bottom: 0.7rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.stats__item {
  background: var(--ink);
  padding: clamp(1.3rem, 2.4vw, 2rem);
}

.stats__item b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--yellow);
}

.stats__item b small {
  font-size: 0.5em;
  letter-spacing: 0.02em;
}

.stats__item span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* ---------- ledger ---------- */

.ledger {
  border-top: 1px solid var(--line-dark);
}

.ledger__head,
.ledger__row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 1rem;
  align-items: baseline;
}

.ledger__head {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.ledger__head span + span {
  text-align: right;
}

.ledger__row {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
  font-size: 1rem;
}

.ledger__row span + span {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ledger__row small {
  font-size: 0.72em;
  letter-spacing: 0.02em;
  color: var(--on-dark-muted);
}

.ledger__row--total {
  padding-top: 1rem;
  border-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* ---------- split ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}

.split--media-left {
  grid-template-columns: 0.95fr 1.05fr;
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* selo recortado: sem recorte nem caixa de sombra */
.split__media--badge img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  box-shadow: none;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.35));
}

.partner-tile {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 1.6rem;
  min-height: 150px;
}

.partner-tile img {
  max-height: 80px;
  width: auto;
}

.split__badge {
  position: absolute;
  left: -1px;
  bottom: -1px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.1rem;
  text-transform: uppercase;
}

.list-check {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.list-check li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text);
  font-size: 0.98rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  clip-path: polygon(14% 44%, 0 65%, 45% 100%, 100% 12%, 82% 0, 42% 66%);
}

.section--dark .list-check li {
  color: var(--on-dark);
}

/* ---------- cards / features ---------- */

.feature {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.feature h3 {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}

.section--dark .feature {
  border-color: var(--line-dark);
}

.section--dark .feature p {
  color: var(--on-dark-muted);
}

/* ---------- members ---------- */

.member {
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.member__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--ink-2);
  overflow: hidden;
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.03);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.member:hover .member__photo img {
  transform: scale(1.04);
  filter: none;
}

.member__body {
  padding: 1rem 1.1rem 1.15rem;
  border-top: 3px solid var(--yellow);
}

.member__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.member__body span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.member--lead .member__body {
  background: var(--ink);
  color: var(--on-dark);
  border-top-color: var(--yellow);
}

.member--lead .member__body span {
  color: var(--yellow);
}

.member-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.member-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.94rem;
}

.member-list .avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.member-list small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* galeria de membros: carrossel de 3 em 3 (1 em 1 no telemóvel) */

.member-carousel {
  --carousel-gap: clamp(1rem, 2vw, 1.6rem);
}

.member-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--carousel-gap)) / 3);
  gap: var(--carousel-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.member-carousel__track::-webkit-scrollbar {
  display: none;
}

.member-carousel__track:focus-visible {
  outline: 2px solid var(--yellow-deep);
  outline-offset: 4px;
}

.member-carousel__track > * {
  scroll-snap-align: start;
}

.member-carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.member-carousel__btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--yellow);
  border: 0;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.member-carousel__btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.member-carousel__btn:hover:not(:disabled) {
  background: var(--yellow);
  color: var(--ink);
}

.member-carousel__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.member-carousel__btn:focus-visible {
  outline: 2px solid var(--yellow-deep);
  outline-offset: 3px;
}

/* ---------- logo wall ---------- */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.logo-wall figure {
  margin: 0;
  background: var(--card);
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  min-height: 168px;
  transition: background 0.3s var(--ease);
}

.logo-wall figure a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 110px;
  border-radius: 2px;
}

.logo-wall figure a:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 4px;
}

.logo-wall img {
  max-height: 84px;
  width: auto;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}

.logo-wall figure {
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.logo-wall figure:hover {
  background: #fff;
  box-shadow: 0 18px 36px -24px rgba(11, 11, 12, 0.55);
  transform: translateY(-4px);
}

.logo-wall figure:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 12px rgba(11, 11, 12, 0.18));
}

/* ---------- quotes ---------- */

.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.quote blockquote p:last-child {
  margin-bottom: 0;
}

.quote figcaption {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* nos testemunhos com fotografia a assinatura está no topo: a linha passa para baixo dela */
.quote--long figcaption {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0.9rem;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.quote figcaption strong {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
}

.quote--long {
  --quote-padding: clamp(1.6rem, 3.4vw, 3rem);
  border-left-width: 3px;
  padding: var(--quote-padding);
}

.quote--long blockquote {
  font-size: clamp(1rem, 1.3vw, 1.08rem);
}

/* testemunho com fotografia: imagem em baixo, à esquerda da assinatura */
.quote__caption {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.3rem);
}

.quote__caption img {
  flex: none;
  display: block;
  width: clamp(104px, 16%, 150px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.quote__sign {
  display: block;
}

/* testemunho de destaque: fotografia maior no canto superior esquerdo,
   legenda por baixo dela e texto a contornar a imagem */
.quote--feature {
  display: block;
  --quote-photo-w: clamp(180px, 32vw, 360px);
  /* mesma folga que a fotografia tem à esquerda: padding do cartão + borda de 3px */
  --quote-photo-gap: calc(var(--quote-padding) + 3px);
  /* compensa a borda superior (1px) ser mais fina que a esquerda (3px),
     para o espaço acima da fotografia igualar o da esquerda */
  --quote-top-offset: 2px;
}

.quote--feature .quote__caption {
  float: left;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  width: var(--quote-photo-w);
  margin: var(--quote-top-offset) var(--quote-photo-gap) 1.1rem 0;
  padding: 0;
  border-bottom: 0;
  text-transform: none;
  letter-spacing: 0.02em;
}

.quote--feature .quote__caption img {
  width: 100%;
}

.quote--feature .quote__sign strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.quote--feature .quote__sign {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote--feature blockquote {
  /* mesmo tamanho de letra do texto dos pilares na página do clube */
  font-size: 0.96rem;
  /* mesma folga que a fotografia, para a primeira linha alinhar com o topo dela */
  padding-top: var(--quote-top-offset);
}

.quote--feature blockquote::after {
  content: "";
  display: block;
  clear: both;
}

/* aspas de abrir e fechar, encostadas ao texto */
.quote--feature .mark {
  display: inline;
  font-family: var(--font-display);
  color: var(--yellow-deep);
  font-size: 1.9rem;
  line-height: 0;
  vertical-align: -0.18em;
}

.quote--feature .mark--start {
  margin-right: 0.12em;
}

.quote--feature .mark--end {
  margin-left: 0.12em;
}

/* ---------- page head ---------- */

.page-head {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(2.8rem, 6vw, 4.6rem);
  overflow: hidden;
}

.page-head__bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.page-head__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-head__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--ink) 8%, rgba(11, 11, 12, 0.55) 70%);
}

.page-head .wrap {
  position: relative;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 1.2rem;
}

.breadcrumb a:hover {
  color: var(--yellow);
}

.page-head h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  max-width: 22ch;
}

.page-head__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: calc(clamp(2.6rem, 7vw, 5.2rem) * 0.95);
}

.page-head p {
  max-width: 60ch;
  color: #ded9cd;
  margin: 1rem 0 0;
}

/* ---------- LAL ---------- */

.lal-hero {
  position: relative;
  background: var(--paper);
  color: var(--text);
  padding-block: clamp(3.6rem, 7vw, 6.4rem) clamp(2.6rem, 6vw, 4.4rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.lal-hero__text {
  color: var(--muted);
  max-width: 52ch;
}

.lal-hero__claim {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.6rem 0.95rem;
  margin-bottom: 0;
}

.lal-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: stretch;
}

/* o cartaz acompanha a altura total do texto ao lado */
.event-card--tall .event-card__media {
  flex: 1 1 auto;
}

.edition {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
  padding-block: clamp(1.8rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line);
}

.edition:first-of-type {
  border-top: 0;
}

.edition:nth-child(even) {
  direction: rtl;
}

.edition:nth-child(even) > * {
  direction: ltr;
}

.edition__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* galeria do lado-a-lado */
.lal-gallery {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  column-count: 3;
  column-gap: clamp(0.8rem, 1.4vw, 1.2rem);
}

.lal-gallery figure {
  break-inside: avoid;
  margin: 0 0 clamp(0.8rem, 1.4vw, 1.2rem);
}

.lal-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.lal-gallery figcaption {
  margin-top: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .lal-gallery {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .lal-gallery {
    column-count: 1;
  }
}

.edition__tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.8rem;
}

.edition h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.2rem;
}

.edition__route {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin-bottom: 1rem;
}

.edition p {
  color: var(--muted);
  font-size: 0.97rem;
}

.timeline {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 1.4rem 1.6rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper);
}

.timeline b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.timeline span {
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- events ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
}

.filter {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.5rem 0.95rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.filter[aria-pressed="true"],
.filter:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--yellow);
}

.event-year + .event-year {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}

.event-year__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.event-year__title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: 0.02em;
}

.event-year__count {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter:hover {
  border-color: var(--ink);
}

.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--yellow);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.event-card {
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.event-card__media {
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
  overflow: hidden;
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.event-card:hover .event-card__media img {
  transform: scale(1.05);
}

.event-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.event-card__year {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow-deep);
}

.event-card h3 {
  font-size: 1.16rem;
  letter-spacing: 0.02em;
}

.event-card__tag {
  font-size: 0.74rem;
  color: var(--muted);
}

/* ---------- shop ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.product {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.product__media {
  position: relative;
  aspect-ratio: 1;
  background: #f0ece2;
  overflow: hidden;
}

/* a fotografia inteira fica visível, seja em pé ou deitada */
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.product:hover .product__media img {
  transform: scale(1.04);
}

.product__abrir {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.product__abrir:focus-visible {
  outline: 2px solid var(--yellow-deep);
  outline-offset: -2px;
}

.product__fotos {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.25rem 0.55rem;
  background: rgba(11, 11, 12, 0.78);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product__body {
  padding: 0.95rem 1rem 1.15rem;
  border-top: 3px solid var(--yellow);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.product__body h3 {
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.product__price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-top: 0.15rem;
}

.product__note {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* opções do artigo (tamanhos, cores…) na listagem da loja */
.product__opcoes {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- forms ---------- */

.form {
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(1.3rem, 3vw, 2.4rem);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field label .req {
  color: var(--yellow-deep);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.4);
}

.field input:disabled {
  background: #f4f4f2;
  color: var(--muted);
  cursor: not-allowed;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b3261e;
}

.field__error {
  font-size: 0.76rem;
  color: #b3261e;
  min-height: 1em;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  padding-top: 0.2rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.94rem;
}

.choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.check input {
  margin-top: 0.25rem;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--ink);
}

.check a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.check.has-error {
  color: #b3261e;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.form__note {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}

.form__success {
  display: none;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

.form__success.is-visible {
  display: block;
}
.form__error {
  border: 2px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

/* ---------- doc (estatutos) ---------- */

.doc h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin: 2.4rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  letter-spacing: 0.03em;
}

.doc h2:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.doc h3 {
  font-size: 1rem;
  margin: 1.7rem 0 0.5rem;
  letter-spacing: 0.04em;
}

.doc p {
  font-size: 0.96rem;
  color: #2b2b2e;
  margin-bottom: 0.85rem;
}

/* o esbatimento envolve o parágrafo: mantém a folga antes do texto seguinte */
.doc .quote__mobile-fade p:last-child {
  margin-bottom: 0.85rem;
}

.doc a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* botão que abre o resto dos documentos longos */
.doc__toggle {
  align-self: center;
}

/* nos testemunhos o botão não está num contentor flex: centra-se com margens */
.quote--feature .doc__toggle {
  display: flex;
  width: fit-content;
  margin: 1.3rem auto 0;
}

/* último trecho esbatido enquanto o resto do documento está fechado */
.doc__fade {
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, 0.06));
  mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, 0.06));
}

/* testemunhos com texto escondido: o "is-open" fica no blockquote */
.is-open .doc__fade {
  -webkit-mask-image: none;
  mask-image: none;
}

.doc p.doc__figure {
  margin: 1rem 0 1.4rem;
}

/* legenda dos blocos de documentos: letra maior do que a assinatura dos testemunhos */
.quote .doc-sign {
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

.quote .doc-sign strong {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.doc p.doc__figure img {
  display: block;
  max-width: 220px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* ---------- cta band ---------- */

.cta-band {
  background: var(--yellow);
  color: var(--ink);
  padding-block: clamp(2.4rem, 5vw, 4rem);
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 24ch;
}

.cta-band p {
  margin: 0.7rem 0 0;
  max-width: 46ch;
  font-size: 0.98rem;
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding-block: clamp(2.6rem, 5vw, 4rem) 1.4rem;
  font-size: 0.92rem;
}

.site-foot__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 2.6rem);
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line-dark);
}

.site-foot h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 1rem;
}

.site-foot p {
  margin: 0 0 0.5rem;
}

.site-foot a:hover {
  color: var(--yellow);
}

.site-foot__map {
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

.site-foot__map:hover {
  text-decoration-color: var(--yellow);
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.site-foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.site-foot ul.socials {
  gap: 0.9rem;
}

.socials__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-foot ul.socials__row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0;
}

.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.socials a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

/* ---------- menu toggle ---------- */

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: 2px;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle span {
  top: 50%;
  transform: translate(-50%, -50%);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* carrinho na barra do telemóvel, à esquerda do botão do menu */
.head-cart {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
}

.head-cart svg {
  width: 22px;
  height: 22px;
}

.head-cart .nav__carrinho-qtd {
  position: absolute;
  top: -6px;
  right: -6px;
  margin: 0;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 11, 12, 0.94);
  display: none;
  place-items: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  object-fit: contain;
}

/* no telemóvel o cartaz ocupa quase toda a largura e fica centrado no ecrã */
@media (max-width: 700px) {
  .lightbox {
    padding: 1rem;
  }
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- carrossel dos artigos da loja ---------- */

.produto-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  background: rgba(11, 11, 12, 0.92);
  padding: clamp(0.75rem, 2vw, 2rem);
  overflow-y: auto;
}

.produto-modal.is-open {
  display: grid;
  place-items: center;
}

.produto-modal__caixa {
  position: relative;
  width: min(880px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.produto-modal__fechar {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 1.05rem;
  cursor: pointer;
}

.produto-modal__palco {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0ece2;
  padding: clamp(0.5rem, 1.5vw, 1rem) 3.2rem;
}

.produto-modal__img {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.produto-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.produto-modal__nav--prev { left: 0.6rem; }
.produto-modal__nav--next { right: 0.6rem; }

.produto-modal__nav:focus-visible,
.produto-modal__miniatura:focus-visible,
.produto-modal__fechar:focus-visible {
  outline: 2px solid var(--yellow-deep);
  outline-offset: 2px;
}

.produto-modal__info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-right: 3rem;
}

.produto-modal__titulo {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.produto-modal__preco {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.produto-modal__miniaturas {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.produto-modal__miniatura {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--line);
  background: #f0ece2;
  line-height: 0;
  overflow: hidden;
  cursor: pointer;
}

.produto-modal__miniatura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produto-modal__miniatura.is-active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.produto-modal__contador {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.produto-modal__cta {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  background: var(--ink);
  color: #fff;
}

.produto-modal__cta:hover { background: var(--yellow-deep); color: var(--ink); }

/* escolha da opção do artigo dentro do modal */
.produto-modal__opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.produto-modal__opcoes[hidden] {
  display: none;
}

.produto-modal__opcao {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  background: transparent;
  border: 1px solid rgba(18, 18, 18, 0.28);
  color: var(--ink);
  cursor: pointer;
}

.produto-modal__opcao.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.produto-modal__opcao[disabled] {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* com uma só fotografia não há setas, miniaturas nem contador */
.produto-modal:not(.tem-varias) .produto-modal__nav,
.produto-modal:not(.tem-varias) .produto-modal__miniaturas,
.produto-modal:not(.tem-varias) .produto-modal__contador {
  display: none;
}

@media (max-width: 700px) {
  .produto-modal.is-open { place-items: start center; }
  .produto-modal__img { max-height: 52vh; }
  .produto-modal__palco { padding: 0.5rem 2.6rem; }
  .produto-modal__nav { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .brand__text small {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 86vw);
    background: var(--ink);
    color: var(--on-dark);
    padding: 5.2rem 1.6rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 95;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: none;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav a::after {
    display: none;
  }

  .nav a[aria-current="page"] {
    color: var(--yellow);
  }

  .menu-toggle {
    display: block;
  }

  .head-cart {
    display: inline-grid;
  }

  /* no telemóvel o carrinho está na barra de cima, não dentro do menu */
  .nav__carrinho-item {
    display: none;
  }

  /* o botão "Novo associado" passa para dentro do menu, por baixo de "Loja" */
  .head-cta {
    display: none;
  }

  .nav__cta-item {
    display: block;
    margin-top: 1.1rem;
  }

  .nav .nav__cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.79rem;
    letter-spacing: 0.12em;
    border-bottom: 0;
  }

  .grid--4,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-foot__grid {
    grid-template-columns: 1fr 1fr;
  }

  .lal-hero__grid,
  .split,
  .split--media-left {
    grid-template-columns: 1fr;
  }

  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .member-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero__meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.2rem;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .event-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .member-carousel__track {
    grid-auto-columns: 100%;
  }

  .member-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote__caption {
    align-items: flex-start;
  }

  .quote__caption img {
    width: 88px;
  }

  /* no telemóvel a coluna ao lado da foto fica demasiado estreita:
     a fotografia passa a ocupar o topo e o texto continua por baixo */
  .quote--feature .quote__caption {
    float: none;
    width: 96%;
    max-width: 340px;
    margin: 1rem auto 1.1rem;
  }

  .quote--feature blockquote {
    padding-top: 0;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .ledger__head,
  .ledger__row {
    grid-template-columns: 1.5fr 0.7fr 1.25fr;
    gap: 0.6rem;
  }

  .ledger__head {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .ledger__row {
    font-size: 0.92rem;
  }

  .ledger__row--total {
    font-size: 1rem;
  }

  .edition,
  .edition:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .site-foot__grid {
    grid-template-columns: 1fr;
  }

  .quote--long blockquote {
    font-size: 1rem;
  }

  /* no telemóvel os testemunhos mostram menos texto antes do "Ver mais" */
  .quote__mobile-more {
    display: none;
  }

  /* "contents" mantém inline o trecho escondido a meio de um parágrafo */
  .is-open .quote__mobile-more {
    display: contents;
  }

  /* o último trecho visível esbate-se até ao botão */
  .quote__mobile-fade {
    -webkit-mask-image: linear-gradient(to bottom, #000 35%, rgba(0, 0, 0, 0.04));
    mask-image: linear-gradient(to bottom, #000 35%, rgba(0, 0, 0, 0.04));
  }

  /* parágrafos longos: o esbatimento começa mais perto do fim */
  .quote__mobile-fade--longo {
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, rgba(0, 0, 0, 0.04));
    mask-image: linear-gradient(to bottom, #000 80%, rgba(0, 0, 0, 0.04));
  }

  .is-open .quote__mobile-fade {
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* mantém o tamanho do texto dos pilares, também no telemóvel */
  .quote--feature blockquote {
    font-size: 0.96rem;
  }

  .page-head h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }
}

@media (max-width: 440px) {
  .member-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- carrinho ---------- */

/* botão «Adicionar ao carrinho» no cartão do artigo */
.product__form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.45rem;
}

.product__label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.product__select {
  font: inherit;
  font-size: 0.86rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  width: 100%;
}

.product__add {
  width: 100%;
  padding: 0.62rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* formulário de compra dentro do modal do artigo */
.produto-modal__form {
  align-self: flex-start;
}

.produto-modal__cta {
  border: 0;
  cursor: pointer;
}

.produto-modal__cta[disabled] {
  background: var(--muted);
  color: #fff;
  opacity: 0.5;
  cursor: not-allowed;
}

/* ícone e contador do carrinho no menu */
.nav__carrinho {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.nav__carrinho::after {
  left: 0.15rem;
  right: 0.15rem;
}

.nav__carrinho-icone {
  display: block;
  width: 20px;
  height: 20px;
}

/* o número fica sobre o canto superior direito do carrinho */
.nav__carrinho .nav__carrinho-qtd {
  position: absolute;
  top: 0.1rem;
  right: 0.2rem;
  margin-left: 0;
  pointer-events: none;
}

.nav__carrinho-qtd {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 0.3rem;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
}

/* mensagens do carrinho */
.carrinho-aviso {
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow-deep);
  background: var(--card);
  padding: 0.85rem 1rem;
  margin: 0 0 1.6rem;
  font-size: 0.94rem;
  text-align: left;
  hyphens: none;
}

.carrinho-aviso--erro {
  border-left-color: #b3261e;
}

.carrinho-aviso a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.carrinho-vazio {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 62ch;
}

.carrinho-vazio h2 {
  margin-bottom: 0.6rem;
}

.carrinho-vazio p {
  color: var(--muted);
  margin-bottom: 1.3rem;
}

/* lista + resumo */
.carrinho {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.6rem, 3vw, 2.8rem);
  align-items: start;
}

.carrinho__cabeca {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 190px 110px;
  gap: 1rem;
  align-items: end;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
  line-height: 1;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.carrinho__cabeca span:first-child {
  grid-column: 1 / 3;
}

.carrinho__cabeca span:last-child {
  text-align: right;
}

.carrinho__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 190px 110px;
  grid-template-areas: "media info qtd total";
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.carrinho__media {
  grid-area: media;
  aspect-ratio: 1;
  background: #f0ece2;
  border: 1px solid var(--line);
  overflow: hidden;
}

.carrinho__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carrinho__info {
  grid-area: info;
}

/* rótulos por cima de cada zona; só aparecem no telemóvel */
.carrinho__rotulo {
  display: none;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.carrinho__nome {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.carrinho__opcao {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.15rem;
}

.carrinho__unidade {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.carrinho__remover {
  margin-top: 0.3rem;
}

.carrinho__apagar {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.carrinho__apagar:hover {
  color: var(--ink);
}

.carrinho__qtd {
  grid-area: qtd;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.carrinho__qtd-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.carrinho__passos {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.carrinho__passo {
  width: 34px;
  height: 36px;
  border: 0;
  background: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.carrinho__passo:hover {
  background: var(--paper-2);
}

.carrinho__input {
  width: 54px;
  height: 36px;
  border: 0;
  border-inline: 1px solid var(--line);
  text-align: center;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  -moz-appearance: textfield;
  appearance: textfield;
}

.carrinho__input::-webkit-outer-spin-button,
.carrinho__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.carrinho__actualizar {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.carrinho__total {
  grid-area: total;
  justify-self: end;
  font-family: var(--font-display);
  font-size: 1.15rem;
  white-space: nowrap;
}

.carrinho__limpar {
  padding-top: 1.1rem;
}

.carrinho__resumo {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  position: sticky;
  top: 96px;
  /* alinha o topo do quadro com a linha preta do cabeçalho dos artigos */
  margin-top: calc(0.66rem + 0.6rem);
}

.carrinho__resumo-titulo {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.carrinho__linha {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.carrinho__linha--total {
  border-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.carrinho__resumo .form__note {
  margin-top: 0.9rem;
}

.carrinho__continuar {
  width: 100%;
  margin-top: 0.6rem;
}

@media (max-width: 900px) {
  .carrinho {
    grid-template-columns: 1fr;
  }

  /* no telemóvel fica só a linha preta; cada rótulo vai para cima da sua zona */
  .carrinho__cabeca {
    display: block;
    height: 0;
    padding: 0;
  }

  .carrinho__cabeca span {
    display: none;
  }

  .carrinho__rotulo {
    display: block;
    margin-bottom: 0.35rem;
  }

  .carrinho__total {
    text-align: right;
  }

  .carrinho__total .carrinho__rotulo {
    margin-bottom: 0.2rem;
  }

  .carrinho__item {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    grid-template-areas:
      "media info total"
      "media qtd qtd";
    align-items: start;
    gap: 0.7rem 1rem;
  }

  .carrinho__resumo {
    position: static;
    margin-top: 0;
  }
}


/* ---------- checkout ---------- */

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.6rem, 3vw, 2.8rem);
  align-items: start;
}

.checkout__form .form__grid {
  margin-top: 1.1rem;
}

.checkout__form .checkout__pagamento-nota {
  margin-top: 1.4rem;
}

.checkout__resumo {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  position: sticky;
  top: 96px;
}

.checkout__resumo-titulo {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.checkout__artigos {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
}

.checkout__artigo {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.checkout__artigo small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.checkout__portes {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  max-width: 46ch;
  text-align: left;
  color: var(--muted);
}

.carrinho__mais {
  display: block;
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.carrinho__mais:hover {
  color: var(--ink);
}

/* ---------- encomenda ---------- */

.encomenda {
  max-width: 760px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.encomenda__ref {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.encomenda__bloco {
  margin-top: 1.6rem;
}

.encomenda__bloco h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.encomenda__dados {
  font-style: normal;
  line-height: 1.7;
}

.encomenda__lista {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.encomenda__lista li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.encomenda__lista small {
  display: block;
  color: var(--muted);
}

.encomenda__total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.encomenda .btn {
  margin-top: 1.6rem;
}

.encomenda__bloco .btn {
  margin-top: 0.9rem;
}

.encomenda__pago {
  font-weight: 700;
}

.encomenda__guardado {
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.encomenda__editar {
  margin-top: 1rem;
}

.encomenda__editar-botao {
  display: inline-block;
  width: fit-content;
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.encomenda__editar-botao:hover,
.encomenda__editar-botao:focus-visible {
  background: var(--ink);
  color: var(--on-dark);
  transform: translateY(-2px);
}

.encomenda__editar-botao::-webkit-details-marker {
  display: none;
}

.encomenda__editar-form {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.encomenda__editar-form .form__foot {
  margin-top: 1.2rem;
}

@media (max-width: 900px) {
  .checkout {
    grid-template-columns: 1fr;
  }

  .checkout__resumo {
    position: static;
  }
}
