/* =====================================================
   DESIGN SYSTEM — Colégio Ágape
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* --- Variáveis CSS --- */
:root {
  --roxo:       #403383;
  --roxo-dark:  #2e2460;
  --roxo-light: #6055b5;
  --rosa:       #e0346d;
  --rosa-dark:  #c0275a;
  --amarelo:    #ffd83c;
  --verde:      #31c183;
  --verde-dark: #27a06d;
  --branco:     #ffffff;
  --fundo:      #f7f8fc;
  --fundo-2:    #eef0f8;
  --texto:      #1a1a2e;
  --texto-muted:#6b7280;
  --borda:      #e5e7eb;
  --sombra-sm:  0 2px 8px rgba(64,51,131,.10);
  --sombra-md:  0 8px 32px rgba(64,51,131,.13);
  --sombra-lg:  0 20px 60px rgba(64,51,131,.18);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --trans:      all .3s cubic-bezier(.4,0,.2,1);
  --font:       'Outfit', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--fundo); color: var(--texto); line-height: 1.6; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--roxo); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--rosa); }
ul   { list-style: none; }

/* --- Tipografia --- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--texto); }
h1 { font-size: clamp(2rem,5vw,3.2rem); }
h2 { font-size: clamp(1.5rem,3.5vw,2.4rem); }
h3 { font-size: clamp(1.2rem,2.5vw,1.8rem); }
h4 { font-size: 1.2rem; }
p  { color: var(--texto-muted); margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-roxo   { color: var(--roxo); }
.text-rosa   { color: var(--rosa); }

/* --- Container --- */
.container { max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
.container-sm { max-width: 800px; margin-inline: auto; padding-inline: 1.5rem; }

/* --- Seções --- */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { max-width: 600px; margin-inline: auto; font-size: 1.05rem; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--roxo), var(--rosa));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-bg { background: var(--fundo-2); }
.section-dark { background: var(--texto); }
.section-dark h2, .section-dark h3, .section-dark p { color: #fff; }

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--trans);
  white-space: nowrap;
}
.btn-primary {
  background: var(--roxo);
  color: #fff;
  box-shadow: 0 4px 15px rgba(64,51,131,.35);
}
.btn-primary:hover { background: var(--roxo-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(64,51,131,.4); }
.btn-rosa {
  background: var(--rosa);
  color: #fff;
  box-shadow: 0 4px 15px rgba(224,52,109,.3);
}
.btn-rosa:hover { background: var(--rosa-dark); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--roxo);
  border-color: var(--roxo);
}
.btn-outline:hover { background: var(--roxo); color: #fff; transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }

/* --- Cards --- */
.card {
  background: var(--branco);
  border-radius: var(--radius-md);
  box-shadow: var(--sombra-sm);
  overflow: hidden;
  transition: var(--trans);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sombra-md); }
.card-body  { padding: 1.8rem; }
.card-img   { width: 100%; height: 220px; object-fit: cover; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--borda);
  padding: 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--roxo);
  flex-shrink: 0;
}
.navbar-logo img { height: 40px; width: auto; }
.navbar-logo span { color: var(--rosa); }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
}
.navbar-nav a {
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .88rem;
  color: var(--texto);
  position: relative;
  white-space: nowrap;
}
.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--rosa);
  transition: var(--trans);
  border-radius: 2px;
}
.navbar-nav a:hover, .navbar-nav a.ativo { color: var(--roxo); }
.navbar-nav a:hover::after, .navbar-nav a.ativo::after { width: 65%; }
.navbar-cta { margin-left: .75rem; }

/* Hambúrguer */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .45rem;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: var(--trans);
}
.navbar-toggle:hover { background: var(--fundo-2); }
.navbar-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--texto);
  border-radius: 2px;
  transition: var(--trans);
  transform-origin: center;
}
/* Animação X ao abrir */
.navbar-toggle.aberto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.aberto span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggle.aberto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero {
  position: relative;
  height: clamp(340px, 65vw, 620px);
  overflow: hidden;
  background: var(--roxo);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-slide.ativo { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: transparent;
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: absolute; inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
}
.hero-content .container { width: 100%; }
.hero-text {
  max-width: 620px;
  padding: 0 .5rem;
}
.hero-text h1 { color: #fff; margin-bottom: 1.2rem; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-text p  { color: rgba(255,255,255,.88); font-size: 1.15rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-indicators {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: .6rem;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: var(--trans);
  border: none;
}
.hero-dot.ativo { background: var(--amarelo); width: 28px; border-radius: 5px; }
.hero-arrow {
  position: absolute;
  top: 50%; z-index: 4;
  transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
  line-height: 1;
}
.hero-arrow:hover { background: var(--rosa); border-color: var(--rosa); }
.hero-arrow.prev { left: 1.5rem; }
.hero-arrow.next { right: 1.5rem; }

/* =====================================================
   DIFERENCIAIS / FEATURES
   ===================================================== */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem;
}
.diferencial-card {
  background: var(--branco);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--sombra-sm);
  border-top: 4px solid transparent;
  transition: var(--trans);
}
.diferencial-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-md); border-top-color: var(--rosa); }
.diferencial-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
}
.icon-roxo  { background: rgba(64,51,131,.12); color: var(--roxo); }
.icon-rosa  { background: rgba(224,52,109,.12); color: var(--rosa); }
.icon-verde { background: rgba(49,193,131,.12); color: var(--verde); }
.icon-am    { background: rgba(255,216,60,.15);  color: #c8a800; }
.diferencial-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }

/* =====================================================
   NOTÍCIAS CARDS
   ===================================================== */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}
.noticia-card { border-radius: var(--radius-md); overflow: hidden; background: var(--branco); box-shadow: var(--sombra-sm); transition: var(--trans); }
.noticia-card:hover { transform: translateY(-5px); box-shadow: var(--sombra-md); }
.noticia-card img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s; }
.noticia-card:hover img { transform: scale(1.05); }
.noticia-card-body { padding: 1.5rem; }
.noticia-meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--texto-muted); margin-bottom: .6rem; }
.noticia-tipo {
  display: inline-block;
  padding: .15rem .65rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
}
.tipo-noticia { background: rgba(64,51,131,.12); color: var(--roxo); }
.tipo-evento  { background: rgba(224,52,109,.12); color: var(--rosa); }
.tipo-instagram { background: rgba(224,52,109,.12); color: var(--rosa); }
.noticia-card h3 { font-size: 1.05rem; margin-bottom: .5rem; line-height: 1.4; }
.noticia-card h3 a { color: var(--texto); }
.noticia-card h3 a:hover { color: var(--roxo); }
.leia-mais { font-size: .85rem; font-weight: 700; color: var(--rosa); display: inline-flex; align-items: center; gap: .3rem; }
.leia-mais::after { content: '→'; transition: transform .2s; }
.leia-mais:hover::after { transform: translateX(4px); }
.instagram-home { margin-top: 3rem; }
.instagram-home-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.instagram-home-top h3 { font-size: 1.25rem; }
.instagram-home-top a { font-weight: 700; color: var(--rosa); }
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.instagram-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--branco);
  box-shadow: var(--sombra-sm);
  transition: var(--trans);
}
.instagram-card:hover { transform: translateY(-5px); box-shadow: var(--sombra-md); }
.instagram-card > a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--fundo-2);
}
.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.instagram-card:hover img { transform: scale(1.05); }
.instagram-card-body { padding: 1rem; }
.instagram-card-body p {
  margin: .7rem 0 0;
  font-size: .9rem;
  line-height: 1.45;
}
.instagram-media-badge {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.instagram-home-empty { text-align: center; }

/* =====================================================
   GALERIA / LIGHTBOX
   ===================================================== */
.galeria-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.filtro-btn {
  padding: .45rem 1.2rem;
  border-radius: 50px;
  border: 2px solid var(--borda);
  background: var(--branco);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  color: var(--texto-muted);
}
.filtro-btn:hover, .filtro-btn.ativo {
  background: var(--roxo);
  border-color: var(--roxo);
  color: #fff;
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.galeria-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galeria-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(64,51,131,.8), rgba(224,52,109,.7));
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--trans);
}
.galeria-item:hover img { transform: scale(1.08); }
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-overlay-icon { color: #fff; font-size: 2rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,26,.96);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.aberto { display: flex; }
.lightbox-content { position: relative; max-width: 1000px; width: 100%; }
.lightbox-content img {
  width: 100%;
  border-radius: var(--radius-md);
  max-height: 80vh;
  object-fit: contain;
}
.lightbox-fechar {
  position: absolute;
  top: -50px; right: 0;
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer;
  transition: var(--trans);
}
.lightbox-fechar:hover { color: var(--rosa); transform: scale(1.2); }
.lightbox-titulo {
  color: rgba(255,255,255,.8);
  text-align: center;
  margin-top: 1rem;
  font-size: .95rem;
}
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.lightbox-nav:hover { background: var(--rosa); }
.lightbox-nav.prev { left: -3.5rem; }
.lightbox-nav.next { right: -3.5rem; }

/* =====================================================
   CTA MATRÍCULA
   ===================================================== */
.cta-matricula {
  background: linear-gradient(135deg, var(--roxo) 0%, var(--rosa) 100%);
  padding: 5rem 0;
  text-align: center;
}
.cta-matricula h2 { color: #fff; margin-bottom: 1rem; }
.cta-matricula p  { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 600px; margin-inline: auto; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--texto);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.footer-logo span { color: var(--rosa); }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1.2rem; }
.footer ul li { margin-bottom: .5rem; }
.footer ul li a { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer ul li a:hover { color: var(--amarelo); }
.footer-contato p { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; margin-bottom: .6rem; }
.footer-redes { display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer-rede {
  width: 36px; height: 36px;
  min-width: 36px; max-width: 36px;
  min-height: 36px; max-height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .95rem;
  transition: var(--trans);
  padding: 0;
  flex: 0 0 36px;
}
.footer-rede svg {
  width: 16px !important;
  height: 16px !important;
  display: block;
  flex: 0 0 16px;
}
.footer-rede:hover { background: var(--rosa); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: var(--amarelo); }

/* =====================================================
   PAGE HERO (páginas internas)
   ===================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--roxo) 0%, var(--rosa) 100%);
  padding: 4rem 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  margin-top: .5rem;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--amarelo); }
.breadcrumb-sep { opacity: .5; }

/* =====================================================
   SOBRE — Preview Grid Responsivo
   ===================================================== */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.sobre-grid .sobre-img {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(64,51,131,.2);
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(64,51,131,.92), rgba(224,52,109,.88)),
    var(--fundo-2);
}
.sobre-grid .sobre-img img,
.sobre-grid .sobre-img video {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.sobre-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.sobre-stat {
  text-align: center;
}
.sobre-stat strong {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}
.sobre-stat span {
  font-size: .85rem;
  color: var(--texto-muted);
}
@media (max-width: 860px) {
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .sobre-grid .sobre-img { min-height: 280px; }
  .sobre-grid .sobre-img img,
  .sobre-grid .sobre-img video { height: 280px; }
  .sobre-stats { justify-content: center; gap: 2.5rem; }
}

/* =====================================================
   BOTÃO WHATSAPP FLUTUANTE
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  width: 58px;
  height: 58px;
  min-width: 58px;
  max-width: 58px;
  min-height: 58px;
  max-height: 58px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  text-decoration: none;
  transition: var(--trans);
  overflow: hidden;
  animation: wfloat-in .6s cubic-bezier(.4,0,.2,1) both;
}
.whatsapp-float:hover {
  background: #1db954;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
}
.whatsapp-float svg {
  flex-shrink: 0;
  width: 28px !important; height: 28px !important;
  max-width: 28px !important; max-height: 28px !important;
  display: block;
}
.whatsapp-float-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@keyframes wfloat-in {
  from { opacity: 0; transform: translateY(20px) scale(.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 54px;
    height: 54px;
    min-width: 54px;
    max-width: 54px;
    min-height: 54px;
    max-height: 54px;
  }
  .whatsapp-float svg { width: 26px !important; height: 26px !important; }
}

/* =====================================================
   FORMULÁRIO DE CONTATO
   ===================================================== */
.form-group { margin-bottom: 1.4rem; }
.form-label { display: block; font-weight: 600; font-size: .9rem; color: var(--texto); margin-bottom: .4rem; }
.form-control {
  width: 100%;
  padding: .8rem 1rem;
  border: 2px solid var(--borda);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--texto);
  background: var(--branco);
  outline: none;
  transition: var(--trans);
}
.form-control:focus { border-color: var(--roxo); box-shadow: 0 0 0 4px rgba(64,51,131,.1); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* =====================================================
   UNIDADES — Layout 3 colunas com foto
   ===================================================== */
.unidades-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}
.unidade-card2 {
  background: var(--branco);
  border: 1px solid rgba(64,51,131,.08);
  border-top: 4px solid var(--roxo);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.unidade-card2:nth-child(2) { border-top-color: var(--rosa); }
.unidade-card2:hover { transform: translateY(-7px); box-shadow: var(--sombra-lg); }
.unidade-obra { border-top-color: var(--amarelo); }
.unidade-obra:hover { transform: translateY(-3px); }

/* Foto da unidade */
.unidade-foto {
  position: relative;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
}
.unidade-foto-roxo { background: linear-gradient(135deg, var(--roxo), var(--roxo-light)); }
.unidade-foto-rosa { background: linear-gradient(135deg, var(--rosa), #f06292); }
.unidade-foto-neutra { background: linear-gradient(135deg, var(--texto), #5a5a8a); }
.unidade-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.unidade-card2:hover .unidade-foto img { transform: scale(1.06); }
.unidade-foto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.unidade-foto-overlay-obra { background: rgba(10,10,26,.6); }
.unidade-num2 {
  position: absolute;
  bottom: .8rem;
  left: 1rem;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,.18);
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}
.unidade-badge2 {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.unidade-badge2.ativo     { background: rgba(49,193,131,.3);  color: #d4fae9; border: 1px solid rgba(49,193,131,.5); }
.unidade-badge2.em-breve  { background: rgba(255,216,60,.25); color: #ffd83c; border: 1px solid rgba(255,216,60,.5); }

/* Corpo do card */
.unidade-body2 {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #fff;
}
.unidade-body2 h3 {
  font-size: 1.2rem;
  color: var(--texto);
  margin-bottom: 1rem;
}
.unidade-info2 {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex: 1;
  margin-bottom: 0;
}
.unidade-info2 li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .88rem;
  color: var(--texto-muted);
  line-height: 1.4;
}
.unidade-info2 .material-symbols-outlined {
  font-size: 1.05rem;
  color: var(--roxo);
  flex-shrink: 0;
  margin-top: .1rem;
}
.unidade-btn {
  margin-top: 1.2rem;
  width: 100%;
  justify-content: center;
}

/* Barra de progresso da obra */
.unidade-obra-aviso {
  margin-top: 1.2rem;
}
.unidade-obra-aviso span {
  display: block;
  font-size: .8rem;
  color: var(--texto-muted);
  margin-bottom: .4rem;
  font-weight: 600;
}
.unidade-obra-barra {
  height: 8px;
  background: var(--fundo-2);
  border-radius: 50px;
  overflow: hidden;
}
.unidade-obra-progresso {
  height: 100%;
  background: linear-gradient(90deg, #ffd83c, #f59e0b);
  border-radius: 50px;
  animation: progresso 1.5s ease forwards;
}
@keyframes progresso {
  from { width: 0% }
}

/* Responsivo */
@media (max-width: 900px) {
  .unidades-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .unidades-row { grid-template-columns: 1fr; }
}


.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visivel { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }

/* =====================================================
   RESPONSIVO GLOBAL
   ===================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Navbar mobile */
  .navbar-inner { height: 64px; }
  .navbar-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #ffffff;
    padding: .5rem 1.2rem 1.4rem;
    border-bottom: 2px solid var(--borda);
    gap: 0;
    z-index: 9998;
    box-shadow: 0 8px 30px rgba(64,51,131,.18);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .navbar-nav.aberto { display: flex; }
  .navbar-nav a {
    padding: .8rem .5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--fundo-2);
    font-size: .95rem;
    width: 100%;
  }
  .navbar-nav a:last-child { border-bottom: none; }
  .navbar-nav a::after { display: none; }
  /* CTA Matrículas aparece no menu mobile */
  .navbar-cta {
    margin-left: 0 !important;
    margin-top: .8rem;
    width: 100%;
    justify-content: center;
    display: inline-flex !important;
  }
  .navbar-toggle { display: flex; }

  /* Hero */
  .hero-arrow { display: none; }
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .hero-slide img {
    object-fit: contain;
    background: var(--roxo);
  }
  .hero-content {
    pointer-events: none;
  }
  .hero-text p { font-size: .98rem; }
  .hero-text h1 { margin-bottom: .9rem; }

  /* Formulário */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }

  /* Lightbox */
  .lightbox-nav { display: none; }

  /* Section header */
  .section-header { margin-bottom: 2.5rem; }
  .instagram-grid { grid-template-columns: 1fr; }
  .instagram-home-top { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .container { padding-inline: 1.1rem; }

  /* Hero */
  .hero {
    aspect-ratio: 16 / 9;
    max-height: none;
  }
  .hero-text h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .hero-text p  { font-size: .92rem; }
  .hero-indicators { bottom: 1rem; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }

  /* Unidades */
  .unidade-foto { height: 180px; }

  /* Section tag menor */
  .section-tag { font-size: .72rem; }
}

@media (max-width: 420px) {
  .section { padding: 2.8rem 0; }
  .hero { aspect-ratio: 16 / 9; }
  .hero-text h1 { font-size: 1.45rem; }
  .navbar-logo { font-size: 1.1rem; }
  .navbar-logo img { height: 34px; }
  .footer-grid { gap: 1.8rem; }
}
