/* A fonte Poppins é carregada via <link> no <head> de cada página (mais rápido que @import) */

/* ─── RESET ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue:    #1565C0;
  --red:     #E53935;
  --green:   #43A047;
  --yellow:  #FDD835;
  --purple:  #8E24AA;
  --orange:  #FB8C00;
  --dark:    #0D1B3E;
  --gray:    #f5f7fa;
  --text:    #1a1a2e;
  --muted:   #5a6480;
  --bg:      #ffffff;
  --surface: #ffffff;
  --border:  #f0f2f5;
  --nav-bg:  #ffffff;
}

[data-theme="dark"] {
  --dark:    #e2e8f0;
  --text:    #e2e8f0;
  --muted:   #94a3b8;
  --gray:    #1a2535;
  --bg:      #0f172a;
  --surface: #1e293b;
  --border:  #2d3f5e;
  --nav-bg:  #1e293b;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

/* ─── NAVBAR ─── */
nav {
  background: var(--nav-bg);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.05);
}

.nav-logo img {
  height: 52px;
  width: auto;
  padding: 6px 0;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── NAV CONTROLS ─── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--gray);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
  transition: background 0.3s;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.6px;
}

.lang-btn.active {
  background: var(--blue);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  color: var(--dark);
}

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.theme-btn:hover {
  background: var(--gray);
  color: var(--dark);
}

.nav-links li a {
  display: block;
  padding: 20px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.4px;
  position: relative;
  transition: color 0.2s;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links li a:hover { color: var(--blue); }
.nav-links li a:hover::after { transform: scaleX(1); }

.nav-links li a.active {
  color: var(--blue);
}
.nav-links li a.active::after { transform: scaleX(1); }

/* ─── HERO (Home) ─── */
.hero {
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 65%);
  padding: 90px 48px 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(21,101,192,0.09) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(229,57,53,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 56px;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge,
.hero h1.hero-logo,
.hero-divider,
.hero p,
.hero-cta {
  animation: heroIn 0.7s ease both;
}

.hero h1.hero-logo   { animation-delay: 0.06s; }
.hero-divider        { animation-delay: 0.14s; }
.hero p              { animation-delay: 0.2s; }
.hero-cta            { animation-delay: 0.28s; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EFF6FF;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid #BFDBFE;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
  max-width: 700px;
}

.hero h1.hero-logo {
  max-width: 220px;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.hero h1.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(13,27,62,0.14));
}

.hero-divider {
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  margin: 0 0 26px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple));
  position: relative;
  z-index: 1;
}

.hero h1 .accent-blue   { color: var(--blue); }
.hero h1 .accent-red    { color: var(--red); }
.hero h1 .accent-green  { color: var(--green); }
.hero h1 .accent-orange { color: var(--orange); }
.hero h1 .hero-for      { color: var(--yellow); }
[data-theme="dark"] .hero h1 .hero-for { color: #e2e8f0; }

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(21,101,192,0.3);
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: #0d47a1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21,101,192,0.38);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 100px;
  border: 2px solid #d1d5db;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* COLOR STRIP */
.color-strip {
  display: flex;
  height: 5px;
}
.color-strip span {
  flex: 1;
}
.color-strip span:nth-child(1) { background: var(--red); }
.color-strip span:nth-child(2) { background: var(--orange); }
.color-strip span:nth-child(3) { background: var(--yellow); }
.color-strip span:nth-child(4) { background: var(--green); }
.color-strip span:nth-child(5) { background: var(--blue); }
.color-strip span:nth-child(6) { background: var(--purple); }

/* ─── SECTION LABEL ─── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  background: #EFF6FF;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* ─── VIDEO SECTION ─── */
.video-section {
  padding: 70px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--gray);
}

.video-section .section-label { background: #fff; }

.video-section h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 36px;
  text-align: center;
}

.yt-wrapper {
  width: 100%;
  max-width: 700px;
}

.yt-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.08);
}

.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-thumbnail {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0D1B3E 0%, #1565C0 50%, #0d47a1 100%);
}

.yt-thumbnail:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 70px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.1);
}

.yt-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.yt-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.2s;
}

.yt-thumbnail:hover .play-btn {
  background: #fff;
  transform: scale(1.12);
}

.play-btn::after {
  content: '';
  border-left: 30px solid var(--red);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  margin-left: 7px;
}

.yt-thumb-text {
  position: absolute;
  bottom: 20px;
  left: 24px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.yt-label {
  margin-top: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.yt-label a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.yt-label a:hover { color: var(--red); }

/* ─── INFO CARDS ─── */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  padding: 70px 48px;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid #f0f2f5;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
}

.card:nth-child(1)::before { background: var(--blue); }
.card:nth-child(2)::before { background: var(--green); }
.card:nth-child(3)::before { background: var(--orange); }
.card:nth-child(4)::before { background: var(--red); }

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.card a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.card a:hover { text-decoration: underline; }

/* ─── PAGE BANNER ─── */
.page-banner {
  background: #fff;
  padding: 64px 48px 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f0f2f5;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,101,192,0.08) 0%, transparent 70%);
}

.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 10px;
}

.page-banner p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
}

/* ─── CONTENT SECTION ─── */
.content-section {
  padding: 60px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-section h2:first-child { margin-top: 0; }

.content-section h2::before {
  content: '';
  display: block;
  width: 5px;
  height: 1.4em;
  border-radius: 4px;
  background: var(--blue);
  flex-shrink: 0;
}

.content-section p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 16px;
}

.org-link {
  display: inline-block;
  font-weight: 700;
  color: var(--blue);
  background: #e8f0fb;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  padding: 1px 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.org-link:hover {
  background: var(--blue);
  color: #fff;
}

/* ─── EDITIONS ─── */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  padding: 60px 48px;
  max-width: 1040px;
  margin: 0 auto;
}

.edition-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: 1px solid #f0f2f5;
  transition: transform 0.2s, box-shadow 0.2s;
}

.edition-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.edition-card {
  display: flex;
}

.edition-year {
  background: var(--blue);
  color: #fff;
  width: 100%;
  height: 100%;
  border: none;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  padding: 22px 18px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: filter 0.2s;
}

.edition-year:hover { filter: brightness(1.08); }

.edition-year--upcoming {
  background: transparent;
  color: #0891b2;
  border: 3px dashed #0891b2;
  position: relative;
}
.edition-year--upcoming .upcoming-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 4px;
}

.edition-card:nth-child(2) .edition-year { background: var(--blue); }
.edition-card:nth-child(3) .edition-year { background: var(--green); }
.edition-card:nth-child(4) .edition-year { background: var(--orange); }
.edition-card:nth-child(5) .edition-year { background: var(--purple); }
.edition-card:nth-child(6) .edition-year { background: var(--red); }
.edition-card:nth-child(7) .edition-year { background: #0891b2; }

/* ─── EDITION MODAL ─── */
.edition-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,27,62,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.edition-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.edition-modal {
  background: var(--surface);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.edition-modal-overlay.open .edition-modal {
  transform: translateY(0);
}

.edition-modal-banner {
  color: #fff;
  text-align: center;
  padding: 36px 36px 26px;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.edition-modal-year {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
}

.edition-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.edition-modal-close:hover { background: rgba(255,255,255,0.32); }

.edition-modal-body {
  padding: 28px 36px 36px;
}

.edition-modal-body p {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 26px;
}

.edition-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.edition-video-link,
.edition-cartaz-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ─── PARCEIROS ─── */
.partners-section {
  padding: 60px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.partners-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.partners-section h2::before {
  content: '';
  display: block;
  width: 5px;
  height: 1.4em;
  background: var(--purple);
  border-radius: 4px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.partner-logo {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.partner-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

a.partner-logo-link {
  text-decoration: none;
}

.partner-name-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.5;
  text-align: center;
}

/* ─── AGENDA ─── */
.calendar-section {
  padding: 60px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.calendar-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-section h2::before {
  content: '';
  display: block;
  width: 5px;
  height: 1.4em;
  background: var(--orange);
  border-radius: 4px;
}

.event-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f2f5;
  transition: transform 0.15s, box-shadow 0.15s;
}

.event-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.event-date {
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  min-width: 64px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
}

.event-month {
  display: block;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
}

.event-day-wrap {
  background: #fff;
  padding: 8px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.event-day {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}

.event-year {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
}

[data-theme="dark"] .event-day-wrap {
  background: #1e2533;
}

[data-theme="dark"] .event-day { color: #e2e8f0; }

.event-info h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.event-info p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ─── GALLERY ─── */
.gallery-section {
  padding: 60px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-section h2::before {
  content: '';
  display: block;
  width: 5px;
  height: 1.4em;
  background: var(--green);
  border-radius: 4px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.photo-placeholder {
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  transition: transform 0.2s;
  overflow: hidden;
}

.photo-placeholder:hover { transform: scale(1.03); }

.photo-placeholder:nth-child(6n+1)  { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.photo-placeholder:nth-child(6n+2)  { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.photo-placeholder:nth-child(6n+3)  { background: linear-gradient(135deg, #fef9c3, #fde68a); }
.photo-placeholder:nth-child(6n+4)  { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.photo-placeholder:nth-child(6n+5)  { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.photo-placeholder:nth-child(6n+6)  { background: linear-gradient(135deg, #ffedd5, #fed7aa); }

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  transition: transform 0.2s;
}

.gallery-grid img:hover { transform: scale(1.04); }

.gallery-flickr {
  margin-top: 32px;
  text-align: center;
}

a.photo-placeholder {
  cursor: zoom-in;
}

a.photo-placeholder:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ─── LIGHTBOX ─── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 34, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 56px 80px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block;
  margin: 0 auto;
}

.lightbox-caption {
  color: #c8d8f0;
  font-size: 0.88rem;
  margin-top: 14px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
  transition: background 0.2s;
  z-index: 1001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.28);
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  padding-bottom: 6px;
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #9cb3d0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
}

@media (max-width: 560px) {
  .lightbox-overlay { padding: 56px 10px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.6rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  color: #c8d8f0;
  padding: 56px 48px 32px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-logo-wrap {
  display: inline-block;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 18px;
}

.footer-logo-wrap img {
  height: 52px;
  width: auto;
  display: block;
}

.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.7;
  color: #7a9abf;
  max-width: 240px;
}

.footer-links h4,
.footer-social h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links ul li a {
  color: #7a9abf;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}

.footer-links ul li a:hover {
  color: #fff;
  padding-left: 6px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #162040;
  border-radius: 12px;
  color: #9cb3d0;
  text-decoration: none;
  border: 1px solid #1e2d50;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.social-icons a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1000px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #162040;
  text-align: center;
  font-size: 0.82rem;
  color: #3d5278;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 0 20px; position: relative; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--nav-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 8px 0 16px;
  }

  .nav-links.open { display: flex; }

  .nav-links li a { padding: 14px 24px; font-size: 0.88rem; }
  .nav-links li a::after { display: none; }

  .hero, .video-section, .content-section,
  .editions-grid, .calendar-section, .gallery-section { padding-left: 20px; padding-right: 20px; }

  .info-cards { padding-left: 20px; padding-right: 20px; }

  .page-banner { padding: 40px 20px 32px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  footer { padding: 40px 20px 24px; }
}

@media (max-width: 560px) {
  nav { padding: 10px 16px; }
  .nav-logo img { height: 40px; }
  .hero h1 { font-size: 2rem; }
}

/* ─── DARK MODE ─── */
[data-theme="dark"] nav {
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 20px rgba(0,0,0,0.4);
}

[data-theme="dark"] .nav-links li a { color: #94a3b8; }
[data-theme="dark"] .nav-links li a:hover,
[data-theme="dark"] .nav-links li a.active { color: #60a5fa; }
[data-theme="dark"] .nav-links li a::after { background: #60a5fa; }

[data-theme="dark"] .hero {
  background: var(--bg);
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(96,165,250,0.1) 0%, transparent 70%);
}
[data-theme="dark"] .hero p { color: var(--muted); }

[data-theme="dark"] .hero-badge {
  background: #1e3a5f;
  color: #60a5fa;
  border-color: #2d5080;
}

[data-theme="dark"] .btn-outline {
  color: var(--muted);
  border-color: #2d3f5e;
}
[data-theme="dark"] .btn-outline:hover { border-color: #60a5fa; color: #60a5fa; }

[data-theme="dark"] .video-section { background: var(--gray); }
[data-theme="dark"] .section-label { background: #1e293b; color: #60a5fa; }

[data-theme="dark"] .card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
[data-theme="dark"] .card h3 { color: #e2e8f0; }
[data-theme="dark"] .card p  { color: var(--muted); }
[data-theme="dark"] .card a  { color: #60a5fa; }

[data-theme="dark"] .page-banner {
  background: var(--bg);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .page-banner::after {
  background: radial-gradient(circle, rgba(96,165,250,0.08) 0%, transparent 70%);
}

[data-theme="dark"] .edition-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

[data-theme="dark"] .event-item {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
[data-theme="dark"] .event-info h3 { color: #e2e8f0; }
[data-theme="dark"] .event-info p  { color: var(--muted); }

[data-theme="dark"] .photo-placeholder:nth-child(6n+1) { background: linear-gradient(135deg, #1e3a5f, #1e3050); }
[data-theme="dark"] .photo-placeholder:nth-child(6n+2) { background: linear-gradient(135deg, #1a3a2a, #1a3020); }
[data-theme="dark"] .photo-placeholder:nth-child(6n+3) { background: linear-gradient(135deg, #3a2e10, #302510); }
[data-theme="dark"] .photo-placeholder:nth-child(6n+4) { background: linear-gradient(135deg, #3a1a2a, #301020); }
[data-theme="dark"] .photo-placeholder:nth-child(6n+5) { background: linear-gradient(135deg, #2a1a3a, #201030); }
[data-theme="dark"] .photo-placeholder:nth-child(6n+6) { background: linear-gradient(135deg, #3a2010, #302010); }

[data-theme="dark"] .edition-modal {
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

[data-theme="dark"] .partner-logo {
  background: #fff;
}

[data-theme="dark"] .lang-toggle { background: #162040; }
[data-theme="dark"] .theme-btn { border-color: #2d3f5e; }
[data-theme="dark"] .theme-btn:hover { background: #1e293b; }

[data-theme="dark"] .color-strip { opacity: 0.7; }
