/* A moldura das páginas das modalidades (/modalidades/<id>/): o topo com o menu, o rodapé e o botão do
   WhatsApp, iguais aos da página da Transparência. O conteúdo da página está em conteudo.css. */
:root {
  --azul: #4878d2; --azul-forte: #2f5fbf; --azul-escuro: #1d3f86; --azul-noite: #0f2350;
  --vermelho: #f03a37; --branco: #ffffff; --papel: #f4f6fb; --texto: #16203a; --texto-suave: #58627a; --linha: #dfe4ef;
  --raio: 14px; --largura: 1160px; --topo: 76px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--topo) + 16px); }
body { font-family: "Barlow", system-ui, sans-serif; color: var(--texto); background: var(--branco); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 20px; }

/* Topo (igual ao do site). O topo é mais largo que o resto da página (1320 px) pra o menu caber numa
   linha; abaixo de 1260 px vira o ☰. */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); }
.topo .container { display: flex; align-items: center; justify-content: space-between; height: var(--topo); max-width: 1320px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texto); flex: none; }
.marca img { height: 46px; width: auto; }
.marca-nome { line-height: 1.05; }
.marca-nome b { display: block; font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; }
.marca-nome span { display: block; font-size: .9rem; font-weight: 500; color: var(--texto-suave); }
.menu { display: flex; align-items: center; gap: 22px; list-style: none; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 500; color: var(--texto); position: relative; white-space: nowrap; }
.menu a:hover { color: var(--azul-forte); }
.menu a.ativo { color: var(--azul-forte); font-weight: 600; }
.menu a.ativo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 4px; border-radius: 2px; background: var(--vermelho); transform: skewX(-30deg); }
.menu .link-academia { display: inline-flex; align-items: center; gap: 8px; color: #fff; padding: 8px 14px; border-radius: 10px; border: 1px solid #d7261e; position: relative; isolation: isolate; background: url(../img/textura-academia.jpg) 30% 45% / 420px auto; transition: background-size .4s ease, background-position .4s ease; white-space: nowrap; }
.menu .link-academia:hover { color: #fccc30; background-size: 500px auto; background-position: 40% 55%; }
.menu .link-academia::after { content: ""; position: absolute; inset: 5px; border-radius: 6px; background: #0a0a0a; z-index: -1; }
.menu .link-academia::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #fccc30; box-shadow: 0 0 0 1px #0a0a0a; animation: acender 1.1s ease-in-out infinite alternate; }
@keyframes acender { from { opacity: 1; box-shadow: 0 0 0 1px #0a0a0a, 0 0 8px 1px rgba(252,204,48,.75); } to { opacity: .3; box-shadow: 0 0 0 1px #0a0a0a; } }
.menu-botao { display: none; background: none; border: 0; color: var(--texto); cursor: pointer; padding: 8px; }
.menu-botao svg { width: 28px; height: 28px; }
.apoie-animado { flex: none; display: block; line-height: 0; margin-left: 22px; border-radius: 999px; }
.apoie-animado svg { width: 145px; height: 64px; display: block; overflow: visible; }
.apoie-pilula { fill: var(--vermelho); transition: fill .15s; }
.apoie-animado:hover .apoie-pilula { fill: #d42c29; }

/* Rodapé e WhatsApp */
.rodape { background: var(--branco); border-top: 4px solid var(--azul-forte); padding: 40px 0; font-size: .95rem; color: var(--texto-suave); }
.rodape .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.rodape nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.rodape nav a { text-decoration: none; }
.rodape nav a:hover { color: var(--azul-forte); }
.whats-flutuante { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--branco); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .15s; }
.whats-flutuante:hover { transform: scale(1.07); }
.whats-flutuante svg { width: 32px; height: 32px; }

@media (max-width: 1259px) {
  .menu-botao { display: block; order: 2; margin-left: 4px; margin-right: -8px; }
  .menu { display: none; position: absolute; top: var(--topo); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--branco); padding: 8px 20px 24px; border-bottom: 1px solid var(--linha); box-shadow: 0 12px 24px rgba(15,35,80,.08); }
  .menu.aberto { display: flex; }
  .menu li a { display: flex; padding: 14px 0; border-bottom: 1px solid var(--linha); }
  .menu li a.link-academia { padding: 14px 16px; margin: 10px 0 4px; border: 1px solid #d7261e; }
  .menu li:last-child a { border: 0; }
  .menu a.ativo::after { display: none; }
  .apoie-animado { margin-left: auto; }
}
@media (max-width: 860px) { .apoie-animado svg { width: 128px; height: 56px; } }
@media (max-width: 480px) {
  body { font-size: 16px; }
  .container, .md-largura { padding: 0 16px; }
  .marca img { height: 40px; }
  .marca-nome b { font-size: 1.25rem; }
  .whats-flutuante { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
@media (max-width: 380px) { .apoie-animado svg { width: 112px; height: 49px; } }
/* no fim da página, o botão do WhatsApp cobria a última linha do rodapé (a do ©) */
@media (max-width: 1299px) { .rodape { padding-bottom: 100px; } }
