:root {
  --bg: #000;
  --surface: #0c1009;
  --surface-2: #141a0d;
  --line: #262e19;
  --fg: #f2f5e8;
  --muted: #9aa68c;
  --lime: #c3f000;
  --lime-ink: #101400;
  --sand: #d9a441;
  --danger: #ff7a5c;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)); }

/* cabeçalho */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.hdr .logo img { height: 46px; width: auto; }
.hdr nav { display: flex; gap: 22px; margin-left: auto; }
.hdr nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.hdr nav a:hover { color: var(--fg); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; appearance: none; border: 0; cursor: pointer; text-decoration: none; border-radius: 10px; padding: 14px 22px; min-height: 52px; font-weight: 600; font-size: 17px; background: var(--lime); color: var(--lime-ink); }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); filter: none; }
.btn.small { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* tipografia */
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); font-weight: 600; margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; margin: 0; line-height: .95; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(48px, 8vw, 92px); }
h1 span, h2 span { color: var(--lime); }
h2 { font-size: clamp(36px, 5vw, 56px); }
h3 { font-size: 26px; }
.lead { color: var(--muted); font-size: 19px; max-width: 52ch; margin: 18px 0 0; }
section { padding: 88px 0; }
.sec-head { margin-bottom: 36px; }
.sec-head p { color: var(--muted); max-width: 60ch; margin: 12px 0 0; }

/* hero */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cref { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }
.cref b { color: var(--fg); font-weight: 600; }
.photo { position: relative; }
.photo img { width: 100%; height: auto; max-height: calc(100vh - 140px); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; border-radius: 14px; }
.photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--lime); border-radius: 14px; z-index: -1; }
.photo .tag { position: absolute; left: -14px; bottom: 28px; background: var(--lime); color: var(--lime-ink); font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 22px; padding: 8px 16px; border-radius: 8px; line-height: 1; }

/* horários */
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.day { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.day .d { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 40px; text-transform: uppercase; line-height: 1; }
.day .h { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 30px; color: var(--lime); margin-top: 6px; line-height: 1; }
.day .o { color: var(--muted); font-size: 15px; margin-top: 12px; }
.day .slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.day .slots span { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 15px; font-weight: 600; }
.dayrows { display: grid; gap: 10px; }
.dayrow { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; }
.dayrow b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 20px; text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.step { padding: 20px 0 0; border-top: 1px solid var(--line); }
.step b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 34px; color: var(--lime); line-height: 1; display: block; }
.step span { display: block; margin-top: 8px; color: var(--muted); font-size: 16px; }
.step strong { color: var(--fg); font-weight: 600; }

/* onde */
.where { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
#map { height: 440px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); z-index: 0; }
.finder label { font-weight: 600; display: block; margin-bottom: 8px; }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.search input:focus { border-color: var(--lime); outline: none; }
.answer { margin-top: 14px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.answer.yes { border-color: var(--lime); }
.answer.maybe { border-color: var(--sand); }
.answer p { margin: 0; }
.answer .t { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.answer.yes .t { color: var(--lime); }
.answer.maybe .t { color: var(--sand); }
.answer .s { color: var(--muted); font-size: 15px; margin-top: 6px; }
.answer .btn { margin-top: 12px; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.city { appearance: none; cursor: pointer; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 15px; color: var(--fg); }
.city:hover { border-color: var(--muted); }
.city.polo { border-color: var(--lime); color: var(--lime); }
.leaflet-container { font-family: var(--body); background: #0b0e08; }
/* mapa padrão do OpenStreetMap escurecido para combinar com o site */
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) grayscale(.55) brightness(.85) contrast(.95); }
.leaflet-tooltip.pin-label { background: #000; color: #fff; border: 1px solid var(--line); box-shadow: none; font-weight: 600; font-size: 13px; padding: 3px 8px; }
.leaflet-tooltip.pin-label::before { display: none; }

/* sobre */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 14px; }
.about p { color: var(--muted); max-width: 56ch; }
.about ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.about li { display: flex; gap: 12px; align-items: baseline; }
.about li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); flex: none; transform: translateY(-2px); }
.about .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* inscrição */
.signup { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 18px; }
.fld { display: grid; gap: 6px; }
.fld > span, fieldset legend { font-weight: 600; font-size: 15px; }
.fld input, .fld select, .fld textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%; }
.fld textarea { min-height: 80px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--lime); outline: none; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 15px; background: var(--bg); }
.pick input:checked + span { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); font-weight: 600; }
.pick input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.msg { margin: 0; color: var(--danger); font-size: 15px; min-height: 1.4em; }
.note { color: var(--muted); font-size: 14px; margin: 0; }

/* rodapé */
.ftr { border-top: 1px solid var(--line); padding: 40px 0 120px; color: var(--muted); font-size: 15px; }
.ftr .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.ftr img { height: 52px; width: auto; }
.ftr .links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }

/* barra fixa no celular */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; padding: 10px max(14px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-bottom, 0px)); background: rgba(0,0,0,.92); border-top: 1px solid var(--line); }
.mbar .btn { width: 100%; }

/* certificados */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cert { appearance: none; text-align: left; cursor: zoom-in; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0; overflow: hidden; color: var(--fg); }
.cert:hover { border-color: var(--muted); }
.cert img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.cert div { padding: 14px 16px 16px; }
.cert b { display: block; font-weight: 600; }
.cert small { color: var(--muted); font-size: 14px; }
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 40px 24px; text-align: center; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 8px; background: #fff; }
.lightbox button { position: absolute; top: 14px; right: 14px; }

@media (max-width: 900px) {
  .hdr nav { display: none; }
  .hdr .wrap > .btn { margin-left: auto; }
  .hero .wrap, .where, .about, .signup { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 36px; }
  .photo { max-width: 560px; order: -1; margin-right: 18px; }
  .photo img { aspect-ratio: 5 / 4; max-height: 48vh; object-position: 50% 58%; }
  .hero { padding-top: 24px; }
  .about img { max-width: 420px; }
  .days, .steps { grid-template-columns: minmax(0, 1fr); }
  #map { height: 340px; }
  section { padding: 64px 0; }
  .mbar { display: block; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hdr .wrap > .btn { display: none; }
  .photo::before { inset: 12px -10px -12px 12px; }
  .photo .tag { left: -6px; }
  .lead { font-size: 17px; }
  .hero .cta .btn { flex: 1 1 auto; padding-inline: 16px; }
  .photo { margin-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
