@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&display=swap');

/* =========================================================
   CIS - Centro de Convivência Ação e Paz
   Folha de estilo compartilhada (protótipo fictício)
   Paleta: azul-marinho + branco
   ========================================================= */

:root {
  --navy:        #10225e;   /* azul-marinho principal (fundo da logo) */
  --navy-dark:   #0a1642;   /* azul mais escuro (rodapé, hover) */
  --navy-soft:   #1c3488;   /* azul médio */
  --accent:      #3d5ccc;   /* azul de destaque (botões/links) */
  --accent-2:    #f4b400;   /* dourado suave para chamadas de doação */
  --tint:        #eef2fb;   /* fundo claro azulado */
  --tint-2:      #dde5f7;
  --text:        #1a2340;   /* texto principal */
  --muted:       #5b6788;   /* texto secundário */
  --white:       #ffffff;
  --border:      #d8e0f2;
  --shadow:      0 8px 24px rgba(16, 34, 94, .10);
  --shadow-lg:   0 16px 40px rgba(16, 34, 94, .16);
  --radius:      14px;
  --maxw:        1140px;
  --whatsapp:    #25d366;
  --font-head:   "Poppins", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset básico ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;            /* impede rolagem/corte horizontal sem quebrar o cabeçalho fixo */
  overflow-wrap: break-word;   /* quebra palavras muito longas (e-mails, links) no lugar de estourar */
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); font-weight: 700; font-family: var(--font-head); letter-spacing: -.01em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }

.section-tint { background: var(--tint); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Aviso de protótipo ---------- */
.aviso-proto {
  background: var(--accent-2);
  color: #3a2c00;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 16px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-soft); }
.btn-gold { background: var(--accent-2); color: #3a2c00; box-shadow: var(--shadow); }
.btn-gold:hover { background: #e0a600; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--accent); }
.btn-outline-navy:hover { background: var(--accent); color: #fff; }

/* ---------- Cabeçalho / Navegação ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  background: var(--navy);
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-text strong { color: #fff; font-size: 1.05rem; letter-spacing: .5px; font-family: var(--font-head); }
.brand .brand-text span { color: #b9c6ef; font-size: .74rem; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: #dce3f7;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.10); color: #fff; text-decoration: none; }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.14); }
.nav-links .btn { padding: 9px 20px; margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(61,92,204,.55), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 84px 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--accent-2); }
.hero p { color: #cdd7f4; font-size: 1.12rem; max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { display: flex; justify-content: center; }
.hero-art .logo-badge {
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--navy);
  border: 6px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  padding: 26px;
}
.hero-art .logo-badge img { width: 100%; border-radius: 50%; }

/* faixa de mini-estatísticas do hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stats div strong { display: block; font-size: 1.9rem; color: #fff; }
.hero-stats div span { color: #aebbe6; font-size: .9rem; }

/* ---------- Cards genéricos ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Bloco imagem + texto ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split .media {
  background: linear-gradient(160deg, var(--navy-soft), var(--navy));
  border-radius: var(--radius);
  min-height: 320px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.split .media img { border-radius: var(--radius); }
.split .media .ph {
  color: #cdd7f4;
  text-align: center;
  padding: 20px;
  font-size: .95rem;
}
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 14px; }

.lead { font-size: 1.1rem; color: var(--muted); }

/* lista com marcador de check */
.check-list { list-style: none; margin: 18px 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
  display: grid; place-items: center;
  margin-top: 4px;
}

/* ---------- Números de impacto ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat .num { font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat .lbl { color: var(--muted); margin-top: 8px; font-weight: 600; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .g-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-soft), var(--navy));
  display: grid; place-items: center;
  color: #b9c6ef;
  font-size: .9rem;
  text-align: center;
  padding: 12px;
  box-shadow: var(--shadow);
}

/* ---------- Depoimentos ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.quote p { font-style: italic; color: var(--text); margin-bottom: 16px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--tint-2); color: var(--navy);
  display: grid; place-items: center; font-weight: 700;
}
.quote .who strong { display: block; color: var(--navy); font-size: .98rem; }
.quote .who span { color: var(--muted); font-size: .85rem; }

/* ---------- Transparência (barras) ---------- */
.bars { max-width: 640px; margin: 0 auto; }
.bar-row { margin-bottom: 20px; }
.bar-row .bar-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 600; }
.bar-track { background: var(--tint-2); border-radius: 999px; height: 14px; overflow: hidden; }
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--navy-soft));
  border-radius: 999px;
  width: 0;
  transition: width 1.2s ease;
}

/* ---------- FAQ (acordeão) ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .plus { font-size: 1.4rem; color: var(--accent); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA em destaque ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(61,92,204,.5), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-align: center;
  border-radius: 20px;
  padding: 54px 30px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { color: #cdd7f4; max-width: 560px; margin: 0 auto 26px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Formulários ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fbfcff;
  transition: border .2s, box-shadow .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61,92,204,.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-msg {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #e6f7ec;
  color: #1c7a3d;
  font-weight: 600;
  border: 1px solid #b7e6c7;
}
.form-msg.show { display: block; }

/* ---------- Caixa de contato / Pix ---------- */
.info-list { list-style: none; }
.info-list li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-list .ico {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px; background: var(--tint); color: var(--accent);
  display: grid; place-items: center; font-size: 1.3rem;
}
.info-list strong { display: block; color: var(--navy); }
.info-list span { color: var(--muted); }

.pix-box {
  background: var(--tint);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 10px;
}
.pix-box strong { color: var(--navy); }
.pix-key {
  font-family: "Courier New", monospace;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Botão flutuante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
  z-index: 200;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); text-decoration: none; }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9c6ef;
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.footer-grid h4 { color: #fff; margin-bottom: 16px; font-size: 1.02rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); }
.footer-brand strong { color: #fff; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid a { color: #b9c6ef; }
.footer-grid a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.10);
  display: grid; place-items: center; color: #fff;
  font-weight: 700;
}
.socials a:hover { background: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
  color: #8d9cc9;
}

/* ---------- Cabeçalho de página interna ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 85% -20%, rgba(61,92,204,.5), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 66px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: #cdd7f4; max-width: 620px; margin: 14px auto 0; font-size: 1.08rem; }
.breadcrumb { color: #9fb0e0; font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: #cdd7f4; }

/* ---------- Utilitários ---------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

/* ---------- Eventos ---------- */
.ev-month {
  display: inline-block;
  background: var(--tint);
  color: var(--accent);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.ev-list { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.event-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.event-date {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 12px 6px;
}
.event-date .d { font-size: 1.7rem; font-weight: 800; line-height: 1; display: block; }
.event-date .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #b9c6ef; }
.event-body h3 { margin-bottom: 6px; }
.event-body p { color: var(--muted); margin-bottom: 10px; }
.event-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}
.event-tag.org  { background: var(--tint);  color: var(--accent); }
.event-tag.soon { background: #e6f7ec; color: #1c7a3d; }
.event-tag.past { background: #eef0f4; color: #5b6788; }

/* ---------- Apoiadores ---------- */
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.partner-logo {
  width: 140px;
  height: 84px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  box-shadow: var(--shadow);
  padding: 10px;
  text-align: center;
  font-size: .85rem;
}
.partner-card { text-align: center; }
.partner-card .logo-box {
  width: 100%;
  height: 120px;
  background: var(--tint);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
  font-size: .95rem;
}
.partner-card .logo-box img { max-height: 96px; width: auto; border-radius: 8px; }
.partner-card .since {
  display: inline-block;
  background: var(--tint);
  color: var(--accent);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.friends {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}
.friend-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.friend-chip span { color: var(--muted); font-weight: 400; font-size: .88rem; }

/* ---------- Carrossel de eventos (destaque central) ---------- */
.carousel { position: relative; max-width: 780px; margin: 0 auto; }
.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 16%;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 68%;
  scroll-snap-align: center;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy));
  box-shadow: var(--shadow);
  opacity: .45;
  transform: scale(.9);
  transition: opacity .35s ease, transform .35s ease;
}
.carousel-slide.is-active { opacity: 1; transform: scale(1); box-shadow: var(--shadow-lg); }
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(16, 34, 94, .85);
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  transition: background .2s, transform .15s;
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover { background: var(--navy); }
.carousel-btn:active { transform: translateY(-50%) scale(.94); }
.carousel-btn.prev { left: 6px; }
.carousel-btn.next { right: 6px; }
.carousel-hint { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 16px; }
@media (max-width: 640px) {
  .carousel-slide { flex: 0 0 80%; height: 230px; }
  .carousel-track { padding: 10px 10%; }
  .carousel-btn { width: 38px; height: 38px; }
  .carousel-btn svg { width: 16px; height: 16px; }
}

/* ---------- Animação de entrada (fade-in ao rolar) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease, box-shadow .3s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Efeito "vem pra frente" ao passar o mouse ---------- */
.split .media, .img-lift { transition: transform .3s ease, box-shadow .3s ease; }
.split .media:hover, .img-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.legado-panel:hover,
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ---------- Lightbox (ampliar fotos) ---------- */
.lb-clickable { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 40, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff; border: 0;
  font-size: 1.7rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .26); }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff; border: 0;
  cursor: pointer;
  display: grid; place-items: center;
}
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-close { top: 12px; right: 14px; }
}

/* ---------- Botão voltar ao topo ---------- */
.to-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .2s;
  z-index: 150;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-soft); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .to-top { left: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* =========================================================
   RESPONSIVO  —  celular · tablet · desktop
   ========================================================= */

/* ---- Tablets e telas médias: empilha o conteúdo ---- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art .logo-badge { width: 230px; height: 230px; }
  .split { grid-template-columns: 1fr; }
  .split .media { min-height: 240px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- MENU MOBILE (celular + tablet) ----
   Até 1024px o menu horizontal não cabe (são vários itens), então ele
   vira um painel que abre pelo botão hambúrguer e ocupa a largura toda. */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 18px 18px;
    box-shadow: 0 16px 26px rgba(0,0,0,.32);
    max-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: max-height .35s ease;
  }
  .nav-links.open { max-height: calc(100vh - 70px); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1.05rem;
  }
  .nav-links a.active { background: rgba(255,255,255,.10); }
  .nav-links .btn {
    margin: 14px 0 4px;
    padding: 15px 20px;
    text-align: center;
    font-size: 1.05rem;
  }
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---- Celulares grandes ---- */
@media (max-width: 640px) {
  section { padding: 50px 0; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .page-hero { padding: 46px 0; }
  .cta-band { padding: 40px 22px; }
  .form-card { padding: 22px; }
  .section-head { margin-bottom: 34px; }
  .hero-stats { gap: 20px 26px; }
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ---- Celulares pequenos ---- */
@media (max-width: 480px) {
  .brand .brand-text span { display: none; }
  .brand img { width: 40px; height: 40px; }
  .hero-art .logo-badge { width: 190px; height: 190px; padding: 20px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .aviso-proto { font-size: .76rem; padding: 8px 12px; }
  .stat .num { font-size: 2.2rem; }
  .pix-key { font-size: .85rem; word-break: break-all; }
}
