:root {
  --purple: #3B0A63;
  --purple-light: #5a1296;
  --teal: #0FA3B1;
  --teal-light: #14c5d6;
  --white: #ffffff;
  --off-white: #f8f7fc;
  --gray: #e8e4f0;
  --gray-mid: #9b93ab;
  --dark: #1a0a2e;
  --text: #2d1f42;
}
 
* { margin: 0; padding: 0; box-sizing: border-box; }
 
html { scroll-behavior: smooth; }
 
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
 
/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59,10,99,0.08);
  transition: all 0.3s ease;
}
nav.scrolled {
  box-shadow: 0 4px 30px rgba(59,10,99,0.12);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 120px; height: 44px;
  background: white;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 2px 6px;
  border: 1px solid rgba(59,10,99,0.1);
}
.logo-icon img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 4px;
}
.logo-icon-fallback {
  font-size: 20px;
  position: absolute;
}
.logo-text { line-height: 1.1; }
.logo-text .brand { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--purple); }
.logo-text .sub { font-size: 0.62rem; color: var(--teal); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
 
.nav-links {
  display: flex; gap: 0; list-style: none; align-items: center;
}
.nav-links a {
  display: block; padding: 0.5rem 0.85rem;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--text); text-decoration: none;
  position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; left: 0.85rem; right: 0.85rem; height: 2px;
  background: var(--teal); transform: scaleX(0); transition: transform 0.25s;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--purple); color: white !important;
  border-radius: 8px; padding: 0.5rem 1.2rem !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--purple-light); color: white !important; }
 
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--purple); border-radius: 2px; transition: all 0.3s;
}
 
/* HERO */
#inicio {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--purple) 50%, #1a4a6b 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg-shape {
  position: absolute; border-radius: 50%;
  background: rgba(15,163,177,0.12);
  animation: floatShape 8s ease-in-out infinite;
}
.hero-bg-shape:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-bg-shape:nth-child(2) { width: 300px; height: 300px; bottom: -50px; left: 10%; animation-delay: 3s; }
.hero-bg-shape:nth-child(3) { width: 150px; height: 150px; top: 30%; right: 20%; animation-delay: 5s; background: rgba(255,255,255,0.05); }
@keyframes floatShape {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem; padding-top: 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-text { animation: fadeUp 0.9s ease both; }
.hero-badge {
  display: inline-block;
  background: rgba(15,163,177,0.2); border: 1px solid rgba(15,163,177,0.4);
  color: var(--teal-light); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900; color: white; line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-text h1 span { color: var(--teal-light); }
.hero-text p {
  color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.7;
  max-width: 500px; margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--teal); color: white;
  padding: 0.9rem 2rem; border-radius: 10px; border: none;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: all 0.25s; letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,163,177,0.4); }
.btn-outline {
  background: transparent; color: white;
  padding: 0.9rem 2rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: all 0.25s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap;
}
.stat { text-align: left; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: white; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); letter-spacing: 0.05em; text-transform: uppercase; }
 
.hero-visual {
  animation: fadeUp 0.9s ease 0.3s both;
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 16px;
  padding: 1.5rem; width: 100%; max-width: 380px;
}
.hero-card-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 1rem;
}
.hero-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--teal); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.hero-card-info h4 { color: white; font-size: 0.9rem; font-weight: 600; }
.hero-card-info p { color: rgba(255,255,255,0.6); font-size: 0.78rem; }
.hero-card-bar {
  background: rgba(255,255,255,0.1); border-radius: 100px; height: 6px; overflow: hidden;
}
.hero-card-fill {
  height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--teal), var(--teal-light));
  animation: fillBar 2s ease 1s both;
}
@keyframes fillBar { from { width: 0; } }
.hero-card-2 { margin-left: 2rem; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
 
/* SECTIONS COMMON */
section { padding: 5rem 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700;
  color: var(--purple); line-height: 1.15; margin-bottom: 1.25rem;
}
.section-text {
  color: #5a4f72; font-size: 1rem; line-height: 1.8; max-width: 620px;
}
 
/* QUEM SOMOS */
#quem-somos { background: var(--off-white); }
.quem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.quem-img-wrap { position: relative; }
.quem-img-main {
  width: 100%; border-radius: 20px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.quem-img-main img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 20px;
}
.quem-img-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--purple); color: white; border-radius: 14px;
  padding: 1.2rem 1.5rem; text-align: center;
  box-shadow: 0 8px 32px rgba(59,10,99,0.3);
}
.quem-img-badge .big-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; }
.quem-img-badge p { font-size: 0.7rem; opacity: 0.8; letter-spacing: 0.05em; }
.quem-objetivos { margin-top: 2rem; }
.quem-objetivo {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(59,10,99,0.08);
}
.quem-objetivo:last-child { border-bottom: none; }
.objetivo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); margin-top: 6px; flex-shrink: 0;
}
.quem-objetivo p { font-size: 0.9rem; color: #4a3f65; line-height: 1.6; }
 
/* MISSAO VISAO */
#missao-visao {
  background: linear-gradient(135deg, var(--purple) 0%, #1a4a6b 100%);
  position: relative; overflow: hidden;
}
#missao-visao::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.mv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; position: relative; z-index: 1;
}
.mv-card {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 2.5rem;
}
.mv-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.mv-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.6rem;
  color: white; margin-bottom: 1rem;
}
.mv-card p { color: rgba(255,255,255,0.75); line-height: 1.8; font-size: 0.95rem; }
.mv-card ul { color: rgba(255,255,255,0.75); padding-left: 1.2rem; line-height: 2; font-size: 0.95rem; }
 
/* VALORES */
#valores { background: var(--white); }
.valores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.valor-card {
  border-radius: 16px; padding: 2rem;
  border: 1px solid var(--gray);
  transition: all 0.3s; cursor: default;
  position: relative; overflow: hidden;
}
.valor-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  transform: scaleX(0); transition: transform 0.3s;
}
.valor-card:hover { box-shadow: 0 8px 32px rgba(59,10,99,0.1); transform: translateY(-4px); border-color: transparent; }
.valor-card:hover::before { transform: scaleX(1); }
.valor-num {
  font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 900;
  color: var(--gray); line-height: 1; margin-bottom: 0.5rem;
}
.valor-card h4 { font-size: 1rem; font-weight: 600; color: var(--purple); margin-bottom: 0.5rem; }
.valor-card p { font-size: 0.85rem; color: var(--gray-mid); line-height: 1.6; }
 
/* FORMACOES */
#formacoes { background: var(--off-white); }
.formacoes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 3rem; }
.formacao-card {
  background: white; border-radius: 14px; padding: 1.5rem;
  border: 1px solid var(--gray);
  transition: all 0.3s; display: flex; gap: 1rem; align-items: flex-start;
}
.formacao-card:hover { box-shadow: 0 6px 24px rgba(59,10,99,0.1); transform: translateY(-3px); }
.formacao-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.formacao-card h4 { font-size: 0.92rem; font-weight: 600; color: var(--purple); margin-bottom: 0.3rem; }
.formacao-card p { font-size: 0.8rem; color: var(--gray-mid); line-height: 1.5; }
 
/* OCUPACIONAL */
#ocupacional { background: white; }
.ocup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; }
.ocup-card {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--gray);
  transition: all 0.3s; text-align: center;
}
.ocup-card:hover { box-shadow: 0 8px 28px rgba(59,10,99,0.12); transform: translateY(-4px); }
.ocup-top {
  background: linear-gradient(135deg, var(--purple), var(--teal));
  padding: 2rem 1rem; font-size: 2.5rem;
}
.ocup-card h4 { padding: 1rem; font-size: 0.88rem; font-weight: 600; color: var(--purple); }
 
/* CONSULTORIAS */
#consultorias { background: var(--off-white); }
.consul-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.consul-card {
  background: white; border-radius: 16px; padding: 2rem;
  border: 1px solid var(--gray); transition: all 0.3s;
  border-left: 4px solid var(--teal);
}
.consul-card:hover { box-shadow: 0 8px 32px rgba(59,10,99,0.1); transform: translateX(4px); }
.consul-card h4 { font-size: 1rem; font-weight: 700; color: var(--purple); margin-bottom: 0.5rem; }
.consul-card p { font-size: 0.85rem; color: var(--gray-mid); line-height: 1.7; }
 
/* EQUIPA */
#equipa {
  background: linear-gradient(135deg, var(--dark) 0%, var(--purple) 100%);
}
.equipa-hierarquia {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 3.5rem;
  align-items: center;
}
.equipa-grupo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.grupo-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal-light);
  letter-spacing: 0.12em;
  opacity: 0.85;
  background: rgba(15, 163, 177, 0.1);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(15, 163, 177, 0.2);
}
.equipa-nivel {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
/* Hierarquia visual de tamanhos */
.equipa-nivel.nivel-1 .membro-card {
  width: 310px;
  padding: 3rem 2.2rem;
  border-color: rgba(20, 197, 214, 0.25);
  box-shadow: 0 10px 30px rgba(15, 163, 177, 0.1);
}
.equipa-nivel.nivel-1 .membro-avatar {
  width: 105px;
  height: 105px;
  border-width: 4px;
}
.equipa-nivel.nivel-2 .membro-card {
  width: 290px;
}
.equipa-nivel.nivel-3 .membro-card,
.equipa-nivel.nivel-4 .membro-card,
.equipa-nivel.nivel-5 .membro-card {
  width: 275px;
}
.membro-card {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 20px;
  padding: 2.5rem 2rem; text-align: center; width: 280px;
  max-width: 100%;
  transition: all 0.3s;
}
.membro-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.12); }
.membro-avatar {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; border: 3px solid rgba(255,255,255,0.2);
  overflow: hidden;
}
.membro-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.membro-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: white; margin-bottom: 0.3rem; }
.membro-card .role { font-size: 0.82rem; color: var(--teal-light); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

/* SECTION BANNERS (consultorias, projetos) */
.section-banner {
  width: 100%; border-radius: 20px; overflow: hidden;
  height: 220px; position: relative; margin-bottom: 2.5rem;
}
.section-banner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.section-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(59,10,99,0.82) 0%, rgba(15,163,177,0.3) 100%);
  display: flex; align-items: center; padding: 2rem 2.5rem;
}
.section-banner-overlay h3 {
  font-family: 'Playfair Display', serif;
  color: white; font-size: 1.5rem; margin-bottom: 0.4rem;
}
.section-banner-overlay p { color: rgba(255,255,255,0.82); font-size: 0.92rem; max-width: 500px; line-height: 1.6; }

/* OCUPACIONAL cards with photos */
.ocup-card .ocup-top img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ocup-card .ocup-top {
  background: linear-gradient(135deg, var(--purple), var(--teal));
  padding: 0; height: 140px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.ocup-card .ocup-top.has-photo { padding: 0; font-size: 0; }
.formacoes-banner {
  width: 100%; border-radius: 20px; overflow: hidden;
  height: 240px; position: relative; margin-bottom: 2.5rem;
}
.formacoes-banner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.formacoes-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(59,10,99,0.8) 0%, rgba(15,163,177,0.35) 100%);
  display: flex; align-items: center; padding: 2rem 2.5rem;
}
.formacoes-banner-text h3 {
  font-family: 'Playfair Display', serif;
  color: white; font-size: 1.6rem; margin-bottom: 0.5rem;
}
.formacoes-banner-text p { color: rgba(255,255,255,0.82); font-size: 0.95rem; max-width: 520px; line-height: 1.6; }
 
/* TIMELINE */
#projetos { background: var(--off-white); overflow: hidden; }
.timeline { margin-top: 3rem; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 22px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--teal));
}
.timeline-scroll { overflow-x: auto; padding-bottom: 1rem; }
.timeline-items { display: flex; gap: 0; min-width: max-content; }
.timeline-item {
  width: 240px; padding: 0 1rem; position: relative; padding-top: 3.5rem;
}
.timeline-dot {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--purple); border: 3px solid white;
  box-shadow: 0 0 0 3px var(--teal);
  z-index: 1;
}
.timeline-date {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--teal);
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.timeline-card {
  background: white; border-radius: 12px; padding: 1rem 1rem;
  border: 1px solid var(--gray);
  box-shadow: 0 2px 12px rgba(59,10,99,0.05);
}
.timeline-card h4 { font-size: 0.85rem; font-weight: 600; color: var(--purple); margin-bottom: 0.3rem; }
.timeline-card p { font-size: 0.78rem; color: var(--gray-mid); line-height: 1.5; }
 
/* PARCEIROS */
#parceiros { background: white; }
.parceiros-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 3rem; }
.parceiro-logo-card {
  width: 220px;
  height: 100px;
  background: var(--off-white);
  border-radius: 12px;
  border: 1px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(59,10,99,0.03);
}
.parceiro-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.parceiro-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59,10,99,0.08);
  border-color: rgba(15, 163, 177, 0.3);
  background: white;
}
.parceiro-logo-card:hover img {
  transform: scale(1.05);
}
.logo-text-fallback {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
  text-align: center;
  display: none; /* Só aparece se a imagem falhar */
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
 
/* CONTACTOS */
#contactos { background: var(--off-white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; margin-top: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
}
.contact-icon {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.contact-item h4 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 0.3rem; }
.contact-item p, .contact-item a { font-size: 0.95rem; color: var(--text); text-decoration: none; font-weight: 500; }
.contact-item a:hover { color: var(--teal); }
 
.contact-form {
  background: white; border-radius: 20px; padding: 2.5rem;
  border: 1px solid var(--gray);
  box-shadow: 0 4px 24px rgba(59,10,99,0.06);
}
.contact-form h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--purple); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--purple); letter-spacing: 0.05em; }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--gray); border-radius: 10px;
  padding: 0.75rem 1rem; font-family: inherit; font-size: 0.9rem;
  color: var(--text); transition: border-color 0.2s; outline: none;
  background: var(--off-white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--teal); background: white;
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* FORM FEEDBACK MESSAGES */
.form-msg {
  display: none; padding: 0.85rem 1rem; border-radius: 10px;
  font-size: 0.88rem; font-weight: 500; margin-bottom: 1rem; text-align: center;
}
.form-msg.success { display: block; background: #e6f9f5; color: #0a7060; border: 1px solid #b2e8dc; }
.form-msg.error   { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
 
/* FOOTER */
footer {
  background: var(--dark);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text .brand { color: white; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.8; margin-top: 1rem; max-width: 280px; }
.footer-col h5 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.85rem; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0; flex-wrap: gap;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.social-links { display: flex; gap: 0.6rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; text-decoration: none; transition: all 0.2s; color: rgba(255,255,255,0.6);
}
.social-link:hover { background: var(--teal); border-color: var(--teal); color: white; }
 
/* WHATSAPP BANNER */
.whatsapp-banner {
  background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
  padding: 4rem 0;
  text-align: center;
  color: white;
}
.whatsapp-banner-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.whatsapp-banner-icon {
  font-size: 3rem;
  animation: pulseWhatsApp 2s infinite;
}
.whatsapp-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.2rem;
}
.whatsapp-banner p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  margin-bottom: 0.8rem;
}
.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-whatsapp:hover {
  background: #2cf477;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
@keyframes pulseWhatsApp {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* GOOGLE MAPS LINK HINTS */
.map-link-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none !important;
  color: var(--text) !important;
  transition: all 0.2s ease;
}
.map-link-wrapper:hover .address-text {
  color: var(--teal) !important;
}
.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(15, 163, 177, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  width: fit-content;
  border: 1px solid rgba(15, 163, 177, 0.15);
  margin-top: 0.2rem;
}
.map-link-wrapper:hover .map-badge {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

/* FORMAÇÕES FILTER */
.formacoes-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.filter-btn {
  background: white;
  border: 1px solid var(--gray);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(15, 163, 177, 0.2);
}
.filter-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* TESTEMUNHOS */
#testemunhos {
  background: var(--off-white);
  position: relative;
}
.testemunhos-slider {
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
  text-align: center;
}
.testemunho-container {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testemunho-card {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.testemunho-card.active {
  display: flex;
  opacity: 1;
}
.testemunho-stars {
  color: #ffb800;
  font-size: 1.1rem;
}
.testemunho-text {
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}
.testemunho-author h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.2rem;
}
.testemunho-author span {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}
.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-mid);
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.5;
}
.slider-dots .dot.active {
  background: var(--teal);
  transform: scale(1.2);
  opacity: 1;
}

/* FAQ ACCORDION */
#faq {
  background: var(--white);
}
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  border: 1px solid var(--gray);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--off-white);
}
.faq-item.active {
  border-color: rgba(15, 163, 177, 0.4);
  box-shadow: 0 4px 20px rgba(15, 163, 177, 0.05);
  background: white;
}
.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--purple);
  transition: color 0.2s;
}
.faq-question:hover {
  color: var(--teal);
}
.faq-question .faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
  color: var(--purple);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 1.5rem;
}
.faq-item.active .faq-answer {
  max-height: 200px; /* Suficiente para acomodar a resposta */
  padding-bottom: 1.5rem;
}
.faq-answer p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--gray-mid);
}


/* REGISTRATION MODAL */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 10, 46, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal.show {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 480px;
  width: 90%;
  padding: 2.5rem;
  position: relative;
  border: 1px solid var(--gray);
  box-shadow: 0 10px 40px rgba(59, 10, 99, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.modal.show .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--purple);
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--teal);
}
.modal-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--purple);
  margin-bottom: 0.5rem;
}
.modal-content p {
  font-size: 0.88rem;
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
}

/* GALERIA DE FOTOS */
#galeria {
  background: var(--white);
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.galeria-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(59, 10, 99, 0.05);
  transition: all 0.3s ease;
  background: var(--purple);
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 10, 46, 0.85) 0%, rgba(15, 163, 177, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.galeria-overlay span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}
.galeria-overlay h4 {
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}
.galeria-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(59, 10, 99, 0.12);
}
.galeria-item:hover img {
  transform: scale(1.08);
}
.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

/* LIGHTBOX MODAL */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 10, 46, 0.95);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}
.lightbox.show {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img {
  max-width: 85%;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox.show .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  color: white;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.lightbox-close:hover {
  color: var(--teal-light);
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  text-align: center;
}

/* BACK TO TOP */
.back-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--purple); color: white; border: none; cursor: pointer;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(59,10,99,0.4); opacity: 0; transition: all 0.3s; pointer-events: none;
}
.back-top.show { opacity: 1; pointer-events: all; }
.back-top:hover { background: var(--teal); transform: translateY(-3px); }
 
/* SCROLL ANIMATE */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
 
/* MOBILE NAV */
.mobile-menu {
  display: none; flex-direction: column;
  background: white; padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--gray);
  max-height: 70vh; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 0; font-size: 0.9rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--gray);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--purple); }
 
/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; padding-top: 120px; }
  .hero-visual { display: none; }
  .quem-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ocup-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .valores-grid { grid-template-columns: 1fr 1fr; }
  .formacoes-grid { grid-template-columns: 1fr; }
  .consul-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ocup-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .valores-grid { grid-template-columns: 1fr; }
  .ocup-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.5rem; }
}
 
/* HERO IMAGE PLACEHOLDER */
.hero-img-placeholder {
  width: 100%; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, rgba(15,163,177,0.2), rgba(59,10,99,0.3));
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.hero-img-placeholder img { width: 100%; height: 100%; object-fit: cover; }
