:root {
  --body-bg: #f5f4f4;
  --ink: #10244b;
  --paper: #f8faff;
  --dark: #003399;
  --footer-bg: #00206a;
  --accent: #a43d28;
  --eu-yellow: #FFCC00;
  --muted: #4c5b73;
  --line: #c8d3e7;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --body: 1rem;
  --title: clamp(1.9rem, 3.02vw, 3.15rem);
  --subhead: clamp(1.25rem, 1.85vw, 1.8rem);
  --gutter: clamp(1.125rem, 2.5vw, 3rem);
  --gap: clamp(.75rem, 1.25vw, 1.5rem);
  --section: clamp(3rem, 6.25vw, 7rem);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--body-bg); color: var(--ink); font: var(--body)/1.4 var(--sans); }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
h1 { font-size: var(--title); letter-spacing: -.045em; line-height: 1.08; }
h3 { font-size: var(--subhead); letter-spacing: -.025em; line-height: 1.12; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption, small { font-family: var(--mono); color: var(--muted); font-size: .875rem; }
figcaption { margin-top: .5rem; }
p + a, h3 + p, small + p { margin-top: .8rem; }
main p + a:not(.button) {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--dark);
  font-family: var(--mono);
  font-weight: 600;
  text-decoration: underline;
}
main p + a:not(.button)::after {
  content: "";
  flex: none;
  width: .5em;
  height: .5em;
  margin-inline-end: .2em;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.skip { position: absolute; left: var(--gutter); top: -5rem; z-index: 1; background: var(--paper); padding: .6rem; }
.skip:focus { top: .5rem; }
.wrap { width: min(100%, 104rem); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wide { grid-column: 2 / -1; }
.span-two { grid-column: span 2; }
.flow { display: grid; gap: var(--section); padding-block: var(--section); }
#conteudo { --section: clamp(4rem, 8vw, 9rem); }
.band { background: var(--dark); color: var(--paper); --line: #7998d3; }
header.band { background: #fff; color: var(--dark); --line: #dce3ef; }
header .wrap { padding-block: calc(var(--gutter) * .8); align-items: center; }
.brand { display: inline-block; width: min(100%, 16rem); }
.brand img { aspect-ratio: auto; border-radius: .25rem; }
nav { display: flex; flex-wrap: wrap; gap: .65rem clamp(.85rem, 2vw, 2.25rem); padding-block: .65rem; border-block: 1px solid var(--line); }
header nav { background: #f5f4f4; padding-inline: 1rem; border-color: #edebea; }
.language-flags {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  margin-inline-start: auto;
  padding: 0;
  list-style: none;
}
.language-flags li { display: flex; align-items: center; gap: .3rem; font: .75rem var(--mono); }
.language-flags img { width: 1.5rem; height: auto; aspect-ratio: 4 / 3; }
.language-flags .language-pending { opacity: .67; }
nav a, .links a { text-decoration: none; }
nav a:hover, .links a:hover { text-decoration: underline; }
.hero { padding-block: clamp(3rem, 6vw, 6.5rem) clamp(2rem, 4vw, 4rem); row-gap: clamp(1.5rem, 2.7vw, 3rem); }
.hero h1 { margin-bottom: .6rem; }
.hero aside { align-self: stretch; display: flex; flex-direction: column; }
.hero aside p { margin-top: auto; padding-top: 1.5rem; max-width: 24ch; }
.hero figure img { aspect-ratio: 2.15; object-position: center; }
h2, .h2 { font: 400 min(var(--title), 40px)/1.04 var(--serif); letter-spacing: -.027em; max-width: 34ch; }
.label { font-size: var(--body); line-height: inherit; margin-bottom: .65rem; }
main .label {
  color: #fff;
  background: var(--accent);
  padding: 1rem .5rem;
  max-width: 300px;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: 0.05rem;
}
@media (width > 58rem) {
  main section:has(> .grid:not(.two, .three)) > .label {
    max-width: calc((100% - 3 * var(--gap)) / 4);
  }
}
.links { list-style: none; padding: 0; }
.links a { display: block; border-bottom: 1px solid var(--line); padding: .42rem 0; }
.two > div:has(> h3) { border-top: 1px solid var(--line); padding-top: .8rem; }
.two > div > h3 { margin-bottom: 1rem; }
.two:has(h3), .three { row-gap: clamp(1.25rem, 3.6vw, 3.5rem); }
.news a { display: block; text-decoration: none; }
.news a:hover h3 { text-decoration: underline; }
.news article h3 { max-width: 300px; }
.news small { font-size: .75rem; }
.news small, .metrics-period { display: block; margin-top: 1.15rem; text-transform: uppercase; letter-spacing: .06em; }
article:not([data-partner]):has(img) h3:where(:not(.h2)), .milestones h3 { font: 400 var(--subhead)/1.05 var(--serif); margin: .65rem 0 .45rem; }
.milestones h3 { font-size: calc(var(--subhead) * 1.12); }
article small { display: block; }
.card { align-self: stretch; display: flex; flex-direction: column; padding: clamp(.85rem, 1.15vw, 1.35rem); border: 1px solid var(--line); min-height: 19rem; }
.card h3 { margin-top: .9rem; }
.card p { margin-block: auto .8rem; padding-top: 1.5rem; }
.card strong { border-top: 1px solid var(--line); padding-top: .65rem; }
dl > div { display: flex; flex-direction: column-reverse; gap: .3rem; border-inline-start: 1px solid var(--line); padding-inline-start: var(--gap); }
dd { font-family: var(--mono); font-size: var(--title); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.span-two .links { margin-top: 1rem; }
:is(figure, .activity-image) + .h2 { margin-block: 1.4rem .65rem; }
.button {
  display: inline-block;
  align-self: start;
  padding: .65rem 1.6rem;
  border-radius: 2.35rem;
  background: var(--dark);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--serif);
}
.button:hover { text-decoration: underline; }
.eu-funding { background: #fff; }
.eu-funding .wrap { align-items: center; padding-block: clamp(1rem, 2vw, 2rem); }
.eu-funding .wrap > div { border-inline-start: 1px solid var(--line); padding-inline-start: var(--gap); }
.eu-funding h2 { font-size: var(--subhead); margin-bottom: .4rem; }
.eu-funding p + p { margin-top: .3rem; }
.eu-logo { width: min(100%, 19rem); height: auto; aspect-ratio: auto; }
footer .eu-logo { margin-bottom: .8rem; }
@media (max-width: 34rem) {
  .eu-funding .wrap > div { border-inline-start: 0; padding-inline-start: 0; }
}
footer.band { background: var(--footer-bg); }
footer .flow { padding-block: var(--gutter); }
.footer-identity { background: var(--body-bg); color: var(--ink); }
.footer-identity .flow { gap: clamp(1.5rem, 4vw, 3.5rem); }
footer .funding p {
  max-width: 60ch;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}
#parceiros-rodape { font-size: 1rem; }
.footer-partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: var(--gap);
  margin-top: .75rem;
  padding: 0;
  list-style: none;
}
.footer-partners img {
  height: 4rem;
  aspect-ratio: auto;
  object-fit: contain;
  padding: .55rem;
  background: #fff;
}
footer nav {
  color: #aebddd;
  font-size: .875rem;
  border: 0;
}
footer nav .links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
}
footer .links a { border: 0; padding: .16rem 0; }
footer > .flow > .grid:first-child { padding-top: .8rem; }
footer #contactos { font: inherit; font-weight: 700; letter-spacing: normal; }
footer .h2 + p { margin-top: .7rem; }
p + p, .h2 + p, .project-roadmap h2 + p, section > p + .grid, section p + .three { margin-top: 1rem; }
.grid > p + p { margin-top: 0; }
.hero .translation { margin-top: .35rem; font-family: var(--serif); opacity: .68; font-style: italic; font-weight: 400; }
.hero .h2 { margin-top: .75rem; }
footer .brand + p { margin-top: .75rem; }
[data-partner] {
  min-height: 0;
  border: 0;
  background: #fff;
}
.partner-flag {
  display: inline-block;
  width: 1.5rem;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-inline-end: .25rem;
  vertical-align: middle;
}
.partner-logo {
  height: 130px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #fff;
  margin-top: .75rem;
}
.partner-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 106px;
  aspect-ratio: auto;
}
[data-partner] h3 { margin-top: 1.1rem; }
[data-partner] p {
  margin-block: 1.1rem 0;
  padding-top: 0;
}
footer .funding h2 { color: var(--eu-yellow); }
[aria-labelledby="parceiros"] .h2 + p {
  margin-top: clamp(1rem, 1.3vw, 1.5rem);
  line-height: 1.6;
}
[aria-labelledby="parceiros"] p + .three {
  margin-top: clamp(1.5rem, 2vw, 2rem);
}
@media (min-width: 58.001rem) {
  [aria-labelledby="parceiros"] .wide > p {
    max-width: 45%;
  }
  [aria-labelledby="parceiros"] .wide > .h2 {
    line-height: 1.15;
    text-wrap: balance;
  }
}
@media (max-width: 58rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news { row-gap: clamp(2.25rem, 5vw, 3rem); }
  .wide { grid-column: 1 / -1; }
  .hero aside { grid-row: 3; grid-column: 1 / -1; }
  .hero aside p { max-width: none; }
}
@media (max-width: 34rem) {
  section > .grid, section.grid, .grid.two, .components > .wrap > div.grid { grid-template-columns: minmax(0, 1fr); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-two { grid-column: 1 / -1; }
  [aria-labelledby="parceiros"] .three { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .hero figure img { aspect-ratio: 4 / 3; }
}

.resources-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  background: #fff3cf;
  padding: clamp(1.25rem, 3vw, 3rem);
}
.resources-heading { display: flex; align-items: center; gap: .8rem; }
.resources-heading svg {
  flex: 0 0 2rem;
  width: 2rem;
  color: var(--dark);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.resources-banner p {
  border-inline-start: 1px solid var(--accent);
  padding-inline-start: clamp(1rem, 2vw, 2rem);
}
.resources-banner small {
  justify-self: start;
  padding: .35rem .75rem;
  border-radius: 2rem;
  background: #dce7fb;
  color: var(--dark);
  white-space: nowrap;
}
@media (width <= 58rem) {
  .resources-banner { grid-template-columns: minmax(0, 1fr); }
  .resources-banner p { border: 0; padding: 0; }
}
.components {
  background: #eeebea;
}
.components > .wrap { padding-block: clamp(2.75rem, 5.5vw, 5.5rem); }
.project-metrics + .flow { padding-top: clamp(2.25rem, 5vw, 4.5rem); }
.project-roadmap { margin-top: var(--section); }
.project-roadmap h2 span { display: block; margin-bottom: .65rem; font-family: var(--mono); font-size: var(--subhead); }
@media (width > 58rem) {
  .project-roadmap > div { max-width: min(82%, 29rem); }
}
.project-roadmap p { color: var(--muted); }
.milestones {
  --timeline-tone: #d0c6c3;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.milestones::before {
  content: "";
  position: absolute;
  inset: .8rem auto 0 .375rem;
  border-inline-start: 1px solid var(--timeline-tone);
}
.milestones li {
  position: relative;
  padding-inline-start: 1.75rem;
}
.milestones li + li { margin-top: clamp(1.25rem, 3vw, 2.25rem); }
.milestones li::before {
  content: "";
  position: absolute;
  inset: .35rem auto auto 0;
  width: .875rem;
  height: .875rem;
  border-radius: 50%;
  background: var(--timeline-tone);
}
.milestones time {
  display: block;
  margin-bottom: .55rem;
  color: var(--dark);
  font: 600 var(--subhead)/1.1 var(--mono);
}
.project-metrics > .wrap { padding-block: clamp(2.75rem, 5.5vw, 5.5rem); }
.project-metrics .metrics-period { color: var(--paper); }
[aria-labelledby="numeros"] dd { font-family: var(--serif); font-weight: 600; font-size: clamp(2.15rem, 3.75vw, 3.65rem); }
.components > .wrap > h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.components > .wrap > div.grid { align-items: stretch; }
.components > .wrap > div.grid > div { background: #fff; }
.components > .wrap > div.grid > div > div:last-child { container-type: inline-size; padding: clamp(1rem, 1.6vw, 1.5rem); }
.components > .wrap > div.grid h3 { color: var(--accent); }
.components > .wrap > div.grid h3 {
  font-family: var(--mono);
  font-size: min(clamp(1.4375rem, 2.05vw, 2rem), 10cqw);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.components > .wrap > div.grid p { font-size: 90%; }
.component-icon-band {
  display: grid;
  place-items: center;
  min-height: clamp(6rem, 11vw, 10rem);
  background: var(--accent);
}
.component-icon {
  display: block;
  width: clamp(4rem, 7vw, 6.25rem);
  height: auto;
  color: #fff;
  opacity: .68;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.activities .card {
  display: grid;
  align-content: start;
  gap: .75rem;
  min-height: 0;
  padding: 0;
  border: 0;
}
.activity-featured h3 a { text-decoration: none; }
.activity-featured h3 a:hover { text-decoration: underline; }
.activity-list { margin-top: clamp(2rem, 4vw, 4rem); }
@media (max-width: 34rem) {
  .activities > .activity-list { grid-template-columns: minmax(0, 1fr); }
}
.activity-image { position: relative; }
.activities .card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 1.85vw, 1.75rem);
  overflow-wrap: anywhere;
}
.activities .card h3 a { text-decoration: none; }
.activities .card h3 a:hover { text-decoration: underline; }
.activity-date {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 5.25rem;
  padding: .5rem;
  background: var(--accent);
  color: #fff;
  text-align: center;
}
.activities .card p { margin: 0; padding: 0; }
.activity-meta { display: grid; align-content: start; gap: .4rem; padding-top: .6rem; font-size: 80%; }
.activity-meta p { display: flex; gap: .45rem; margin: 0; }
.activity-format-icons {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .2rem;
  color: var(--accent);
}
.activity-meta .activity-format-icons svg { margin-top: 0; }
.activity-meta svg { flex: 0 0 18px; margin-top: .15em; color: var(--accent); }
.activity-detail { max-width: 48rem; }
.activity-detail h1 { margin-block: 1.25rem .6rem; }
.activity-detail small { display: block; margin-bottom: 1.25rem; }
.activity-detail figure { margin-block: 1.25rem; }

.icon-definitions { position: absolute; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
