@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600&display=swap');

:root {
  --navy: #0A2A5E;
  --navy-deep: #071D42;
  --blue: #1E5BD8;
  --yellow: #FFC400;
  --yellow-ink: #3B2D00;
  --steel: #E8EDF5;
  --line: #C9D3E3;
  --ink: #0E1B33;
  --muted: #55627B;
  --white: #FFFFFF;
  --ok: #0F7B4B;
  --err: #B3261E;
  --radius: 4px;
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.8rem, 9vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
section { padding: 64px 0; }

/* Faixa de sinalização: o elemento de assinatura da página */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--navy-deep) 18px 36px);
}

/* Topo */
.topbar { background: var(--navy-deep); color: var(--white); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--white); text-decoration: none; }
.brand img { height: 38px; width: auto; }

/* Botões */
.btn {
  display: inline-block; border: 2px solid var(--yellow); background: var(--yellow); color: var(--yellow-ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em;
  padding: 10px 22px; border-radius: var(--radius); cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: #FFD43D; }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn.block { display: block; width: 100%; }
.btn.small { font-size: 1rem; padding: 6px 14px; }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 56px 0 64px; }
.hero .grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero .grid { grid-template-columns: 1.15fr .85fr; } }
.hero .arena { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--yellow); margin: 0 0 6px; }
.hero p.lead { font-size: 1.2rem; color: #DCE6F7; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .datas { margin-top: 18px; color: #B9C8E4; font-size: .98rem; }

/* Painel de box (contagem regressiva) */
.timing {
  background: var(--navy-deep); border: 3px solid var(--yellow); border-radius: var(--radius); padding: 18px 20px 20px;
}
.timing .titulo { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--yellow); margin: 0 0 8px; }
.timing .digits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.timing .d { background: #000; border-radius: 3px; padding: 10px 4px 6px; text-align: center; }
.timing .d b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.timing .d span { font-size: .8rem; color: #9FB2D6; }
.timing .nota { margin: 12px 0 0; font-size: .95rem; color: #B9C8E4; max-width: none; }

/* Como funciona */
.passos { display: grid; gap: 0; border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
@media (min-width: 760px) { .passos { grid-template-columns: repeat(3, 1fr); } }
.passo { padding: 22px; background: var(--white); }
.passo + .passo { border-top: 2px solid var(--navy); }
@media (min-width: 760px) { .passo + .passo { border-top: 0; border-left: 2px solid var(--navy); } }
.passo .n { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--yellow); color: var(--yellow-ink); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; border-radius: 50%; margin-bottom: 10px; }
.passo h3 { margin-bottom: .3em; }
.passo p { margin: 0; color: var(--muted); }

/* Programação */
.bg-steel { background: var(--steel); }
.prog { margin-top: 20px; border-top: 2px solid var(--navy); }
.prog .linha { display: grid; gap: 4px 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .prog .linha { grid-template-columns: 170px 1fr 230px; align-items: baseline; } }
.prog .quando { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.prog .tema { font-weight: 600; }
.prog .quem { color: var(--muted); }
.tag { display: inline-block; font-size: .85rem; font-weight: 600; background: var(--navy); color: var(--white); padding: 1px 8px; border-radius: 3px; margin-right: 8px; }

/* Palestrantes */
.pessoas { display: grid; gap: 18px; margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pessoa { border: 2px solid var(--navy); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.pessoa .foto { aspect-ratio: 4 / 3; background: var(--navy); display: grid; place-items: center; color: var(--yellow); font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; }
.pessoa .foto img { width: 100%; height: 100%; object-fit: cover; }
.pessoa .corpo { padding: 14px 16px 18px; }
.pessoa h3 { margin: 0; font-size: 1.4rem; }
.pessoa .cargo { color: var(--blue); font-weight: 600; margin: 2px 0 8px; font-size: .95rem; }
.pessoa p.bio { margin: 0; font-size: .96rem; color: var(--muted); }

/* Estande */
.duas { display: grid; gap: 24px; }
@media (min-width: 820px) { .duas { grid-template-columns: 1fr 1fr; } }
.painel { border: 2px solid var(--navy); border-radius: var(--radius); padding: 24px; background: var(--white); }
.painel.azul { background: var(--navy); color: var(--white); border-color: var(--navy); }
.painel.azul p { color: #DCE6F7; }
.painel ul { margin: 0; padding-left: 1.2em; }
.painel li { margin-bottom: .35em; }

/* Formulário */
.form-box { background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
@media (min-width: 720px) { .form-box { padding: 32px; } }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--navy); padding: 0; margin-bottom: 10px; }
.campos { display: grid; gap: 14px; }
@media (min-width: 720px) { .campos.dois { grid-template-columns: 1fr 1fr; } }
label.f { display: block; font-weight: 600; font-size: .95rem; }
label.f small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=password], select, textarea {
  width: 100%; margin-top: 5px; padding: 12px 12px; font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(30,91,216,.2); }
.checks { display: grid; gap: 8px; margin-top: 4px; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.erro { color: var(--err); font-weight: 600; margin: 10px 0 0; max-width: none; }
.legal { font-size: .88rem; color: var(--muted); max-width: none; }

/* Confirmação */
.ok-box { display: none; text-align: center; background: var(--navy); color: var(--white); border: 3px solid var(--yellow); border-radius: var(--radius); padding: 32px 20px; margin-top: 20px; }
.ok-box .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 22vw, 9rem); line-height: 1; color: var(--yellow); background: #000; border-radius: 4px; display: inline-block; padding: 6px 28px; margin: 10px 0 16px; letter-spacing: .04em; }
.ok-box p { margin-inline: auto; color: #DCE6F7; }
.ok-box .acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

footer { background: var(--navy-deep); color: #B9C8E4; padding: 28px 0 40px; font-size: .92rem; }
footer p { max-width: none; margin: 0 0 6px; }

/* Check-in (tela do celular) */
.mobile-page { min-height: 100vh; background: var(--navy); color: var(--white); display: flex; flex-direction: column; }
.mobile-page main { flex: 1; width: min(520px, 100% - 32px); margin: 0 auto; padding: 28px 0 40px; }
.mobile-page h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); margin-bottom: .2em; }
.mobile-page .sub { color: #DCE6F7; }
.mobile-page .box { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 20px; margin-top: 18px; }
.mobile-page input[type=text], .mobile-page input[type=tel] { font-size: 1.3rem; padding: 14px; }
.resultado { text-align: center; }
.resultado .grande { font-family: var(--font-head); font-weight: 800; font-size: 5.5rem; line-height: 1; color: var(--yellow); background: #000; border-radius: 4px; display: inline-block; padding: 4px 22px; margin: 8px 0 12px; }

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

/* Zé da Sinos na página de inscrição */
.lado { display: grid; gap: 18px; }
.ze { max-height: 260px; width: auto; margin-inline: auto; }

/* O atributo hidden sempre esconde, mesmo em elementos com display definido */
[hidden] { display: none !important; }

/* Programação por dia */
.prog .dia-h { font-size: 1.7rem; margin: 26px 0 4px; color: var(--navy); }
.prog .dia-h:first-child { margin-top: 18px; }
.prog .sobre { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; margin-top: 2px; }
@media (min-width: 720px) { .prog .linha { grid-template-columns: 90px 1fr 250px; } }
.dia-sub { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); margin-top: 6px; }
details.sel summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
details.sel .checks { margin-top: 8px; }
