:root {
  --navy: #003e90;
  --navy-deep: #000119;
  --blue: #0095eb;
  --blue-hover: #007cc3;
  --ink: #161922;
  --text: #626262;
  --subheader: #444444;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --header: 120px;
  --max: 1240px;
  --font: Roboto, Arial, Tahoma, sans-serif;
  --font-title: Lora, Georgia, serif;
  --font-hero: Poppins, Arial, Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 25px;
  font-weight: 400;
  background: #fcfcfc;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: var(--font); font-weight: 400; margin: 0 0 .45em; }
h1 { font-size: 48px; line-height: 50px; }
h2 { font-size: 30px; line-height: 34px; font-weight: 300; }
h3 { font-size: 25px; line-height: 29px; font-weight: 300; }
h4 { font-size: 21px; line-height: 25px; font-weight: 500; }
h5 { font-size: 15px; line-height: 25px; font-weight: 700; }
h6 { font-size: 14px; line-height: 25px; }
p { margin: 0 0 1rem; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.topbar {
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  line-height: 21px;
  border-bottom: 1px solid var(--line);
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  min-height: 42px;
  align-items: center;
}
.topbar a { color: var(--navy); }
.topbar a:hover { color: var(--blue-hover); }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #f2f2f2;
}
.header-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo { display: flex; align-items: center; margin-right: auto; }
.logo img { height: 90px; width: auto; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.nav ul {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}
.nav > ul > li > a[aria-current="page"],
.nav > ul > li > a:hover,
.nav .has-sub:has(a[aria-current="page"]) > a {
  background: var(--navy);
  color: #fff;
}
.nav .has-sub { position: relative; }
.nav .has-sub > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  padding: 8px 0;
  z-index: 40;
  flex-direction: column;
}
.nav .has-sub:hover > ul,
.nav .has-sub:focus-within > ul { display: flex; }
.nav .has-sub > ul a {
  height: auto;
  padding: 10px 16px;
  font-weight: 400;
  color: #fff;
  white-space: normal;
}
.nav .has-sub > ul a:hover,
.nav .has-sub > ul a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.hero {
  min-height: 460px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 1, 25, .82) 0%, rgba(0, 30, 80, .62) 55%, rgba(0, 30, 80, .28) 100%),
    url("/img/bombeiro-1.jpg") center / cover no-repeat;
  padding: 72px 20px 56px;
}
.hero h1 {
  margin: 0 auto 12px;
  max-width: 820px;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 400;
}
.hero p { margin: 0 auto 22px; max-width: 680px; color: #fff; font-size: 16px; line-height: 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  background: #f4524d;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
}
.btn:hover { background: #f23630; color: #f7f7f7; }
.btn.enroll {
  background-color: #ff675b;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, .2), rgba(255, 255, 255, .01));
}
.btn.enroll:hover { background-color: #ff4b3c; color: #f7f7f7; }
.btn.slider-btn {
  background: #e30016;
  border-radius: 3px;
  padding: 12px 35px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 17px;
}
.btn.slider-btn:hover { background: #007aff; color: #fff; }
.btn.slider-btn.alt {
  background: #e43b1b;
  padding: 20px 63px;
  font-family: Raleway, Arial, sans-serif;
  font-size: 14px;
}
.btn.slider-btn.alt:hover { background: #261c18; color: #fff; }

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--navy);
  color: #fff;
}
.highlights article { padding: 28px 24px; text-align: center; }
.highlights article + article { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .15); }
.highlights h2 { color: #fff; margin: 0 0 6px; font-size: 21px; line-height: 25px; font-weight: 500; }
.highlights p { margin: 0; color: #fff; }

.section { padding: 64px 0; }
.section h2 { margin: 0 0 8px; }
.section .lead { color: var(--text); font-size: 16px; line-height: 28px; }
.center { text-align: center; }
.intro { text-align: center; max-width: 760px; margin: 0 auto 32px; }

.cards, .posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card[hidden], .post[hidden] { display: none !important; }
.card, .post {
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.card img, .post img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #f4f7fb; }
.card div, .post div { padding: 16px 16px 20px; }
.card h3, .card h4, .post h2 { font-size: 21px; line-height: 25px; font-weight: 500; margin: 0 0 8px; }
.card h3 a, .card h4 a, .post h2 a { color: var(--ink); }
.card h3 a:hover, .card h4 a:hover, .post h2 a:hover { color: var(--navy); }
.card > div, .post > div { background: #f9f9f9; }
.card p, .post p { margin: 0 0 12px; }
.card a.more, .post a.more {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  min-height: 40px;
  padding: 10px 18px;
  background: #f4524d;
  color: #fff;
  border-radius: 5px;
  font-weight: 400;
}
.card a.more:hover, .post a.more:hover { background: #f23630; color: #f7f7f7; }

.heading-icon { text-align: center; margin: 8px 0 28px; }
.heading-icon svg { display: block; margin: 0 auto 8px; color: var(--blue); }
.heading-icon h2 { margin: 0; }
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.filters button {
  border: 0;
  background: transparent;
  color: #777;
  font: inherit;
  cursor: pointer;
  padding: 6px 0;
}
.filters button.is-on,
.filters button:hover { color: #333; }
.course-page { padding: 30px 0 48px; }
.course-page .filters { margin: 0 0 22px; }
.course-page .filters button { color: #666; padding: 2px 10px; }
.course-page .filters button.is-on,
.course-page .filters button:hover { background: #ebebeb; color: #666; border-radius: 30px; }
.course-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: start; }
.course-grid .card { border: 0; background: transparent; }
.course-grid .card img { aspect-ratio: 1 / 1; }
.course-grid .card > div { padding: 18px 15px 22px; }
.course-grid .card a.more { margin-top: 8px; align-self: flex-start; padding: 14px 20px; }

.slider { position: relative; min-height: 520px; background: #111; color: #fff; }
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
  transition: opacity .8s ease, visibility .8s ease;
}
.slide-bombeiro { background-image: url("/img/bombeiro-1.jpg"); }
.slide-treinamento { background-image: url("/img/slide-2.jpg"); }
.slide.is-on { opacity: 1; visibility: visible; z-index: 1; pointer-events: auto; }
.slide-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 72px 0 88px; max-width: 820px; text-align: center; }
.slide h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: Raleway, Arial, sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 38px;
}
.slide p {
  margin: 0 0 8px;
  color: #fff;
  font-family: Lato, Arial, sans-serif;
  font-size: 18px;
  line-height: 28px;
}
.slide-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.slider-nav {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}
.slider-nav button, .logo-nav {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.slider-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
}
.slider-dots button.is-on { background: #fff; }

.enroll { padding: 10px 0 36px; }
.enroll-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 5px;
  padding: 26px 32px;
}
.enroll-bar h2 { margin: 0; color: #f4524d; font-size: 25px; line-height: 32px; font-weight: 300; }

.logo-carousel { display: flex; align-items: center; gap: 8px; }
.logo-viewport { overflow: hidden; flex: 1; }
.logo-track { display: flex; }
.logo-track img { flex: 1; width: 0; height: 92px; object-fit: contain; padding: 8px 12px; }
.video { position: relative; padding-top: 56.25%; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.about-copy p { text-align: justify; }

.clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: center;
}
.clients img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .8;
}
.clients img:hover { filter: none; opacity: 1; }

.page-hero {
  min-height: 180px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(252, 252, 252, .9) 0%, rgba(252, 252, 252, .55) 46%, rgba(252, 252, 252, .08) 100%),
    url("/img/qsomos.jpg") center / cover no-repeat;
  color: var(--subheader);
  padding: 28px 0;
}
.page-hero h1 {
  color: var(--subheader);
  margin: 0 0 8px;
  font-family: var(--font-hero);
  font-style: normal;
  font-weight: 400;
  font-size: 30px;
  line-height: 35px;
  letter-spacing: 1px;
}
.crumbs { color: var(--text); font-size: 14px; line-height: 25px; }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--blue-hover); }

.prose { width: min(860px, 100%); }
.prose h2 { margin: 28px 0 10px; }
.prose h3 { margin: 26px 0 8px; }
.list { margin: 0 0 16px; padding-left: 18px; }
.list li { margin: 6px 0; }
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: start;
}
.frame img { width: 100%; border-radius: 2px; box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.band-parallax {
  position: relative;
  height: 202px;
  overflow: hidden;
  background: #f7f7f7;
}
.band-parallax-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: -20.24%;
  height: 150%;
  background-image: url("/img/qsomos-1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}
.about-body { padding: 35px 0 48px; }
.about-body .prose h3 { margin: 0 0 27px; }
.about-body .split { grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.justified { text-align: justify; }
.photo-wrap { text-align: center; margin-top: 36px; }
.photo-3d {
  position: relative;
  z-index: 0;
  display: inline-block;
  max-width: 100%;
}
.photo-3d img {
  width: min(500px, 100%);
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.photo-3d:before, .photo-3d:after {
  content: "";
  position: absolute;
  box-shadow: 0 15px 10px rgba(0, 0, 0, .6);
  bottom: 8px;
  height: 30%;
  z-index: -1;
  border-radius: inherit;
}
.photo-3d:before { left: 5px; right: 50%; transform-origin: 0 0; transform: skewY(-6deg); }
.photo-3d:after { left: 50%; right: 5px; transform-origin: 100% 0; transform: skewY(6deg); }
.pair { margin-top: 28px; }
.pair strong { color: var(--ink); }

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
}
.locate { padding: 30px 0 48px; }
.locate-title { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.locate-title h4 { margin: 0; font-size: 14px; line-height: 21px; font-weight: 500; white-space: nowrap; }
.locate-title .pin { width: 30px; height: 30px; color: #5472d2; flex: none; }
.locate-line { flex: 1; height: 1px; background: #ebebeb; }
.locate-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 30px; align-items: start; }
.locate-grid h3 { margin: 0 0 10px; }
.locate-grid h3 strong { font-weight: 700; }
.locate-grid iframe { width: 100%; height: 600px; border: 0; display: block; }
label { display: block; font-weight: 400; color: var(--text); margin: 0 0 6px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #ddd;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  margin-bottom: 14px;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #1982c2;
  background: #e9f5fc;
  color: #1982c2;
}
.hp { position: absolute; left: -9999px; }
.form-note { min-height: 1.4em; font-weight: 700; }
.form-note.ok { color: #1b7a32; }
.form-note.err { color: #a12626; }

.footer {
  background: var(--navy);
  color: #fff;
  padding: 48px 0 20px;
}
.footer a { color: #fff; }
.footer a:hover { color: #eeee22; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr;
  gap: 32px;
}
.footer h2 { color: #fff; font-size: 21px; line-height: 25px; font-weight: 500; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.footer p { color: #fff; }
.copy {
  border-top: 1px solid rgba(255, 255, 255, .15);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 14px;
  line-height: 25px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.copy p { margin: 0; color: #fff; }

.float-wa, .to-top {
  position: fixed;
  right: 18px;
  z-index: 25;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.float-wa { bottom: 22px; background: #25d366; color: #fff; }
.float-wa:hover { color: #fff; background: #1ebe5b; }
.to-top {
  bottom: 84px;
  border: 0;
  background: #65666c;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
.to-top.is-on { opacity: 1; pointer-events: auto; }
.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.socials { display: flex; gap: 14px; margin-top: 8px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
    max-height: calc(100vh - 120px);
    overflow: auto;
  }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li > a { height: auto; padding: 14px 20px; border-top: 1px solid #f3f3f3; }
  .nav .has-sub > ul { position: static; display: flex; box-shadow: none; min-width: 0; padding: 0 0 8px; }
  .nav .has-sub > ul a { padding: 8px 20px 8px 32px; }
  .highlights, .cards, .posts, .split, .contact-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .enroll-bar { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 380px; background-position: center; }
}
@media (max-width: 640px) {
  .highlights, .cards, .posts, .footer-grid, .split, .about-body .split, .contact-grid, .locate-grid { grid-template-columns: 1fr; }
  .locate-grid iframe { height: 360px; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .slider { min-height: 420px; }
  .highlights article + article { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
  .logo img { height: 64px; }
  h1 { font-size: 32px; line-height: 36px; }
  .page-hero h1 { font-size: 26px; line-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out 0.28s ease both; }
::view-transition-new(root) { animation: page-in 0.32s ease both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }
body.page-enter main { animation: page-in 0.32s ease both; }
body.is-leaving main {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  body.page-enter main,
  body.is-leaving main {
    animation: none;
    transition: none;
  }
}
