@font-face {
  font-family: Roboto;
  src: url('/roboto-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url('/roboto-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --global-blue: #00567e;
  --orange-aga: #fb7b56;
  --gold: #e8bc70;
  --ink: #013a49;
  --muted: #385664;
  --line: #d5e4eb;
  --paper: #f2f7fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 1rem/1.6 Roboto, Arial, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
header { background: #fff; }
.bar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: 154px; height: auto; }
.nav, .langs, .actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nav a, .langs a { text-decoration: none; color: var(--global-blue); font-weight: 700; font-size: .94rem; }
.nav a:hover, .langs a:hover { text-decoration: underline; }
.langs { gap: 4px; }
.langs a { padding: 6px 9px; }
.langs [aria-current] { background: var(--paper); box-shadow: inset 0 -3px var(--orange-aga); }

.hero {
  background: var(--global-blue);
  color: white;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 56%;
  z-index: -1;
  background: linear-gradient(90deg, var(--global-blue), transparent 40%), url('/conexoes.webp') center/cover;
}
.hero .wrap { padding-block: clamp(68px, 9vw, 125px); }
.hero-copy { max-width: 61%; }
.label {
  font-size: .875rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--global-blue);
}
.hero .label, .dark .label { color: var(--gold); }
h1, h2, h3, p { margin: 0 0 16px; }
h1, h2, h3 { line-height: 1.09; letter-spacing: -.025em; }
h1 { font-size: clamp(1.9rem, 4.65vw, 4rem); overflow-wrap: break-word; }
h2 { font-size: clamp(2rem, 4.25vw, 3.5rem); color: var(--global-blue); }
h3 { font-size: 1.42rem; color: var(--global-blue); }
.hero p:not(.label) { max-width: 46ch; font-size: 1.18rem; }
.hero::after {
  content: '';
  display: block;
  height: 10px;
  background: url('/grafismo-aga.webp') left top / 120px 120px repeat-x;
}
.button {
  display: inline-block;
  background: var(--orange-aga);
  border: 1px solid transparent;
  color: var(--ink);
  font-weight: 700;
  border-radius: 4px;
  padding: 11px 19px;
  text-decoration: none;
}
.button:hover { background: #fca192; }
.secondary { background: transparent; color: inherit; border-color: currentColor; }
.secondary:hover { background: rgb(0 86 126 / 7%); }
.hero .secondary:hover { background: rgb(255 255 255 / 14%); }
.actions { margin-top: 24px; }

.section { padding-block: 78px; }
.tint { background: var(--paper); }
.intro { max-width: 67ch; color: var(--muted); font-size: 1.12rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.grid article, .event {
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--global-blue);
  padding: 25px;
  border-radius: 4px;
}
.grid article:nth-child(2) { border-top-color: var(--orange-aga); }
.grid article:nth-child(3) { border-top-color: var(--gold); }
.grid p { color: var(--muted); margin-bottom: 0; }
.cols { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 45px; }
.levels {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-block: 26px;
  padding: 6px 6px 14px;
  overflow-x: auto;
}
.levels li { flex: 0 0 clamp(200px, 20vw, 235px); text-align: center; }
.levels a { display: block; color: var(--global-blue); font-weight: 700; text-decoration: none; }
.levels a:hover { text-decoration: underline; }
.levels img { display: block; width: 100%; height: auto; margin-bottom: 8px; }
.table { overflow-x: auto; margin-top: 25px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 13px; border-bottom: 1px solid var(--line); min-width: 130px; }
thead { background: var(--global-blue); color: white; }
.dark { background: var(--global-blue); color: #fff; }
.dark h2 { color: inherit; }
.dark details { border-top: 1px solid rgb(255 255 255 / 40%); padding: 16px 0; }
.dark summary { cursor: pointer; font-weight: 700; }
.dark details p { margin: 13px 0 0; max-width: 82ch; }
footer { background: var(--ink); color: #fff; padding: 28px 0; }
footer p { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin: 0; }
footer img { display: block; height: auto; }
.skip { position: absolute; top: -5rem; background: white; padding: 10px; z-index: 3; }
.skip:focus { top: 0; }

@media (max-width: 820px) {
  .bar { padding-block: 14px; flex-wrap: wrap; gap: 12px; }
  .brand img { width: 128px; }
  .nav { order: 3; width: 100%; gap: 8px 16px; }
  .hero-art { inset: 0; opacity: .24; background-image: linear-gradient(90deg, var(--global-blue), transparent), url('/conexoes.webp'); }
  .hero-copy { max-width: 42rem; }
  .cols, .grid { grid-template-columns: 1fr; gap: 16px; }
  .section { padding-block: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

button.button { font: inherit; font-weight: 700; cursor: pointer; }
button.button:disabled { opacity: .75; cursor: default; }
button.button:disabled:hover { background: transparent; }
.agenda-hero .hero-art {
  background-image: linear-gradient(90deg, var(--global-blue), transparent 50%), var(--event-image, url('/conexoes.webp'));
}
.agenda-demo {
  display: inline-block;
  border-left: 3px solid var(--gold);
  margin-top: 12px;
  padding-left: 12px;
}
.agenda-hero p.agenda-demo { font-size: .94rem; }
.agenda-event-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(24px, 5vw, 64px);
}
.agenda-event-row img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  min-height: 280px;
  object-fit: cover;
  border-radius: 4px;
}
.agenda-event-row .agenda-event-copy { display: flex; flex-direction: column; justify-content: center; }
.agenda-event-meta { font-weight: 700; color: var(--global-blue); }
.calendar-controls { display: flex; gap: 12px; flex-wrap: wrap; }
.agenda-calendar { table-layout: fixed; margin-top: 16px; }
.agenda-calendar caption { color: var(--global-blue); font-size: 1.4rem; text-align: left; margin-bottom: 8px; }
.agenda-calendar :is(td, th) { min-width: 0; padding: 8px; vertical-align: top; overflow-wrap: anywhere; }
.agenda-calendar td { height: 66px; border-right: 1px solid var(--line); }
.agenda-calendar .has-event { background: #ffe9e1; }
.agenda-calendar td :is(a, span) { display: block; font-size: .875rem; }
@media (max-width: 680px) {
  .agenda-event-row { grid-template-columns: 1fr; }
  .agenda-event-row img { height: 230px; min-height: 0; }
  .agenda-calendar td { height: 42px; }
  .agenda-calendar td :is(a, span) { display: none; }
  .agenda-calendar :is(td, th) { padding: 4px; }
}

.members-page fieldset {
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.members-page legend { padding-inline: 8px; color: var(--global-blue); font-weight: 700; }
.member-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.member-fields label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; }
.member-fields :is(input, select) {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  padding: 10px;
}
.member-confirmation dt { font-weight: 700; }
.member-confirmation dd { margin: 0; color: var(--global-blue); }

@media (max-width: 620px) {
  .member-fields { grid-template-columns: 1fr; }
}
