:root {
  --red: #aa282e;
  --cream: #faf6ef;
  --ink: #303030;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
.skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.8rem;
}
.skip:focus {
  top: 1rem;
}
.topbar {
  height: 36px;
  background: #8f2025;
  color: #fff;
  padding: 0 max(4vw, 1rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}
.topbar div {
  display: flex;
  gap: 1.5rem;
}
.topbar a {
  text-decoration: none;
  font-weight: 700;
}
header {
  height: 96px;
  background: var(--red);
  padding: 0 max(4vw, 1rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #fff;
  position: relative;
  z-index: 5;
}
header > a:first-child img {
  width: 210px;
  height: auto;
}
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 1.5vw, 1.5rem);
  flex: 1;
}
nav a,
.visit {
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}
.visit {
  border: 1px solid #fff;
  padding: 0.8rem 1rem;
  white-space: nowrap;
}
.menu-toggle {
  display: none;
}
.banner img {
  width: 100%;
  height: auto;
}
.intro {
  max-width: 1180px;
  margin: auto;
  padding: 70px 24px 45px;
  text-align: center;
}
.intro h1 {
  font-family: Georgia, serif;
  color: var(--red);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  margin: 0 0 1rem;
}
.intro p {
  max-width: 900px;
  margin: auto;
  line-height: 1.7;
  font-size: 1.05rem;
}
.testimonials {
  max-width: 1220px;
  margin: auto;
  padding: 10px 24px 90px;
}
.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.filters button {
  border: 1px solid var(--red);
  background: #fff;
  color: var(--red);
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
}
.filters button.active {
  background: var(--red);
  color: #fff;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 28px;
}
.video-thumb {
  border: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  background: #eee;
  overflow: hidden;
  cursor: pointer;
}
.video-thumb picture,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 58px;
  height: 58px;
  background: rgba(170, 40, 46, 0.93);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}
.video-card h2 {
  font-family: Georgia, serif;
  color: var(--red);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 18px 0 10px;
}
.video-card p {
  font-size: 0.94rem;
  line-height: 1.58;
  margin: 0;
  white-space: pre-line;
}
.join {
  background: var(--red);
  color: #fff;
}
.join-first {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.join-copy {
  padding: 70px clamp(24px, 6vw, 90px);
}
.join h2,
.structure h2 {
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 1;
  margin: 0 0 20px;
}
.join h2 em,
.structure h2 em {
  font-weight: 400;
}
.join-copy > p {
  font-size: 1.04rem;
  line-height: 1.6;
  max-width: 630px;
}
.join-photo {
  min-height: 650px;
  background: url("https://pioxiicolegio.com.br/wp-content/uploads/2023/09/foto-aerea.jpg")
    center/cover;
}
.interest-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 28px;
}
.interest-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.interest-form input,
.interest-form select {
  width: 100%;
  height: 48px;
  border: 0;
  background: #fff;
  padding: 0 13px;
  color: #555;
  font: inherit;
}
.interest-form label:nth-child(n + 4) {
  grid-column: 1/-1;
}
.interest-form button {
  width: max-content;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  padding: 13px 25px;
  font-weight: 700;
  cursor: pointer;
}
.structure {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 620px;
}
.structure-gallery {
  position: relative;
  overflow: hidden;
}
.structure-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.structure-gallery h3 {
  position: absolute;
  left: 28px;
  bottom: 20px;
  color: #fff;
  font:
    1.7rem Georgia,
    serif;
  text-shadow: 0 2px 8px #000;
}
.structure-copy {
  background: #f4eee5;
  padding: 80px clamp(24px, 5vw, 75px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.structure-copy h2 {
  color: var(--red);
}
.structure-copy p {
  line-height: 1.75;
}
.join-second {
  text-align: center;
}
.join-second .join-copy {
  max-width: 1050px;
  margin: auto;
}
.join-second .join-copy > p {
  margin-left: auto;
  margin-right: auto;
}
.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: left;
}
.compact label:nth-child(n + 4) {
  grid-column: auto;
}
.compact button {
  grid-column: 2;
}
.footer-main {
  padding: 60px max(4vw, 24px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1.15fr;
  gap: 45px;
  background: #f4f1eb;
}
.footer-main img {
  width: 220px;
}
.footer-main p {
  font-size: 0.85rem;
  line-height: 1.65;
}
.footer-menu,
.social {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-menu a,
.social a {
  font-size: 0.82rem;
  text-decoration: none;
}
.social h3 {
  color: var(--red);
  margin: 18px 0 0;
}
.footer-bottom {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 18px;
  font-size: 0.78rem;
}
dialog {
  border: 0;
  padding: 0;
  width: min(960px, calc(100% - 24px));
  background: #111;
  color: #fff;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
}
#player {
  aspect-ratio: 16/9;
}
#player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.close-video {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 1.6rem;
}
dialog h2 {
  font:
    1.1rem Georgia,
    serif;
  padding: 15px 20px;
  margin: 0;
}
@media (max-width: 1050px) {
  nav {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 10px 14px;
  }
  .visit {
    display: none;
  }
  header.open {
    height: auto;
    min-height: 96px;
    flex-wrap: wrap;
    padding-block: 15px;
  }
  header.open nav {
    display: flex;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
  }
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .join-first,
  .structure {
    grid-template-columns: 1fr;
  }
  .join-photo {
    min-height: 440px;
  }
  .structure-gallery {
    min-height: 500px;
  }
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .topbar {
    display: none;
  }
  header {
    height: 82px;
  }
  header > a:first-child img {
    width: 165px;
  }
  .intro {
    padding-top: 45px;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .testimonials {
    padding-inline: 18px;
  }
  .video-card h2,
  .video-card p {
    text-align: center;
  }
  .join-copy {
    padding: 50px 20px;
  }
  .interest-form,
  .compact {
    grid-template-columns: 1fr;
  }
  .interest-form label:nth-child(n),
  .compact button {
    grid-column: 1;
  }
  .structure-gallery {
    min-height: 340px;
  }
  .structure-copy {
    padding: 50px 20px;
  }
  .structure-copy p br {
    display: none;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-menu,
  .social {
    border-top: 1px solid #d7d0c6;
    padding-top: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Tipografia e dimensões copiadas da página original. */
body,
button,
input,
select {
  font-family: "Open Sans", sans-serif;
}

.intro h1 {
  font-family: "Open Sans", sans-serif;
  color: #c72621;
  font-size: 32px;
  font-weight: 800;
  line-height: 38.4px;
}

.video-card h2 {
  font-family: "Open Sans", sans-serif;
  color: #e23239;
  font-size: 18px;
  font-weight: 700;
  line-height: 21.6px;
}

.video-card p {
  font-family: "Open Sans", sans-serif;
  color: #666;
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
}

.join h2 {
  font-family: autography, "Open Sans", sans-serif;
  color: #f9d616;
  font-size: 80px;
  font-weight: 500;
  line-height: 60px;
}

.join-copy > p {
  font-family: "Open Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 33px;
}

.structure h2 {
  font-family: "Open Sans", sans-serif;
  color: #c72621;
  font-size: 32px;
  font-weight: 800;
  line-height: 38.4px;
}

.interest-form,
.compact {
  width: min(486px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
}

.interest-form label:first-child,
.interest-form label:nth-child(n + 4) {
  grid-column: 1 / -1;
}

.interest-form input {
  height: 46px;
  font-size: 16px;
  line-height: 24px;
}

.interest-form select {
  height: 38px;
  font-size: 16px;
  line-height: 24px;
}

.interest-form button,
.compact button {
  grid-column: 1 / -1;
  width: 100%;
  height: 53px;
  background: #f9d616;
  border: 0;
  color: #c72621;
  font-size: 16px;
  font-weight: 700;
}

.join-second .interest-form {
  margin-inline: auto;
}

footer {
  font-family: "Open Sans", sans-serif;
  color: #868686;
  font-size: 12px;
  line-height: 28px;
}

@media (max-width: 650px) {
  .join h2 {
    font-size: 58px;
    line-height: 48px;
  }

  .join-copy > p {
    font-size: 18px;
    line-height: 27px;
  }

  .interest-form,
  .compact {
    grid-template-columns: 1fr;
  }

  .interest-form label:nth-child(n),
  .interest-form button,
  .compact button {
    grid-column: 1;
  }
}
