:root {
  --navy: #0e1a3d;
  --navy-2: #142352;
  --gold: #f5a623;
  --gold-2: #ffb930;
  --text-dark: #1b1f2a;
  --text-muted: #6b7280;
  --border: #e7e9ee;
  --bg: #f7f8fb;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: #fff;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  row-gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-badge {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text { line-height: 1.1; }
.brand-text small {
  display: block;
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
}
.brand-text strong {
  display: block;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: .5px;
}
.brand-text span {
  display: inline-block;
  margin-top: 2px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
}

.main-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.main-nav a {
  position: relative;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 12px;
  transition: color .25s ease, background .25s ease, transform .2s ease, box-shadow .25s ease;
}
.main-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(245,166,35,.4);
}
.main-nav a.active {
  color: var(--gold);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 8px 20px rgba(14,26,61,.3);
}
.main-nav a.active:hover {
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(14,26,61,.4);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: #fff;
  margin: 0 24px 40px;
  border-radius: 20px;
  overflow: hidden;
  transform-origin: center top;
  will-change: transform, opacity;
  display: flex;
}
.hero:not(.has-image) {
  min-height: 380px;
}
.hero-bg-img {
  display: block;
  width: 100%;
  height: auto;
  align-self: flex-start;
}
.hero.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14,26,61,.8), rgba(14,26,61,.45) 32%, rgba(14,26,61,0) 55%);
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 620px;
  padding: 56px 20px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero:not(.has-image) .hero-content {
  position: relative;
  inset: auto;
}
.hero-tag {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
}
.hero-title .accent { color: var(--gold); }
.hero-subtitle {
  color: #d6dbec;
  font-size: 15px;
  max-width: 460px;
  margin-bottom: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 22px;
  border: none;
  cursor: pointer;
  width: fit-content;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}

/* ---------- Sponsors section ---------- */
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-heading-left { display: flex; gap: 14px; align-items: flex-start; }
.section-heading-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.section-heading h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.section-heading h2 .gold-underline {
  display: inline-block;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 2px;
}
.section-heading p { margin: 0; color: var(--text-muted); font-size: 14px; }

.featured-banner {
  position: relative;
  z-index: 3;
  display: block;
  flex-shrink: 0;
  width: 100%;
  max-width: 780px;
  height: 250px;
  margin-top: -120px;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(14,26,61,.18);
  transition: transform .15s, box-shadow .15s;
}
.featured-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(14,26,61,.22);
}
.featured-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 2px solid var(--gold);
  opacity: 0;
  transform: scale(1);
  animation: featured-glow 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes featured-glow {
  0% { opacity: .6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .featured-banner::after { animation: none; opacity: 0; }
}
.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.featured-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.sponsors-marquee {
  margin: 0 0 36px;
}
.marquee-row {
  overflow: hidden;
  margin-bottom: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee-row:last-child { margin-bottom: 0; }
.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee-scroll-left 50s linear infinite;
}
.marquee-row.reverse .marquee-track {
  animation-name: marquee-scroll-right;
}
.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.sponsor-card {
  flex: 0 0 auto;
  width: 240px;
  border: 1px solid rgba(14,26,61,.06);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.sponsor-card:hover {
  box-shadow: 0 10px 24px rgba(14,26,61,.1);
  transform: translateY(-2px);
}
.sponsor-logo {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 10px;
}
.sponsor-logo img { max-height: 110px; max-width: 85%; object-fit: contain; }
.sponsor-logo .logo-fallback {
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
}
.sponsor-name { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.sponsor-category { color: var(--text-muted); font-size: 12px; margin-bottom: 12px; }
.sponsor-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}
.sponsor-link:hover { color: var(--gold); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  background-image:
    linear-gradient(120deg, var(--gold), var(--gold-2)),
    radial-gradient(circle at 90% 90%, rgba(14,26,61,.08), transparent 45%);
  color: var(--navy);
  border: 1px solid rgba(14,26,61,.08);
  border-radius: 20px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  box-shadow: 0 16px 32px rgba(245,166,35,.28);
}
.cta-banner-left { position: relative; display: flex; gap: 14px; align-items: center; flex: 1 1 260px; }
.cta-banner-left .icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.cta-banner h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy);
}
.cta-banner h3 .gold { color: #fff; }

.cta-stats {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cta-stat {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 190px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 6px 16px rgba(14,26,61,.12);
  transition: transform .15s, box-shadow .15s;
}
.cta-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(14,26,61,.16);
}
.cta-stat span:first-child {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 1;
}
.cta-stat strong { display: block; font-size: 13px; font-weight: 800; color: var(--navy); }
.cta-stat span:last-child { color: var(--text-muted); font-size: 11px; line-height: 1.4; }

.section { padding: 40px 24px; }
.videos-section { padding-top: 0; margin-top: -32px; }

/* ---------- Vídeos ---------- */
.videos-note {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: transparent;
  padding: 0;
  margin-bottom: 24px;
}
.videos-note-icon {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.videos-note-text { display: flex; flex-direction: column; gap: 1px; }
.videos-note-text small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.videos-note-text strong {
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}
.videos-note::after {
  content: '';
  flex: 1;
  height: 1px;
  min-width: 40px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.videos-layout {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.videos-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.videos-right .videos-note { margin-bottom: 18px; }

.videos-row {
  flex: 1;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.video-banner-card,
.video-card {
  border-radius: 20px;
  position: relative;
}
.video-card { overflow: hidden; }

.video-card {
  flex: 0 0 auto;
  width: 200px;
  height: 280px;
}

.video-banner-card {
  flex: 0 0 280px;
  width: 280px;
  align-self: stretch;
  background: #dfe2ea;
}
.video-banner-featured {
  box-shadow: 0 10px 26px rgba(14,26,61,.18);
}
.video-banner-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 2px solid var(--gold);
  opacity: 0;
  transform: scale(1);
  animation: featured-glow 2.6s ease-out infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .video-banner-featured::after { animation: none; opacity: 0; }
}
.video-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.video-banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.video-banner-placeholder span {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
}

.video-card {
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff;
  transition: transform .15s, box-shadow .15s;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(14,26,61,.2);
}
.video-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,26,61,0) 40%, rgba(14,26,61,.85) 100%);
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 1;
}
.video-title {
  position: relative;
  z-index: 1;
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .hero { margin: 0 16px 32px; }
  .hero-content { padding: 32px 24px; max-width: 100%; }
  .hero-title { font-size: 30px; }
  .section { padding: 24px 16px; }
  .site-header { grid-template-columns: 1fr; }
  .brand, .main-nav { grid-column: 1; }
  .featured-banner { margin-top: 16px; height: 180px; }
}

/* ---------- Modal de vídeo ---------- */
body.video-modal-open { overflow: hidden; }

/* Pausa animações decorativas do resto da página enquanto o vídeo toca no modal,
   evitando concorrência por CPU/GPU que causava travamentos na reprodução. */
body.video-modal-open .marquee-track,
body.video-modal-open .featured-banner::after,
body.video-modal-open .video-banner-featured::after {
  animation-play-state: paused !important;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal[hidden] {
  display: none;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,26,61,.85);
}
.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
}
.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.video-modal-close:hover { background: rgba(255,255,255,.28); }

.video-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.video-modal-player iframe,
.video-modal-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(0,0,0,.3);
}
body.video-modal-open .whatsapp-float {
  display: none;
}
@media (max-width: 900px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}
