/* Shared styles for every page of the Cup site.
   Brand: Botafogo Academy manual (09/2024). Black and white; gold #C9B896 and grey #A7A9A9 as support only.
   Titles should be Tusker Grotesk; Barlow Condensed stands in until a web licence exists.
   The supplied logos are black on white, so they always sit on a white panel. */
/* Official title face of the club (Botafogo brand guide), files supplied by the licensing office. */
@font-face { font-family: 'Tusker Grotesk'; src: url('/fontes/TuskerGrotesk-3700Bold.woff2') format('woff2'); font-weight: 600 900; font-style: normal; font-display: swap; }

:root {
  --display: 'Tusker Grotesk', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --noite: #050505;
  --carvao: #101010;
  --tinta: #ffffff;
  --ouro: #c9b896;
  --cinza: #a7a9a9;
  --wa: #25d366;
  --fio: #ffffff24;
  --titulo: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --margem: clamp(1.1rem, 4.5vw, 4rem);
  --lado: max(var(--margem), calc((100vw - 68rem) / 2)); /* left edge shared by hero and blocks */
  --barra: 4.25rem;
}
* { box-sizing: border-box; }
html { background: var(--noite); color: var(--tinta); scroll-padding-top: 7rem; }
body {
  margin: 0;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.pular { position: absolute; left: -999px; top: 0; z-index: 50; background: #fff; color: #000; padding: .6rem 1rem; }
.pular:focus { left: .5rem; top: .5rem; }

/* ---------- top bar ---------- */
.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: flex-start; gap: clamp(.8rem, 2vw, 1.6rem);
  padding: 0 clamp(1rem, 3vw, 2.2rem);
  height: var(--barra);
  background: #050505f0;
  border-bottom: 1px solid var(--fio);
}
.barra__logo { flex: none; display: block; background: #fff; padding: .45rem .7rem .5rem; border-radius: 0 0 8px 8px; border: 1px solid var(--ouro); border-top: 0; line-height: 0; }
.barra__logo img { display: block; height: 3.05rem; width: auto; }
.barra__nav { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.7rem); height: var(--barra); margin-right: auto; }
.barra__nav a {
  font-family: var(--titulo); font-weight: 600; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; padding: .4rem 0; border-bottom: 2px solid transparent;
}
.barra__nav a:hover { border-bottom-color: #ffffff88; }
.barra__nav a[aria-current='page'] { border-bottom-color: var(--ouro); color: var(--ouro); }
.barra__nav .so-menu { display: none; }
.barra__acoes { display: flex; align-items: center; gap: .7rem; height: var(--barra); }
.barra__menu {
  display: none; min-height: 2.75rem; padding: .4rem .8rem; cursor: pointer;
  font-family: var(--titulo); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--tinta); background: transparent; border: 2px solid #ffffff88; border-radius: 3px;
}

/* ---------- buttons and doors ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .5rem 1.15rem;
  font-family: var(--titulo); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  color: #000; background: #fff; border: 2px solid #fff; border-radius: 3px; cursor: pointer;
}
.btn:hover { background: var(--ouro); border-color: var(--ouro); }
.btn--linha { background: transparent; color: var(--tinta); border-color: #ffffff88; }
.btn--linha:hover { background: #ffffff18; border-color: #fff; }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #06210f; }
.btn--wa:hover { background: #3fe07a; border-color: #3fe07a; }
.btn--wa::before {
  content: ''; width: 1.25rem; height: 1.25rem; flex: none; background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18a8 8 0 0 1-4.1-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8 8 0 1 1 12 20zm4.4-6c-.2-.1-1.4-.7-1.6-.8-.2-.1-.4-.1-.5.1l-.7.9c-.1.2-.3.2-.5.1a6.500 6.500 0 0 1-3.200-2.800c-.2-.4.2-.4.6-1.200.1-.1 0-.3 0-.4l-.7-1.700c-.2-.5-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.8.800-1 1.800-.6 3 .8 2 2.300 3.600 4.200 4.600 1.500.7 2.100.7 2.900.6.500-.100 1.400-.600 1.600-1.200.2-.500.2-1 .1-1.100z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18a8 8 0 0 1-4.1-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8 8 0 1 1 12 20zm4.4-6c-.2-.1-1.4-.7-1.6-.8-.2-.1-.4-.1-.5.1l-.7.9c-.1.2-.3.2-.5.1a6.500 6.500 0 0 1-3.200-2.800c-.2-.4.2-.4.6-1.200.1-.1 0-.3 0-.4l-.7-1.700c-.2-.5-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.8.800-1 1.800-.6 3 .8 2 2.300 3.600 4.200 4.600 1.500.7 2.100.7 2.900.6.500-.100 1.400-.600 1.600-1.200.2-.500.2-1 .1-1.100z"/></svg>') center / contain no-repeat;
}
.porta { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ouro); padding-bottom: .1rem; }
.porta::after { content: ' →'; }
.porta:hover { color: var(--ouro); }
.porta--menor { font-weight: 400; border-bottom-color: #ffffff55; font-size: .95rem; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin: 1.3rem 0 0; }

/* ---------- type ---------- */
.rotulo { font-family: var(--titulo); font-weight: 600; font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ouro); margin: 0 0 .6rem; }
h1, h2, h3, .cartao-link__titulo, .noticia__titulo, .breve .breve__titulo, .etapas li, .tabela tbody th, .frase, .assinatura, .passos li::before { font-family: var(--display); letter-spacing: .012em; }
.etapas span { font-family: var(--titulo); }
h1, h2, h3 { font-weight: 800; text-transform: uppercase; line-height: 1.02; margin: 0 0 .9rem; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 22ch; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 32ch; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 .9rem; }
.grande { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.35; }
.nota { color: var(--cinza); font-size: .92rem; margin-top: 1rem; }

/* ---------- inner pages: hero ---------- */
.topo { position: relative; min-height: min(72svh, 40rem); display: flex; align-items: flex-end; padding: 9.5rem var(--lado) clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.topo__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #050505 0%, #050505b8 34%, #05050533 70%, #05050566 100%), linear-gradient(to right, #050505aa 0%, #05050500 65%); }
.topo__texto { position: relative; z-index: 1; max-width: 46rem; }
.topo h1 { text-shadow: 0 2px 28px #000a; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.4; max-width: 38rem; margin: 0; text-shadow: 0 1px 12px #000c; }
.topo__legenda { position: absolute; z-index: 1; right: var(--lado); bottom: .8rem; margin: 0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #ffffffaa; }
.migalhas { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .9rem; color: #d8d8d8; margin: 0 0 1.1rem; }
.migalhas a { text-underline-offset: .2em; }
.migalhas span[aria-current] { color: var(--cinza); }

/* ---------- inner pages: edition strip ---------- */
.subnav { position: sticky; top: var(--barra); z-index: 20; background: #0b0b0bf2; border-bottom: 1px solid var(--fio); border-top: 1px solid var(--fio); }
/* The left padding also keeps the first link clear of the logo tab that hangs below the bar. */
.subnav__faixa { display: flex; gap: 1.5rem; overflow-x: auto; padding: 0 var(--lado); scrollbar-width: none; }
.subnav__faixa::-webkit-scrollbar { display: none; }
.subnav a { flex: none; font-family: var(--titulo); font-weight: 600; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: .85rem 0 .7rem; border-bottom: 3px solid transparent; color: #d8d8d8; }
.subnav a:hover { color: #fff; }
.subnav a[aria-current='page'] { color: #fff; border-bottom-color: var(--ouro); }

/* ---------- inner pages: blocks ---------- */
.bloco { padding: clamp(2.6rem, 6vw, 4.6rem) var(--margem); }
.bloco + .bloco { border-top: 1px solid var(--fio); }
.bloco--faixa { background: var(--carvao); }
.bloco__dentro { max-width: 68rem; margin: 0 auto; }
.bloco__dentro > p, .texto-longo > p, .texto-longo > ul { max-width: 44rem; }
.texto-longo h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.2rem; }
.texto-longo h2:first-child { margin-top: 0; }
.texto-longo { font-size: 1.12rem; }

.fatos { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 2.5rem; margin: 0; }
.fatos div { padding: .9rem 0; border-top: 1px solid var(--fio); }
.fatos dt { font-family: var(--titulo); font-weight: 600; font-size: .92rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ouro); margin: 0 0 .15rem; }
.fatos dd { margin: 0; font-weight: 700; }
.fatos dd a { text-underline-offset: .2em; }

.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.grade--quatro { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); }
.grade--larga { grid-template-columns: minmax(0, 32rem); }
.cartao-link { display: flex; flex-direction: column; gap: .35rem; min-height: 9.5rem; padding: 1.2rem 1.25rem 1.3rem; text-decoration: none; background: var(--carvao); border: 1px solid var(--fio); border-radius: 4px; transition: border-color .15s, transform .15s; }
.bloco--faixa .cartao-link { background: var(--noite); }
.cartao-link:hover { border-color: var(--ouro); transform: translateY(-2px); }
.cartao-link__sobre { font-family: var(--titulo); font-weight: 600; font-size: .88rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ouro); }
.cartao-link__titulo { font-family: var(--titulo); font-weight: 800; font-size: 1.75rem; line-height: .95; text-transform: uppercase; }
.cartao-link__titulo::after { content: ' →'; color: var(--ouro); }
.cartao-link__texto { color: #d8d8d8; font-size: .97rem; margin-top: auto; }

.breve { border: 1px dashed #ffffff55; border-radius: 4px; padding: 1.3rem 1.4rem 1.2rem; max-width: 44rem; }
.breve p { margin: 0; color: #d8d8d8; }
.breve .breve__selo { font-family: var(--titulo); font-weight: 600; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ouro); margin-bottom: .4rem; }
.breve .breve__titulo { font-family: var(--titulo); font-weight: 800; font-size: 1.7rem; line-height: 1; text-transform: uppercase; color: #fff; margin-bottom: .5rem; }

.rolagem { overflow-x: auto; }
.tabela { width: 100%; min-width: 34rem; border-collapse: collapse; }
.tabela th, .tabela td { text-align: left; padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--fio); vertical-align: baseline; }
.tabela thead th { font-family: var(--titulo); font-weight: 600; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ouro); }
.tabela tbody th { font-family: var(--titulo); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; white-space: nowrap; }
.tabela tbody th a { text-decoration-color: var(--ouro); text-underline-offset: .18em; }

.lista-colunas { list-style: none; margin: 0; padding: 0; columns: 16rem 3; column-gap: 2.5rem; }
.lista-colunas li { padding: .55rem 0; border-top: 1px solid var(--fio); font-weight: 700; break-inside: avoid; }
.lista-colunas a { text-decoration: none; }
.lista-colunas a:hover { color: var(--ouro); }
.lista-marcada { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.lista-marcada li { padding: .6rem 0 .6rem 1.4rem; border-top: 1px solid var(--fio); position: relative; }
.lista-marcada li::before { content: ''; position: absolute; left: 0; top: 1.15rem; width: .55rem; height: .55rem; background: var(--ouro); }

.frase { margin: 1.6rem 0 0; padding: 0 0 0 1.2rem; border-left: 3px solid var(--ouro); font-family: var(--titulo); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1; text-transform: uppercase; max-width: 30ch; }

.marcas { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; margin-bottom: 1.2rem; }
.marcas--uma { grid-template-columns: minmax(0, 24rem); }
.tile { background: #fff; border-radius: 6px; padding: 1.2rem 1.4rem; margin: 0 0 .9rem; display: grid; place-items: center; min-height: 8.5rem; }
.tile img { display: block; max-width: 100%; height: auto; max-height: 6rem; width: auto; }

.etapas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem; max-width: 52rem; }
.etapas li { font-family: var(--titulo); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; padding: 1rem 1.1rem; border: 2px solid #ffffff66; border-radius: 4px; display: flex; flex-direction: column; gap: .5rem; }
.etapas span { font-weight: 600; font-size: .9rem; letter-spacing: .16em; color: var(--cinza); }
.etapas--ouro { border-color: var(--ouro) !important; }
.etapas--prata { border-color: var(--cinza) !important; }

.dias { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.5rem; }
.dia h3 { color: var(--ouro); }
.programa { list-style: none; margin: .4rem 0 0; padding: 0; }
.programa li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid #ffffff3d; font-weight: 700; }
.programa span { font-family: var(--titulo); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.passos { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.6rem 2.5rem; }
.passos li { counter-increment: passo; border-top: 2px solid var(--ouro); padding-top: .8rem; }
.passos li::before { content: counter(passo, decimal-leading-zero); display: block; font-family: var(--titulo); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--ouro); margin-bottom: .4rem; }

.noticias { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.6rem; }
.noticia { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; }
.noticia img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; margin-bottom: .5rem; }
.noticia__data { font-family: var(--titulo); font-weight: 600; font-size: .88rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ouro); }
.noticia__titulo { font-family: var(--titulo); font-weight: 800; font-size: 1.8rem; line-height: .98; text-transform: uppercase; }
.noticia:hover .noticia__titulo { color: var(--ouro); }
.noticia__resumo { color: #d8d8d8; font-size: .97rem; }

/* ---------- forms ---------- */
label { display: block; font-family: var(--titulo); font-weight: 600; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .4rem; }
select {
  width: 100%; min-height: 3rem; padding: .6rem 2.4rem .6rem .8rem;
  font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--tinta);
  background-color: #050505cc; border: 2px solid #ffffff88; border-radius: 3px;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 55%, calc(100% - .85rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat;
}
select option { color: #000; background: #fff; }
.montar { max-width: 34rem; display: grid; gap: 1.2rem; }
.montar fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; }
.montar legend { font-family: var(--titulo); font-weight: 600; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; padding: 0; margin-bottom: .5rem; }
.opcao { display: flex; align-items: center; gap: .7rem; min-height: 3rem; padding: .5rem .9rem; border: 2px solid #ffffff55; border-radius: 3px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 1.05rem; letter-spacing: 0; text-transform: none; margin: 0; }
.opcao:has(input:checked) { border-color: #fff; background: #ffffff14; }
.opcao input { width: 1.2rem; height: 1.2rem; accent-color: #fff; flex: none; }
.montar__previa { margin: 0; padding: .9rem 1rem; background: #0b2414; border-left: 3px solid var(--wa); border-radius: 0 4px 4px 0; font-size: 1rem; }
.montar .acoes, .montar .nota { margin: 0; }
textarea {
  display: block; width: 100%; min-height: 7.5rem; padding: .8rem .9rem; resize: vertical;
  font: inherit; font-size: 1.02rem; line-height: 1.45; color: var(--tinta);
  background: #0b2414; border: 2px solid #ffffff88; border-left: 4px solid var(--wa); border-radius: 3px;
}
textarea:focus-visible { outline-offset: 2px; }
.montar__ajuda { margin: .45rem 0 0; font-size: .9rem; color: var(--cinza); display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.montar__voltar { font: inherit; color: var(--tinta); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- team logos (white on black, as supplied) ---------- */
.escudos { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem; }
.escudo { display: flex; flex-direction: column; align-items: center; text-decoration: none; background: #000; border: 1px solid var(--fio); border-radius: 4px; padding: .3rem .6rem 1rem; transition: border-color .15s, transform .15s; }
.escudo:hover { border-color: var(--ouro); transform: translateY(-2px); }
.escudo img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.escudo__nome { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.escudo__nota { font-family: var(--titulo); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ouro); }
.escudo { position: relative; }
.topo__marca { display: block; width: 8rem; height: auto; margin: 0 0 1rem -0.6rem; border-radius: 4px; }

.duas { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.cartaz { margin: 0; }
.cartaz img { display: block; width: 100%; height: auto; border-radius: 4px; }
.cartaz figcaption { margin-top: .5rem; font-size: .88rem; color: var(--cinza); }
@media (max-width: 720px) { .duas { grid-template-columns: minmax(0, 1fr); } .cartaz { max-width: 22rem; } }

/* ---------- closing call ---------- */
.chamada { padding: clamp(3rem, 8vw, 6rem) var(--margem); background: #fff; color: #000; }
.chamada h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 18ch; }
.chamada p { max-width: 38rem; font-size: 1.12rem; }
.chamada .porta { border-bottom-color: #000; }
.chamada .porta:hover { color: #000; border-bottom-color: var(--ouro); }
.chamada .btn:not(.btn--wa) { background: #000; color: #fff; border-color: #000; }
.chamada :focus-visible { outline-color: #000; }

/* ---------- footer ---------- */
.rodape { position: relative; z-index: 20; background: var(--noite); border-top: 1px solid var(--fio); padding: clamp(2.5rem, 7vw, 5rem) var(--margem) 2.5rem; display: grid; gap: 3rem; }
.rodape__marcas { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem; }
.porta--insta { display: inline-block; margin-top: .8rem; }
.assinatura { font-family: var(--titulo); font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase; margin: 0; }
.rodape__noticias ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.rodape__noticias li { padding: .6rem 0; border-top: 1px solid var(--fio); }
.rodape__noticias li a { display: block; font-weight: 700; text-decoration: none; }
.rodape__noticias li a:hover { color: var(--ouro); }
.rodape__noticias li span { font-size: .85rem; color: var(--cinza); }
.rodape__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 2rem; }
.rodape__nav h3 { font-weight: 600; font-size: .95rem; letter-spacing: .18em; color: var(--ouro); margin: 0 0 .6rem; }
.rodape__nav a { display: block; padding: .3rem 0; text-decoration: none; }
.rodape__nav a:hover { color: var(--ouro); }
.rodape__fim { border-top: 1px solid var(--fio); padding-top: 1.4rem; color: var(--cinza); font-size: .85rem; }
.rodape__fim p { margin: 0 0 .35rem; }
.rodape__nota { color: var(--ouro); }

/* ---------- toast ---------- */
.aviso {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 1rem); z-index: 60; margin: 0;
  background: #fff; color: #000; padding: .7rem 1rem; border-radius: 4px; font-size: .92rem; max-width: calc(100vw - 2rem);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.aviso.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- narrow screens ---------- */
@media (max-width: 1080px) {
  .barra__nav { gap: .9rem; }
  .barra__nav a { font-size: .95rem; letter-spacing: .06em; }
}
@media (max-width: 900px) {
  :root { --barra: 3.75rem; }
  .barra { gap: .6rem; }
  .barra__logo { margin-right: auto; padding: .35rem .5rem .4rem; }
  .barra__logo img { height: 2.6rem; }
  .barra .btn { min-height: 2.5rem; padding: .35rem .7rem; font-size: 1rem; white-space: nowrap; }
  .js .barra__menu { display: inline-flex; align-items: center; }
  .js .barra__nav {
    display: none; position: fixed; inset: var(--barra) 0 0 0; height: auto; margin: 0; z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0; padding: 4rem var(--margem) 2rem; overflow-y: auto;
    background: #050505;
  }
  .js .barra__nav.aberto { display: flex; }
  .js .barra__nav a { font-size: 1.7rem; font-weight: 800; letter-spacing: .02em; padding: .7rem 0; border-bottom: 1px solid var(--fio); white-space: normal; }
  .js .barra__nav .so-menu { display: block; font-weight: 600; font-size: 1.15rem; letter-spacing: .1em; color: #d8d8d8; }
  /* Without JavaScript the links stay reachable in a scrolling strip under the bar. */
  html:not(.js) .barra { height: auto; flex-wrap: wrap; padding-bottom: .4rem; }
  html:not(.js) .barra__nav { order: 3; width: 100%; height: auto; overflow-x: auto; }
  .topo { padding-top: 8.2rem; min-height: min(64svh, 34rem); }
  .subnav__faixa { gap: 1.2rem; }
  .topo__legenda { left: auto; right: var(--margem); bottom: .5rem; }
}
@media (max-width: 520px) {
  .so-largo { display: none; }
}
/* ---------- movement between pages ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .barra { view-transition-name: barra; }
  ::view-transition-old(root) { animation: sair .2s ease-in both; }
  ::view-transition-new(root) { animation: entrar .45s cubic-bezier(.2, .7, .2, 1) both; }
  .topo__foto { animation: assentar 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .topo__texto > * { animation: subir .7s cubic-bezier(.2, .7, .2, 1) both; }
  .topo__texto > :nth-child(2) { animation-delay: .06s; }
  .topo__texto > :nth-child(3) { animation-delay: .12s; }
  .topo__texto > :nth-child(4) { animation-delay: .18s; }
  .topo__texto > :nth-child(5) { animation-delay: .24s; }
}
@keyframes sair { to { opacity: 0; } }
@keyframes entrar { from { opacity: 0; } }
@keyframes assentar { from { transform: scale(1.07); } }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
