/* =========================================================
   PROFORCE Treinamentos — estilos
   ========================================================= */
:root {
  --red: #d71920;
  --red-dark: #a8121a;
  --black: #0f1013;
  --ink: #1a1c21;
  --gray-900: #23262d;
  --gray-700: #4a4f5a;
  --gray-500: #7a808c;
  --gray-200: #e4e6ea;
  --gray-100: #f4f5f7;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 16, 19, .08);
  --shadow-lg: 0 20px 50px rgba(15, 16, 19, .18);
  --header-h: 76px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 1.2em; height: 1.2em; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1em 1.9em; font-size: 1rem; }
.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(215, 25, 32, .35); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--outline { color: var(--ink); border-color: var(--gray-200); background: var(--white); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--red); }
.btn--light:hover { background: var(--black); color: var(--white); }

/* ===== Tipografia de seção ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9em;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); border-radius: 2px; }
.eyebrow--light { color: var(--white); }
.section { padding: 110px 0; }
/* Ao navegar por âncora, desconta parte do padding superior para o conteúdo
   ficar logo abaixo do header (40px de respiro) em vez de 110px. */
.section[id] { scroll-margin-top: -70px; }
.section--dark { background: var(--black); color: var(--white); }
.section--alt { background: var(--gray-100); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; text-transform: uppercase; }
.section__lead { color: var(--gray-500); font-size: 1.08rem; margin: 0; }
.section--dark .section__lead { color: rgba(255, 255, 255, .7); }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .08); border-color: var(--gray-200); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 67px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; }
.nav__link { font-weight: 600; font-size: .93rem; position: relative; padding: 6px 0; color: var(--gray-900); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--red); }
.nav__cta { padding: .65em 1.3em; font-size: .88rem; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: var(--white);
  padding: calc(var(--header-h) + 60px) 0 100px; overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(15, 16, 19, .94) 0%, rgba(15, 16, 19, .78) 45%, rgba(15, 16, 19, .25) 100%),
    url("../assets/img/galeria/hero.jpg") center / cover no-repeat;
  transform: scale(1.05); animation: heroZoom 18s ease-out forwards;
}
.hero__bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 18px, var(--black) 18px 36px);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { max-width: 1200px; }
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 800; text-transform: uppercase;
  max-width: 13ch; margin-bottom: .35em;
}
.hero__title span { color: var(--red); display: block; }
.hero__text { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 600px; color: rgba(255, 255, 255, .85); margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--white); border-radius: 2px; animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== Números ===== */
.stats { background: var(--red); color: var(--white); position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 24px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .22); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; line-height: 1; margin-bottom: 8px; }
.stat__label { font-size: .9rem; color: rgba(255, 255, 255, .9); display: block; max-width: 220px; margin: 0 auto; }

/* ===== Sobre ===== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.about__media::before {
  content: ""; position: absolute; inset: -18px auto auto -18px; width: 45%; height: 55%;
  border: 4px solid var(--red); border-radius: var(--radius); z-index: -1;
}
.about__badge {
  position: absolute; right: -20px; bottom: 30px; background: var(--black); color: var(--white);
  padding: 18px 24px; border-radius: 12px; box-shadow: var(--shadow-lg); border-left: 5px solid var(--red);
}
.about__badge strong { display: block; font-family: var(--font-head); font-size: 1.6rem; line-height: 1; }
.about__badge span { font-size: .82rem; color: rgba(255, 255, 255, .75); }
.about__text p { color: var(--gray-700); }
.checklist { margin-top: 1.6em; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 600; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: .75rem; display: grid; place-items: center;
}
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 90px; }
.mvv__card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.mvv__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.mvv__card h3 { font-size: 1.7rem; text-transform: uppercase; }
.mvv__card p { color: var(--gray-700); margin: 0; }
.mvv__icon, .feature__icon {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(215, 25, 32, .1); color: var(--red);
  display: grid; place-items: center; margin-bottom: 20px;
}
.mvv__icon svg, .feature__icon svg { width: 28px; height: 28px; }

/* ===== Cursos ===== */
.courses { position: relative; overflow: hidden; }
.courses::before {
  content: ""; position: absolute; right: -200px; top: -200px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(215, 25, 32, .25), transparent 70%);
}
.courses__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.course {
  background: var(--gray-900); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.course:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); border-color: rgba(215, 25, 32, .6); }
.course__img { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.course__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course:hover .course__img img { transform: scale(1.07); }
.course__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.course__tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 6px; background: rgba(215, 25, 32, .18); color: #ff5a60; margin-bottom: 12px;
}
.course__title { font-size: 1.45rem; text-transform: uppercase; }
.course__desc { font-size: .9rem; color: rgba(255, 255, 255, .7); }
.course__meta { font-size: .85rem; display: grid; gap: 4px; margin-bottom: 18px; color: rgba(255, 255, 255, .85); }
.course__meta strong { color: var(--white); }
.course__btn {
  margin-top: auto; align-self: flex-start; background: none; border: 0; padding: 0;
  color: var(--white); font-weight: 600; font-size: .88rem; border-bottom: 2px solid var(--red);
}
.course__btn span { display: inline-block; transition: transform .2s; }
.course__btn:hover span { transform: translateX(4px); }
.course--cta { background: var(--red); border-color: var(--red); justify-content: center; }
.course--cta .course__body { justify-content: center; }
.course--cta .course__title { font-size: 1.8rem; }
.course--cta .course__desc { color: rgba(255, 255, 255, .9); margin-bottom: 1.5em; }
.course--cta .btn { align-self: flex-start; }

/* ===== Diferenciais ===== */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  padding: 34px 30px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--gray-200); position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.feature::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature:hover::after { transform: scaleX(1); }
.feature h3 { font-size: 1.5rem; text-transform: uppercase; }
.feature p { color: var(--gray-700); margin: 0; font-size: .95rem; }

/* ===== Processo ===== */
.process__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step { background: var(--white); border-radius: var(--radius); padding: 38px 32px; box-shadow: var(--shadow); position: relative; }
.step__num {
  font-family: var(--font-head); font-size: 3.6rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--red); display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.6rem; text-transform: uppercase; }
.step p { color: var(--gray-700); margin: 0; }
.step:not(:last-child)::after {
  content: "→"; position: absolute; right: -19px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: var(--white);
  display: grid; place-items: center; font-weight: 700; z-index: 2;
}

/* ===== Região ===== */
.region { position: relative; padding: 120px 0; color: var(--white); overflow: hidden; isolation: isolate; }
.region__bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(15, 16, 19, .82), rgba(15, 16, 19, .82)), url("../assets/img/galeria/circuito-2.jpg") center / cover no-repeat;
}
.region__inner { max-width: 820px; text-align: center; }
.region__inner .eyebrow { justify-content: center; }
.region__inner p { font-size: 1.12rem; color: rgba(255, 255, 255, .85); margin: 0; }

/* ===== Galeria ===== */
.gallery__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter {
  border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-700);
  padding: .55em 1.2em; border-radius: 999px; font-weight: 600; font-size: .88rem; transition: all .2s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--black); border-color: var(--black); color: var(--white); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.gallery__item { position: relative; overflow: hidden; border-radius: 10px; background: var(--gray-100); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.6rem; font-weight: 300; color: var(--white);
  background: rgba(215, 25, 32, .55); opacity: 0; transition: opacity .3s;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item.is-hidden { display: none; }
.videos__title { text-align: center; font-size: 2rem; text-transform: uppercase; margin: 80px 0 30px; }
.videos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video { border-radius: var(--radius); overflow: hidden; background: var(--black); aspect-ratio: 9 / 16; max-height: 560px; box-shadow: var(--shadow); }
.video video { width: 100%; height: 100%; object-fit: cover; }

/* ===== Depoimentos ===== */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  margin: 0; padding: 36px 32px; border-radius: var(--radius);
  background: var(--gray-900); border: 1px solid rgba(255, 255, 255, .06); position: relative;
}
.quote::before {
  content: "“"; position: absolute; right: 24px; top: -10px; font-family: Georgia, serif;
  font-size: 7rem; line-height: 1; color: rgba(215, 25, 32, .35);
}
.quote__stars { color: #ffb400; letter-spacing: 3px; margin-bottom: 14px; }
.quote p { font-size: 1.08rem; color: rgba(255, 255, 255, .9); }
.quote footer { font-weight: 700; font-size: .9rem; color: #ff5a60; }
.quote--highlight { background: var(--red); border-color: var(--red); display: flex; align-items: center; }
.quote--highlight::before { color: rgba(0, 0, 0, .2); }
.quote--highlight p { color: var(--white); margin: 0; font-size: 1.15rem; }

/* ===== Contato ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact__info > p { color: var(--gray-700); }
.contact__list { display: grid; gap: 20px; margin-top: 32px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__icon {
  flex: none; width: 50px; height: 50px; border-radius: 12px; background: var(--black); color: var(--white);
  display: grid; place-items: center;
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__list small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-500); font-weight: 600; }
.contact__list a, .contact__list span { font-weight: 600; word-break: break-word; }
.contact__list a:hover { color: var(--red); }
.form { background: var(--gray-100); padding: 40px; border-radius: var(--radius); border-top: 5px solid var(--red); }
.form h3 { font-size: 1.8rem; text-transform: uppercase; margin-bottom: 1em; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-900); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: .8em 1em; border-radius: 10px;
  border: 1px solid var(--gray-200); background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(215, 25, 32, .15);
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); }
.form__error { color: var(--red); font-weight: 600; font-size: .9rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ===== Footer ===== */
.footer { background: var(--black); color: rgba(255, 255, 255, .7); padding-top: 80px; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.footer__logo { background: var(--white); border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 18px; }
.footer__logo img { height: 80px; width: auto; }
.footer h4 { color: var(--white); font-size: 1.3rem; text-transform: uppercase; margin-bottom: 1em; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .85rem; }
.footer__bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer__bottom p { margin: 0; }
.footer__top { color: var(--white); font-weight: 600; }

/* ===== WhatsApp flutuante ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: var(--white); display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45); transition: transform .2s;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: pulse 2s infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 16, 19, .75); backdrop-filter: blur(4px); }
.modal__box {
  position: relative; background: var(--white); border-radius: var(--radius); width: 100%; max-width: 640px;
  max-height: 88vh; overflow-y: auto; padding: 40px; box-shadow: var(--shadow-lg); border-top: 6px solid var(--red);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } }
.modal__box h3 { font-size: 2rem; text-transform: uppercase; }
.modal__box h4 { font-size: 1.2rem; text-transform: uppercase; margin-top: 1.4em; color: var(--red); }
.modal__box .course__tag { color: var(--red); background: rgba(215, 25, 32, .1); }
.modal__meta ul { display: grid; gap: 4px; font-size: .95rem; color: var(--gray-700); margin: 0; }
.modal__meta strong { color: var(--ink); }
.modal__content ul { display: grid; gap: 8px; margin-bottom: 1.4em; }
.modal__content li { position: relative; padding-left: 22px; color: var(--gray-700); font-size: .95rem; }
.modal__content li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--red); border-radius: 2px; }
.modal__note { font-size: .88rem; color: var(--gray-500); }
.modal__close {
  position: absolute; right: 16px; top: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--gray-100); font-size: 1.6rem; line-height: 1; color: var(--ink);
}
.modal__close:hover { background: var(--red); color: var(--white); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 110; background: rgba(10, 10, 12, .95);
  display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 40px 70px;
}
.lightbox__img { max-height: 82vh; max-width: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__caption { color: rgba(255, 255, 255, .8); margin: 16px 0 0; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: var(--white);
  width: 50px; height: 50px; border-radius: 50%; font-size: 2rem; line-height: 1; transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ===== Animações de entrada =====
   O JS remove a classe .reveal ao fim da animação para que as transições
   de hover dos componentes voltem a valer. Sem JS, tudo fica visível. */
.js .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s ease var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsivo ===== */
@media (max-width: 1100px) {
  .courses__grid { grid-template-columns: repeat(3, 1fr); }
  .nav__list { gap: 18px; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header__logo img { height: 58px; }
  .nav__toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h));
    background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 20px 24px 40px;
    transform: translateX(100%); visibility: hidden; overflow-y: auto;
    transition: transform .35s ease, visibility 0s linear .35s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .35s ease; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--gray-200); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 24px; padding: 1em; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .22); }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  .about__badge { right: 16px; }
  .courses__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid, .mvv, .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section[id] { scroll-margin-top: -48px; }
  .section__head { margin-bottom: 40px; }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { display: none; }
  .stat { padding: 28px 12px; }
  .courses__grid, .features__grid, .mvv, .testimonials__grid, .videos__grid { grid-template-columns: 1fr; }
  .mvv { margin-top: 60px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .gallery__item--wide { grid-column: span 2; }
  .video { max-height: none; max-width: 360px; margin: 0 auto; width: 100%; }
  .form { padding: 28px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .modal__box { padding: 32px 22px; }
  .lightbox { padding: 20px 10px; }
  .lightbox__nav { top: auto; bottom: 20px; transform: none; }
  .about__media::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
