/* =====================================================================
   App XXI CBPM · Goiânia 2026
   Mobile first · 100% responsivo · modo escuro automático
   ===================================================================== */

:root {
  --bg: #f2f5fa;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --surface-3: #e3eaf4;
  --text: #0e1d33;
  --text-2: #475972;
  --muted: #7a889d;
  --line: #e2e8f1;
  --navy: #0f2a4c;
  --navy-2: #163b69;
  --primary: #1d4f9a;
  --primary-soft: #e6eefb;
  --sky: #3c9fcc;
  --green: #1f9a48;
  --gold: #f5b301;
  --gold-soft: #fff6dc;
  --danger: #d64545;
  --on-dark: #ffffff;
  --btn: #1d4f9a;

  --t-cientifico: #1d4f9a;
  --t-institucional: #6a4fc0;
  --t-curso: #0d8a8c;
  --t-esportivo: #1f9a48;
  --t-social: #d9468a;
  --t-intervalo: #c47f00;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --shadow-1: 0 1px 2px rgba(15, 42, 76, .06), 0 2px 8px rgba(15, 42, 76, .05);
  --shadow-2: 0 6px 24px rgba(15, 42, 76, .12);
  --shadow-3: 0 18px 50px rgba(15, 42, 76, .22);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --tab-h: 64px;
  --top-h: 56px;
  --gutter: 16px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1424;
    --surface: #111f36;
    --surface-2: #172944;
    --surface-3: #1e3354;
    --text: #e9eff8;
    --text-2: #b0bed3;
    --muted: #8193ad;
    --line: #22385a;
    --primary: #7aa9f2;
    --primary-soft: #1a2f52;
    --gold-soft: #3a2f10;
    --btn: #2d64bd;
    --t-cientifico: #7aa9f2;
    --t-institucional: #a993ef;
    --t-curso: #3cc2c4;
    --t-esportivo: #4fc97a;
    --t-social: #f07bb2;
    --t-intervalo: #f0b43a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 8px 26px rgba(0, 0, 0, .35);
    --shadow-3: 0 18px 50px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1424; --surface: #111f36; --surface-2: #172944; --surface-3: #1e3354;
  --text: #e9eff8; --text-2: #b0bed3; --muted: #8193ad; --line: #22385a;
  --primary: #7aa9f2; --primary-soft: #1a2f52; --gold-soft: #3a2f10; --btn: #2d64bd;
  --t-cientifico: #7aa9f2; --t-institucional: #a993ef; --t-curso: #3cc2c4;
  --t-esportivo: #4fc97a; --t-social: #f07bb2; --t-intervalo: #f0b43a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; flex: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

/* ---------- Estrutura ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.main { min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 6px;
  height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) calc(8px + var(--safe-r)) 0 calc(8px + var(--safe-l));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.topbar.com-borda { border-bottom-color: var(--line); }
.topbar-title {
  flex: 1; min-width: 0; padding-left: 8px;
  font-weight: 800; font-size: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-back + .topbar-title { padding-left: 0; }
.topbar-title { transition: opacity .2s; }
.topbar.titulo-grande:not(.com-borda) .topbar-title { opacity: 0; }
.topbar-actions { display: flex; gap: 2px; }
.topbar.sobre-hero {
  position: fixed; left: 0; right: 0;
  background: transparent; color: #fff; border-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.topbar.sobre-hero .topbar-title { opacity: 0; }
.topbar.sobre-hero.rolou {
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.topbar.sobre-hero.rolou .topbar-title { opacity: 1; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  transition: background .15s, transform .15s;
}
.icon-btn:active { transform: scale(.92); }
@media (hover: hover) { .icon-btn:hover { background: var(--surface-2); } .sobre-hero .icon-btn:hover { background: rgba(255,255,255,.14); } }

.view {
  outline: none;
  padding: 0 calc(var(--gutter) + var(--safe-r)) calc(var(--tab-h) + var(--safe-b) + 28px) calc(var(--gutter) + var(--safe-l));
  max-width: var(--max);
  margin: 0 auto;
  animation: entrar .28s ease-out;
}
.view.sem-topo { padding-top: 0; }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.offline-bar {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin: 0 var(--gutter) 8px; padding: 8px 12px;
  border-radius: var(--r-s); background: var(--gold-soft); color: var(--text);
  font-size: 13px; font-weight: 600;
}
.offline-bar svg { width: 18px; height: 18px; }

/* Barra de abas (celular / tablet) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b));
  padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line);
}
.tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .01em;
}
.tab svg { width: 24px; height: 24px; transition: transform .2s; }
.tab > span:not(.badge) { max-width: 100%; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab.ativa { color: var(--primary); }
.tab.ativa svg { transform: translateY(-1px); }
.tab.ativa::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 3px;
  margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--primary);
}
.tab .badge {
  position: absolute; top: 7px; left: 50%; margin-left: 6px;
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: #3a2a00; font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
}

/* Barra lateral (desktop) */
.rail { display: none; }

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .app { display: grid; grid-template-columns: 248px 1fr; }
  .tabbar { display: none; }
  .view { padding-bottom: 48px; }
  .rail {
    display: flex; flex-direction: column; gap: 24px;
    position: sticky; top: 0; height: 100vh;
    padding: 28px 18px;
    background: linear-gradient(180deg, var(--navy) 0%, #0b2140 100%);
    color: #fff;
  }
  .rail-logo img { width: 112px; margin: 0 auto 4px; }
  .rail-nav { display: flex; flex-direction: column; gap: 4px; }
  .rail-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 12px;
    color: rgba(255,255,255,.78); font-weight: 600;
    transition: background .15s, color .15s;
  }
  .rail-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .rail-nav a.ativa { background: rgba(255,255,255,.14); color: #fff; }
  .rail-nav a .badge { margin-left: auto; background: var(--gold); color: #3a2a00; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 10px; }
  .rail-foot { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.6; }
  .topbar.sobre-hero { left: 248px; }
}

/* ---------- Carregando ---------- */
.boot {
  min-height: 70vh; display: grid; place-items: center; align-content: center; gap: 18px;
  color: var(--muted); font-weight: 600;
}
.boot img { width: 72px; filter: brightness(0) saturate(100%) invert(22%) sepia(56%) saturate(1500%) hue-rotate(200deg); animation: pulsar 1.4s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: .45; transform: scale(.94); } }

/* ---------- Tipografia e blocos utilitários ---------- */
.titulo-pagina { font-size: 28px; font-weight: 800; margin: 8px 0 4px; }
.sub-pagina { color: var(--text-2); margin-bottom: 18px; }
.secao { margin-top: 28px; }
.secao-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.secao-cab h2 { font-size: 19px; font-weight: 800; }
.secao-cab a { font-size: 14px; font-weight: 700; white-space: nowrap; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.texto { color: var(--text-2); }
.texto p + p { margin-top: 12px; }
.centro { text-align: center; }

.card {
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
}
.card-pad { padding: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px;
  font-weight: 700; font-size: 15px;
  background: var(--btn); color: #fff;
  transition: transform .15s, filter .15s, background .15s;
}
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover { filter: brightness(1.08); } }
.btn svg { width: 20px; height: 20px; }
.btn-sec { background: var(--surface-2); color: var(--text); }
.btn-claro { background: #fff; color: var(--navy); }
.btn-ouro { background: var(--gold); color: #2e2200; }
.btn-whats { background: #1faa55; }
.btn-bloco { width: 100%; }
.btn-peq { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); font-weight: 700; font-size: 13px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip.ativo { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip .ponto { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--tipo, var(--primary));
}
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.selo {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px;
  background: color-mix(in srgb, var(--tipo, var(--primary)) 14%, transparent);
  color: var(--tipo, var(--primary)); font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
}

.t-cientifico { --tipo: var(--t-cientifico); --tipo-forte: #1d4f9a; }
.t-institucional { --tipo: var(--t-institucional); --tipo-forte: #5a3fb0; }
.t-curso { --tipo: var(--t-curso); --tipo-forte: #0b7476; }
.t-esportivo { --tipo: var(--t-esportivo); --tipo-forte: #18803b; }
.t-social { --tipo: var(--t-social); --tipo-forte: #c23578; }
.t-intervalo { --tipo: var(--t-intervalo); --tipo-forte: #9a6200; }

.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text-2); font-size: 13.5px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 16px; height: 16px; color: var(--muted); }

.vazio { text-align: center; padding: 48px 20px; color: var(--text-2); }
.vazio .ico {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary);
}
.vazio .ico svg { width: 36px; height: 36px; }
.vazio h3 { font-size: 19px; color: var(--text); margin-bottom: 6px; }
.vazio p { max-width: 360px; margin: 0 auto 18px; }

/* Estrela (favoritar) */
.estrela {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  transition: transform .2s, color .2s, background .2s;
}
.estrela svg { width: 24px; height: 24px; }
.estrela.on { color: var(--gold); }
.estrela.pop { animation: pop .38s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 40% { transform: scale(1.35) rotate(-8deg); } }
@media (hover: hover) { .estrela:hover { background: var(--surface-2); } }

/* ---------- Início ---------- */
.hero {
  position: relative;
  margin: 0 calc(-1 * var(--gutter) - var(--safe-r)) 0 calc(-1 * var(--gutter) - var(--safe-l));
  padding: calc(var(--top-h) + var(--safe-t) + 8px) calc(var(--gutter) + 4px) 28px;
  color: #fff; overflow: hidden;
  background: #0b2140 url(img/capa-900.jpg) center 30% / cover no-repeat;
  border-radius: 0 0 28px 28px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(11,33,64,.15) 0%, rgba(11,33,64,.55) 60%, rgba(11,33,64,.92) 100%),
    linear-gradient(180deg, rgba(11,33,64,.35) 0%, rgba(11,33,64,.1) 35%, rgba(11,33,64,.88) 100%);
}
.hero > * { position: relative; }
.hero-logo { width: 46%; max-width: 190px; height: auto; margin: 6px auto 18px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.hero-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 16px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 700;
}
.hero-pill svg { width: 16px; height: 16px; }
.contagem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; margin: 0 auto; }
.contagem div {
  padding: 10px 4px 8px; border-radius: 14px; text-align: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.contagem b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.contagem span { font-size: 11px; font-weight: 600; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.hero-legenda { text-align: center; font-size: 12.5px; opacity: .8; margin-bottom: 10px; font-weight: 600; }
.hero-ao-vivo {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 15px; margin-bottom: 4px;
}
.pulso { width: 10px; height: 10px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 0 rgba(255,77,109,.6); animation: aovivo 1.6s infinite; }
@keyframes aovivo { 70% { box-shadow: 0 0 0 12px rgba(255,77,109,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,109,0); } }

.atalhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.atalho {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  color: var(--text); font-weight: 700; font-size: 13.5px; line-height: 1.25;
  transition: transform .15s, box-shadow .15s;
}
.atalho:active { transform: scale(.97); }
@media (hover: hover) { .atalho:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); } }
.atalho .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--cor) 14%, transparent); color: var(--cor); }
.atalho .ico svg { width: 22px; height: 22px; }

.instalar {
  display: flex; align-items: center; gap: 14px;
  margin-top: 18px; padding: 14px 14px 14px 16px; border-radius: var(--r-m);
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
  box-shadow: var(--shadow-2);
}
.instalar img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.instalar div { flex: 1; min-width: 0; }
.instalar b { display: block; font-size: 15px; }
.instalar small { display: block; opacity: .8; font-size: 12.5px; line-height: 1.35; }
.instalar .fechar { color: rgba(255,255,255,.7); width: 32px; height: 32px; }
.instalar .fechar svg { width: 18px; height: 18px; }

.cta-inscricao {
  position: relative; overflow: hidden;
  padding: 20px; border-radius: var(--r-l);
  background: linear-gradient(135deg, #1d4f9a 0%, #0f2a4c 100%); color: #fff;
}
.cta-inscricao::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,179,1,.45), transparent 70%);
}
.cta-inscricao h3 { font-size: 20px; margin-bottom: 6px; }
.cta-inscricao p { opacity: .85; margin-bottom: 16px; font-size: 14px; max-width: 420px; }

.logos-faixa { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.logos-faixa::-webkit-scrollbar { display: none; }

/* ---------- Programação ---------- */
.dias {
  position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 20;
  margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 10px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.dias-lista { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.dias-lista::-webkit-scrollbar { display: none; }
.dia {
  flex: 1 0 auto; min-width: 62px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 8px 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); transition: all .18s;
}
.dia small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dia b { font-size: 22px; font-weight: 800; line-height: 1.15; color: var(--text); }
.dia.ativo { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.75); box-shadow: 0 6px 18px rgba(15,42,76,.3); }
.dia.ativo b { color: #fff; }
.dia .hoje { font-size: 9.5px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.dia .hoje.pre { color: var(--muted); }
.dia.ativo .hoje.pre { color: rgba(255,255,255,.7); }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }

.busca {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.busca svg { color: var(--muted); width: 20px; height: 20px; }
.busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.busca button { color: var(--muted); }

.dia-titulo { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 12px; }
.dia-titulo h2 { font-size: 20px; font-weight: 800; }
.dia-titulo span { color: var(--muted); font-weight: 600; font-size: 14px; }

.linha-tempo { position: relative; }
.bloco { display: grid; grid-template-columns: 54px 1fr; gap: 12px; margin-bottom: 14px; }
.bloco-hora { padding-top: 14px; text-align: right; }
.bloco-hora b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bloco-hora small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.bloco.passado { opacity: .6; }
.bloco.agora .bloco-hora b { color: #e23d5d; }

.atv {
  position: relative; display: block; color: inherit;
  padding: 14px 8px 14px 16px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform .15s, box-shadow .15s;
}
.atv::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--tipo, var(--primary));
}
.atv-linha { display: flex; align-items: flex-start; gap: 6px; }
.atv-corpo { flex: 1; min-width: 0; }
.atv h3 { font-size: 16px; font-weight: 700; margin: 4px 0 6px; }
.atv .meta { margin-bottom: 2px; }
.atv-desc { color: var(--text-2); font-size: 13.5px; margin-top: 6px; }
a.atv:active, .sub:active { transform: scale(.985); }
@media (hover: hover) { a.atv:hover, a.sub:hover { box-shadow: var(--shadow-2); } }

.subs { display: grid; gap: 8px; margin-top: 12px; margin-right: 8px; }
.subs-rot { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.subs-rot::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sub {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 4px 12px 12px; border-radius: 13px;
  background: var(--surface-2); color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.sub-corpo { flex: 1; min-width: 0; }
.sub h4 { font-size: 14.5px; font-weight: 700; margin: 4px 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sub .meta { font-size: 12.5px; }
.sub .estrela { width: 40px; height: 40px; }

.rostos { display: flex; align-items: center; margin-top: 8px; }
.rostos .av { width: 28px; height: 28px; font-size: 10.5px; border: 2px solid var(--surface-2); margin-left: -8px; }
.rostos .av:first-child { margin-left: 0; }
.rostos .mais { margin-left: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }

.av {
  width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sky), var(--primary)); color: #fff;
  font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.av img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }

.linha-agora { display: flex; align-items: center; gap: 8px; margin: -4px 0 10px 4px; color: #e23d5d; font-size: 12px; font-weight: 800; }
.linha-agora::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(226,61,93,.18); }
.linha-agora::after { content: ''; flex: 1; height: 2px; background: currentColor; border-radius: 2px; opacity: .6; }

.aviso-rodape { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; }

/* ---------- Detalhe da atividade ---------- */
.det-cab {
  position: relative; overflow: hidden;
  margin: 4px 0 16px; padding: 20px 18px 18px; border-radius: var(--r-l);
  background: var(--tipo-forte, #1d4f9a);
  background: linear-gradient(135deg, var(--tipo-forte, #1d4f9a) 0%, color-mix(in srgb, var(--tipo-forte, #1d4f9a) 55%, #0b2140) 100%);
  color: #fff;
}
.det-cab::after { content: ''; position: absolute; right: -30px; bottom: -60px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.08); }
.det-cab .selo { background: rgba(255,255,255,.18); color: #fff; }
.det-cab h1 { font-size: 22px; font-weight: 800; margin: 10px 0 12px; }
.det-cab .meta { color: rgba(255,255,255,.88); }
.det-cab .meta svg { color: rgba(255,255,255,.7); }
.det-grupo { font-size: 13px; opacity: .8; font-weight: 600; margin-top: 8px; }

.acoes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.acao {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--text-2); text-align: center;
}
.acao svg { width: 22px; height: 22px; color: var(--primary); }
.acao.on svg { color: var(--gold); }
.acao:active { transform: scale(.96); }

.pessoas { display: grid; gap: 2px; }
.pessoa {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 6px 10px 10px; border-radius: 14px; color: inherit;
}
a.pessoa:active { background: var(--surface-2); }
@media (hover: hover) { a.pessoa:hover { background: var(--surface-2); } }
.pessoa-txt { flex: 1; min-width: 0; }
.pessoa-txt b { display: block; font-size: 15px; font-weight: 700; }
.pessoa-txt small { display: block; color: var(--text-2); font-size: 13px; line-height: 1.35; }
.pessoa > svg { color: var(--muted); width: 18px; height: 18px; }
.papel { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 16px 0 4px 10px; }

.caixa-patro {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--gold-soft); border: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent);
  font-size: 13.5px; font-weight: 600;
}
.nota { color: var(--muted); font-size: 12.5px; margin-top: 14px; }

/* ---------- Palestrantes ---------- */
.grade-pal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .grade-pal { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .grade-pal { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .grade-pal { grid-template-columns: repeat(5, 1fr); } }
.pal {
  display: flex; flex-direction: column; overflow: hidden; color: inherit;
  border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform .18s, box-shadow .18s;
}
.pal:active { transform: scale(.97); }
@media (hover: hover) { .pal:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); } }
.pal-foto { position: relative; aspect-ratio: 3 / 4; background: var(--surface-3); overflow: hidden; }
.pal-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
@media (hover: hover) { .pal:hover .pal-foto img { transform: scale(1.04); } }
.pal-foto::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(8,22,44,.55)); }
.pal-txt { padding: 10px 12px 12px; }
.pal-txt b { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; }
.pal-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-2); font-size: 12px; line-height: 1.35; margin-top: 3px; }
.letra { grid-column: 1 / -1; font-size: 13px; font-weight: 800; color: var(--muted); margin: 6px 0 -4px 2px; }

.perfil { display: grid; gap: 20px; }
.perfil-topo { display: flex; gap: 16px; align-items: flex-end; }
.perfil-foto { width: 128px; flex: none; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-2); background: var(--surface-3); }
.perfil-foto img { width: 100%; height: 100%; object-fit: cover; }
.perfil-topo h1 { font-size: 23px; font-weight: 800; margin-bottom: 6px; }
.perfil-topo p { color: var(--text-2); font-size: 14px; }
@media (min-width: 760px) {
  .perfil { grid-template-columns: 280px 1fr; align-items: start; gap: 32px; }
  .perfil-topo { flex-direction: column; align-items: stretch; position: sticky; top: 90px; }
  .perfil-foto { width: 100%; }
}

/* ---------- Agenda ---------- */
.conflito { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; color: #b86e00; font-size: 12.5px; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .conflito { color: var(--gold); } }
.conflito svg { width: 16px; height: 16px; }
.painel-agenda { display: grid; gap: 10px; margin-bottom: 8px; }
@media (min-width: 640px) { .painel-agenda { grid-template-columns: 1fr 1fr; } }
.opcao {
  color: var(--text);
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line); text-align: left;
}
.opcao .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.opcao div { flex: 1; min-width: 0; }
.opcao b { display: block; font-size: 14.5px; }
.opcao small { display: block; color: var(--text-2); font-size: 12.5px; line-height: 1.35; }

.interruptor { position: relative; width: 50px; height: 30px; flex: none; border-radius: 15px; background: var(--surface-3); transition: background .2s; }
.interruptor::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.interruptor.on { background: var(--green); }
.interruptor.on::after { transform: translateX(20px); }

/* ---------- Listas (Mais) ---------- */
.lista { border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.lista-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 14px; color: var(--text); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.lista-item:last-child { border-bottom: 0; }
.lista-item .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--cor, var(--primary)) 14%, transparent); color: var(--cor, var(--primary)); flex: none; }
.lista-item .ico svg { width: 20px; height: 20px; }
.lista-item span { flex: 1; min-width: 0; }
.lista-item small { display: block; font-weight: 500; color: var(--text-2); font-size: 12.5px; }
.lista-item > svg { color: var(--muted); width: 18px; height: 18px; }
@media (hover: hover) { a.lista-item:hover, button.lista-item:hover { background: var(--surface-2); } }
button.lista-item { width: 100%; text-align: left; }
.lista-tit { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 4px 8px; }

.grade-2 { display: grid; gap: 12px; }
@media (min-width: 700px) { .grade-2 { grid-template-columns: 1fr 1fr; } }

.local-card { padding: 16px; }
.local-card .kicker { margin-bottom: 4px; }
.local-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.local-card p { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }

.esporte {
  position: relative; overflow: hidden; color: #fff; padding: 20px 18px; border-radius: var(--r-l);
}
.esporte h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.esporte .meta { color: rgba(255,255,255,.95); font-weight: 600; margin-bottom: 16px; }
.esporte .meta svg { color: #fff; }
.esporte .grande { position: absolute; right: -14px; top: -14px; width: 110px; height: 110px; opacity: .16; }

.cupom {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 14px; margin: 12px 0; border-radius: 12px;
  border: 2px dashed color-mix(in srgb, var(--gold) 80%, transparent); background: var(--gold-soft);
}
.cupom small { display: block; font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.cupom b { font-size: 19px; letter-spacing: .08em; }
.hotel-oficial { color: #fff; background: linear-gradient(135deg, #0f2a4c, #1d4f9a); padding: 20px 18px; border-radius: var(--r-l); }
.hotel-oficial .cupom { background: rgba(245,179,1,.14); }
.hotel-oficial .cupom small { color: rgba(255,255,255,.75); }
.hotel-oficial .cupom b { color: var(--gold); }
.hotel-oficial p { opacity: .85; font-size: 14px; }
.ouro-selo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; background: var(--gold); color: #2e2200; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }

.contato { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.contato b { font-size: 15px; }

.preco { padding: 18px; }
.preco h3 { font-size: 15px; color: var(--text-2); font-weight: 700; }
.preco .valor { font-size: 30px; font-weight: 800; margin: 2px 0 12px; letter-spacing: -.02em; }
.preco ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.preco li { display: flex; gap: 8px; font-size: 14px; color: var(--text-2); }
.preco li svg { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }

.cota { margin-bottom: 18px; }
.cota-cab { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.cota-cab i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(6, 1fr); } }
.logos.grandes { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .logos.grandes { grid-template-columns: repeat(3, 1fr); } }
.logo-box {
  aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 10px;
  border-radius: 14px; background: #fff; border: 1px solid var(--line);
}
.logos-faixa .logo-box { width: 120px; flex: none; }
.logo-box img { max-height: 100%; object-fit: contain; }

.noticia { display: flex; gap: 14px; padding: 14px; color: inherit; }
.noticia img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; flex: none; }
.noticia small { color: var(--muted); font-weight: 700; font-size: 12px; }
.noticia h3 { font-size: 15.5px; font-weight: 700; margin: 2px 0 4px; }
.noticia p { color: var(--text-2); font-size: 13.5px; }

/* ---------- Sheet (instruções, etc.) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5,14,28,.5); animation: fade .2s; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  padding: 10px 20px calc(24px + var(--safe-b));
  border-radius: 26px 26px 0 0; background: var(--surface); box-shadow: var(--shadow-3);
  animation: subir .3s cubic-bezier(.2,.9,.3,1);
}
@media (min-width: 640px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 26px; padding-bottom: 24px; } }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 0 auto 16px; }
.sheet h2 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.passos { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; counter-reset: p; }
.passos li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); counter-increment: p; font-size: 14.5px; }
.passos li::before { content: counter(p); width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; }
.passos svg { width: 24px; height: 24px; vertical-align: middle; }
@keyframes fade { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(100%); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); z-index: 90;
  max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px;
  background: #0f1d33; color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-3);
  opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .25s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 28px; left: calc(50% + 124px); } }

/* ---------- Telas largas ---------- */
@media (min-width: 700px) {
  .atalhos { grid-template-columns: repeat(6, 1fr); }
  .hero { margin-left: 0; margin-right: 0; margin-top: 0; border-radius: 28px; padding: 40px 32px 34px; }
  .hero-logo { max-width: 210px; }
  .titulo-pagina { font-size: 32px; }
  .bloco { grid-template-columns: 70px 1fr; gap: 18px; }
  .subs { grid-template-columns: repeat(2, 1fr); }
  .det-cab { padding: 28px 28px 24px; }
  .det-cab h1 { font-size: 27px; }
  .acoes { max-width: 560px; }
}
@media (min-width: 960px) {
  .hero { margin-top: 24px; }
  .view.sem-topo { padding-top: 0; }
  .dias { margin: 0; padding-left: 0; padding-right: 0; top: var(--top-h); }
  .subs.quatro { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .subs.quatro { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 359px) {
  :root { --gutter: 12px; }
  .tab { font-size: 9.5px; letter-spacing: -.01em; }
  .tab svg { width: 22px; height: 22px; }
  .contagem b { font-size: 21px; }
  .atalhos { gap: 8px; }
  .atalho { padding: 12px 10px; font-size: 12.5px; }
  .acao { font-size: 11px; }
  .bloco { grid-template-columns: 46px 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
