/* ============================================================
   ESCOLA SÃO VICENTE DE PAULO — CSS Principal
   Design: Claro, Fresco, Moderno | Inspirado no AISM
   Fontes: Playfair Display + Nunito
   ============================================================ */

:root {
  --azul:      #1a3a5c;
  --azul-m:    #2a5298;
  --azul-l:    #3d6fba;
  --ouro:      #c9963a;
  --ouro-l:    #e8b04a;
  --ouro-bg:   #fdf5e8;
  --verde:     #2e7d52;
  --branco:    #ffffff;
  --creme:     #fafaf7;
  --cinza-l:   #f4f2ee;
  --cinza-m:   #e8e4dc;
  --texto:     #1e1e1e;
  --texto-s:   #5a5a5a;
  --texto-xs:  #888888;

  --font-d: 'Playfair Display', Georgia, serif;
  --font-b: 'Nunito', sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);

  --t: .25s cubic-bezier(.4,0,.2,1);
  --max: 1200px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--creme);
  color: var(--texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utilitários ── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }
.text-azul { color: var(--azul); }
.text-ouro { color: var(--ouro); }
.bg-azul { background: var(--azul); }
.bg-cinza { background: var(--cinza-l); }

/* ── Tipografia ── */
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { color: var(--texto-s); line-height: 1.8; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ouro); margin-bottom: 14px;
}
.section-label::before {
  content: ''; width: 28px; height: 2px; background: var(--ouro);
}
.section-label-center { justify-content: center; }

.page-hero {
  background: var(--azul); padding: 100px 0 60px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto; font-size: 17px; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.5);
  justify-content: center; margin-top: 16px;
}
.breadcrumb a { color: var(--ouro-l); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--r-md);
  font-family: var(--font-b); font-size: 15px; font-weight: 700;
  cursor: pointer; border: none; transition: var(--t); text-decoration: none;
}
.btn-primary { background: var(--ouro); color: var(--azul); }
.btn-primary:hover { background: var(--ouro-l); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,150,58,.3); }
.btn-dark    { background: var(--azul); color: #fff; }
.btn-dark:hover { background: var(--azul-m); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--azul); border: 2px solid var(--azul); }
.btn-outline:hover { background: var(--azul); color: #fff; }
.btn-white   { background: #fff; color: var(--azul); }
.btn-white:hover { background: var(--ouro-bg); }

/* ── TOP BAR ── */
.top-bar {
  background: var(--azul); padding: 8px 0;
  font-size: 13px; color: rgba(255,255,255,0.65);
}
.top-bar-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.top-bar-left { display: flex; gap: 20px; }
.top-bar-right { display: flex; align-items: center; gap: 14px; }
.top-bar-right a { color: rgba(255,255,255,0.65); font-size: 13px; transition: var(--t); }
.top-bar-right a:hover { color: var(--ouro-l); }
.top-wa { color: #25D366 !important; font-weight: 600; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cinza-m);
  box-shadow: var(--shadow-sm);
  transition: var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; gap: 24px; height: 72px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img-wrap {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: var(--azul); border: 2px solid var(--ouro);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.logo-fallback {
  font-family: var(--font-d); font-size: 22px; font-weight: 900; color: var(--ouro);
}
.logo-text strong {
  display: block; font-family: var(--font-d); font-size: 16px;
  font-weight: 700; color: var(--azul); line-height: 1.2;
}
.logo-text span {
  font-size: 11px; color: var(--texto-xs); letter-spacing: .06em; text-transform: uppercase;
}

/* Nav */
.main-nav { margin-left: auto; }
.nav-list  { display: flex; align-items: center; gap: 2px; }
.nav-item  { position: relative; }
.nav-link  {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--texto-s);
  transition: var(--t); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--azul); background: var(--cinza-l); }
.nav-link.nav-cta {
  background: var(--ouro); color: var(--azul); margin-left: 8px; border-radius: var(--r-md);
}
.nav-link.nav-cta:hover { background: var(--ouro-l); }
.nav-arrow { font-size: 10px; opacity: .6; }

/* Dropdown */
.dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid var(--cinza-m);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: 8px 0; z-index: 300;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block; padding: 10px 20px;
  font-size: 14px; color: var(--texto-s); transition: var(--t);
}
.dropdown li a:hover { background: var(--cinza-l); color: var(--azul); padding-left: 28px; }

/* Menu toggle mobile */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--azul); border-radius: 2px; transition: var(--t);
}

/* ── SLIDESHOW ── */
.slideshow {
  position: relative; height: calc(100vh - 108px); min-height: 560px; overflow: hidden;
}
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,58,92,0.82) 0%, rgba(26,58,92,0.3) 60%, transparent 100%);
}
.slide-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 5vw; max-width: 680px;
}
.slide-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,150,58,0.2); color: var(--ouro-l);
  border: 1px solid rgba(201,150,58,0.4);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 20px; width: fit-content;
}
.slide-dot-live {
  width: 7px; height: 7px; background: var(--ouro-l); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.slide-content h1 {
  color: #fff; margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.slide-content h1 em { font-style: italic; color: var(--ouro-l); }
.slide-content p {
  color: rgba(255,255,255,.8); font-size: 18px; line-height: 1.7;
  margin-bottom: 32px; max-width: 480px;
}
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.25);
  color: #fff; font-size: 20px; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t); backdrop-filter: blur(4px);
}
.slide-arrow:hover { background: var(--ouro); border-color: var(--ouro); color: var(--azul); }
.arrow-prev { left: 24px; }
.arrow-next { right: 24px; }
.slide-dots {
  position: absolute; bottom: 28px; right: 40px;
  display: flex; gap: 8px; z-index: 10; align-items: center;
}
.sdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35); cursor: pointer; transition: var(--t);
}
.sdot.active { background: var(--ouro); width: 28px; border-radius: 4px; }
.slide-count {
  position: absolute; bottom: 28px; left: 40px; z-index: 10;
  font-size: 13px; color: rgba(255,255,255,.5); font-weight: 600;
}
.slide-count span { color: #fff; font-size: 18px; font-family: var(--font-d); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--azul); padding: 32px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
}
.stat-item {
  text-align: center; padding: 12px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-d); font-size: 2.4rem; font-weight: 900;
  color: var(--ouro-l); line-height: 1;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── SECÇÕES DE CONTEÚDO ── */
/* Destaque/Intro */
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.intro-img { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.intro-img img { width: 100%; height: 460px; object-fit: cover; }
.intro-texto p { margin-bottom: 16px; }

/* Cards de valores */
.valores-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px;
}
.valor-card {
  background: #fff; border-radius: var(--r-lg); padding: 28px 24px;
  border: 1px solid var(--cinza-m); text-align: center; transition: var(--t);
}
.valor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ouro); }
.valor-icon {
  width: 56px; height: 56px; background: var(--ouro-bg); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 16px;
}
.valor-card h3 { font-size: 1rem; color: var(--azul); margin-bottom: 8px; }
.valor-card p  { font-size: 14px; line-height: 1.6; }

/* Blog / Notícias */
.blog-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px;
}
.blog-card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--cinza-m); transition: var(--t);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-img { position: relative; height: 200px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--ouro); color: var(--azul);
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 100px; letter-spacing: .06em; text-transform: uppercase;
}
.blog-body { padding: 20px; }
.blog-date { font-size: 12px; color: var(--texto-xs); margin-bottom: 8px; }
.blog-body h3 {
  font-size: 1rem; color: var(--azul); line-height: 1.5; margin-bottom: 8px;
}
.blog-body p { font-size: 13px; line-height: 1.6; }
.blog-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 14px;
  color: var(--ouro); font-size: 13px; font-weight: 700; transition: var(--t);
}
.blog-link:hover { gap: 8px; }

/* Vídeo */
.video-wrap {
  max-width: 840px; margin: 48px auto 0;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-xl); border: 3px solid var(--ouro);
  aspect-ratio: 16/9;
}
.video-wrap iframe { width: 100%; height: 100%; display: block; }

/* ── FORMULÁRIO ── */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg { margin-bottom: 18px; }
.fg label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--azul); margin-bottom: 6px;
}
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--cinza-m); border-radius: var(--r-md);
  font-family: var(--font-b); font-size: 15px; color: var(--texto);
  background: var(--creme); outline: none; transition: var(--t);
}
.fg input:focus, .fg textarea:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(26,58,92,.1);
  background: #fff;
}
.fg textarea { resize: vertical; min-height: 120px; }
.fg select { cursor: pointer; }
.btn-submit {
  width: 100%; padding: 14px; background: var(--azul); color: #fff;
  border: none; border-radius: var(--r-md); font-family: var(--font-b);
  font-size: 16px; font-weight: 700; cursor: pointer; transition: var(--t);
}
.btn-submit:hover { background: var(--azul-m); transform: translateY(-2px); }
.flash-ok { background: #f0fdf4; border-left: 3px solid #22c55e; padding: 12px 16px; border-radius: var(--r-sm); color: #15803d; font-size: 14px; margin-bottom: 16px; }
.flash-err{ background: #fef2f2; border-left: 3px solid #ef4444; padding: 12px 16px; border-radius: var(--r-sm); color: #b91c1c; font-size: 14px; margin-bottom: 10px; }

/* ── CONTACTOS ── */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.contacto-card {
  background: #fff; border-radius: var(--r-lg); padding: 28px;
  border: 1px solid var(--cinza-m); box-shadow: var(--shadow-sm);
}
.contacto-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--cinza-l);
}
.contacto-item:last-child { border-bottom: none; }
.ci-icon {
  width: 44px; height: 44px; background: var(--ouro-bg); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.ci-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--azul); margin-bottom: 2px; }
.ci-text span, .ci-text a { font-size: 14px; color: var(--texto-s); }
.ci-text a:hover { color: var(--azul); }
.wa-float {
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; padding: 13px 20px;
  border-radius: var(--r-md); margin-top: 20px;
  font-weight: 700; font-size: 15px; transition: var(--t);
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.wa-float:hover { background: #20b858; transform: translateY(-2px); }

/* ── FOOTER ── */
.site-footer { background: var(--azul); color: rgba(255,255,255,.65); padding: 64px 0 0; margin-top: 80px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.footer-logo-icon {
  width: 40px; height: 40px; background: var(--ouro); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--azul); font-family: var(--font-d); font-weight: 900;
  flex-shrink: 0;
}
.footer-logo strong { display: block; color: #fff; font-family: var(--font-d); font-size: 15px; }
.footer-logo span { font-size: 12px; color: rgba(255,255,255,.45); }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; transition: var(--t);
}
.footer-social a:hover { background: var(--ouro); border-color: var(--ouro); color: var(--azul); }
.footer-col h4 {
  font-family: var(--font-d); font-size: 15px; color: #fff;
  margin-bottom: 16px; font-weight: 600;
}
.footer-col a {
  display: block; font-size: 14px; padding: 5px 0;
  color: rgba(255,255,255,.5); transition: var(--t);
}
.footer-col a:hover { color: var(--ouro-l); padding-left: 4px; }
.footer-bottom { padding: 18px 0; }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 8px;
}
.footer-bottom-inner a { color: var(--ouro); }

/* ── Animações ── */
[data-anim] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-anim].in { opacity: 1; transform: none; }
[data-anim][data-delay="1"] { transition-delay: .1s; }
[data-anim][data-delay="2"] { transition-delay: .2s; }
[data-anim][data-delay="3"] { transition-delay: .3s; }
[data-anim][data-delay="4"] { transition-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .valores-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .intro-grid, .contacto-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .top-bar-left { display: none; }
  .main-nav { display: none; position: fixed; top: 108px; left: 0; right: 0; bottom: 0; background: #fff; overflow-y: auto; padding: 16px; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 4px; }
  .dropdown { position: static; box-shadow: none; border: none; background: var(--cinza-l); border-radius: var(--r-md); margin-top: 4px; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .menu-toggle { display: flex; }
  .nav-link.nav-cta { margin-left: 0; }
  .slide-count { display: none; }
}
@media (max-width: 480px) {
  .valores-grid, .blog-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .slide-content h1 { font-size: 1.8rem; }
  .slide-content p { font-size: 15px; }
}
