/* =========================================================
   1º Congresso dos Rodoviários de Sorocaba e Região
   Paleta extraída da arte oficial do evento (baner-evento-sindicato)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Caveat:wght@600&display=swap");

:root {
  --red-950: #3d0000;
  --red-900: #4d0000;
  --red-800: #6a0000;
  --red-700: #800000;
  --red-600: #921012;
  --red-accent: #b3383d;
  --silver: #9a969c;
  --silver-dark: #6f6c72;
  --ink: #201414;
  --cream: #faf6f3;
  --paper: #fff;
  --line: #ece4e0;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-script: "Caveat", cursive;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow-soft: 0 12px 32px rgba(61, 0, 0, 0.16);
  --shadow-lift: 0 18px 44px rgba(61, 0, 0, 0.28);

  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 0.4em; line-height: 1.08; }
p { margin: 0 0 1em; line-height: 1.6; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

#hero, #destaques, #galeria, #entrevistas, #realizacao {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red-accent), var(--red-600), var(--silver));
  z-index: 110;
  transition: width 0.12s linear;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 1.15s cubic-bezier(0.19, 1, 0.22, 1), transform 1.15s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item[data-reveal],
.video-card[data-reveal] {
  transform: translateY(34px) scale(0.94);
}
.gallery-item[data-reveal].is-visible,
.video-card[data-reveal].is-visible {
  transform: translateY(0) scale(1);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red-700);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-solid { background: var(--red-700); color: #fff; box-shadow: var(--shadow-soft); }
.btn-solid:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-outline { background: transparent; color: var(--red-700); border-color: var(--red-700); }
.btn-outline:hover { background: var(--red-700); color: #fff; transform: translateY(-2px); }
.btn:active { transform: scale(0.96); }
.btn-small { padding: 9px 18px; font-size: 0.8rem; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(61, 0, 0, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  transition: height 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}
.site-header.is-scrolled {
  height: 62px;
  background: rgba(41, 0, 0, 0.97);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.3);
}
.site-header.is-scrolled .brand-logo { width: 36px; height: 36px; }
.brand-logo { transition: width 0.28s ease, height 0.28s ease; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand-logo { border-radius: 50%; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
  text-transform: uppercase;
}
.brand-text small {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--silver);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 6px 2px;
  opacity: 0.85;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red-accent);
  transition: right 0.25s ease;
}
.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
}
.site-nav a:hover::after,
.site-nav a.is-active::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 94vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--red-950);
  padding: 96px 0 84px;
}

.hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease;
}
.hero-slide.is-active {
  opacity: 1;
  animation: hero-kenburns-a 7s ease-out forwards;
}
.hero-slide.is-active:nth-of-type(even) {
  animation-name: hero-kenburns-b;
}

@keyframes hero-kenburns-a {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.14) translate(-2%, -1.5%); }
}
@keyframes hero-kenburns-b {
  from { transform: scale(1.1) translate(2%, 1%); }
  to { transform: scale(1.2) translate(0, -1%); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(62% 58% at 50% 56%, rgba(10, 0, 0, 0.68) 0%, rgba(10, 0, 0, 0.38) 55%, rgba(10, 0, 0, 0.6) 100%),
    linear-gradient(180deg, rgba(10, 0, 0, 0.58) 0%, rgba(10, 0, 0, 0.34) 28%, rgba(10, 0, 0, 0.8) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cortina de abertura cinematografica: cobre a cena e desliza pra revelar */
.hero-curtain {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--ink);
  transform-origin: right center;
  animation: curtainOpen 1.05s cubic-bezier(0.76, 0, 0.24, 1) both 0.1s;
  pointer-events: none;
}
@keyframes curtainOpen {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Faixa prateada decorativa, no espirito do banner oficial */
.hero-ribbon {
  position: absolute;
  z-index: 0;
  top: 58%;
  right: -8%;
  width: 44%;
  height: 40px;
  background: linear-gradient(100deg, transparent 0%, var(--silver-dark) 14%, var(--silver) 32%, #fff 48%, var(--silver) 64%, var(--silver-dark) 84%, transparent 100%);
  transform: rotate(-11deg);
  opacity: 0.18;
  pointer-events: none;
}
.hero-ribbon::after {
  content: "";
  position: absolute;
  top: 64px;
  left: 4%;
  width: 58%;
  height: 18px;
  background: inherit;
  opacity: 0.75;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

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

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  animation: heroFadeUp 1s cubic-bezier(0.19, 1, 0.22, 1) both 0.3s;
}
.hero-badge {
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(179, 56, 61, 0.22);
  border: 1px solid rgba(179, 56, 61, 0.75);
  color: #fff;
  white-space: nowrap;
}

.hero .eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--silver) 0%, #fff 50%, var(--silver) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroFadeUp 1s cubic-bezier(0.19, 1, 0.22, 1) both 0.55s,
    heroShimmer 7s linear infinite 2.8s;
}
@keyframes heroShimmer {
  to { background-position: -220% center; }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: #fff;
  overflow: hidden;
}
.hero-title-wipe {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: titleWipe 1.05s cubic-bezier(0.65, 0, 0.35, 1) both 0.85s;
}
@keyframes titleWipe {
  to { clip-path: inset(0 0 0 0); }
}

.hero-tagline {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: #f3d9da;
  margin: 14px 0 10px;
  animation: heroFadeUp 1.1s cubic-bezier(0.19, 1, 0.22, 1) both 1.55s;
}
.hero-desc {
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  animation: heroFadeUp 1.1s cubic-bezier(0.19, 1, 0.22, 1) both 1.8s;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
  list-style: none;
  margin: 22px 0 30px;
  padding: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  animation: heroFadeUp 1.1s cubic-bezier(0.19, 1, 0.22, 1) both 2s;
}
.hero-meta li { display: flex; align-items: center; }
.hero-meta li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red-accent);
  margin: 0 14px;
}
.hero-meta strong { color: #fff; font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  animation: heroFadeUp 1.1s cubic-bezier(0.19, 1, 0.22, 1) both 2.2s;
}
.hero-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.hero-actions .btn-outline:hover { background: #fff; color: var(--red-700); }

.btn-play { gap: 12px; }
.btn-play-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.btn-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-cue span {
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-2px);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: rotate(45deg) translateY(-2px); } 50% { transform: rotate(45deg) translateY(3px); } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section h2 {
  display: flex;
  align-items: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--red-800);
}
.section-lead { max-width: 60ch; color: #5a4d4d; margin-bottom: 36px; }

/* Faixa prateada decorativa, ecoando o grafismo do banner oficial */
.ribbon-mark {
  display: inline-block;
  width: 42px;
  height: 9px;
  margin-right: 14px;
  flex-shrink: 0;
  transform: skewX(-18deg);
  border-radius: 2px;
  background: linear-gradient(100deg, var(--silver-dark) 0%, var(--silver) 32%, #fff 50%, var(--silver) 68%, var(--silver-dark) 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Textura de linhas diagonais em vermelho baixa opacidade, no espirito do banner */
.section-texture {
  background-image: repeating-linear-gradient(-35deg, rgba(128, 0, 0, 0.05) 0px, rgba(128, 0, 0, 0.05) 1.5px, transparent 1.5px, transparent 34px);
}

/* ---------- Highlights (videos) ---------- */
.highlights { background-color: var(--paper); }
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.video-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.video-card:hover {
  box-shadow: 0 20px 46px rgba(128, 0, 0, 0.22);
  border-color: rgba(128, 0, 0, 0.28);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.video-embed.is-vertical {
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin: 0 auto;
}
.video-embed img,
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red-700);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
}
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(128, 0, 0, 0.88);
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-play:hover { transform: scale(1.08); background: var(--red-600); }
.video-play::before { content: "▶"; margin-left: 3px; position: relative; z-index: 1; }
.video-play::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.9; }
  80%, 100% { transform: scale(1.4); opacity: 0; }
}

.video-embed.is-soon .video-play { display: none; }
.video-soon-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: rgba(32, 20, 20, 0.55);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.video-card h3 {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--ink);
  padding: 16px 18px 18px;
  margin: 0;
}

/* ---------- Gallery ---------- */
.gallery-section { background-color: var(--cream); }

.gallery-filters-hint {
  font-size: 0.8rem;
  color: #8c7a7a;
  margin: 0 0 10px;
}
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.filter-btn {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--red-700);
  background: transparent;
  color: var(--red-700);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.filter-btn:hover { background: rgba(128,0,0,0.08); }
.filter-btn.is-active { background: var(--red-700); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  transition: opacity 0.18s ease;
}
.gallery-grid.is-switching { opacity: 0; }

.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 2px 10px rgba(61,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
  box-shadow: 0 16px 34px rgba(128, 0, 0, 0.26);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  mix-blend-mode: overlay;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.gallery-item:hover::after { opacity: 0.15; }
.gallery-item-open {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-download {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(32, 20, 20, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.gallery-item:hover .gallery-download,
.gallery-item:focus-within .gallery-download { opacity: 1; transform: translateY(0); }
.gallery-download:hover { background: var(--red-700); }
.gallery-download.is-disabled { pointer-events: none; opacity: 0.45 !important; }

.gallery-load-more {
  text-align: center;
  margin-top: 40px;
}
.gallery-count {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: #7a6c6c;
}

/* ---------- Interviews ---------- */
.interviews { background-color: var(--paper); }
.interviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 26px;
}
.interviews-grid .video-card h3 { padding-bottom: 4px; }
.interview-role {
  display: block;
  padding: 0 18px 18px;
  margin-top: -14px;
  font-size: 0.82rem;
  color: var(--red-700);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--red-950);
  color: rgba(255,255,255,0.85);
  padding: 52px 0 26px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { border-radius: 50%; flex-shrink: 0; }
.footer-brand p { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: 0.92rem; letter-spacing: 0.02em; }
.footer-brand span { font-family: var(--font-body); text-transform: none; font-weight: 400; color: var(--silver); font-size: 0.78rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a {
  text-decoration: none;
  color: #fff;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}
.footer-links a:hover { border-color: var(--red-accent); }

.footer-partners { padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-partners-label {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--silver);
}
.footer-partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}
.footer-partners-row img { height: 34px; width: auto; opacity: 0.88; transition: opacity 0.2s ease; }
.footer-partners-row img:hover { opacity: 1; }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom strong { color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--red-700);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--red-600); }
.back-to-top.is-visible:hover { transform: translateY(0) scale(1.08); }
.back-to-top[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 8, 0.92);
}
/* Barras estilo "letterbox" de cinema, fechando como uma mascara de tela */
.lightbox-backdrop::before,
.lightbox-backdrop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 7vh;
  background: #000;
  transform: scaleY(0);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.lightbox-backdrop::before { top: 0; transform-origin: top; }
.lightbox-backdrop::after { bottom: 0; transform-origin: bottom; }
.lightbox.is-open .lightbox-backdrop::before,
.lightbox.is-open .lightbox-backdrop::after { transform: scaleY(1); }
.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 94vw;
  max-height: 94vh;
  padding: 0 8px;
  transform: scale(0.94);
  transition: transform 0.28s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.lightbox.is-open .lightbox-content { transform: scale(1); }
#lightboxImg { transition: opacity 0.18s ease; }
.lightbox-content figure {
  margin: 0;
  max-width: min(84vw, 980px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content figure[hidden] { display: none; }
.lightbox-content img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-content figcaption {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox-nav {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-ribbon { display: none; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(61, 0, 0, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 26px;
    gap: 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .highlights-grid, .interviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding: 88px 0 56px; min-height: 100vh; }
  .hero-topline { flex-wrap: wrap; }
  .hero-meta { font-size: 0.85rem; }
  .section { padding: 56px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .highlights-grid, .interviews-grid { grid-template-columns: 1fr; }
  .footer-grid, .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.1rem; }
}
