/* ==========================================================
   Colégio Progressão — layout inspirado em Apple
========================================================== */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --navy: #062A5E;
  --accent: #ff7a00;
  --header: 52px;
  --radius: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --max: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.47;
  letter-spacing: -0.01em;
}

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

a {
  color: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

body.loading *:not(#loader):not(#loader *) {
  visibility: hidden;
}

body.loading #loader {
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-content {
  text-align: center;
  color: #fff;
}

.loader-content img {
  width: min(220px, 60vw);
  margin: 0 auto 28px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}

.loader-content p {
  font-size: 13px;
  color: #86868b;
}

#loader.saindo {
  opacity: 0;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

section {
  padding: 88px 22px;
  scroll-margin-top: calc(var(--header) + 12px);
}

/* ---------- Header (barra Apple) ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 22px;
  z-index: 9000;
  overflow: visible;
  background: rgba(6, 42, 94, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo img {
  height: 32px;
  width: auto;
}

.titulo {
  font-size: 13px;
  line-height: 1.2;
  color: #f5f5f7;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.titulo span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #a1a1a6;
}

.menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}

.menu a {
  text-decoration: none;
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 980px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-icon {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 9200;
  width: 44px;
  height: 44px;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f5f5f7;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.btn-matricula {
  background: var(--blue) !important;
  color: #fff !important;
  font-weight: 500 !important;
  padding: 7px 14px !important;
}

.btn-matricula:hover {
  background: #0077ed !important;
}

/* ---------- Hero institucional ---------- */
.banner-escolar {
  background-image: url("IMAGEM/infantil/painel-prin.jpeg");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--navy);
  min-height: 100svh;
  padding: calc(var(--header) + 48px) 22px 64px calc(22px + env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  position: relative;
  margin-bottom: 0;
}

.banner-escolar::before {
  display: none;
}

.containerescolar {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  margin: 0;
  margin-right: auto;
  transform: translateY(-30px);
}

.banner-texto {
  max-width: 640px;
  text-align: left;
}

.selo-matriculas {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  padding: 12px 22px 12px 16px;
  border-radius: 980px;
  margin-bottom: 22px;
}

.icone-selo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.texto-selo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.linha1 {
  font-size: 20px;
  font-weight: 700;
}

.linha2 {
  font-size: 15px;
  color: #ffd60a;
  font-weight: 600;
}

.banner-escolar h3 {
  font-size: clamp(22px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  border: none;
  padding: 0;
  color: #fff;
}

.banner-escolar p {
  font-size: clamp(17px, 2.4vw, 21px);
  color: rgba(255, 255, 255, 0.86);
  max-width: 520px;
  font-weight: 400;
}

.beneficios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 28px;
}

.beneficio-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.beneficio-item p {
  margin: 0;
  font-size: 15px;
  color: #fff;
}

.icone-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icone-check::before {
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 160px;
  padding: 0 20px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s, background 0.2s;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-vaga {
  background: var(--blue);
  color: #fff;
}

.btn-main {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-saiba {
  background: #fff;
  color: var(--accent);
}

.numeros {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  margin-top: 48px;
  width: max-content;
  max-width: 100%;
}

.banner-escolar .numeros {
  padding-bottom: 20px;
}

.numeros div {
  padding: 0 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  min-width: 0;
}

.numeros div:first-child {
  padding-left: 0;
}

.numeros div:last-child {
  padding-right: 0;
  border-right: none;
}

.numeros strong {
  display: block;
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.numeros span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: -0.01em;
  text-transform: none;
  white-space: nowrap;
}

.numeros strong span {
  font-size: inherit;
  margin-left: 0;
}

/* ---------- Showcase slider ---------- */
.baner {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0;
  background: #fff;
}

.baner::before,
.baner::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 160px;
  z-index: 2;
  pointer-events: none;
}

.baner::before {
  top: 0;
  background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0.75) 28%, rgba(255, 255, 255, 0) 100%);
}

.baner::after {
  bottom: 0;
  background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0.75) 28%, rgba(255, 255, 255, 0) 100%);
}

.slider,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.4s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
  padding: 0 22px;
}

.baner h1 {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.baner p {
  font-size: clamp(17px, 2.5vw, 22px);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 28px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
}

.btn-hero:hover {
  background: #0077ed;
}

/* ---------- Galeria ---------- */
.galeria {
  background: var(--bg);
  overflow: hidden;
}

.container-galeria,
.titulo-galeria {
  max-width: var(--max);
  margin: 0 auto 40px;
  text-align: center;
}

.secao-topo {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.secao-titulo,
.titulo-sobre-principal,
.depoimentos h2,
.projetos h2,
.nivel_ensino h2 {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1.08;
}

.secao-titulo span {
  color: #ffb347;
}

.decoracao,
.linha,
.linha-sobre {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.secao-subtitulo {
  font-size: 19px;
  color: var(--muted);
  margin-top: 16px;
}

.galeria-slider {
  overflow: hidden;
  margin: 0 -22px;
}

.galeria-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollGaleria 90s linear infinite;
  -webkit-animation: scrollGaleria 90s linear infinite;
  padding: 8px 22px;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .galeria-track:hover {
    animation-play-state: paused;
  }
}

.galeria-card {
  width: min(72vw, 280px);
  height: min(72vw, 280px);
  flex-shrink: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.galeria-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.galeria-card:hover img {
  transform: scale(1.06);
}

@keyframes scrollGaleria {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.redes-confira {
  display: block;
  text-align: center;
  margin-top: 36px;
  font-size: 17px;
  color: var(--muted);
}

.redes-sociais {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.rede {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 980px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.icon {
  width: 18px;
  height: 18px;
}

.rede svg {
  width: 100%;
  height: 100%;
}

.instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}
.facebook { background: #1877f2; }
.youtube { background: #ff2d20; }

.galeria-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  justify-content: center;
  align-items: center;
  z-index: 12000;
  padding: 24px;
  cursor: zoom-out;
}

.galeria-modal.ativo {
  display: flex;
}

.galeria-modal img {
  max-width: 92%;
  max-height: 88%;
  border-radius: 16px;
}

/* ---------- Depoimentos ---------- */
.depoimentos {
  background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 55%, #f5f5f7 100%);
  text-align: center;
}

.depoimentos h2 {
  margin-bottom: 40px;
}

.depoimentos h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 16px auto 0;
}

.depoimentos-wrapper {
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 4px 16px;
}

.depoimentos-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.depoimentos-page {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card-depoimento {
  background: #fff;
  padding: 22px 20px 18px;
  border-radius: 22px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  border: 1px solid rgba(6, 42, 94, 0.06);
  box-shadow: 0 10px 30px rgba(6, 42, 94, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-depoimento:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(6, 42, 94, 0.14);
}

.quote {
  order: 2;
  width: 26px;
  height: 26px;
  fill: var(--accent);
  margin: 0 0 8px;
  opacity: 0.9;
}

.depo-estrelas {
  order: 1;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 2px;
  margin: 0 0 10px;
}

.card-depoimento p {
  order: 3;
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}

.card-depoimento p::after {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin: 8px 0 0 auto;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7H3v6h6V7H5c0-2 1-3 3-3V2C5 2 3 4 3 7v6h6V7zm14 0h-4v6h6V7h-4c0-2 1-3 3-3V2c-3 0-5 2-5 5v6h6V7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7H3v6h6V7H5c0-2 1-3 3-3V2C5 2 3 4 3 7v6h6V7zm14 0h-4v6h6V7h-4c0-2 1-3 3-3V2c-3 0-5 2-5 5v6h6V7z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform: rotate(180deg);
}

.depo-rodape {
  order: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(6, 42, 94, 0.08);
}

.depo-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.depo-avatar.av-2 {
  background: var(--accent);
}

.card-depoimento h4 {
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}

.depo-rodape span:last-child {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

/* ---------- Projetos ---------- */
.projetos {
  background: var(--bg);
  text-align: center;
}

.botoes-projeto {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: var(--max);
  margin: 36px auto 0;
}

.btn-projeto {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  background: #fff;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  box-shadow: 0 1px 0 var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-projeto:hover,
.btn-projeto.ativo {
  transform: scale(1.01);
  box-shadow: var(--shadow);
}

.icone-projeto {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.cards {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  padding: 24px;
  transition: opacity 0.25s;
}

.cards.ativo {
  opacity: 1;
  pointer-events: auto;
}

.card {
  display: none;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-content {
  padding: 22px;
}

.card span {
  font-size: 13px;
  color: var(--muted);
}

.card h3 {
  margin: 10px 0;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.card p {
  font-size: 15px;
  color: var(--muted);
}

.btn-cardp,
.btn-sobre,
.btn-carinf {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Sobre ---------- */
.sobre {
  background: #fff;
}

.titulo-sobre {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.texto-sobre {
  margin-top: 24px;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--muted);
  text-align: left;
  text-indent: 0;
}

.gridsobre,
.grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card1,
.card2,
.card3,
.card4 {
  background: var(--bg);
  padding: 28px 24px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
}

.card1 h3,
.card2 h3,
.card3 h3,
.card4 h3 {
  font-size: 21px;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.card1 p,
.card2 p,
.card3 p,
.card4 p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.card2 i {
  color: var(--accent);
  margin-right: 6px;
}

/* ---------- Níveis ---------- */
.nivel_ensino h2 {
  text-align: center;
  margin-bottom: 36px;
}

.nivel_ensino h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 16px auto 0;
}

.cardinf {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 var(--line);
}

.cardinf img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cardinf .conteudo {
  padding: 20px 20px 8px;
  flex-grow: 1;
}

.cardinf h3 {
  font-size: 21px;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.cardinf p {
  font-size: 14px;
  color: var(--muted);
  text-align: left;
}

.btn-carinf,
.btn-sobre {
  align-self: flex-start;
  margin: 8px 20px 20px;
}

/* ---------- Banner matrícula ---------- */
.banner-matricula {
  display: flex;
  align-items: center;
  background-color: #062A5E;
  min-height: 520px;
  padding: 80px 22px 100px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.banner-matricula-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  pointer-events: none;
}

.banner-matricula::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.06) 42%, transparent 70%);
  pointer-events: none;
}

.banner-matricula .conteudo {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-left: clamp(0px, 4vw, 80px);
}

.banner-matricula h1 {
  font-size: clamp(22px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  white-space: nowrap;
}

.banner-matricula p {
  font-size: clamp(17px, 2.3vw, 21px);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #e86e00;
  color: #fff;
}

.wave-menu {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
}

.wave-menu svg {
  width: 100%;
  height: 64px;
  display: block;
}

/* ---------- Contato / rodapé ---------- */
.contato {
  background: #f5f5f7;
  color: var(--text);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.contato h3 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.contato p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-top: 8px;
}

.contato i {
  margin-right: 8px;
  color: var(--navy);
}

.mapa {
  max-width: var(--max);
  margin: 40px auto 0;
  border-radius: 18px;
  overflow: hidden;
}

.mapa iframe {
  width: 100%;
  height: 240px;
  border: 0;
}

.rodape {
  background: #f5f5f7;
  color: var(--navy);
  padding: 24px 22px 40px;
  font-size: 12px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  background: #25d366;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow);
  z-index: 8000;
  text-decoration: none;
}

/* ---------- Modais ---------- */
.popup,
.modal-horario {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  z-index: 13000;
  padding: 20px;
}

.popup.ativo,
.modal-horario.ativo {
  display: flex;
}

.form-box {
  position: relative;
  background: #fff;
  padding: 32px 24px;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.modal-horario .modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #f5f5f7;
  padding: 18px 16px 22px;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  color: var(--text);
}

.modal-kicker {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 4px 8px 0;
}

.popup h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  text-align: center;
  margin-bottom: 6px;
  color: var(--accent);
}

.titulo-modal {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: left;
  margin: 2px 8px 18px;
  color: var(--navy);
}

.sub {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.form-box label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.form-box input,
.form-box select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}

#campo-acessibilidade {
  display: none;
}

.form-box button {
  width: 100%;
  margin-top: 20px;
  min-height: 48px;
  background: var(--blue);
  border: none;
  border-radius: 980px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.fechar,
.fecha {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  font-family: inherit;
  line-height: 1;
}

.fecha:hover {
  background: rgba(0, 0, 0, 0.14);
}

#mensagem-sucesso,
#mensagem-erro {
  display: none;
  text-align: center;
  margin-top: 12px;
  font-weight: 500;
  font-size: 14px;
}

#mensagem-sucesso { color: #248a3d; }
#mensagem-erro { color: #d70015; }

.horarios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}

.horario-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 14px;
  text-align: left;
}

.horario-topo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.horario-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.horario-card p {
  font-size: 15px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin: 0;
}

.horario-card p span {
  color: var(--muted);
  font-weight: 400;
}

.horario-nota {
  display: block !important;
  justify-content: flex-start !important;
  font-size: 13px !important;
  color: var(--muted) !important;
  border-top: none !important;
  padding-top: 8px !important;
  padding-bottom: 4px !important;
}

.icone {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}

.icone i {
  font-size: 16px;
  color: #fff;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .depoimentos-page,
  .botoes-projeto,
  .gridsobre,
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--navy);
  }

  .titulo span {
    display: none;
  }

  .logo-area {
    flex: 1;
    min-width: 0;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .menu {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100dvh - var(--header));
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 22px calc(28px + env(safe-area-inset-bottom));
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9100;
  }

  .menu.active {
    transform: translateX(0);
    pointer-events: auto;
  }

  .menu a {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.03em;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    white-space: normal;
    color: #f5f5f7;
  }

  .menu a .nav-icon {
    display: inline-flex;
    width: 22px;
    font-size: 16px;
    margin-right: 12px;
    color: var(--accent);
    opacity: 1;
  }

  .btn-matricula {
    margin-top: 24px;
    justify-content: center;
    text-align: center;
    border-radius: 980px !important;
    border-bottom: none !important;
    font-size: 17px !important;
    min-height: 48px;
    padding: 12px 18px !important;
  }
}

@media (max-width: 768px) {
  section {
    padding: 56px 18px;
  }

  .banner-escolar {
    min-height: auto;
    padding: calc(var(--header) + 56px) 18px 142px;
    background-position: left center;
    background-size: cover;
    margin-bottom: 0;
    justify-content: center;
  }

  .banner-escolar .containerescolar,
  .banner-escolar .banner-texto {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .banner-escolar .containerescolar {
    transform: none;
  }

  .banner-escolar .selo-matriculas {
    margin-left: auto;
    margin-right: auto;
  }

  .banner-escolar h3,
  .banner-escolar p {
    text-align: center;
  }

  .banner-escolar .beneficios {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .banner-escolar .beneficio-item {
    justify-content: center;
  }

  .banner-escolar .botoes {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    width: 100%;
  }

  .banner-escolar .btn,
  .banner-escolar .painelaluno {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  .banner-escolar .painelaluno {
    display: flex;
  }

  .banner-escolar .btn,
  .banner-escolar .painelaluno .btn {
    min-height: 32px;
    padding: 0 4px;
    font-size: 8.5px;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
  }

  .banner-escolar .numeros {
    width: 100%;
    margin-top: 14px;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
  }

  .banner-escolar .numeros div {
    padding: 0 12px;
    text-align: center;
  }

  .numeros div {
    padding: 0 16px;
  }

  .numeros strong {
    font-size: 28px;
  }

  .numeros span {
    font-size: 11px;
  }

  .baner {
    min-height: 72svh;
  }

  .galeria-card {
    width: 140px;
    height: 140px;
  }

  .galeria-track {
    animation-duration: 90s;
    -webkit-animation-duration: 90s;
    animation-play-state: running;
    -webkit-animation-play-state: running;
  }

  .depoimentos-page {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .card-depoimento {
    min-height: 0;
    padding: 12px 12px 10px;
    border-radius: 14px;
  }

  .quote {
    width: 18px;
    height: 18px;
    margin: 0 0 4px;
  }

  .depo-estrelas {
    font-size: 9px;
    letter-spacing: 1px;
    margin: 0 0 6px;
  }

  .card-depoimento p {
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 8px;
  }

  .card-depoimento p::after {
    width: 18px;
    height: 18px;
    margin-top: 4px;
  }

  .depo-rodape {
    padding-top: 8px;
    gap: 8px;
  }

  .depo-avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .card-depoimento h4 {
    font-size: 12px;
  }

  .depo-rodape span:last-child {
    font-size: 10px;
  }

  .gridsobre,
  .grid,
  .botoes-projeto {
    gap: 10px;
  }

  .card1,
  .card2,
  .card3,
  .card4 {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .card1 h3,
  .card2 h3,
  .card3 h3,
  .card4 h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .card1 p,
  .card2 p,
  .card3 p,
  .card4 p {
    font-size: 12px;
    line-height: 1.4;
  }

  .cardinf {
    border-radius: 14px;
  }

  .cardinf img {
    height: 100px;
  }

  .cardinf .conteudo {
    padding: 10px 10px 4px;
  }

  .cardinf h3 {
    font-size: 15px;
  }

  .cardinf p {
    font-size: 12px;
  }

  .btn-carinf,
  .btn-sobre {
    font-size: 12px;
    padding: 6px 12px;
    margin: 6px 10px 12px;
  }

  .btn-projeto {
    min-height: 46px;
    padding: 8px 10px;
    font-size: 12px;
    gap: 8px;
    border-radius: 12px;
  }

  .icone-projeto {
    min-width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .card {
    max-width: 92%;
    border-radius: 16px;
  }

  .card-content {
    padding: 14px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 13px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .banner-matricula {
    min-height: 420px;
    background-color: #062A5E;
    padding: 64px 18px 88px;
  }

  .banner-matricula-img {
    object-position: left center;
  }

  .banner-matricula .conteudo {
    padding-left: 0;
    width: 100%;
    max-width: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .banner-matricula h1 {
    font-size: clamp(28px, 8vw, 40px);
    white-space: normal;
    line-height: 1.15;
  }

  .banner-matricula p {
    font-size: 16px;
    max-width: 34ch;
  }

  .banner-matricula .btn-whatsapp {
    min-height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }

  .horarios-grid {
    grid-template-columns: 1fr;
  }

  .horario-card {
    padding: 12px;
    border-radius: 12px;
  }

  .horario-card h3 {
    font-size: 14px;
  }

  .horario-card p {
    font-size: 13px;
    padding: 6px 0;
  }

  .texto-sobre {
    text-align: left;
  }
}

@media (max-width: 480px) {
  :root {
    --header: 48px;
  }

  .titulo {
    font-size: 12px;
    max-width: 160px;
  }

  .linha1 {
    font-size: 16px;
  }

  .depoimentos-page,
  .botoes-projeto,
  .gridsobre,
  .grid {
    grid-template-columns: 1fr;
  }

  .rede {
    flex: 1 1 100%;
    justify-content: center;
  }

  .mapa iframe {
    height: 200px;
  }

  .rodape {
    font-size: 11px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    right: 14px;
  }
}

@media (max-width: 360px) {
  .titulo {
    max-width: 130px;
  }

  .banner-escolar h3 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner {
    animation: none !important;
  }
}
