/* ==========================================================================
   SSL GOLD CUP RIO 2026 · Copa do Mundo da Vela
   Folha de estilo principal
   --------------------------------------------------------------------------
   Estrutura:
   1. Tokens (cores, tipografia, espaçamento)
   2. Base / reset
   3. Utilitários de layout
   4. Componentes (botões, placeholders de imagem, cabeçalhos de seção)
   5. Header / navegação
   6. Hero + contagem regressiva
   7. Seções da home
   8. Notícias (cards, listagem, artigo)
   9. Rodapé
   10. Animações
   11. Responsivo
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  /* Marca */
  --navy: #000839;          /* navy do site internacional */
  --navy-2: #1c2650;        /* navy do manual de marca Rio 2026 */
  --navy-3: #0b1250;
  --ink: #100f0d;           /* preto do logotipo */
  --text: #2c2f38;
  --muted: #6b6f7b;
  --line: #e1e4ea;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-tint: #ebeff1;

  /* Acentos vindos do gradiente do logo */
  --yellow: #fad324;
  --amber: #f8a214;
  --orange: #f57b18;
  --green: #2ea249;
  --lime: #acd91a;
  --teal: #60c481;
  --sky: #4fb9dc;
  --blue: #4186ce;
  --deep: #2d4da8;

  --accent: var(--amber);
  --grad-rio: linear-gradient(90deg, var(--lime) 0%, var(--teal) 40%, var(--sky) 65%, var(--deep) 100%);
  --grad-sun: linear-gradient(90deg, var(--yellow) 0%, var(--amber) 55%, var(--orange) 100%);

  /* Tipografia */
  --font: "Jost", "Futura PT", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --fs-0: 0.75rem;
  --fs-1: 0.875rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.25rem;
  --fs-4: 1.625rem;
  --fs-5: 2.25rem;
  --fs-6: clamp(2.25rem, 3.8vw, 3.25rem);
  --fs-7: clamp(3rem, 6vw, 5.25rem);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 84px;
  --radius: 2px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-2);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 700; color: var(--navy); letter-spacing: .005em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* 3. LAYOUT ------------------------------------------------------------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.grid-2 > * { min-width: 0; }
.stack > * + * { margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 4. COMPONENTES -------------------------------------------------------- */

/* Cabeçalho de seção: no padrão do site internacional (título caixa alta) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--fs-0); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--grad-sun); }
.section--navy .eyebrow { color: rgba(255,255,255,.65); }
.title { font-size: var(--fs-6); text-transform: uppercase; line-height: 1; }
.title--md { font-size: var(--fs-5); text-transform: uppercase; }
.title--sm { font-size: var(--fs-4); text-transform: uppercase; }
.lead { font-size: var(--fs-3); line-height: 1.5; color: var(--navy); font-weight: 500; }
.section--navy .lead { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .title { max-width: 18ch; }

/* Botões: borda fina + filete grosso à esquerda, como no site oficial */
.btn {
  --btn-bg: #fff; --btn-fg: var(--navy); --btn-line: var(--navy);
  position: relative; display: inline-flex; align-items: center; gap: .75rem;
  padding: .95rem 1.6rem .95rem 1.75rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-line); border-left-width: 4px;
  font-size: var(--fs-1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover { background: var(--navy); color: #fff; }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-line: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink); --btn-line: var(--accent); }
.btn--accent:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Placeholder de imagem
   Uso: <figure class="media" data-ph="hero.jpg · 1920×1080"><img src="img/hero.jpg" alt="" onerror="this.remove()"></figure>
   Enquanto o arquivo não existir, a etiqueta fica visível. Quando a imagem existir, ela cobre a etiqueta. */
.media {
  position: relative; margin: 0; overflow: hidden; background: var(--bg-tint);
  background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(0,8,57,.045) 18px 19px);
}
.media::before {
  content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(0,8,57,.28); pointer-events: none;
}
.media::after {
  content: "Imagem · " attr(data-ph);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: .55rem .8rem; background: rgba(255,255,255,.85); color: var(--navy);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  max-width: calc(100% - 3rem); overflow: hidden; text-overflow: ellipsis;
}
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.media--dark { background-color: var(--navy-2); background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.05) 18px 19px); }
.media--dark::before { border-color: rgba(255,255,255,.3); }
.media--dark::after { background: rgba(0,8,57,.7); color: #fff; }
.media.is-loaded { background-image: none; }
.media.is-loaded::before, .media.is-loaded::after { display: none; }
.media--logo { background: #fff; }
.media--logo::after { font-size: 10px; white-space: normal; text-align: center; max-width: 80%; line-height: 1.4; }

/* Tag / categoria */
.tag {
  display: inline-block; padding: .3rem .6rem; font-size: var(--fs-0); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); background: var(--bg-tint); line-height: 1;
}
.tag--light { color: var(--accent); background: transparent; padding: 0; }

/* Barra de progresso de rolagem (filete no topo, como no site oficial) */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 1001; background: transparent; pointer-events: none; }
.progress > i { display: block; height: 100%; width: 0; background: var(--grad-sun); transition: width .08s linear; }

/* 5. HEADER ------------------------------------------------------------- */
.topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  font-size: var(--fs-0); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 1rem; }
.topbar__links { display: flex; align-items: center; gap: 1.25rem; }
.topbar__links a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__links a:hover { color: var(--deep); }
.social { display: flex; align-items: center; gap: .5rem; }
.social a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--deep); transform: translateY(-1px); }
.social svg { width: 13px; height: 13px; fill: currentColor; }

.header {
  position: sticky; top: 0; z-index: 1000; background: var(--navy); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  transition: box-shadow .3s;
}
.header.is-stuck { box-shadow: 0 10px 30px rgba(0,8,57,.35); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 2rem; transition: height .3s var(--ease); }
.header.is-stuck .container { height: 68px; }
.brand { display: flex; align-items: center; }
.brand img { height: 56px; width: auto; transition: height .3s var(--ease); }
.header.is-stuck .brand img { height: 46px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 1.7vw, 2rem); }
.nav a {
  position: relative; padding: .5rem 0; font-size: var(--fs-1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; opacity: .9; transition: color .2s, opacity .2s;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--accent); opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.nav__cta { border: 1px solid rgba(255,255,255,.35); padding: .55rem 1rem; }
.nav a.nav__cta::after { display: none; }
.nav a.nav__cta:hover { border-color: var(--accent); }

.burger { display: none; width: 44px; height: 44px; place-items: center; color: #fff; }
.burger span { position: relative; display: block; width: 24px; height: 2px; background: currentColor; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* 6. HERO --------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy);
  min-height: calc(100vh - var(--header-h) - 38px); min-height: max(640px, calc(100svh - var(--header-h) - 38px));
  display: grid; align-items: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg.media { background-color: var(--navy); background-image: none; }
.hero__bg.media::before { inset: auto 20px 20px auto; width: auto; border: 0; }
.hero__bg.media::after { left: auto; right: 20px; top: auto; bottom: 20px; transform: none; background: rgba(0,8,57,.85); color: rgba(255,255,255,.9); border: 1px dashed rgba(255,255,255,.45); z-index: 2; }
.hero__bg > img { opacity: .55; }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,8,57,.92) 0%, rgba(0,8,57,.65) 45%, rgba(0,8,57,.25) 100%),
    linear-gradient(180deg, rgba(0,8,57,0) 55%, rgba(0,8,57,.95) 100%);
}
/* pinceladas de cor da marca, muito discretas, para o hero não ficar "morto" sem foto */
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__glow i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero__glow i:nth-child(1) { width: 60vw; height: 60vw; right: -20vw; top: -25vw; background: radial-gradient(circle, rgba(65,134,206,.7), transparent 60%); }
.hero__glow i:nth-child(2) { width: 45vw; height: 45vw; right: 5vw; bottom: -25vw; background: radial-gradient(circle, rgba(46,162,73,.6), transparent 60%); }
.hero__glow i:nth-child(3) { width: 30vw; height: 30vw; left: 30vw; bottom: -15vw; background: radial-gradient(circle, rgba(248,162,20,.35), transparent 60%); }

.hero__inner { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 3rem; padding-block: clamp(3rem, 8vh, 6rem); }
.hero__kicker { display: flex; align-items: center; gap: .9rem; font-size: var(--fs-0); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.hero__kicker::before { content: ""; width: 34px; height: 3px; background: var(--grad-sun); }
.hero h1 { font-size: var(--fs-7); color: #fff; text-transform: uppercase; line-height: .98; letter-spacing: -.005em; max-width: 12ch; }
.hero h1 em { font-style: normal; background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; margin: 1.75rem 0 2.25rem; font-size: var(--fs-1); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero__meta span { display: inline-flex; align-items: center; gap: .6rem; }
.hero__meta svg { width: 16px; height: 16px; color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__logo { display: flex; justify-content: center; }
.hero__logo img { width: min(100%, 340px); filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }

/* Contagem regressiva */
.countdown { background: #fff; color: var(--navy); border-bottom: 1px solid var(--line); position: relative; }
.countdown::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--grad-rio); }
.countdown .container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding-block: 1.25rem; }
.countdown__label { font-size: var(--fs-0); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.countdown__label strong { display: block; color: var(--navy); font-size: var(--fs-2); letter-spacing: .04em; }
.countdown__clock { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 3rem); }
.countdown__unit { text-align: center; min-width: 64px; }
.countdown__unit b { display: block; font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__unit small { display: block; margin-top: .3rem; font-size: var(--fs-0); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.countdown__place { text-align: right; font-size: var(--fs-1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.countdown__place small { display: block; color: var(--muted); font-weight: 500; letter-spacing: .06em; text-transform: none; font-size: var(--fs-1); }

/* 7. SEÇÕES DA HOME ----------------------------------------------------- */

/* Copa do Mundo de Vela 2026 */
.intro__media { aspect-ratio: 4 / 5; }
.intro__media--wide { aspect-ratio: 16 / 10; }
.intro__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.intro__facts b { display: block; font-size: var(--fs-4); color: var(--navy); line-height: 1; }
.intro__facts span { font-size: var(--fs-0); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Números do evento */
.numbers { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: #fff; }
.numbers__item { padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem); border-right: 1px solid var(--line); position: relative; }
.numbers__item:last-child { border-right: 0; }
.numbers__item::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--grad-sun); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.numbers__item.is-visible::before { transform: scaleX(1); }
.numbers__value { display: flex; align-items: baseline; gap: .15rem; font-size: clamp(2.5rem, 4.5vw, 3.75rem); font-weight: 700; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.numbers__value small { font-size: .42em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.numbers__item h3 { margin-top: .75rem; font-size: var(--fs-1); letter-spacing: .12em; text-transform: uppercase; }
.numbers__item p { margin: .5rem 0 0; font-size: var(--fs-1); color: var(--muted); line-height: 1.45; }

/* SSL Internacional */
.ssl { position: relative; overflow: hidden; }
.ssl__symbol { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: 44vw; max-width: 640px; opacity: .06; pointer-events: none; }
.ssl__quote { margin: 2rem 0; padding-left: 1.5rem; border-left: 4px solid var(--accent); font-size: var(--fs-4); font-weight: 500; line-height: 1.25; color: #fff; }
.ssl__media { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.ssl .grid-2 { align-items: start; }
.ssl p { color: rgba(255,255,255,.82); }

/* Parceiros */
.partners__tier { margin-top: 3rem; }
.partners__tier h3 { font-size: var(--fs-0); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.25rem; line-height: 1.4; }
.partners__tier h3::after { content: ""; flex: 1; min-width: 48px; height: 1px; background: var(--line); }
.partners__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.partners__grid--main { grid-template-columns: repeat(2, minmax(0, 300px)); }
.partners__grid--2 { grid-template-columns: repeat(2, 1fr); }
.partners__grid .media { aspect-ratio: 5 / 3; border: 1px solid var(--line); transition: border-color .25s; }
/* Logos de parceiros: proporção preservada, centralizadas, com respiro igual para todas */
.media--partner > img { inset: 0; margin: auto; width: auto; height: auto; max-width: 72%; max-height: 56%; object-fit: contain; }
.partners__grid .media:hover { border-color: var(--navy); }

/* CBVela */
.cbvela__media { aspect-ratio: 4 / 5; }
.cbvela__badge { position: absolute; left: 1.5rem; bottom: 1.5rem; z-index: 2; width: 140px; aspect-ratio: 1; }

/* 8. NOTÍCIAS ----------------------------------------------------------- */

/* Card no padrão do site internacional: bloco navy, imagem à esquerda, filete e data */
.news-list { display: grid; gap: 1rem; }
.news-card {
  display: grid; grid-template-columns: 300px 1fr; background: var(--navy); color: #fff; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,8,57,.25); }
.news-card__media { aspect-ratio: auto; min-height: 200px; }
.news-card__media::after, .news-featured__media::after { white-space: normal; text-align: center; max-width: 80%; line-height: 1.4; }
.news-card__media > img { transition: transform .8s var(--ease); }
.news-card:hover .news-card__media > img { transform: scale(1.05); }
.news-card__body { display: flex; flex-direction: column; padding: 1.75rem 2rem 1.25rem; }
.news-card__title { font-size: var(--fs-3); text-transform: uppercase; color: #fff; line-height: 1.2; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card { position: relative; }
.news-card__excerpt { margin: .75rem 0 0; color: rgba(255,255,255,.8); font-size: var(--fs-1); line-height: 1.55; }
.news-card__meta { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: 1.25rem; border-top: 1px solid var(--accent); font-size: var(--fs-0); letter-spacing: .12em; text-transform: uppercase; }
.news-card__meta .tag--light { font-weight: 600; }
.news-card__meta time { color: rgba(255,255,255,.85); }

/* Destaque (primeira notícia da home) */
.news-featured {
  position: relative; display: grid; grid-template-columns: 1.2fr .8fr; background: var(--navy); color: #fff; overflow: hidden; margin-bottom: 1rem;
}
.news-featured__media { aspect-ratio: auto; min-height: 380px; }
.news-featured__media::after { top: 50%; }
.news-featured__body { padding: clamp(1.75rem, 3.5vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.news-featured__title { font-size: var(--fs-5); text-transform: uppercase; color: #fff; line-height: 1.05; margin-top: 1rem; }
.news-featured__title a::after { content: ""; position: absolute; inset: 0; }
.news-featured__excerpt { margin: 1.25rem 0 0; color: rgba(255,255,255,.82); }
.news-featured__meta { display: flex; gap: 1.25rem; align-items: center; font-size: var(--fs-0); letter-spacing: .12em; text-transform: uppercase; }
.news-featured__meta time { color: rgba(255,255,255,.75); }
.news-featured__more { margin-top: 1.75rem; display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.news-featured__more svg { width: 16px; height: 16px; }
.news-more { display: flex; justify-content: center; margin-top: 2.5rem; }

/* Listagem (noticias.html) */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; border-bottom: 1px solid var(--line); }
.page-head .title { max-width: none; }
.crumbs { display: flex; gap: .6rem; font-size: var(--fs-0); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a:hover { color: var(--navy); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .55rem .9rem; border: 1px solid var(--line); font-size: var(--fs-0); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); transition: all .2s; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.search { position: relative; }
.search input { width: min(320px, 80vw); padding: .7rem 2.5rem .7rem 1rem; border: 1px solid var(--line); background: #fff; font: inherit; font-size: var(--fs-1); color: var(--navy); }
.search input:focus { border-color: var(--navy); outline: none; }
.search svg { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); }
.load-more { display: flex; justify-content: center; margin-top: 2rem; }

/* Artigo (noticia.html) */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4rem); }
.article__meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; font-size: var(--fs-0); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.25rem 0 2rem; }
.article__meta .tag { color: #fff; background: var(--navy); }
.article__hero { aspect-ratio: 16 / 9; margin-bottom: 2rem; }
.article__body { font-size: var(--fs-2); line-height: 1.7; max-width: 68ch; }
.article__body p:first-of-type { font-size: var(--fs-3); color: var(--navy); font-weight: 500; line-height: 1.45; }
.article__body h2 { font-size: var(--fs-4); text-transform: uppercase; margin: 2.25rem 0 .75rem; }
.article__body blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 4px solid var(--accent); font-size: var(--fs-3); font-weight: 500; color: var(--navy); line-height: 1.35; }
.article__share { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-0); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.article__share .social a { width: 34px; height: 34px; }
.article__share .social svg { width: 15px; height: 15px; }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.article__nav a { padding: 1.25rem; border: 1px solid var(--line); font-weight: 600; color: var(--navy); line-height: 1.3; transition: border-color .2s; }
.article__nav a:hover { border-color: var(--navy); }
.article__nav a span { display: block; font-size: var(--fs-0); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; font-weight: 600; }
.article__nav a.next { text-align: right; }
.aside__block { margin-bottom: 2rem; }
.aside__block h3 { background: var(--navy); color: #fff; padding: .8rem 1rem; font-size: var(--fs-0); letter-spacing: .16em; text-transform: uppercase; }
.aside__list li { border-bottom: 1px solid var(--line); }
.aside__list a { display: block; padding: .85rem 1rem; font-size: var(--fs-1); font-weight: 500; color: var(--navy); line-height: 1.35; transition: background .2s; }
.aside__list a:hover { background: var(--bg-soft); }
.aside__list time { display: block; font-size: var(--fs-0); letter-spacing: .1em; color: var(--muted); margin-top: .2rem; }
.aside__list--cats a { display: flex; justify-content: space-between; }
.aside__list--cats b { color: var(--muted); font-weight: 500; }
.aside__cta { background: var(--navy); color: #fff; padding: 1.5rem; }
.aside__cta img { width: 140px; margin-bottom: 1rem; }
.aside__cta p { font-size: var(--fs-1); color: rgba(255,255,255,.8); }

/* Grade "mais notícias" no final do artigo */
.related { padding-block: var(--section); background: var(--bg-soft); }
.related .news-list { grid-template-columns: repeat(3, 1fr); }
.related .news-card { grid-template-columns: 1fr; }
.related .news-card__media { aspect-ratio: 16 / 10; min-height: 0; }

/* 9. RODAPÉ ------------------------------------------------------------- */
.footer { background: var(--navy); color: #fff; position: relative; }
.footer::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--grad-rio); }
.footer__main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; padding-block: clamp(3rem, 6vw, 5rem) 3rem; }
.footer__brand img { width: 48px; margin-bottom: 1.25rem; }
.footer__brand strong { display: block; font-size: var(--fs-3); text-transform: uppercase; line-height: 1.15; }
.footer__brand span { display: block; color: rgba(255,255,255,.7); margin-top: .4rem; }
.footer h4 { font-size: var(--fs-0); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.footer__nav li + li { margin-top: .5rem; }
.footer__nav a { font-size: var(--fs-1); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); transition: color .2s; }
.footer__nav a:hover { color: var(--accent); }
.footer__tagline { font-size: var(--fs-3); font-weight: 500; line-height: 1.3; color: #fff; }
.footer__realizacao { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-1); color: rgba(255,255,255,.7); }
.footer__realizacao b { color: #fff; }
.footer .social a { background: rgba(255,255,255,.12); }
.footer .social a:hover { background: var(--accent); color: var(--navy); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.1rem; font-size: var(--fs-0); letter-spacing: .08em; color: rgba(255,255,255,.6); }
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer__bottom a:hover { color: #fff; }

/* 10. ANIMAÇÕES --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__inner > * > * { animation: rise .9s var(--ease) both; }
.hero__inner > * > *:nth-child(2) { animation-delay: .1s; }
.hero__inner > * > *:nth-child(3) { animation-delay: .2s; }
.hero__inner > * > *:nth-child(4) { animation-delay: .3s; }
.hero__logo img { animation: rise 1.1s var(--ease) .25s both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__inner > * > *, .hero__logo img { animation: none; }
}

/* Menu mobile (overlay) */
.nav-overlay { display: none; }

/* 11. RESPONSIVO -------------------------------------------------------- */
@media (max-width: 1100px) {
  .numbers { grid-template-columns: repeat(3, 1fr); }
  .numbers__item { border-bottom: 1px solid var(--line); }
  .numbers__item:nth-child(3n) { border-right: 0; }
  .partners__grid { grid-template-columns: repeat(3, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .nav { position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    padding: 1.5rem var(--gutter) 3rem; background: var(--navy); transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; }
  .nav.is-open { transform: none; }
  .nav a { width: 100%; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: var(--fs-2); }
  .nav a::after { display: none; }
  .nav a.nav__cta { margin-top: 1.5rem; border: 1px solid rgba(255,255,255,.35); padding: 1rem 1.25rem; width: auto; }
  .header.is-stuck .container { height: var(--header-h); }
  .burger { display: grid; }
  .topbar__event { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__logo { display: none; }
  .ssl__media { position: relative; top: auto; aspect-ratio: 4 / 3; }
  .hero { min-height: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .countdown .container { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .countdown__place { text-align: center; }
  .ssl__symbol { display: none; }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured__media { min-height: 260px; }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .related .news-list { grid-template-columns: 1fr; }
  .related .news-card { grid-template-columns: 300px 1fr; }
  .related .news-card__media { aspect-ratio: auto; }
}
@media (max-width: 680px) {
  .topbar .container { justify-content: center; }
  .topbar__links span.sep { display: none; }
  .news-card { grid-template-columns: 1fr; }
  .news-card__media { aspect-ratio: 16 / 9; min-height: 0; }
  .related .news-card { grid-template-columns: 1fr; }
  .related .news-card__media { aspect-ratio: 16 / 9; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers__item:nth-child(3n) { border-right: 1px solid var(--line); }
  .numbers__item:nth-child(2n) { border-right: 0; }
  .numbers__item:last-child { grid-column: 1 / -1; border-right: 0; }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .partners__grid--main { grid-template-columns: 1fr 1fr; }
  .intro__facts { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .intro__facts b { font-size: var(--fs-3); }
  .footer__main { grid-template-columns: 1fr; gap: 2rem; }
  .article__nav { grid-template-columns: 1fr; }
  .article__nav a.next { text-align: left; }
  .countdown__unit { min-width: 56px; }
  .hero__meta { gap: .5rem 1.25rem; }
  .btn { padding: .85rem 1.2rem .85rem 1.35rem; font-size: var(--fs-0); }
}
