*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pt-green:  #006600;
  --pt-red:    #C8102E;
  --es-red:    #AA151B;
  --es-yellow: #F1BF00;
  --ink:       #111111;
  --paper:     #F6F3ED;
  --muted:     rgba(17,17,17,0.95);
  --rule:      rgba(17,17,17,0.14);
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Barlow', sans-serif;
  min-height: 100vh;
}

@media (max-width: 768px) {
  /* Força uma grelha rígida de 4 colunas sem permitir scrolls */
  .filter-bar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important; /* Remove totalmente qualquer scroll horizontal ou vertical */
  }

  /* Cada elemento ocupa obrigatoriamente a sua célula na grelha */
  .filter-bar > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Espaçamentos e tamanho de letra seguro para telemóvel */
    padding: 8px 2px !important;
    font-size: 9.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    /* Moldura individual a toda a volta em cada botão */
    border: 1px solid #d8d3cd !important;
    margin: 0 !important;
  }
}

/* 1. O teu estilo atual para computador */
.filter-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--muted);
  padding: 12px 18px;
  border-right: 0.5px solid var(--rule);
  transition: background 0.14s, color 0.14s;
}

/* 2. Ajuste obrigatório para o telemóvel (coloca isto logo abaixo do anterior) */
@media (max-width: 768px) {
  .filter-bar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Força todos os elementos da barra (botões, spans, etc.) a respeitarem a grelha de 4 */
  .filter-bar > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Reduz o tamanho da letra e o espaçamento para caberem perfeitamente em 4 colunas */
    padding: 8px 2px !important;
    font-size: 11px !important;
    letter-spacing: 0.05em !important; /* Reduz o espaçamento de letras para não cortar no telemóvel */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    /* Moldura individual a toda a volta */
    border: 0.5px solid var(--rule) !important;
    margin: 0 !important;
  }
}
/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
/* ── LANG CORNER — seletor de idioma no canto sup. direito ── */
.header-lang-corner {
  position: absolute;
  top: 14px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}
.header-lang-corner-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 2px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  line-height: 1;
}
.header-lang-corner-btn:hover {
  color: var(--ink);
  border-color: var(--rule);
}
.header-lang-corner-btn.active {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(17,17,17,0.05);
  font-weight: 800;
}
.header-lang-corner-flag {
  display: inline-flex;
  width: 16px;
  height: 11px;
  border-radius: 1px;
  overflow: hidden;
  flex-shrink: 0;
  outline: 1px solid rgba(17,17,17,0.12);
}
/* PT: verde | vermelho horizontal */
.flag-pt {
  background: linear-gradient(to right, var(--pt-green) 40%, var(--pt-red) 40%);
}
/* ES: vermelho | amarelo | vermelho horizontal */
.flag-es {
  background: linear-gradient(to bottom,
    var(--es-red)    25%,
    var(--es-yellow) 25%,
    var(--es-yellow) 75%,
    var(--es-red)    75%
  );
}
.header-lang-corner-sep {
  width: 1px;
  height: 12px;
  background: var(--rule);
  margin: 0 1px;
}
/* end of buttons on header */

.flagh-pt {
  color: #AA151B;
  font-weight: bolder;

}
/* ES: vermelho | amarelo | vermelho horizontal */
.flagh-es {
  color: #f1bf00;
  font-weight: bolder;
}

.header-main {
  align-items: center;
}

.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 24px 48px 0px;
  gap: 32px;
}

.header-lang {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.header-text-pt {
  align-self: center;
  text-align: right;
}
.header-text-es {
  align-self: center;
}

.header-title-wrap {
  display: inline-block; /* sizes to title width; flag ::after inherits it */
}
.header-text-es .header-title-wrap {
  display: block;
}

.header-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(14px, 1.6vw, 21px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 3px;
  transition: opacity 0.2s, transform 0.15s;
  line-height: 1;
}

.header-title:hover {
  opacity: 0.7;
}

.header-title.active {
  opacity: 1;
}

.header-title:not(.active) {
  opacity: 0.65;
}

/* Flag rendered as ::after — always exactly the width of the title text */
.header-text-pt .header-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 7.5px;
  margin-top: 7px;
  border-radius: 1px;
  /* PT flag: green (2/5) + red (3/5) */
  background: linear-gradient(to right,
    var(--pt-green) 40%,
    var(--pt-red)   40%
  );
}

.header-text-es .header-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 7.5px;
  margin-top: 7px;
  border-radius: 1px;
  /* ES flag: red (1/4) + yellow (2/4) + red (1/4) */
  background: linear-gradient(to bottom,
    var(--es-red)    25%,
    var(--es-yellow) 25%,
    var(--es-yellow) 75%,
    var(--es-red)    75%
  );
}

/* PT flag: green | red (horizontal) */
.fp-g { background: var(--pt-green); flex: 2; }
.fp-r { background: var(--pt-red);   flex: 3; }

/* ES flag: red | yellow | red (vertical) */
.fe-r1 { background: var(--es-red);    flex: 1; }
.fe-y  { background: var(--es-yellow); flex: 2; }
.fe-r2 { background: var(--es-red);    flex: 1; }

/* Center — logo + language switcher */
.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  align-self: center;
}

.logo-img {
  width: clamp(70px, 8vw, 110px);
  height: auto;
  display: block;
  will-change: width;
}
.header-title-mobile {
  display: none; /* Mantém escondido no PC */
}

@media (max-width: 768px) {
  .header-title-mobile {
    display: block !important; /* Mostra no telemóvel quando o ecrã é pequeno */
    font-size: clamp(20px, 5vw, 26px) !important; /* Ajusta-se automaticamente de forma fluida */
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin-top: -20px !important; /* <--- ADICIONA ISTO (experimenta 0, 4px ou até valores negativos como -4px se necessário) */
  }
}
.lang-btn {
  font-size: 20px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 2px 4px;
  border-radius: 3px;
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.15s;
  line-height: 1;
}
.header-est {
  transition: font-size 0.3s ease;
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */

.site-nav {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--rule);
}
.site-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 26px;
  border-right: 0.5px solid var(--rule);
  transition: background 0.14s, color 0.14s;
}
.site-nav a:first-child { border-left: 0.5px solid var(--rule); }
.site-nav a:hover { background: var(--ink); color: var(--paper); }

/* ── DROPDOWN ── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
  border-right: 0.5px solid var(--rule);
}
.nav-dropdown:first-child { border-left: 0.5px solid var(--rule); }
.nav-dropdown-trigger {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 26px;
  display: flex;
  align-items: center;
  transition: background 0.14s, color 0.14s;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-dropdown:hover > .nav-dropdown-trigger,
.nav-dropdown-trigger.active { background: var(--ink); color: var(--paper); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
  box-shadow: 0 8px 24px rgba(17,17,17,0.10);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: background 0.12s;
}
.nav-dropdown-item:hover { background: rgba(17,17,17,0.05); }
.nav-dropdown-ano {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.nav-dropdown-cidade {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-dropdown-item:hover .nav-dropdown-ano,
.nav-dropdown-item:hover .nav-dropdown-cidade { color: var(--paper); }
.nav-dropdown-all:hover,
.nav-dropdown-all.active { background: rgba(17,17,17,0.05); }
.nav-dropdown-all {
  display: block;
  padding: 9px 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.12s;
}
.nav-dropdown-all:hover { color: var(--ink); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 600;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── DRAWER MOBILE ── */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  padding: 80px 0 40px;
}
.nav-drawer.open { transform: translateX(0); }

/* ── BOTÃO DE FECHO (X) DO MENU MÓVEL ── */
.nav-drawer-close {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  background: var(--paper);
  padding: 16px 28px;
  margin-bottom: 8px;
  border: none;
  border-bottom: 1px solid var(--rule);
  font-size: 2rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  z-index: 510;
  box-sizing: border-box;
  transition: opacity 0.2s;
}
.nav-drawer-close:hover {
  opacity: 0.6;
}
.nav-drawer-close:hover {
  opacity: 0.6;
}
.nav-drawer-close:hover {
  opacity: 0.6;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.4);
  z-index: 400;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-drawer-nav { display: flex; flex-direction: column; }
.nav-drawer-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 28px;
  border-bottom: 1px solid var(--rule);
  display: block;
  transition: background 0.12s;
}
.nav-drawer-link:hover,
.nav-drawer-link.active { background: rgba(17,17,17,0.05); }
.nav-drawer-group { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.nav-drawer-group .nav-drawer-link { flex: 1; border-bottom: none; }
.nav-drawer-toggle {
  background: none;
  border: none;
  border-left: 1px solid var(--rule);
  padding: 0 18px;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.15s, transform 0.25s;
}
.nav-drawer-toggle.open { transform: rotate(180deg); color: var(--ink); }
.nav-drawer-sub {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(17,17,17,0.03);
}
.nav-drawer-sub.open { max-height: 400px; }
.nav-drawer-sublink {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 11px 28px 11px 36px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.12s;
}
.nav-drawer-sublink:hover,
.nav-drawer-sublink.active { background: rgba(17,17,17,0.06); }
.nav-drawer-lang {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 28px;
  margin-top: 8px;
}


/* ── MOBILE BREAKPOINT ── */


/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */

.site-footer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 8px;
  width: 100%;
  padding: 14px 48px;
  border-top: 1px solid var(--rule);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--pt-green) 0 25%,
    var(--pt-red)   25% 50%,
    var(--es-red)   50% 75%,
    var(--es-yellow) 75% 100%);
}


.footer-copy {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.footer-mail {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: var(--muted);
  text-decoration: none;
  text-align: center;
}
.footer-mail:hover { color: var(--ink); }

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

/* ═══════════════════════════════════════════
   HOMEPAGE — HERO
═══════════════════════════════════════════ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  border-bottom: 1px solid var(--rule);
  min-height: 300px;
}
.hero-divider { background: var(--rule); }
.hero-col { padding: 52px 48px 44px; }

.hero-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--es-red);
  margin-bottom: 18px;
}
.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-headline .accent { color: var(--es-red); }
.hero-body {
  font-size: 15px;
  font-weight: 450;
  line-height: 1.8;
  color: var(--muted);
  max-width: 380px;
}

/* Edition card */
.edition-card {
  border: 1.5px solid var(--ink);
  padding: 22px 26px;
  margin-bottom: 28px;
}
.edition-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.edition-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}
.edition-info {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.badge {
  display: inline-block;
  background: var(--es-yellow);
  color: var(--ink);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-top: 12px;
}

.cta-btn {
  display: inline-block;
  border: 1.5px solid var(--ink);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 11px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  background: transparent;
}
.cta-btn:hover { background: var(--ink); color: var(--paper); }


/* ═══════════════════════════════════════════
   HOMEPAGE — EDITIONS STRIP (scroll horizontal)
═══════════════════════════════════════════ */

.editions-strip-section {
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.editions-strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.editions-strip::-webkit-scrollbar { display: none; }
.editions-strip-fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 90px;
  background: linear-gradient(to right, rgba(246,243,237,0), var(--paper) 65%);
  pointer-events: none;
}
.editions-strip-controls {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}
.editions-arrow {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(17,17,17,0.10);
  transition: background 0.14s, color 0.14s, opacity 0.14s;
}
.editions-arrow:hover { background: var(--ink); color: var(--paper); }
.editions-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}
.edition-item {
  flex: 0 0 33.3333%;
  min-width: 260px;
  scroll-snap-align: start;
  padding: 24px 32px;
  border-right: 0.5px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.14s;
}
.edition-item:hover { background: rgba(17,17,17,0.03); }
.edition-item:last-child { border-right: none; }
.edition-detail {
  min-width: 0; /* permite ao flex item encolher — sem isto, o texto empurrava o cartão para fora */
  overflow: hidden;
}
.edition-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 900;
  opacity: 0.12;
  line-height: 1;
  flex-shrink: 0;
}
.edition-detail-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size:12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.edition-detail-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  padding: 6px 12px;
}
  


/* As cores que já tinha definidas no seu CSS: */
.pt-tag { 
  background: var(--pt-red); 
  color: #fff; 
}

.es-tag { 
  background: var(--es-yellow); 
  color: var(--ink); 
}

.edition-detail-loc {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 2px;
}


/* ═══════════════════════════════════════════
   PÁGINA SOBRE — PAGE HEADER
═══════════════════════════════════════════ */

.page-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid var(--rule);
  min-height: 160px;
}
.page-header-left {
  padding: 48px 40px 20px 48px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.page-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--es-red);
}
.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
}
.page-header-right {
  padding: 48px 48px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-width: 0;
  overflow: hidden;
}
.group-photo-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--rule);
  max-height: 280px;
}
.group-photo {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: grayscale(30%);
  transition: filter 0.4s;
}
.group-photo:hover { filter: grayscale(0%); }
.page-intro {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--muted);
  max-width: 560px;
}
.page-intro {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--muted);
  max-width: 560px;
}


/* ═══════════════════════════════════════════
   PÁGINA SOBRE — PULL QUOTE
═══════════════════════════════════════════ */

.pull-quote {
  border-bottom: 1px solid var(--rule);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.pull-quote-mark {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 120px;
  font-weight: 900;
  color: var(--es-red);
  opacity: 0.15;
  line-height: 0.8;
  flex-shrink: 0;
  user-select: none;
}
.pull-quote-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.pull-quote-text em {
  font-style: normal;
  color: var(--es-red);
}


/* ═══════════════════════════════════════════
   PÁGINA SOBRE — BODY TEXT
═══════════════════════════════════════════ */

.body-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid var(--rule);
}
.body-section-label {
  padding: 44px 40px 40px 48px;
  border-right: 1px solid var(--rule);
}
.section-label-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  position: sticky;
  top: 120px;
}
.body-section-content {
  padding: 44px 48px 44px 40px;
}
.body-text {
  font-size: 16px;
  font-weight: 450;
  line-height: 1.85;
color: rgba(17,17,17,0.9);
  max-width: 640px;
}
.body-text + .body-text { margin-top: 24px; }


/* ═══════════════════════════════════════════
   PÁGINA SOBRE — VALUES GRID
═══════════════════════════════════════════ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
}
.value-item {
  padding: 32px 32px 36px;
  border-right: 0.5px solid var(--rule);
}
.value-item:last-child { border-right: none; }
.value-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--es-red);
  margin-bottom: 12px;
}
.value-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.value-body {
  font-size: 16px;
  font-weight: 450;
  line-height: 1.72;
  color: var(--muted);
}


/* ═══════════════════════════════════════════
   PÁGINA SOBRE — CONTACT STRIP
═══════════════════════════════════════════ */

.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 32px 48px;
  border-bottom: 1px solid var(--rule);
  gap: 32px;
}
.contact-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.contact-email {
  display: inline-block;
  width: fit-content;
  justify-self: center; /* <--- Centra o email na sua coluna da grelha */
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.contact-email:hover {
  color: var(--es-red);
  text-decoration-color: var(--es-red);
}

/* Garante que em telemóvel a estrutura empilha corretamente */
@media (max-width: 768px) {
  .contact-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }
}

/* ═══════════════════════════════════════════
   LANGUAGE TRANSITIONS
═══════════════════════════════════════════ */

[data-lang] { transition: opacity 0.25s ease; }


/* ═══════════════════════════════════════════
   COMING SOON — placeholder para páginas em construção
═══════════════════════════════════════════ */

.contact-coming-soon {
  padding: 80px 48px;
  border-bottom: 1px solid var(--rule);
}
.contact-coming-soon-inner {
  max-width: 560px;
}
.contact-coming-soon-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--es-red);
  margin-bottom: 20px;
}
.contact-coming-soon-text {
  font-size: 16px;
  font-weight: 450;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 32px;
}


/* ═══════════════════════════════════════════
   HEADER SCROLL — encolhe ao fazer scroll
═══════════════════════════════════════════ */

/* Wrapper div that receives the partial.
   A altura é fixada via JS (initScrollHeader) para que o layout da
   página nunca se mova quando o header encolhe internamente. */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  position: relative;
  background: var(--paper);
  transition: box-shadow 0.4s ease;
}

.header-main {
  transition: padding 0.4s ease;
}

.logo-img {
  transition: width 0.4s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(17,17,17,0.08);
}

.site-header.scrolled .header-main {
  padding-top: 10px;
  padding-bottom: 8px;
}

.site-header.scrolled .logo-img {
  width: clamp(44px, 4.5vw, 60px);
}

.site-header.scrolled .header-main {
  padding-top: 10px;
  padding-bottom: 8px;
}
.site-header.scrolled .header-text-pt .header-title::after {
    height: 5px;
}
.site-header.scrolled .header-text-es .header-title::after {
    height: 5px;
}
.site-header.scrolled .header-est {
    font-size: 12px;
}

/* ═══════════════════════════════════════════
   PÁGINA TIPOS
═══════════════════════════════════════════ */

/* ── FILTER BAR ── */
.filter-bar { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--rule); padding: 0 48px; }
.filter-label { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-right: 24px; }
.filter-btn { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; border: none; background: none; color: var(--muted); padding: 12px 18px; border-right: 0.5px solid var(--rule); transition: background 0.14s, color 0.14s; }
.filter-btn:first-of-type { border-left: 0.5px solid var(--rule); }
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); }
.count-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: 0.12em; color: var(--muted); margin-left: auto; }

/* ── GRID ── */
.tipos-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.tipo-card { border-right: 0.5px solid var(--rule); border-bottom: 0.5px solid var(--rule); overflow: hidden; cursor: default; }
.tipo-card:nth-child(4n) { border-right: none; }
.tipo-img-wrap { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: #ddd; position: relative; }
.tipo-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(20%); transition: filter 0.3s, transform 0.4s; }
.tipo-card:hover .tipo-img-wrap img { filter: grayscale(0%); transform: scale(1.03); }
.tipo-info { padding: 14px 16px 18px; }
.tipo-name { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1; margin-bottom: 4px; }
.tipo-country { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.tipo-country.pt { color: var(--pt-red); }
.tipo-country.es { color: var(--es-red); }
.tipo-edition { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

/* hidden state */
.tipo-card.hidden { display: none; }

/* ── ARTICLE LIST ── */
.article-list {
    border-bottom: 1px solid var(--rule);
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}
.article-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
}
.article-row:last-child { border-bottom: none; }
.article-row:hover { background: rgba(17,17,17,0.03); }
.article-row:hover .article-img img { transform: scale(1.04); filter: grayscale(0%); }
.article-row:hover .read-more { gap: 10px; }

.article-img {
  width: 320px;
  aspect-ratio: 16/10;
  overflow: hidden;
  flex-shrink: 0;
  background: #ddd;
}
.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: transform 0.4s ease, filter 0.3s;
}

.article-content {
  padding: 36px 48px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.article-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: var(--es-yellow);
  color: var(--ink);
  padding: 3px 9px;
}
.article-edition {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-left: auto;
}

.article-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.article-lead {
  font-size: 14px;
  font-weight: 450;
  line-height: 1.8;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  transition: gap 0.2s;
}

/* ── COMING SOON ── */
.coming-soon {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--rule);
  padding: 40px 48px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.coming-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.coming-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── CONTACT ── */
.contact-strip { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 32px 48px; border-bottom: 1px solid var(--rule); gap: 32px; }
.contact-label { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 400; color: var(--muted); letter-spacing: 0.04em; }
.contact-email { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 2px; transition: color 0.15s, border-color 0.15s; }
.contact-email:hover { color: var(--es-red); border-color: var(--es-red); }

/* ── LISTA DE EDIÇÕES (edicoes.html) ── */
.edicao-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
}
.edicao-row:hover { background: rgba(17,17,17,0.025); }
.edicao-row:hover .edicao-row-img img { filter: grayscale(0%); transform: scale(1.03); }
.edicao-row:hover .edicao-row-link { letter-spacing: 0.28em; }

.edicao-row-img {
  overflow: hidden;
  border-right: 1px solid var(--rule);
  aspect-ratio: 16/10;
}
.edicao-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.35s, transform 0.4s;
}

.edicao-row-content {
  padding: 40px 48px 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.edicao-row-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.edicao-row-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.edicao-row-pais {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 3px 9px;
}
.pt-tag { background: var(--pt-red); color: #fff; }
.es-tag { background: var(--es-yellow); color: var(--ink); }

.edicao-row-ano {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  opacity: 0.1;
  margin-bottom: -8px;
}
.edicao-row-cidade {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 16px;
}
.edicao-row-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  max-width: 480px;
  flex-grow: 1;
  margin-bottom: 24px;
}
.edicao-row-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: letter-spacing 0.2s;
}

/* ═══════════════════════════════════════════
   EDICAO.CSS — estilos específicos das páginas de edição
═══════════════════════════════════════════ */

.edicao-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.edicao-datas {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.edicao-local {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

/* hero image no lado direito do page-header */
.edicao-hero-img {
  overflow: hidden;
}
.edicao-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.4s;
}
.edicao-hero-img:hover img { filter: grayscale(0%); }

/* Vídeo hero (ratio 16:9) */
.edicao-hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.edicao-hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── SECÇÕES GENÉRICAS ── */
.edicao-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--rule);
}
.edicao-section-label {
  padding: 40px 24px 40px 48px;
  border-right: 1px solid var(--rule);
}

.edicao-section-content {
  padding: 40px 48px 40px 40px;
}

.body-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(17,17,17,0.72);
  max-width: 640px;
}
.body-text + .body-text { margin-top: 20px; }

/* ── PROGRAMA ── */
.programa-dia {
  margin-bottom: 36px;
}
.programa-dia:last-child { margin-bottom: 0; }
.programa-dia-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--es-red);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.programa-items { display: flex; flex-direction: column; gap: 12px; }
.programa-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: baseline;
}
.programa-hora {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex-shrink: 0;
}
.programa-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
}

/* Programa com cartaz lateral */
.programa-com-imagem {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.programa-lista {
  flex: 1;
  min-width: 0;
}
.programa-cartaz {
  width: 380px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
}
.programa-cartaz img {
  width: 100%;
  display: block;
  border: 1px solid var(--rule);
}

/* ── LOCALIZAÇÃO ── */
.edicao-local-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.local-nome {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.local-cidade {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.local-morada {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.local-mapa {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.local-mapa:hover { color: var(--es-red); border-color: var(--es-red); }
.local-img-wrap {
  border: 1px solid var(--rule);
  overflow: hidden;
}
.local-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s;
}
.local-img-wrap:hover img { filter: grayscale(0%); }

/* ── GALERIA ── */
.edicao-section-galeria {
  grid-template-columns: 200px 1fr;
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--paper);
  padding: 40px 48px 40px 40px;
}
.galeria-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: grayscale(10%);
  transition: filter 0.3s, transform 0.35s, opacity 0.2s;
  cursor: zoom-in;
  outline: 1px solid var(--rule);
}
.galeria-grid img:hover {
  filter: grayscale(0%);
  transform: scale(1.015);
  position: relative;
  z-index: 1;
  opacity: 0.92;
}

/* ── LIGHTBOX ── */
.ti-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(17,17,17,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.ti-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.ti-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.18s ease;
}
.ti-lightbox-img.fading { opacity: 0; }
.ti-lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(246,243,237,0.45);
  background: none; border: none; cursor: pointer;
  transition: color 0.15s; padding: 8px;
}
.ti-lightbox-close:hover { color: var(--paper); }
.ti-lightbox-prev,
.ti-lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(246,243,237,0.35);
  background: none; border: none; cursor: pointer;
  padding: 24px 32px; transition: color 0.15s; user-select: none;
}
.ti-lightbox-prev { left: 0; }
.ti-lightbox-next { right: 0; }
.ti-lightbox-prev:hover,
.ti-lightbox-next:hover { color: var(--paper); }
.ti-lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(246,243,237,0.3);
}

/* ── PARTICIPANTES (versão compacta para páginas de edição) ── */
.edicao-section-participantes {
  grid-template-columns: 200px 1fr;
}
.participantes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--paper);
  padding: 40px 48px 40px 40px;
}
.part-card {
  background: var(--paper);
  overflow: hidden;
}
.part-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.part-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s, transform 0.35s;
}
.part-card:hover .part-img-wrap img {
  filter: grayscale(0%);
  transform: scale(1.04);
}
.part-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  padding: 10px 10px 3px;
}
.part-country {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0 10px 12px;
}
.part-country.pt { color: var(--pt-red); }
.part-country.es { color: var(--es-red); }

/* ── NAV ENTRE EDIÇÕES ── */
.edicoes-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border-bottom: 1px solid var(--rule);
}
.edicoes-nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 18px 32px;
  border-right: 0.5px solid var(--rule);
  transition: background 0.14s, color 0.14s;
}
.edicoes-nav-link:last-child {
  border-right: none;
  text-align: right;
}
.edicoes-nav-link:nth-child(2) {
  text-align: center;
}
.edicoes-nav-link:hover:not(.disabled) { background: var(--ink); color: var(--paper); }
.edicoes-nav-link.disabled { opacity: 0.25; cursor: default; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE / MOBILE
   Bloco único no FIM do ficheiro de propósito: assim qualquer
   regra aqui dentro vem sempre depois da regra "desktop"
   equivalente no cascade, e ganha sem ambiguidade de ordem.
   Ao ajustar novas páginas, acrescentar aqui — não criar
   media queries soltas no meio do ficheiro.
   ═══════════════════════════════════════════════════════════ */

/* Segurança geral (não é só mobile): conteúdo rico do TinyMCE
   pode conter imagens maiores que o container e partir o layout
   a qualquer largura de ecrã. */
.article-body img { max-width: 100%; height: auto; }

@media (max-width: 768px) {
  /* ── NAV ── */
  .header-text-pt,
  .header-text-es { display: none; }
  .header-content {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 16px 20px;
  }
  .header-lang-corner {
    left: 20px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
  }
  .header-title-mobile {
    display: block;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 56px 14px;
  }
  .nav-hamburger { display: flex; }
  .site-nav { display: none; } /* substituída pelo drawer */
  .nav-overlay { display: block; }
  .header-main { position: relative; }

  /* ── HOMEPAGE — HERO ── */
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-divider { display: none; }
  .hero-col { padding: 36px 24px; }
  .hero-col:first-child { border-bottom: 1px solid var(--rule); }
  .hero-body { max-width: none; }
  .edition-card { width: 100%; box-sizing: border-box; }

  /* ── HOMEPAGE — EDITIONS STRIP (carrossel horizontal, cada cartão ~90% do ecrã) ── */
  .edition-item {
    flex-basis: 88%;
    min-width: 0;
    padding: 20px 24px;
  }

  /* ── FOOTER ── */
  .site-footer {
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px 24px;
    text-align: center;
  }
  .footer-mail { letter-spacing: 0.06em; }

  /* ── PÁGINA SOBRE / BLOG / ARTIGO / CONTACTO / EDIÇÃO(ÕES) / TIPOS — PAGE HEADER ── */
  /* .page-header é partilhado por várias páginas — este ajuste aplica-se a todas */
  .page-header {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .page-header-left {
    padding: 32px 24px 20px;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .page-header-right {
    padding: 24px;
  }
  .group-photo-wrap,
  .group-photo { max-height: 200px; }

  /* ── PÁGINA SOBRE — PULL QUOTE ── */
  .pull-quote {
    padding: 32px 24px;
    gap: 16px;
  }
  .pull-quote-mark { font-size: 60px; }

  /* ── PÁGINA SOBRE — BODY TEXT ── */
  .body-section { grid-template-columns: 1fr; }
  .body-section-label {
    padding: 28px 24px 0;
    border-right: none;
  }
  .section-label-text { position: static; }
  .body-section-content { padding: 16px 24px 32px; }

  /* ── PÁGINA SOBRE — VALUES GRID ── */
  .values-grid { grid-template-columns: 1fr; }
  .value-item {
    padding: 24px;
    border-right: none;
    border-bottom: 0.5px solid var(--rule);
  }
  .value-item:last-child { border-bottom: none; }

  /* ── PÁGINA SOBRE — CONTACT STRIP ── */
  .contact-strip {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 12px;
    text-align: center;
  }
  .contact-email { font-size: 18px; }

  /* ── PÁGINA TIPOS — FILTER BAR ── */
  .filter-bar {
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .filter-label { white-space: nowrap; margin-right: 14px; }
  .filter-btn { padding: 10px 14px; white-space: nowrap; }

  /* ── PÁGINA TIPOS — GRID DE PARTICIPANTES ── */
  .tipos-grid { grid-template-columns: repeat(2, 1fr); }
  .tipo-card:nth-child(4n) { border-right: 0.5px solid var(--rule); }
  .tipo-card:nth-child(2n) { border-right: none; }

  /* ── LISTA DE EDIÇÕES (edicoes.php) ── */
  .edicao-row { grid-template-columns: 1fr; }
  .edicao-row-img { border-right: none; border-bottom: 1px solid var(--rule); }
  .edicao-row-content { padding: 24px; }
  .edicao-row-ano { font-size: clamp(40px, 14vw, 60px); margin-bottom: -4px; }
  .edicao-row-cidade { font-size: clamp(26px, 8vw, 36px); }

  /* ── EDIÇÃO — SECÇÕES GENÉRICAS ── */
  .edicao-section { grid-template-columns: 1fr; }
  .edicao-section-label { padding: 24px 24px 0; border-right: none; }
  .edicao-section-content { padding: 12px 24px 28px; }

  /* ── EDIÇÃO — PROGRAMA ── */
  .programa-item { gap: 12px; }
  .programa-com-imagem { flex-direction: column; gap: 24px; }
  .programa-cartaz { width: 100%; position: static; }

  /* ── EDIÇÃO — LOCALIZAÇÃO ── */
  .edicao-local-content { grid-template-columns: 1fr; gap: 24px; }

  /* ── EDIÇÃO — GALERIA ── */
  .edicao-section-galeria { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); padding: 20px 24px 28px; }

  /* ── EDIÇÃO — PARTICIPANTES (versão compacta) ── */
  .edicao-section-participantes { grid-template-columns: 1fr; }
  .participantes-grid { grid-template-columns: repeat(2, 1fr); padding: 20px 24px 28px; }

  /* ── LIGHTBOX ── */
  .ti-lightbox-prev,
  .ti-lightbox-next { padding: 16px 12px; }
  .ti-lightbox-close { top: 14px; right: 16px; }

  /* ── NAV ENTRE EDIÇÕES ── */
  .edicoes-nav-link { padding: 14px 10px; font-size: 10px; }

  /* ── BLOG — LISTA DE ARTIGOS ── */
  .article-list { width: 100%; }
  .article-row { grid-template-columns: 1fr; }
  .article-img { width: 100%; }
  .article-content { padding: 20px 24px 28px; }

  /* ── BLOG — SEM ARTIGOS ── */
  .coming-soon {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 8px;
  }

  /* ── CONTACTO ── */
  .contact-coming-soon { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: clamp(34px, 11vw, 44px); }
  .hero-col { padding: 28px 18px; }
  .edition-card { padding: 18px 20px; }
}

.body-section .body-text {
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: rgba(17,17,17,0.9);
}

.edicao-tema {
    font-size: 20px; /* Altere para o tamanho que quiser (ex: 20px, 24px, etc.) */
    font-weight: normal;   /* Opcional: para dar mais destaque */
    color: #333;         /* Opcional: cor do texto */
    margin-bottom: 15px; /* Espaço por baixo do texto */
}

.edition-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.edition-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 185px;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 0px;
}

.edition-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top right;
}