:root {
  --ink: #111111;
  --paper: #ffffff;
  --grey: #666666;
  --line: #dddddd;
  --accent: #111111;
  --wash: #f5f4f1;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
header.site img.logo { height: 26px; display: block; }
header.site img.logo.brand { height: 30px; }
header.site nav a {
  color: var(--ink); text-decoration: none; margin-left: 28px; font-size: 15px;
}
header.site nav a:hover { text-decoration: underline; }
header.site nav a.btn { text-decoration: none; color: #fff; }
header.site nav a.btn:hover { color: #fff; }

.btn {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 12px 22px; border: 1.5px solid var(--ink);
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #333; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--wash); }

.hero { padding: 72px 0 64px 0; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 44px; line-height: 1.12; letter-spacing: -1px; max-width: 780px; }

/* Cinematic hero */
.hero-cine { position: relative; overflow: hidden; color: #fff; min-height: 580px; display: flex; align-items: center; }
.hero-cine .bg {
  position: absolute; inset: -4%;
  background: url('/assets/hero-artilharia.jpg') center 30% / cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.1) translate(-1.5%, 1%); }
}
.hero-cine .shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,9,5,.85) 0%, rgba(12,9,5,.6) 46%, rgba(12,9,5,.12) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1060px; margin: 0 auto; width: 100%;
  padding: 100px 24px;
}
.hero-content h1 { font-size: 46px; line-height: 1.1; letter-spacing: -1px; max-width: 620px; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero-content .lead { font-size: 19px; color: #f0ece5; margin: 22px 0 34px 0; max-width: 560px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.btn.ondark { background: #fff; color: #111; border-color: #fff; }
.btn.ondark:hover { background: #eee; }
.btn.ghost-dark { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost-dark:hover { background: rgba(255,255,255,.15); }
.hero-cine .actions .btn { margin-right: 12px; margin-bottom: 10px; }

/* Flying paper */
.papers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.paper {
  position: absolute; display: block;
  width: 16px; height: 21px; background: #f6f2e9;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
  opacity: 0;
  animation: drift 12s linear infinite;
}
@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: .85; }
  85%  { opacity: .85; }
  100% { transform: translate(-55vw, -46vh) rotate(560deg); opacity: 0; }
}
.paper.p1 { right: 6%;  top: 42%; animation-duration: 11s; animation-delay: 0s; }
.paper.p2 { right: 14%; top: 30%; animation-duration: 15s; animation-delay: 2.5s; width: 12px; height: 16px; }
.paper.p3 { right: 3%;  top: 58%; animation-duration: 13s; animation-delay: 5s; }
.paper.p4 { right: 22%; top: 48%; animation-duration: 17s; animation-delay: 1.2s; width: 11px; height: 15px; }
.paper.p5 { right: 10%; top: 70%; animation-duration: 14s; animation-delay: 7s; }
.paper.p6 { right: 30%; top: 36%; animation-duration: 18s; animation-delay: 9s; width: 10px; height: 13px; }

@media (prefers-reduced-motion: reduce) {
  .hero-cine .bg { animation: none; }
  .paper { animation: none; display: none; }
}
.hero p.lead { font-size: 20px; color: var(--grey); margin: 22px 0 34px 0; max-width: 660px; }
.hero .actions .btn { margin-right: 12px; margin-bottom: 10px; }

section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section h2 { font-size: 30px; letter-spacing: -0.5px; margin-bottom: 10px; }
section p.sub { color: var(--grey); max-width: 700px; margin-bottom: 34px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card { border: 1px solid var(--line); padding: 22px; background: var(--paper); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 15px; color: #333; }
.card .tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--grey); display: block; margin-bottom: 10px; }

.invisible-callout { background: var(--wash); padding: 34px; margin-top: 26px; }
.invisible-callout p { max-width: 800px; }
.invisible-callout p + p { margin-top: 12px; }
.invisible-callout.with-image { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; align-items: center; }
.invisible-callout.with-image img { width: 100%; height: auto; display: block; filter: grayscale(1); }

.phases { counter-reset: phase; }
.phase { display: flex; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase .num {
  counter-increment: phase; flex: 0 0 52px; height: 52px;
  border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.phase .num::before { content: counter(phase); }
.phase h3 { font-size: 18px; margin-bottom: 6px; }
.phase p { font-size: 15px; color: #333; max-width: 720px; }

.who-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.who-grid p { max-width: 640px; }
.inline-logo { height: 15px; vertical-align: -2px; margin: 0 1px; }
.regulation-band {
  display: flex; gap: 26px; align-items: center;
  background: var(--wash); border-left: 4px solid var(--ink);
  padding: 28px 30px; max-width: 860px;
}
.regulation-band img { height: 52px; border: 1px solid #ddd; flex: 0 0 auto; }
.regulation-band h3 { font-size: 18px; margin-bottom: 6px; }
.regulation-band p { margin: 0; font-size: 15.5px; }
.cred-card { border: 1px solid var(--line); background: var(--wash); padding: 22px; }
.cred-card img { height: 42px; display: block; margin-bottom: 14px; border: 1px solid #ddd; }
.cred-card p { font-size: 14.5px; color: #333; margin: 0; }
@media (max-width: 760px) { .who-grid { grid-template-columns: 1fr; } }

.partners-row { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; margin-top: 10px; }
.partners-row .partner { display: flex; align-items: center; gap: 14px; }
.partners-row img { height: 64px; }
.partners-row span { font-size: 14px; color: var(--grey); max-width: 220px; }

form.std { max-width: 560px; }
form.std label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 5px 0; }
form.std input, form.std textarea, form.std select {
  width: 100%; padding: 11px 12px; font-size: 15px; font-family: inherit;
  border: 1px solid #bbb; background: #fff;
}
form.std textarea { min-height: 90px; }
form.std .btn { margin-top: 22px; }
form.std .hint { font-size: 13px; color: var(--grey); margin-top: 4px; }
.form-msg { margin-top: 18px; font-size: 15px; padding: 14px; display: none; }
.form-msg.ok { display: block; background: #eef7ee; border: 1px solid #b8dcb8; }
.form-msg.err { display: block; background: #fbeeee; border: 1px solid #e0b8b8; }

footer.site {
  padding: 34px 0 44px 0; font-size: 13px; color: var(--grey);
}
footer.site .cols { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.notice { background: var(--wash); border: 1px solid var(--line); padding: 18px 20px; font-size: 15px; margin: 20px 0; }

@media (max-width: 760px) {
  .hero h1 { font-size: 32px; }
  header.site nav a { margin-left: 14px; font-size: 13px; }
  .invisible-callout.with-image { grid-template-columns: 1fr; }
  .hero-cine { min-height: 480px; }
  .hero-content { padding: 70px 24px; }
  .hero-content h1 { font-size: 32px; }
}
