:root {
  --ink: #251f51;
  --slate: #515675;
  --navy: #29235c;
  --paper: #fff;
  --pink: #d10575;
  --rose: #da1b54;
  --blue: #0569a2;
  --shell: 1152px;
  --sora: "Sora", sans-serif;
  --sans: "DM Sans", sans-serif;
  --mono: "Oxygen Mono", ui-monospace, monospace;
  --grad: linear-gradient(180deg, #d5006d 0%, #d93756 42%, #ff5733 100%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-md);
  line-height: 1.5;
  background: #fff;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }

a, button { touch-action: manipulation; }

#conteudo { scroll-margin-top: var(--space-4); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: var(--space-2);
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: 8px;
  font-family: var(--sora);
}

.skip:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.mast {
  padding-top: var(--space-4);
  background: var(--grad);
  color: #fff;
}

.mast :focus-visible { outline-color: #fff; }

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  min-height: 69px;
  padding: var(--space-3) 0;
  background: transparent;
}

.brand {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  min-height: 44px;
}

.brand img { width: 75px; height: auto; }

.nav {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: subgrid;
  align-items: center;
  min-width: 0;
  pointer-events: none;
}

.nav-head,
.nav-foot { display: none; }

.nav-body { display: contents; }

.nav a,
.nav button { pointer-events: auto; }

.nav-list {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
}

.nav-list a {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.14px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a::after {
  content: "";
  display: block;
  height: 1px;
  background: transparent;
}

.nav-list a[aria-current="page"] { font-weight: 700; }

.nav-list a[aria-current="page"]::after { background: currentColor; }

.nav-list a:hover { text-decoration: none; }

.news {
  display: inline-flex;
  grid-column: 5;
  justify-self: end;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid #fff;
  border-radius: 40px;
  color: #fff;
  background: transparent;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.news:hover { background: rgba(255, 255, 255, 0.14); }

.menu-btn {
  display: none;
  flex: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.menu-bars { position: relative; margin: 0 auto; }

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }

.hero,
.page-hero { padding: var(--space-m) 0 var(--space-l); }

.page-hero-missing {
  display: flex;
  align-items: center;
  height: 500px;
  padding-block: 0;
}

.is-missing .footer { border-top: 0; }

.page-hero-missing .page-hero-copy .btn {
  margin-top: calc(40px - var(--space-s));
}

.lockups {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  align-items: center;
  justify-content: start;
  gap: var(--space-m);
  margin-bottom: var(--space-xs);
}

.lockup-date {
  display: block;
  flex: none;
  width: 119px;
  height: auto;
}

.lockup-wtd {
  flex: none;
  width: 94px;
  height: auto;
}

.count {
  flex: none;
  width: 87px;
  height: auto;
}

.solucao {
  flex: none;
  width: 126px;
  height: auto;
}

.hero-grid,
.page-hero-grid {
  /* A arte nunca passa de metade da grade, nem de 27.5rem. */
  --hero-art: min(27.5rem, calc((100% - var(--space-m)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--hero-art));
  gap: var(--space-m);
  align-items: center;
}

/* No desktop largo a ilustração da home cresce, sem passar da metade da grade. */
.hero-grid {
  --hero-art: min(32rem, calc((100% - var(--space-m)) / 2));
}

.hero-copy,
.page-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-block: var(--space-4);
}

.hero-copy,
.page-hero-copy { container-type: inline-size; }

.page-hero-copy {
  justify-content: center;
  gap: var(--space-s);
}

.page-hero h1,
.line {
  display: block;
  font-family: var(--sora);
  font-weight: 700;
  font-size: var(--text-4xl);
  line-height: 1.1;
  color: #fff;
}

/* "Banheiros seguros." cabe em ~9.84em. 10cqi segura cada frase em uma linha. */
.line {
  white-space: nowrap;
  font-size: min(var(--text-4xl), 10cqi);
}

/* "O Dia Mundial do" cabe em ~8.8em. 10.8cqi impede que "do" caia sozinho. */
.page-hero h1 .line {
  font-size: min(1em, 10.8cqi);
}

.page-hero-copy p,
.lead {
  max-width: 36rem;
  color: #fff;
  font-family: var(--sora);
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Na largura máxima, pretty ainda deixa a última linha curta demais. */
@container (min-width: 36rem) {
  .page-hero-copy p,
  .lead { text-wrap: balance; }
}

.lead {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-s);
  overflow-wrap: break-word;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 47px;
  padding: var(--space-3) var(--space-4);
  border-radius: 40px;
  font-family: var(--sora);
  font-size: var(--text-btn);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
  transition: background-color 160ms ease;
}

.btn img { flex: none; width: auto; height: auto; }

.hero-copy .btn { margin-top: var(--space-m); }

.btn-blue { background: var(--blue); }
.btn-blue:hover { background: #04588a; }

.btn-date { background: var(--blue); }
.btn-date:hover { background: #04588a; }

.btn-sm {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.3;
}

.stage,
.page-hero-art {
  position: relative;
  width: min(100%, 27.5rem);
  justify-self: end;
}

.stage { width: min(100%, 32rem); }

.shot,
img.page-hero-art,
.page-hero-art > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 26rem;
  object-fit: contain;
}

.shot {
  aspect-ratio: 538 / 532;
  max-height: none;
}

.page-hero-crop {
  width: min(100%, 26rem);
  aspect-ratio: 1;
  overflow: hidden;
  align-self: center;
}

.page-hero-crop > img {
  position: absolute;
  max-width: none;
  max-height: none;
  object-fit: fill;
}

.destaques {
  padding: var(--space-20) 0;
  background: #fff;
}

.destaques-head {
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
}

.destaques h2 {
  flex: 1 1 18rem;
  min-width: min(100%, 18rem);
  max-width: 456px;
  color: var(--rose);
  font-family: var(--sora);
  font-size: var(--text-3xl);
  line-height: 1.2;
}

.destaques-head p {
  flex: 1 1 16rem;
  min-width: min(100%, 16rem);
  max-width: 548px;
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: 1.25;
  color: var(--slate);
}

@container (min-width: 760px) {
  .destaques-head p { padding-left: var(--space-6); }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-m);
  margin-top: var(--space-12);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: #fff;
  border: 1px solid var(--blue);
  border-radius: 24px;
  box-shadow: 4px 4px 0 var(--blue);
  text-align: center;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 125px;
  height: 125px;
  margin-bottom: calc(var(--space-4) - var(--space-5) - (125px - 100px) / 2);
}

.card-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.card h3 {
  font-family: var(--sora);
  font-size: var(--text-xl);
  line-height: 1.4;
  color: var(--blue);
}

.card p {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.3;
  color: var(--slate);
}

.card .btn { margin-top: auto; }

.date {
  padding: var(--space-l) 0;
  background: linear-gradient(205deg, #ff5733 3%, #d5006d 68%);
  color: #fff;
}

.date :focus-visible { outline-color: #fff; }

.date-head {
  position: relative;
  margin-bottom: var(--space-8);
}

.date-head h2 {
  max-width: 20em;
  margin-inline: auto;
  font-family: var(--sora);
  font-size: var(--text-3xl);
  line-height: 1.2;
  text-align: center;
}

.date-doodle {
  position: absolute;
  top: -1.75rem;
  right: 5.75rem;
  width: 6.5rem;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
  align-items: start;
  padding: 0 var(--space-6) var(--space-6);
}

.date-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding: var(--space-6) var(--space-s);
  border: 2px solid #fff;
  border-radius: 24px;
}

.date .date-card {
  width: 100%;
  max-width: 440px;
}

.date-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-right: var(--space-4);
}

.date-num {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  line-height: 1.1;
}

.date-day {
  font-family: var(--sora);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
}

.date-month {
  font-family: var(--sora);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.date-wtd {
  flex: none;
  width: clamp(110px, -1.12rem + 14.21vw, 164px);
  height: auto;
}

.date-note h3 {
  font-family: var(--sora);
  font-size: var(--text-xl);
  line-height: 1.1;
}

.date-note p {
  margin-top: var(--space-4);
  font-family: var(--sora);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
}

.date-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
  min-width: 0;
  padding: var(--space-10) 0 var(--space-2xs);
  font-family: var(--sora);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.credits {
  padding: var(--space-2xl) 0;
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.credits-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  container-type: inline-size;
}

.credits-label,
.credits h2 {
  font-family: var(--sora);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--rose);
}

.credits-inner > a:has(img) { display: block; margin-top: var(--space-6); }

.credits a img { width: 232px; height: auto; }

.credits h2 { margin-top: var(--space-2xl); }

.credits-lead {
  max-width: 684px;
  margin-top: var(--space-4);
  color: var(--slate);
  font-family: var(--sora);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
}

.credits-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--space-3);
  padding-inline: var(--space-2);
  color: var(--rose);
  font-family: var(--sora);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.partners {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, 141px);
  justify-content: center;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

/* 3 por linha quando 6 não cabem. 471px = 3×141 + 2×24. */
@container (min-width: 471px) {
  .partners { grid-template-columns: repeat(3, 141px); }
}

/* 6 numa linha. 966px = 6×141 + 5×24. */
@container (min-width: 966px) {
  .partners { grid-template-columns: repeat(6, 141px); }
}

.partners li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 141px;
  height: auto;
  aspect-ratio: 141 / 142;
  justify-self: center;
  overflow: hidden;
  padding: var(--space-3);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
}

.partners img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.footer {
  padding: var(--space-16) 0 0;
  background: var(--rose);
  border-top: 1px solid #fff;
  color: #fff;
}

.footer :focus-visible { outline-color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  justify-content: space-between;
  align-items: start;
  row-gap: var(--space-12);
  column-gap: var(--space-7);
}

.footer-support { grid-column: 2 / -1; }

.footer-follow {
  margin-top: var(--space-12);
  font-family: var(--sora);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.5;
}

.social {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-4);
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.footer-kicker {
  margin-top: var(--space-10);
  font-family: var(--sora);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-mail {
  display: inline-block;
  margin-top: var(--space-1);
  font-family: var(--sora);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.footer-rule {
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid #fff;
  font-family: var(--mono);
  font-size: var(--text-md);
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-nav a,
.footer-ias a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: var(--space-2) 0;
  font-family: var(--sora);
  font-size: var(--text-md);
  line-height: 1;
  text-decoration: none;
}

.footer-nav li + li,
.footer-ias li + li { margin-top: var(--space-2); }

.footer-nav a[aria-current="page"] { font-weight: 700; }

.footer-support ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-12) var(--space-xl);
  margin-top: var(--space-6);
}

.footer-support img { width: auto; height: auto; max-height: 61px; }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-6) 0 max(var(--space-6), env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #fff;
  font-family: var(--sora);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.footer-legal a { text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .topbar {
    display: flex;
    justify-content: space-between;
  }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: fixed;
    z-index: 30;
    top: var(--space-4);
    right: var(--gutter);
    grid-column: auto;
    grid-row: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 420px;
    height: 30rem;
    max-height: calc(100dvh - var(--space-4) * 2);
    margin: 0;
    padding: var(--space-6) var(--space-10) var(--space-8);
    overflow: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
    background: linear-gradient(226deg, #ff5733 2.74%, #d5006d 68.32%);
    color: #fff;
    border-radius: 24px;
  }
  .topbar.is-open .nav {
    display: flex;
    justify-content: space-between;
  }
  .topbar.is-open .nav-head,
  .topbar.is-open .nav-foot { display: flex; }
  .topbar.is-open .nav-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    width: 100%;
    margin-top: 0;
  }
  .topbar.is-open .nav-foot { margin-top: 0; }
  .nav :focus-visible { outline-color: #fff; }
  .nav-head,
  .nav-foot {
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .nav-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 0;
  }
  .nav-logo img { width: 75px; height: auto; }
  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 24px;
    height: 24px;
    margin-right: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .nav-x {
    position: relative;
    width: 24px;
    height: 24px;
  }
  .nav-x::before,
  .nav-x::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
  .nav-x::before { transform: translate(-50%, -50%) rotate(45deg); }
  .nav-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
  .nav-list {
    position: static;
    grid-column: auto;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    width: 100%;
  }
  .nav-list a {
    justify-content: center;
    gap: 4px;
    min-height: 32px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.16px;
    text-align: center;
  }
  .news {
    grid-column: auto;
    justify-self: center;
    align-self: center;
    min-height: 0;
    margin-left: 0;
    padding: 12px 16px;
    color: #fff;
    border-color: #fff;
    font-size: 0.9375rem;
    letter-spacing: 0.15px;
  }
  .nav-ias {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 0;
  }
  .nav-ias img { width: 80px; height: auto; }
  .nav-social {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .nav-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
  }
  .nav-social li:first-child a { width: 24px; height: 24px; }
  .nav-social img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
  }
  .nav-social li:first-child img { width: 24px; height: 24px; }
  .footer-grid {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .footer-support { grid-column: auto; }
  .footer-legal {
    flex-direction: column;
    border-top: 0;
  }
  .footer-nav a,
  .footer-ias a { min-height: 44px; }
}

/* Quatro logos cabem numa linha a partir de 600px. */
@media (max-width: 599px) {
  .lockups { grid-template-columns: repeat(2, max-content); }
}

@media (max-width: 699px) {
  .nav {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    padding:
      calc(var(--space-8) + env(safe-area-inset-top, 0px))
      calc(var(--space-10) + env(safe-area-inset-right, 0px))
      calc(var(--space-8) + env(safe-area-inset-bottom, 0px))
      calc(var(--space-10) + env(safe-area-inset-left, 0px));
  }
  body:has(.topbar.is-open) { overflow: hidden; }

  .topbar.is-open .nav-body {
    flex: 1;
    justify-content: center;
    margin-top: 0;
  }
}

@media (max-width: 799px) {
  .hero-grid,
  .page-hero-grid { grid-template-columns: 1fr; }

  .stage,
  .page-hero-art,
  img.page-hero-art {
    width: min(100%, 20rem);
    margin-inline: auto;
    justify-self: center;
  }

  .stage { margin-top: var(--space-s); }
}

@media (max-width: 1119px) {
  .date-head {
    display: grid;
    align-items: center;
    min-height: 4.5rem;
  }

  .date-doodle {
    position: absolute;
    top: 50%;
    right: 0;
    width: 4.5rem;
    transform: translateY(-50%);
  }

  .date-head h2 {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: calc(4.5rem + var(--space-4));
    text-align: center;
  }

  .date-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--space-10);
    padding: 0;
  }

  .date-copy {
    width: 100%;
    align-items: center;
    text-align: center;
  }
}

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