/* Sobe e Desce Team — estilos globais */
:root {
  --ink: #15171a;
  --ink-soft: #4a4f57;
  --paper: #faf8f4;
  --card: #ffffff;
  --line: #e7e2d9;
  --orange: #f39c1e;
  --orange-dark: #c97a0a;
  --blue: #0563b0;
  --blue-dark: #044a84;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(21, 23, 26, .08);
  --max: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--card); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-dark); margin-bottom: .6em;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 10px 16px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { background: #efe9df; }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-social { display: flex; align-items: center; gap: 2px; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav .nav-social a { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; color: var(--ink-soft); }
.nav .nav-social a svg { width: 20px; height: 20px; }
.nav .nav-social a[href*="facebook"]:hover { background: #1877f2; color: #fff; }
.nav .nav-social a[href*="instagram"]:hover { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); color: #fff; }
.menu-btn {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  width: 46px; height: 46px; border-radius: 10px;
}
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .menu-open .nav { display: flex; }
  .nav a { padding: 14px 16px; border-radius: 10px; font-size: 1.05rem; }
  .nav-social { margin: 8px 0 0; padding: 12px 8px 0; border-left: 0; border-top: 1px solid var(--line); gap: 8px; }
  .nav .nav-social a { width: 46px; height: 46px; background: #efe9df; color: var(--ink); }
  .brand img { height: 36px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #15171a 0%, #1f2a36 60%, #0b3a63 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(110px, 14vw, 180px); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d5dbe3; max-width: 52ch; }
.hero .eyebrow { color: var(--orange); }
.hero p .lema {
  color: #fff; font-weight: 800; padding: 0 2px;
  background: linear-gradient(transparent 60%, rgba(243, 156, 30, .55) 60%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero--photo { background: #15171a; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: 0;
}
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15, 17, 20, .92) 0%, rgba(15, 17, 20, .75) 45%, rgba(15, 17, 20, .35) 100%),
              linear-gradient(0deg, rgba(15, 17, 20, .6) 0%, rgba(15, 17, 20, 0) 40%);
}
.hero--photo .wrap { padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(130px, 16vw, 210px); }
.hero--photo h1 { text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero--photo p { color: #e3e8ee; }
.sports--hero { margin: 22px 0 0; }
.hero .sports--hero li { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(4px); }
@media (max-width: 760px) {
  .hero--photo::before { background: linear-gradient(0deg, rgba(15, 17, 20, .95) 0%, rgba(15, 17, 20, .7) 60%, rgba(15, 17, 20, .55) 100%); }
  .hero-bg { object-position: 60% 40%; }
}

/* Faixa do próximo evento, dentro do topo da página inicial */
.next-strip {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px;
  margin-top: 36px; max-width: 860px; padding: 14px 16px; border-radius: 18px;
  background: rgba(15, 17, 20, .55); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px);
}
.next-strip-poster { display: block; width: 120px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); transition: transform .2s; }
.next-strip-poster:hover { transform: scale(1.04); }
.next-strip-poster img { width: 100%; aspect-ratio: 842 / 1191; object-fit: cover; }
.next-strip-info { min-width: 0; }
.next-strip-info small { display: block; color: var(--orange); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.next-strip-info a { color: #fff; text-decoration: none; }
.next-strip-info b { display: block; font-size: 1.25rem; line-height: 1.25; }
.next-strip-info span { font-size: .88rem; color: #d5dbe3; }
.next-strip-count { background: var(--orange); color: var(--ink); border-radius: 12px; padding: 8px 14px; text-align: center; line-height: 1; }
.next-strip-count b { display: block; font-size: 1.8rem; font-weight: 800; }
.next-strip-count span { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.next-strip-actions { display: flex; gap: 8px; }
.next-strip-actions .btn { padding: 11px 18px; font-size: .92rem; }
@media (max-width: 860px) {
  .next-strip { grid-template-columns: auto 1fr auto; }
  .next-strip-actions { grid-column: 1 / -1; }
  .next-strip-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 860px) { .next-strip-poster { width: 96px; } }
@media (max-width: 420px) { .next-strip-poster { width: 76px; } .next-strip-info b { font-size: 1.05rem; } }

/* Notícias da página inicial: a primeira em destaque */
.section--tight-top { padding-top: clamp(32px, 5vw, 56px); }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--blue); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }
.section-head .link-arrow { margin-bottom: .6em; }
@media (min-width: 900px) {
  .news-grid.news-grid--featured { grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; }
  .news-grid--featured .news:first-child { grid-row: span 2; }
  .news-grid--featured .news:first-child .news-img { aspect-ratio: 16 / 11; }
  .news-grid--featured .news:first-child h3 { font-size: 1.55rem; }
  .news-grid--featured .news:first-child p { font-size: 1.02rem; }
  .news-grid--featured .news:not(:first-child) { flex-direction: row; }
  .news-grid--featured .news:not(:first-child) .news-img { flex: 0 0 42%; aspect-ratio: auto; }
  .news-grid--featured .news:not(:first-child) p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .news-grid--featured + .more-wrap { display: none; }
}

/* Faixa de números */
.numbers { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.numbers-grid div { border-left: 3px solid var(--orange); padding-left: 18px; }
.numbers-grid div:nth-child(even) { border-color: var(--blue); }
.numbers-grid b { display: block; white-space: nowrap; font-size: clamp(1.7rem, 7.5vw, 3.2rem); font-weight: 800; line-height: 1; margin-bottom: 8px; }
.numbers-grid span { font-size: .92rem; color: #b9bfc8; }
@media (max-width: 860px) { .numbers-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }

/* Quem somos */
.what-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.what-list li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.what-list li::before { content: "▲"; position: absolute; left: 4px; top: 2px; font-size: .8rem; color: var(--orange); }
.what-list b { color: var(--ink); }

/* Ligação para Conhecer Estremoz */
.land-teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.land-teaser-img { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--ink); }
.land-teaser-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.land-teaser-img:hover img { transform: scale(1.04); }
.land-teaser p { color: var(--ink-soft); }
@media (max-width: 860px) { .land-teaser { grid-template-columns: 1fr; } }

/* Final com convite e redes */
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.cta-actions .btn { padding: 16px 26px; }
@media (max-width: 520px) { .cta-actions > * { width: 100%; justify-content: center; } }

/* Próximo evento (página inicial) */
.next-event-wrap { padding: clamp(40px, 6vw, 64px) 0 0; }
.next-event-wrap + .section { padding-top: clamp(48px, 7vw, 80px); }
.next-event {
  display: grid; grid-template-columns: 200px 1fr auto; gap: clamp(20px, 4vw, 40px); align-items: center;
  background: linear-gradient(135deg, #15171a 0%, #1f2a36 60%, #0b3a63 100%); color: #fff;
  border-radius: 20px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.next-event::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 156, 30, .25), transparent 70%); pointer-events: none;
}
.next-event-poster { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); transform: rotate(-2deg); transition: transform .3s; }
.next-event-poster:hover { transform: rotate(0) scale(1.02); }
.next-event-poster img { width: 100%; }
.next-event .eyebrow { color: var(--orange); }
.next-event h2 { margin-bottom: .2em; }
.next-event-date { color: #e3e8ee; font-weight: 600; margin-bottom: 14px; }
.next-event-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.next-event-facts li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: #d5dbe3; }
.next-event-facts b { color: var(--orange); }
.next-event .btns { margin-top: 20px; }
.next-event-note { margin: 10px 0 0; font-size: .85rem; color: #b9c2cd; }
.countdown {
  text-align: center; background: var(--orange); color: var(--ink); border-radius: 16px; padding: 20px 26px; min-width: 130px; position: relative; z-index: 1;
}
.countdown b { display: block; font-size: 3rem; font-weight: 800; line-height: 1; }
.countdown span { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.countdown small { display: block; font-size: .78rem; font-weight: 600; opacity: .8; }
@media (max-width: 860px) {
  .next-event { grid-template-columns: 120px 1fr; }
  .countdown { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 14px; }
  .countdown b { font-size: 2.2rem; }
}
@media (max-width: 520px) {
  .next-event { grid-template-columns: 1fr; }
  .next-event-poster { max-width: 160px; }
}

/* altura limitada: em ecrãs largos o desenho estica para os lados mas não cresce para cima do texto */
.hero-mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(48px, 6vw, 96px); z-index: 1; pointer-events: none; }
.hero--small .wrap { padding-bottom: clamp(90px, 10vw, 140px); }
.hero--small h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: none; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: #ffad33; box-shadow: 0 8px 20px rgba(243, 156, 30, .35); }
.btn--ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .5); }
.btn--ghost:hover { border-color: #fff; }

/* ---------- Quem somos ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo figcaption { margin-top: 10px; font-size: .88rem; color: var(--ink-soft); text-align: center; }
.about-logo {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 6vw, 56px);
}
.about-logo img { width: 100%; max-width: 420px; height: auto; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-logo { aspect-ratio: auto; } }

.sports { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sports li { background: #fdf0dc; color: var(--orange-dark); font-weight: 700; font-size: .9rem; padding: 6px 14px; border-radius: 999px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- O que fazemos ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 36px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature .ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: var(--orange); margin-bottom: 18px;
}
.feature:nth-child(2) .ico { color: #fff; background: var(--blue); }
.feature:nth-child(3) .ico { color: var(--ink); background: var(--orange); }
.feature p { color: var(--ink-soft); margin: 0; }

/* ---------- Notícias ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.news {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.news:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-img { aspect-ratio: 16 / 10; background: #e9e4da; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.news-img--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--ink), #0b3a63); }
.news-img--empty img { width: 40%; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8rem; color: var(--ink-soft); margin-bottom: 10px; }
.tag { background: #fdf0dc; color: var(--orange-dark); font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.news h3 { margin-bottom: 8px; }
.news p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.news .result { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .9rem; font-weight: 600; color: var(--blue-dark); }
a.news { color: inherit; text-decoration: none; }
.news-img { position: relative; }
.news-count {
  position: absolute; right: 10px; bottom: 10px; background: rgba(21, 23, 26, .78); color: #fff;
  font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.news-more { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: .9rem; color: var(--orange-dark); }
.news:hover .news-more { color: var(--blue); }
.more-wrap { text-align: center; margin-top: 32px; }

/* ---------- Página de notícia ---------- */
.article-head { padding: clamp(32px, 5vw, 56px) 0 24px; }
.article-head .wrap, .article-body, .article-foot { max-width: 820px; }
.article-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; margin-top: 10px; }
.back { display: inline-block; font-weight: 700; text-decoration: none; margin-bottom: 18px; color: var(--ink-soft); }
.back:hover { color: var(--blue); }
.article-cover {
  display: block; width: 100%; max-width: 980px; margin: 0 auto; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: none;
}
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; object-position: center 30%; }
.article-body { padding-top: 32px; font-size: 1.06rem; }
.article-body p { color: #2b2f35; }
.results-title { font-size: 1.35rem; margin: 32px 0 14px; }
.results { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); margin-bottom: 28px; }
.results-row {
  display: grid; grid-template-columns: 1.4fr 1.2fr .6fr .7fr; gap: 12px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.results-row:last-child { border-bottom: 0; }
.results-row:nth-child(even) { background: #fcfaf6; }
.results-name { font-weight: 700; }
.results-row--podio, .results-row--podio:nth-child(even) { background: #fdf3e2; box-shadow: inset 4px 0 0 var(--orange); }
.podio, .tag--podio {
  display: inline-block; background: var(--orange); color: var(--ink); font-size: .72rem; font-weight: 800;
  padding: 2px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.tag--podio { margin-left: 0; font-size: inherit; padding: 3px 10px; }
.results-cell small { display: none; }
.results-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--blue-dark); }
.results--sem-tempo .results-row { grid-template-columns: 1.4fr 1.2fr .6fr; }
.results--destaque { border-color: var(--orange); }
.results-note { grid-column: 1 / -1; font-size: .88rem; color: var(--ink-soft); font-style: italic; }
.results-row--dnf .results-name { color: var(--ink-soft); }
@media (max-width: 640px) {
  .results-row, .results--sem-tempo .results-row { grid-template-columns: repeat(3, 1fr); row-gap: 6px; }
  .results-name { grid-column: 1 / -1; }
  .results-cell small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
}
.hashtags { color: var(--blue); font-weight: 600; font-size: .9rem; word-spacing: 4px; }
.gallery-wrap { padding-top: 24px; }
.gallery-wrap h2 { font-size: 1.5rem; }
.gallery-wrap h2 span { font-weight: 600; color: var(--ink-soft); font-size: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 2; background: #e9e4da; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr 1fr; gap: 8px; } }
.article-foot { padding: 40px 20px 72px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 11, 13, .94);
  display: flex; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox button[hidden] { display: none; }
.lb-close { top: 14px; right: 14px; font-size: 1.2rem !important; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #cfd4da; font-weight: 600; font-size: .9rem; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }
.btn--outline { border: 2px solid var(--ink); color: var(--ink); background: none; cursor: pointer; font: inherit; font-weight: 700; }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* Página de notícias: filtros */
.news-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; margin-bottom: 28px; }
.news-tools .filter { margin-bottom: 0; }
.news-tools-right { display: flex; align-items: center; gap: 12px; }
.news-count-total { font-size: .9rem; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.year-select {
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer;
}

/* Redes sociais */
.follow {
  margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px;
}
.follow h3 { margin: 0 0 4px; }
.follow p { margin: 0; color: var(--ink-soft); }
.follow-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 12px; border-radius: 14px;
  color: #fff; text-decoration: none; font-weight: 700; transition: transform .15s, box-shadow .2s;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21, 23, 26, .2); }
.social-btn svg { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .18); flex: none; }
.social-btn small { display: block; font-size: .72rem; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.social-btn--fb { background: #1877f2; }
.social-btn--ig { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
@media (max-width: 520px) { .follow-links, .social-btn { width: 100%; } }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- Eventos ---------- */
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter button {
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 10px 18px; border-radius: 999px;
}
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter--serie { margin-top: -14px; }
.filter--serie button { font-size: .85rem; padding: 6px 14px; }
.filter--serie button[aria-pressed="true"] { background: var(--orange); color: var(--ink); border-color: var(--orange); }

.events { display: grid; gap: 24px; }
.event {
  display: grid; grid-template-columns: 340px 1fr; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.event-img { background: var(--ink); min-height: 220px; max-height: 340px; }
.event-img img { width: 100%; height: 100%; object-fit: contain; }
.event-body { padding: 28px; display: flex; flex-direction: column; }
.event-body .news-meta { margin-bottom: 14px; }
.event-body .news-meta .event-date { margin-bottom: 0; }
.tag--hero { display: inline-block; margin: 4px 0 12px; font-size: .85rem; }
.event-date {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.event--past .event-date { background: #8a9099; }
.event-body p { color: var(--ink-soft); }
.event-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 4px 0 18px; font-size: .92rem; font-weight: 600; }
.event-facts li::before { content: "▲ "; color: var(--orange); font-size: .75em; }
.event-body .btn { align-self: flex-start; margin-top: auto; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
@media (max-width: 760px) {
  .event { grid-template-columns: 1fr; }
  .event-img { aspect-ratio: 16 / 9; min-height: 0; }
  .event-body { padding: 22px; }
}
.empty { padding: 40px; text-align: center; color: var(--ink-soft); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }

.event-body h3 a { color: inherit; text-decoration: none; }
.event-body h3 a:hover { color: var(--blue); }
.event-body .eyebrow { margin-bottom: 2px; }
.btns--tight { margin-top: auto; gap: 10px; }
.event-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.event-links a {
  font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--blue-dark);
  background: #eef4fb; border: 1px solid #d6e4f3; padding: 8px 14px; border-radius: 999px;
}
.event-links a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.event-img-empty {
  height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(135deg, var(--ink), #0b3a63);
}
.event-img-empty img { width: 55%; max-width: 200px; height: auto; filter: brightness(0) invert(1); opacity: .9; }
.event-img-empty span { color: var(--orange); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }.btn--small { padding: 10px 18px; font-size: .9rem; }

/* ---------- Página de evento ---------- */
.event-hero { background: linear-gradient(160deg, #15171a 0%, #1f2a36 60%, #0b3a63 100%); color: #fff; }
.event-hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 72px);
}
.event-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; margin-bottom: .2em; }
.event-hero .eyebrow { color: var(--orange); display: block; }
.back--light { color: #c4ccd6; }
.back--light:hover { color: #fff; }
.event-hero-date { font-size: 1.15rem; font-weight: 600; color: #e3e8ee; }
.event-hero-note { margin-top: 14px; font-size: .92rem; color: #b9c2cd; }
.event-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.event-stats div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 14px; }
.event-stats b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--orange); line-height: 1.15; }
.event-stats span { font-size: .78rem; color: #c4ccd6; }
.event-poster { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); justify-self: center; max-width: 380px; }
.event-poster img { width: 100%; }
@media (max-width: 860px) {
  .event-hero-grid { grid-template-columns: 1fr; }
  .event-poster { max-width: 280px; }
}
@media (max-width: 520px) { .event-stats { grid-template-columns: repeat(2, 1fr); } }

.event-tabs { position: sticky; top: 72px; z-index: 40; background: var(--card); border-bottom: 1px solid var(--line); }
.event-tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.event-tabs .wrap::-webkit-scrollbar { display: none; }
.event-tabs a { flex: none; padding: 14px 14px; font-weight: 600; font-size: .92rem; color: var(--ink-soft); text-decoration: none; border-bottom: 3px solid transparent; }
.event-tabs a:hover { color: var(--ink); border-bottom-color: var(--orange); }

.event-content { max-width: 900px; padding-bottom: 72px; }
.event-section { padding-top: 48px; scroll-margin-top: 130px; }
.event-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.event-section h3 { margin-top: 28px; }
.event-intro { font-size: 1.08rem; }
.event-intro p { color: #2b2f35; }
.lead-small { color: var(--ink-soft); font-weight: 600; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.info-card small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 4px; }
.info-card p { margin: 0; font-size: .95rem; }

.tick-list { list-style: none; padding: 0; margin: 0 0 1em; }
.tick-list li { position: relative; padding: 6px 0 6px 28px; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 6px; font-weight: 800; color: var(--blue); }

.schedule { list-style: none; padding: 0; margin: 16px 0; border-left: 3px solid var(--orange); }
.schedule li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0 12px 20px; border-bottom: 1px dashed var(--line); }
.schedule b { color: var(--blue-dark); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .schedule li { grid-template-columns: 1fr; gap: 2px; } }
.place-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.place-links .btn { padding: 10px 18px; font-size: .9rem; }

.signup { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.signup-main, .signup-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.signup-main h3, .signup-side h3 { margin-top: 0; font-size: 1.05rem; }
.signup-main h3 { margin-top: 24px; }
.price b { display: block; font-size: 1.8rem; font-weight: 800; }
.price span { color: var(--ink-soft); font-size: .92rem; }
.price { margin-bottom: 12px; }
.pay { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: var(--paper); }
.pay small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.pay b { display: block; font-variant-numeric: tabular-nums; word-break: break-word; }
.pay span { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }
.small-note { font-size: .88rem; color: var(--ink-soft); }
.empty-inline { font-weight: 700; color: var(--ink-soft); }
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; } }

.accordion details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.accordion summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--orange-dark); }
.accordion details[open] summary::after { content: "–"; }
.accordion details > div { padding: 0 20px 8px; font-size: .95rem; color: #2b2f35; }

.past-link {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 12px; padding: 18px 22px;
  font-size: 1.4rem; transition: border-color .2s;
}
.past-link:hover { border-color: var(--blue); }
.past-link b { display: block; font-size: 1.1rem; }
.past-link span:first-child { font-size: .92rem; color: var(--ink-soft); }
.editions { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.edition { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.edition b { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.edition a { font-weight: 600; font-size: .92rem; text-decoration: none; }
.edition a:hover { text-decoration: underline; }

.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color .2s; }
.contact:hover { border-color: var(--blue); }
.contact small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.contact b { display: block; color: var(--blue-dark); word-break: break-word; }
.contact span { font-size: .9rem; color: var(--ink-soft); }
.org { margin-top: 40px; text-align: center; }

/* ---------- Historial ---------- */
.story { max-width: 760px; }
.timeline { position: relative; margin: 48px 0 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--orange), var(--blue)); border-radius: 3px; }
.timeline li { position: relative; padding-left: 64px; margin-bottom: 36px; }
.timeline li::before {
  content: ""; position: absolute; left: 10px; top: 4px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--orange);
}
.timeline li:nth-child(even)::before { border-color: var(--blue); }
.timeline .year { font-weight: 800; font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.timeline h3 { margin: 4px 0 6px; }
.timeline p { color: var(--ink-soft); margin: 0; }
.timeline img { margin-top: 14px; border-radius: 10px; max-height: 260px; width: auto; box-shadow: var(--shadow); }

.story-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 48px 0 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.story-title:first-child { margin-top: 0; }
.story-title span { background: var(--orange); color: var(--ink); font-size: .8em; padding: 2px 12px; border-radius: 8px; }
.story p { color: #2b2f35; }
.story-photo { margin: 28px 0; }
.story-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.story-photo figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }
.story .timeline { margin: 28px 0 32px; }
.story .timeline li { margin-bottom: 22px; }
.story .timeline .year { font-size: 1.05rem; color: var(--orange-dark); }
.quote {
  margin: 28px 0; padding: 24px 28px; border-left: 5px solid var(--orange);
  background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; font-weight: 600;
}

/* ---------- Conhecer Estremoz ---------- */
.land-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.land-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.land-facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.land-facts b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--blue); }
.land-facts span { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 860px) { .land-intro { grid-template-columns: 1fr; } }

.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 28px; }
.video { margin: 0; }
.video-frame, .video iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); box-shadow: var(--shadow);
}
.video-frame { position: relative; padding: 0; cursor: pointer; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; opacity: .9; }
.video-frame:hover img { transform: scale(1.04); opacity: 1; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s;
}
.video-play::after {
  content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--ink);
}
.video-frame:hover .video-play { transform: scale(1.1); }
.video figcaption { margin-top: 12px; }
.video figcaption b { display: block; }
.video figcaption span { font-size: .88rem; color: var(--ink-soft); }

.video-hero .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(90px, 11vw, 150px); }
.video-hero-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.video-hero-head h1 { max-width: none; margin-left: auto; margin-right: auto; }
.video-hero-head p { margin-left: auto; margin-right: auto; }
.video--hero { max-width: 1000px; margin: 0 auto; }
.video--hero .video-frame, .video--hero iframe { border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); outline: 1px solid rgba(255, 255, 255, .12); }
.video--hero .video-play { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.video--hero .video-play::after { left: 38px; top: 28px; border-width: 20px 0 20px 30px; }
.video--hero figcaption { text-align: center; color: #c4ccd6; }
.video--hero figcaption b { color: #fff; }
.video--hero figcaption span { color: #b9c2cd; }
.video-hero-label {
  position: absolute; left: 16px; bottom: 16px; background: rgba(21, 23, 26, .78); color: #fff;
  font-weight: 700; font-size: .9rem; padding: 8px 14px; border-radius: 999px;
}
@media (max-width: 520px) {
  .video--hero .video-play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .video--hero .video-play::after { left: 29px; top: 22px; border-width: 14px 0 14px 22px; }
  .video-hero-label { display: none; }
}
.video-solo { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.video-solo p { color: var(--ink-soft); }
.video-solo + .video-solo { margin-top: clamp(48px, 7vw, 80px); }
@media (min-width: 861px) {
  .video-solo--rev { grid-template-columns: 1.4fr 1fr; }
  .video-solo--rev > div { order: 2; }
}
@media (max-width: 860px) { .video-solo { grid-template-columns: 1fr; } }
.land-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.land-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.land-ico { font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.land-card p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

.serra { background: linear-gradient(160deg, #15171a 0%, #1c2b22 55%, #2d3b1f 100%); color: #fff; }
.serra .eyebrow { color: var(--orange); }
.serra .lead, .serra p { color: #d6dccf; }
.serra em { color: #fff; }
.serra-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.serra-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.serra-list li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-left: 4px solid var(--orange); border-radius: 12px; padding: 16px 18px; }
.serra-list b { display: block; color: #fff; }
.serra-list span { font-size: .9rem; color: #c3cbbd; }
@media (max-width: 860px) { .serra-grid { grid-template-columns: 1fr; } }
.serra-photo { margin: clamp(32px, 5vw, 56px) 0 0; }
.serra-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.serra-photo figcaption { margin-top: 10px; font-size: .85rem; color: #c3cbbd; }

/* ---------- CTA + rodapé ---------- */
.cta { background: var(--orange); color: var(--ink); text-align: center; }
.cta h2 { margin-bottom: .3em; }
.cta p { max-width: 56ch; margin: 0 auto 24px; }
.cta .btn { background: var(--ink); color: #fff; }

.footer { background: var(--ink); color: #b9bfc8; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer img { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #b9bfc8; text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #2c3036; margin-top: 40px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Aviso de cookies */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  background: var(--ink); color: #e3e8ee; border-radius: 16px; padding: 18px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: .92rem; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 20px; font-size: .92rem; }
.cookie-banner .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cookie-banner .btn--outline:hover { background: #fff; color: var(--ink); }
@media (max-width: 520px) { .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; justify-content: center; } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--orange); }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
