/* ============================================================
   FONTS
   ============================================================ */

@font-face {
  font-family: "Liga Portugal";
  src: url("../fonts/LigaPortugal-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Liga Portugal";
  src: url("../fonts/LigaPortugal-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
     DESIGN TOKENS
     ============================================================ */

:root {
  /* Colors */
  --navy: #0e2248;
  --navy-dk: #081634;
  --navy-lt: #132f63;
  --lightblue: #5ec8ff;
  --yellow: #ffc10e;
  --yellow-dk: #e5b900;
  --yellow-lt: #ffdb42;
  --ink: #0e1726;
  --mid: #3b4252;
  --soft: #6b7280;
  --paper: #f5f5f5;
  --paper-2: #efefef;
  --line: rgba(14, 34, 72, 0.12);

  /* Typography */
  --fd: "Source Sans Pro", sans-serif;
  --fb: "Source Sans Pro", sans-serif;
  --title-font: "Liga Portugal", "Source Sans Pro", sans-serif;
}


/* ============================================================
     RESET & BASE
     ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html.lenis.lenis-stopped body {
  overflow: hidden;
}

body {
  font-family: var(--fb);
  color: var(--ink);
  background: #fff;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageIn 0.45s ease-out both;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

a {
  color: inherit;
  text-decoration: none;
}


/* ============================================================
     TYPOGRAPHY
     ============================================================ */

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--title-font);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  text-transform: uppercase;
}

p {
  line-height: 1.6;
  color: var(--mid);
  margin: 0 0 1rem;
}

.font-liga {
  font-family: var(--title-font);
}

/* Counter / tabular numerals */
[data-count] {
  font-variant-numeric: tabular-nums;
}


/* ============================================================
     LAYOUT HELPERS
     ============================================================ */

.container {
  width: 100%;
  margin: 0 auto;
  padding-inline: 1rem;
}

/* Grid helpers */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

/* Section wrappers */
.section {
  padding: 80px 0;
}

#o-que-nos-move.section {
  padding: 0;
}

#o-que-nos-move .pillars-marquees {
  min-height: 100%;
  padding: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

#o-que-nos-move .pillars-marquees img {
  border-radius: 1rem;
  display: block;
}

.pillars-marquees:hover .pillars-marquee {
  animation-play-state: paused;
}

.pillars-marquee--up {
  animation: pillars-marquee-up 28s linear infinite;
}

.pillars-marquee--down {
  animation: pillars-marquee-down 28s linear infinite;
}

@keyframes pillars-marquee-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes pillars-marquee-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pillars-marquee--up,
  .pillars-marquee--down {
    animation: none;
    transform: none;
  }
}

.kicker {
  display: inline-block;
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--yellow-dk);
  text-transform: uppercase;
}


/* ============================================================
     NAVIGATION
     ============================================================ */

.ff-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  border-top: 2px solid var(--yellow);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
  will-change: background, box-shadow;
}

.ff-nav.scrolled {
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

/* Logo */
.ff-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fd);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}

/* Nav links */
.ff-links {
  display: none;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ff-links li {
  position: relative;
}

.ff-links a {
  display: block;
  padding: 25px 10px 31px;
  font-family: var(--title-font);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  position: relative;
  overflow: visible;
  border-bottom: 0 !important;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.ff-links:hover a {
  opacity: 0.45;
}

.ff-links:hover a:hover {
  opacity: 1;
}

.ff-links a.active::after {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--yellow);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-3px);
  margin-top: -24px;
}

/* Mobile drawer */
.ff-drawer {
  position: fixed;
  inset: 0;
  background: rgb(8, 22, 52);
  z-index: 60;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
}

.ff-drawer.open {
  display: flex;
  opacity: 1;
  transform: none;
}

.ff-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-top: 2px solid var(--yellow);
}

.ff-drawer ul {
  list-style: none;
}

.ff-drawer ul a {
  display: flex;
  padding: 14px 0;
  color: #fff;
  font-family: var(--fd);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transform: translateX(-8px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s;
}

.ff-drawer a:hover {
  color: var(--yellow);
}

.ff-drawer.open ul a {
  opacity: 1;
  transform: none;
}

/* Drawer stagger delays */
.ff-drawer.open ul li:nth-child(1) a {
  transition-delay: 0.05s;
}

.ff-drawer.open ul li:nth-child(2) a {
  transition-delay: 0.09s;
}

.ff-drawer.open ul li:nth-child(3) a {
  transition-delay: 0.13s;
}

.ff-drawer.open ul li:nth-child(4) a {
  transition-delay: 0.17s;
}

.ff-drawer.open ul li:nth-child(5) a {
  transition-delay: 0.21s;
}

.ff-drawer.open ul li:nth-child(6) a {
  transition-delay: 0.25s;
}

.ff-drawer.open ul li:nth-child(7) a {
  transition-delay: 0.29s;
}

.ff-drawer.open ul li:nth-child(8) a {
  transition-delay: 0.33s;
}

.ff-drawer.open ul li:nth-child(9) a {
  transition-delay: 0.37s;
}


/* ============================================================
     BUTTONS
     ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.btn:hover::after {
  transform: translateX(110%);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}

.btn-yellow:hover {
  background: var(--yellow-dk);
  border-color: var(--yellow-dk);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-dk);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}


/* ============================================================
     CHIPS
     ============================================================ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-family: var(--fd);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--yellow);
  color: var(--navy);
  transition: transform 0.2s;
}

.chip:hover {
  transform: translateY(-1px);
}


/* ============================================================
     CARDS
     ============================================================ */

.card {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.2, 0.6, 0.2, 1),
    border-color 0.3s;
}

.card-media {
  aspect-ratio: 16/10;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-date {
  font-family: var(--fd);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--soft);
}

.card-date-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 16px);
  padding: 9px 18px 9px 14px;
  background: var(--yellow);
  color: #111;
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 15px;
  pointer-events: none;
}

.epoca-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 11.5rem;
  padding: 0.65rem 2.4rem 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffc10e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  color: var(--yellow);
  font-family: var(--fd);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 20px rgba(8, 22, 52, 0.18);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.page-head .epoca-select {
  background-color: rgba(8, 22, 52, 0.92);
  border: 1px solid rgba(255, 193, 14, 0.35);
}

.epoca-select:hover,
.epoca-select:focus-visible {
  background-color: var(--navy-dk);
  color: var(--yellow-lt);
  box-shadow: 0 10px 24px rgba(8, 22, 52, 0.24);
}

.epoca-select option {
  background: var(--navy);
  color: var(--yellow);
}

.card-excerpt {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.55;
  margin: 0;
}

/* Staff slider (A Fundação) */
.staff-slider-pagination.swiper-pagination {
  position: static;
  width: 100%;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.staff-slider-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--line);
  opacity: 1;
}

.staff-slider-pagination .swiper-pagination-bullet-active {
  background: var(--navy);
}

.staff-slider .swiper-button-prev::after,
.staff-slider .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}

/* Doc download card */
.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.doc-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: 0 12px 30px rgba(14, 34, 72, 0.1);
}

.doc-card .doc-ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--navy);
  display: grid;
  place-items: center;
}

.doc-card h3 {
  font-family: var(--fd);
  font-size: 16px;
  color: var(--navy);
  margin: 0;
  text-transform: uppercase;
}

.doc-card .meta {
  font-size: 12px;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.doc-card p {
  font-size: 14px;
  margin: 0;
  color: var(--mid);
}

.doc-card .dl {
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  transition: gap 0.2s, color 0.2s;
}

.doc-card .dl:hover {
  color: var(--yellow-dk);
  gap: 10px;
}


/* ============================================================
     HERO
     ============================================================ */

.hero {
  position: relative;
  min-height: clamp(600px, 68vw, 820px);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-slider {
  min-height: calc(clamp(600px, 68vw, 820px));
}

.hero-slider .swiper-slide {
  position: relative;
  min-height: calc(clamp(600px, 68vw, 820px));
  display: flex;
  align-items: flex-end;
}

.hero h1 {
  color: #fff;
}

/* Swiper overrides */
.hero-slider .swiper-pagination {
  bottom: 22px;
}

.hero-slider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.hero-slider .swiper-pagination-bullet-active {
  background: var(--yellow);
}

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(14, 34, 72, 0.45);
  backdrop-filter: blur(2px);
}

.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}


/* ============================================================
     CLUBS STRIP
     ============================================================ */

.clubs-strip {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 45%, var(--navy-lt) 100%);
  border-bottom: none;
  padding: 32px 0 36px;
  width: 100%;
  max-width: none;
  overflow-x: clip;
  overflow-y: visible;
}

.clubs-strip .clubs-marquee {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: 110px;
  padding-block: 8px;
  overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.clubs-strip .clubs-marquee .marquee-track {
  gap: 72px;
  align-items: center;
  overflow: visible;
  min-height: 96px;
}

.clubs-strip-intro {
  display: flex;
  justify-content: center;
  padding: 28px 16px 18px;
  background: transparent;
}

.clubs-strip-intro .kicker,
.clubs-strip-intro .clubs-rotator {
  font-family: var(--title-font);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-transform: uppercase;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  margin: 0;
  line-height: 1.1;
}

.clubs-strip-intro .kicker-prefix {
  position: relative;
  display: inline-grid;
  justify-items: start;
  height: 1.15em;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.clubs-strip-intro .kicker-article {
  grid-area: 1 / 1;
  color: white;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(40%) scale(0.96);
  filter: blur(2px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.clubs-strip-intro .kicker-article.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.clubs-strip-intro .kicker-article.is-leave {
  opacity: 0;
  transform: translateY(-40%) scale(0.96);
  filter: blur(2px);
}

.clubs-strip-intro .kicker-words {
  position: relative;
  display: inline-grid;
  justify-items: start;
  min-width: 0;
  height: 1.15em;
  overflow: hidden;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.clubs-strip-intro .kicker-word {
  grid-area: 1 / 1;
  color: var(--yellow);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(55%);
  filter: blur(3px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.clubs-strip-intro .kicker-word.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.clubs-strip-intro .kicker-word.is-leave {
  opacity: 0;
  transform: translateY(-55%);
  filter: blur(3px);
}

.clubs-marquee .marquee-track {
  animation-duration: 70s;
  gap: 10px;
  overflow: visible;
}

.clubs-strip .club-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 88px;
  height: 88px;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: #fff;
  text-decoration: none;
  flex: 0 0 88px;
  position: relative;
  overflow: visible;
  transition: transform 0.25s ease;
}

.clubs-strip .club-chip:hover {
  gap: 0;
  padding: 0;
  background: transparent;
  transform: translateY(-2px);
}

.clubs-strip .cc-crest {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 76px;
  border: none;
  position: relative;
}

.clubs-strip .cc-crest::before {
  content: none;
}

.clubs-strip .cc-crest img {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  object-position: center;
  padding: 0;
  position: relative;
  z-index: 1;
  background: transparent;
  mix-blend-mode: screen;
  opacity: 0.7;
  filter: contrast(1.08) brightness(1.1);
  transition: filter 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.clubs-strip .club-chip:hover .cc-crest img,
.clubs-strip .club-chip:focus-visible .cc-crest img {
  opacity: 1;
  mix-blend-mode: normal;
  /* #ffc10e exacto via SVG (sem screen a lavar a cor) */
  filter: url(#crest-yellow) blur(2.5px);
  transform: scale(0.92);
}

.clubs-strip .cc-name {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--title-font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--yellow);
  max-width: none;
  width: 100%;
  padding: 8px;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  transition: opacity 0.25s ease;
}

.clubs-strip .club-chip:hover .cc-name,
.clubs-strip .club-chip:focus-visible .cc-name {
  opacity: 1;
  max-width: none;
}

.club-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(14, 34, 72, 0.04);
  border: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.club-chip:hover {
  background: #fff;
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.cc-crest {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 34px;
  border: 1px solid var(--line);
  position: relative;
}

.cc-crest::before {
  content: attr(data-init);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--fd);
  font-weight: 800;
  font-size: 11px;
  color: var(--navy);
  z-index: 0;
}

.cc-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  position: relative;
  z-index: 1;
  background: #fff;
}

.cc-name {
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}


/* ============================================================
     MARQUEE
     ============================================================ */

.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}


/* ============================================================
     TABS
     ============================================================ */

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: center;
  margin-left: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.tabs > * {
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .tabs {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    margin-inline: 0;
    width: 100%;
  }
}

.tab {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
  border: 1px solid var(--line);
  transition: all 0.2s;
}

.tab:hover {
  border-color: var(--yellow);
}

.tab.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}


/* ============================================================
     VIDEO
     ============================================================ */

.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--navy);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.video-frame .video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 22, 52, 0.1) 0%, rgba(8, 22, 52, 0.35) 100%);
}

.video-frame:hover .video-thumb {
  opacity: 1;
  transform: scale(1.03);
}

.video-frame .play {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
  animation: pulseRing 2.6s ease-out infinite;
}

.video-frame:hover .play {
  animation: none;
  transform: scale(1.12);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  z-index: 3;
}

/* Liga-te: 16:9 base; smaller cards grow to match taller siblings */
.liga-te-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
}

.liga-te-frame .video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.liga-te-frame:hover .video-thumb {
  transform: scale(1.04);
}

/* Video tour banner (A Fundação — estilo hero com overlay) */
.video-tour {
  aspect-ratio: auto;
  min-height: min(520px, 55vh);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.video-tour .video-thumb {
  opacity: 1;
}

.video-tour::after {
  background: rgba(8, 22, 52, 0.68);
}

.video-tour:hover .video-thumb {
  transform: scale(1.04);
}

.video-tour .play {
  width: 72px;
  height: 72px;
  margin-bottom: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  animation: none;
  pointer-events: auto;
}

.video-tour:hover .play {
  transform: scale(1.08);
  background: var(--yellow);
  color: var(--navy);
}

.video-tour .play i {
  font-size: 1.35rem;
  margin-left: 4px;
}

.video-tour-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.video-tour-text {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(0.95rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.video-tour iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 206, 0, 0.55);
  }

  70% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 24px rgba(255, 206, 0, 0);
  }

  100% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 206, 0, 0);
  }
}


/* ============================================================
     BADGES & RANKS
     ============================================================ */

.winner-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd84d, #e5b900);
  color: var(--navy);
  font-family: var(--fd);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.rank-gold {
  background: linear-gradient(135deg, #ffd84d, #e5b900);
  color: var(--navy);
}

.rank-silver {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  color: var(--navy);
}

.rank-bronze {
  background: linear-gradient(135deg, #f7b267, #c47a2f);
  color: #fff;
}


/* ============================================================
     MODALS & POPUPS
     ============================================================ */

/* Project modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 52, 0.8);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
}

.modal.open {
  display: flex;
}

.modal-body {
  background: #fff;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
  position: relative;
  animation: pop 0.2s ease;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-media {
  aspect-ratio: 16/9;
  color: var(--yellow);
  display: grid;
  place-items: center;
}

.modal-body--video {
  max-width: min(960px, 92vw);
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.modal-body--video .modal-media {
  border-radius: 14px;
  background: #000;
  box-shadow: 0 24px 64px rgba(8, 22, 52, 0.45);
}

.modal-body--video .modal-close {
  top: -14px;
  right: -14px;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(8, 22, 52, 0.35);
}

.modal-body--video .modal-content:empty {
  display: none;
}

/* Splash popup */
.splash {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 52, 0.85);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.splash.open {
  display: flex;
}

.splash-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

@keyframes pop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}


/* ============================================================
     CTA BAND
     ============================================================ */

.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 52px 0;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 22px;
}

.btn-outline-yellow {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}

.btn-outline-yellow:hover {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}


/* ============================================================
     PAGE HEAD / BREADCRUMB
     ============================================================ */

.page-head {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--yellow);
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255, 206, 0, 0.15), transparent 60%);
  pointer-events: none;
}

.page-head .container {
  position: relative;
}

.page-head .kicker {
  display: block;
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 8px;
}


/* ============================================================
     FAQ ACCORDION
     ============================================================ */

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: var(--yellow);
  box-shadow: 0 6px 20px rgba(14, 34, 72, 0.06);
}

.faq-item summary {
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--fd);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  font-size: 15px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--yellow-dk);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--mid);
  line-height: 1.65;
  font-size: 15px;
}

.faq-item .faq-body p {
  margin: 0 0 0.8em;
}

.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}


/* ============================================================
     DOC / LEGAL PAGES
     ============================================================ */

.doc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.doc-toc {
  align-self: start;
  padding: 18px;
  background: var(--paper);
  border-radius: 10px;
}

.doc-toc h4 {
  font-family: var(--fd);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.doc-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-toc li {
  margin: 6px 0;
}

.doc-toc a {
  font-size: 13px;
  color: var(--mid);
  display: block;
  padding: 4px 0;
  transition: color 0.2s, padding-left 0.2s;
}

.doc-toc a:hover,
.doc-toc a.active {
  color: var(--navy);
  padding-left: 6px;
}

.doc-body {
  font-size: 16px;
  line-height: 1.75;
}

.doc-body h2 {
  color: var(--navy);
  text-transform: uppercase;
  margin: 2rem 0;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.doc-body h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.doc-body h3 {
  color: var(--navy);
  text-transform: uppercase;
  margin: 1.4em 0 0.4em;
  font-size: 1.1rem;
}

.doc-body p {
  margin: 0 0 1em;
  color: var(--ink);
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 1em 1.2em;
}

.doc-body li {
  margin: 0.3em 0;
}

.doc-body a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.doc-body a:hover {
  color: var(--yellow-dk);
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 14px;
}

.doc-body th,
.doc-body td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.doc-body th {
  background: var(--paper);
  font-family: var(--fd);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--navy);
}

.doc-body .muted-box {
  background: var(--paper);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 1em 0;
}

.doc-updated {
  font-size: 13px;
  color: var(--soft);
  font-style: italic;
  margin-bottom: 18px;
}


/* ============================================================
     SCROLL EFFECTS & FIXED UI
     ============================================================ */

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

[data-reveal="left"] {
  transform: translateX(-24px);
}

[data-reveal="right"] {
  transform: translateX(24px);
}

[data-reveal="scale"] {
  transform: scale(0.96);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--yellow-lt), var(--yellow-lt));
  z-index: 100;
  transition: width 0.1s ease;
  box-shadow: 0 0 12px rgba(255, 206, 0, 0.6);
  pointer-events: none;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 65px;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  font-size: 14px;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover {
  opacity: 0.8;
}


/* ============================================================
     UTILITY CLASSES
     ============================================================ */

.text-navy {
  color: var(--navy);
}

.bg-navy {
  background: var(--navy);
  color: #fff;
}

.bg-yellow {
  background: var(--yellow);
  color: var(--navy);
}

/* ============================================================
     MEDIA QUERIES
     ============================================================ */

/* ---- sm: 700px ---- */
@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- md: 900px ---- */
@media (min-width: 900px) {
  .ff-logo img {
    height: 40px;
    width: auto;
    display: block;
  }
}

/* ---- lg: 1024px ---- */
@media (min-width: 1024px) {
  .ff-links {
    display: flex;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- xl: 1199px ---- */
@media (min-width: 1199px) {

  .ff-logo img {
    height: 48px;
  }
}

/* ---- 2xl: 1536px ---- */
@media (min-width: 1536px) {
  .container {
    max-width: 1220px !important;
    padding-inline: 0;
  }
}

@media (min-width: 991px) {
  .hero,
  .hero-slider,
  .hero-slider .swiper-slide {
    min-height: 75vh;
  }

  .doc-toc {
    position: sticky;
    top: 100px;
  }
  .doc-layout {
    grid-template-columns: 240px 1fr;
    gap: 56px;
  }
}
/* ---- max-md: 991px ---- */
@media (max-width: 991px) {

  .hero-slider .swiper-button-prev,
  .hero-slider .swiper-button-next {
    display: none;
  }

  .section {
    padding: 40px 0;
  }
  .doc-layout {
    display: block;
  }
}

@media (max-width: 576px) {
  .tabs {
    justify-content: start;
  }
}
/* ============================================================
     REDUCED MOTION
     ============================================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* Aviso de cookies (vanilla-cookieconsent) com as cores do site */
#cc-main {
  --cc-font-family: inherit;
  --cc-btn-primary-bg: var(--navy);
  --cc-btn-primary-border-color: var(--navy);
  --cc-btn-primary-hover-bg: var(--navy-dk);
  --cc-btn-primary-hover-border-color: var(--navy-dk);
  --cc-toggle-on-bg: var(--navy);
}
