:root {
  --blue: #07599b;
  --blue-dark: #073f70;
  --blue-deep: #052f55;
  --yellow: #ffc800;
  --green: #049447;
  --ink: #163047;
  --muted: #657685;
  --paper: #ffffff;
  --soft: #f3f7fa;
  --line: #dde7ee;
  --shadow: 0 16px 40px rgba(7, 63, 112, .12);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 940px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 999; background: #fff; padding: 10px 14px; }
.skip-link:focus { left: 10px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(7,89,155,.1);
  backdrop-filter: blur(12px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 900; letter-spacing: -.03em; }
.brand-name { font-size: 1.15rem; color: var(--blue); }
.brand-number { font-size: 1.5rem; color: var(--yellow); -webkit-text-stroke: .5px var(--blue-dark); }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: .92rem; }
.nav a { position: relative; padding: 24px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 18px; height: 3px; background: var(--yellow); transition: right .2s ease; }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { width: 25px; height: 2px; background: var(--blue-dark); display: block; margin: 5px 0; }

.hero { background: var(--blue); overflow: hidden; }
.hero img { width: 100%; height: auto; }

.quick-stats { position: relative; z-index: 2; margin-top: -1px; background: linear-gradient(90deg, var(--blue-dark), var(--blue)); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-card { padding: 30px 34px; color: #fff; border-right: 1px solid rgba(255,255,255,.16); }
.stat-card:last-child { border-right: 0; }
.stat-card strong { display: block; color: var(--yellow); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.05em; }
.stat-card span { display: block; margin-top: 9px; font-size: .93rem; line-height: 1.35; opacity: .92; max-width: 290px; }

.section { padding: 96px 0; }
.about { background: #fff; }
.eyebrow { display: inline-block; font-weight: 900; font-size: .78rem; letter-spacing: .14em; color: var(--green); margin-bottom: 16px; }
h1, h2, h3 { margin-top: 0; color: var(--blue-deep); line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.7rem); max-width: 900px; margin-bottom: 26px; }
.section-heading h2, .about h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.lead { font-size: clamp(1.12rem, 2vw, 1.35rem); color: #425d72; max-width: 850px; }
.prose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 62px; margin-top: 54px; }
.prose-grid h2 { font-size: 1.35rem; color: var(--blue); }
.prose-grid p { color: #50697d; }

.timeline-section { background: var(--soft); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.timeline-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 8px 24px rgba(7,63,112,.06); }
.year { display: inline-block; font-weight: 950; color: var(--yellow); -webkit-text-stroke: .6px var(--blue-dark); font-size: 2.2rem; letter-spacing: -.05em; margin-bottom: 18px; }
.timeline-item h3 { font-size: 1.3rem; margin-bottom: 8px; }
.timeline-item p { margin: 0; color: #5c7081; }

.action { background: #fff; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-height: 245px; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--green), var(--yellow), var(--blue)); }
.feature-card.featured { background: linear-gradient(145deg, var(--blue-dark), var(--blue)); color: #fff; border-color: transparent; }
.feature-card.featured h3, .feature-card.featured p { color: #fff; }
.feature-card.featured .card-kicker { color: var(--yellow); }
.card-kicker { color: var(--green); font-size: .72rem; font-weight: 900; letter-spacing: .13em; }
.feature-card h3 { font-size: 1.42rem; margin: 16px 0 12px; }
.feature-card p { margin: 0; color: #5e7384; font-size: .95rem; }
.other-actions { margin-top: 26px; background: var(--soft); border-left: 5px solid var(--yellow); border-radius: 0 14px 14px 0; padding: 22px 24px; color: #51687b; }
.other-actions strong { color: var(--blue-dark); }

/* Redes sociais */
.social-section {
  background: var(--soft);
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 108px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(7,63,112,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(7,89,155,.22);
  outline: none;
}
.social-icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
}
.social-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.social-icon .icon-fill {
  fill: currentColor;
  stroke: none;
}
.instagram .social-icon {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 55%, #fcb045 100%);
}
.facebook .social-icon {
  background: #1877f2;
}
.tiktok .social-icon {
  background: #111;
}
.social-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.social-copy strong {
  color: var(--blue-deep);
  font-size: 1rem;
}
.social-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: .92rem;
  overflow-wrap: anywhere;
}
.social-arrow {
  margin-left: auto;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 900;
}

.quote-section { padding: 82px 0; background: linear-gradient(120deg, var(--green), #08773e); color: #fff; text-align: center; }
.quote-section blockquote { margin: 0; font-size: clamp(1.8rem, 4vw, 3.25rem); font-weight: 900; line-height: 1.15; letter-spacing: -.035em; }
.quote-section p { margin: 20px 0 0; color: var(--yellow); font-weight: 900; }

.footer { background: var(--blue-deep); color: #fff; }
.footer-inner { min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer strong, .footer span { display: block; }
.footer strong { font-size: 1.25rem; }
.footer span { color: var(--yellow); font-weight: 800; }
.footer p { color: rgba(255,255,255,.7); font-size: .86rem; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; left: 20px; right: 20px; top: 64px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .stats-grid, .timeline, .cards-grid, .social-grid { grid-template-columns: 1fr; }
  .stats-grid { padding: 12px 0; }
  .stat-card { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); padding: 22px 4px; }
  .stat-card:last-child { border-bottom: 0; }
  .stat-card span { max-width: none; }
  .prose-grid { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 72px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px 0; }
  .footer p { margin: 0; }
}

@media (max-width: 560px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--container)); }
  .nav-wrap { min-height: 62px; }
  .brand-name { font-size: .98rem; }
  .brand-number { font-size: 1.25rem; }
  .hero img { min-height: 150px; object-fit: contain; background: var(--blue); }
  .section { padding: 58px 0; }
  h1 { font-size: 2.35rem; }
  .lead { font-size: 1.05rem; }
  .feature-card { min-height: auto; }
}

@media (max-width: 560px) {
  .social-card { min-height: 92px; padding: 18px; }
  .social-icon { flex-basis: 48px; width: 48px; height: 48px; border-radius: 14px; }
  .social-icon svg { width: 27px; height: 27px; }
}


/* Marcas oficiais coloridas dos programas */
.programs-grid .feature-card { display:flex; flex-direction:column; }
.program-logo-wrap { height:112px; display:flex; align-items:center; justify-content:flex-start; margin:2px 0 18px; }
.program-logo { width:auto; height:auto; max-width:100%; max-height:106px; object-fit:contain; object-position:left center; }
.feature-card.featured .program-logo-wrap { background:rgba(255,255,255,.96); border-radius:14px; padding:12px 14px; margin-top:0; }
.feature-card.featured .program-logo { max-height:88px; }
.programs-grid .feature-card h3 { margin-top:12px; }
.parliamentary-fronts { margin-top:28px; padding:26px; border-radius:var(--radius); background:linear-gradient(135deg,#f3f7fa,#fff); border:1px solid var(--line); }
.fronts-title { display:block; color:var(--blue); font-size:.76rem; font-weight:900; letter-spacing:.12em; margin-bottom:16px; }
.fronts-list { display:flex; flex-wrap:wrap; gap:10px; }
.fronts-list span { display:inline-flex; align-items:center; min-height:40px; padding:9px 14px; border:1px solid rgba(7,89,155,.14); border-radius:999px; background:#fff; color:#496175; font-size:.9rem; font-weight:700; }
@media (max-width:560px) {
  .program-logo-wrap { height:96px; }
  .program-logo { max-height:90px; }
  .fronts-list { flex-direction:column; }
  .fronts-list span { border-radius:12px; }
}
