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

:root {
  --green: #3E7A1A;
  --green-light: #5B9D1F;
  --green-dark: #1F4A0E;
  --blue: #2E7FE0;
  --blue-light: #6FADF2;
  --blue-dark: #14458F;
  --teal: #17A6A0;
  --teal-light: #5CD6CE;
  --teal-dark: #0B6C68;
  --yellow: #F5B400;
  --yellow-light: #FFD25C;
  --yellow-dark: #C98D00;
  --dark: #1f2430;
  --gray: #5a6270;
  --gray-light: #8890a0;
  --light-bg: #f2f6fa;
  --white: #ffffff;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --max-width: 1180px;
  --shadow-sm: 0 2px 10px rgba(20, 30, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 30, 50, 0.09);
  --shadow-lg: 0 24px 60px rgba(20, 30, 50, 0.14);
  --font-head: 'Poppins', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 14px; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 16px; color: var(--gray); }
img { max-width: 100%; display: block; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Glossy dots (logo-inspired accent) ---- */
.dot-green, .dot-blue, .dot-teal, .dot-yellow {
  display: inline-block;
  width: 14px; height: 14px; border-radius: 50%;
  box-shadow:
    inset -2px -3px 5px rgba(0,0,0,0.25),
    inset 2px 2px 3px rgba(255,255,255,0.5),
    0 2px 5px rgba(20,30,50,0.2);
}
.dot-green { background: radial-gradient(circle at 32% 30%, var(--green-light), var(--green) 55%, var(--green-dark) 100%); }
.dot-blue { background: radial-gradient(circle at 32% 30%, var(--blue-light), var(--blue) 55%, var(--blue-dark) 100%); }
.dot-teal { background: radial-gradient(circle at 32% 30%, var(--teal-light), var(--teal) 55%, var(--teal-dark) 100%); }
.dot-yellow { background: radial-gradient(circle at 32% 30%, var(--yellow-light), var(--yellow) 55%, var(--yellow-dark) 100%); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(62, 122, 26, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(62, 122, 26, 0.42); }
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid rgba(31, 36, 48, 0.15);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31,36,48,0.06);
  transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { height: 40px; width: 40px; }
.logo-header-img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-weight: 500; font-size: 14.5px; color: var(--gray); position: relative; padding: 4px 0; }
.nav a:hover, .nav a.active { color: var(--dark); }
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2px; background: var(--green);
  transition: width .2s ease;
}
.nav a:not(.nav-cta):hover::after, .nav a.active::after { width: 100%; }
.nav-cta {
  background: var(--dark);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--green); }
.nav-admin { font-size: 12px !important; padding: 7px 16px; border-radius: 999px; border: 1.5px solid rgba(31,36,48,0.14); color: var(--gray) !important; }
.nav-admin:hover { border-color: var(--dark); color: var(--dark) !important; }
.nav-admin::after { display: none !important; }

/* ---- Seletor de idioma (Google Translate por trás) ---- */
.lang-switcher { display: flex; align-items: center; gap: 2px; background: rgba(31,36,48,0.06); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lang-btn { border: none; background: transparent; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--gray); cursor: pointer; letter-spacing: .02em; }
.lang-btn.active { background: var(--white); color: var(--dark); box-shadow: var(--shadow-sm); }
.lang-btn:hover:not(.active) { color: var(--dark); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 28px;
  background:
    radial-gradient(600px circle at 85% -10%, rgba(46,127,224,0.14), transparent 60%),
    radial-gradient(500px circle at 0% 100%, rgba(62,122,26,0.12), transparent 60%),
    var(--light-bg);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero-text h1 { font-size: clamp(24px, 2.8vw, 34px); color: var(--dark); }
.hero-text p { font-size: 14.5px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-actions .btn { padding: 11px 20px; font-size: 13.5px; }
.hero-visual { display: flex; justify-content: center; }
.hero-logo { max-width: 260px; animation: float 5s ease-in-out infinite; filter: drop-shadow(var(--shadow-lg)); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

/* ---- Stats ---- */
.stats { background: linear-gradient(135deg, var(--dark), var(--blue-dark)); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; align-items: center; justify-content: center; gap: 14px; }
.stat-icon { font-size: 26px; flex-shrink: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25)); }
.stat-text { display: flex; flex-direction: column; text-align: left; }
.stat-number { display: block; font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--yellow-light); }
.stat-label { display: block; margin-top: 2px; font-size: 13px; color: rgba(255,255,255,0.75); letter-spacing: 0.02em; }

/* ---- Section base ---- */
.section { padding: 88px 0; }
.section-alt { background: var(--light-bg); }
.section-header { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-header h2 { font-size: clamp(26px, 3vw, 34px); }
.section-header p { font-size: 16px; }
.section-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.section-tag h2 { font-size: clamp(26px, 3vw, 32px); }
.section-content p { font-size: 16.5px; }

/* ---- MVV ---- */
.mvv-wrap { margin-top: 40px; }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--green);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mvv-card:nth-child(2) { border-top-color: var(--blue); }
.mvv-card:nth-child(3) { border-top-color: var(--teal); }
.mvv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mvv-card img.mvv-img { border-radius: var(--radius-sm); margin-bottom: 0; }
.mvv-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 22px; }
.mvv-card:nth-child(1) .mvv-icon { background: rgba(62,122,26,0.12); }
.mvv-card:nth-child(2) .mvv-icon { background: rgba(46,127,224,0.12); }
.mvv-card:nth-child(3) .mvv-icon { background: rgba(23,166,160,0.12); }
.mvv-card h3 { font-size: 19px; }
.mvv-card p { margin-bottom: 0; font-size: 15px; }

/* ---- Cards grid (Projetos / Blog) ---- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,36,48,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .card-tag { margin-bottom: 16px; }
.card h3 { font-size: 18px; }
.card p { font-size: 14.5px; margin-bottom: 0; }
.blog-card { display: flex; flex-direction: column; }
.blog-date { font-size: 12.5px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }

/* ---- Eventos (folder grid) ---- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }
.event-card img { width: 100%; height: 100%; object-fit: cover; }
.event-card-icon { position: absolute; top: 14px; right: 14px; font-size: 20px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.event-card-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 18px 18px;
  background: linear-gradient(0deg, rgba(15,20,30,0.85), transparent);
  color: var(--white);
}
.event-card-overlay h3 { color: var(--white); font-size: 17px; margin: 6px 0 0; }
.event-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white);
}
.badge-green { background: var(--green); }
.badge-blue { background: var(--blue); }
.badge-teal { background: var(--teal); }
.badge-yellow { background: var(--yellow-dark); }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,20,30,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.modal-hero { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-thumbs { display: flex; gap: 8px; padding: 12px 24px 0; }
.modal-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .55; transition: opacity .15s ease; }
.modal-thumbs img.active, .modal-thumbs img:hover { opacity: 1; }
.modal-box > .event-badge, .modal-box h2, .modal-box .modal-date, .modal-box > p { margin-left: 24px; margin-right: 24px; }
.modal-box .event-badge { margin-top: 20px; }
.modal-box h2 { margin-top: 10px; font-size: 22px; }
.modal-date { color: var(--gray-light); font-size: 13.5px; margin-top: -8px; }
.modal-finance { background: var(--light-bg); border-radius: var(--radius); margin: 20px 24px 24px; padding: 22px; }
.modal-finance h4 { margin: 0 0 14px; font-size: 15px; }
.modal-finance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.modal-finance-item { text-align: center; }
.modal-finance-item .label { font-size: 12px; color: var(--gray-light); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.modal-finance-item .value { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.value-in { color: var(--green); }
.value-out { color: #d0453a; }
.value-balance { color: var(--blue); }
.modal-finance p { font-size: 13.5px; margin: 0; }

/* ---- Transparência ---- */
.transparency-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 640px; margin: 0 auto 18px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 28px; }
.transparency-note { text-align: center; font-size: 13.5px; color: var(--gray-light); margin-bottom: 28px; }
.transparency-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.transparency-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 640px; }
.transparency-table th, .transparency-table td { padding: 14px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid rgba(31,36,48,0.06); }
.transparency-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-light); background: var(--light-bg); }
.transparency-table tr:last-child td { border-bottom: none; }
.link-btn { color: var(--blue); font-weight: 600; cursor: pointer; font-size: 13.5px; }
.link-btn:hover { text-decoration: underline; }

/* ---- Parceiros ---- */
.partners-carousel { position: relative; display: flex; align-items: center; gap: 12px; }
.partners-track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 4px 2px; scrollbar-width: none; }
.partners-track::-webkit-scrollbar { display: none; }
.partner-box {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31,36,48,0.08);
  min-width: 190px; min-height: 100px;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  color: var(--gray-light);
  font-weight: 600;
  text-align: center;
  font-family: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
button.partner-box:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.partner-logo { max-height: 48px; max-width: 100%; pointer-events: none; }
.partner-cta { border: 2px dashed rgba(31,36,48,0.15); background: transparent; cursor: default; }
.partner-cta:hover { box-shadow: none; transform: none; }
.section-partners-top { padding: 28px 0 8px; }
.section-partners-top .section-header { margin-bottom: 24px; }
.partners-nav { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); border: none; cursor: pointer; font-size: 18px; color: var(--dark); display: flex; align-items: center; justify-content: center; }
.partners-nav:hover { box-shadow: var(--shadow-md); }
@media (max-width: 720px) {
  .partners-nav { display: none; }
}

/* ---- Contato ---- */
.contact-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.contact-list a { color: var(--blue); font-weight: 600; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(31,36,48,0.12);
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
  transition: border-color .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); }

/* ---- Fale com a gente (CRM) ---- */
.crm-form-wrap { max-width: 640px; margin: 56px auto 0; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 40px; }
.crm-form { display: flex; flex-direction: column; gap: 14px; }
.crm-form select, .crm-form input, .crm-form textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(31,36,48,0.12); font-family: var(--font-body); font-size: 14.5px; resize: vertical;
}
.crm-form select:focus, .crm-form input:focus, .crm-form textarea:focus { outline: none; border-color: var(--green); }
.crm-form .admin-field { margin-bottom: 0; }
.crm-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .crm-form .form-row { grid-template-columns: 1fr; } .crm-form-wrap { padding: 28px 22px; } }

/* ---- Footer ---- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; }
.footer-brand .logo-mark { height: 32px; width: 32px; }
.footer p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.55); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .section-grid { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  .nav { position: fixed; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(31,36,48,0.06); }
  .nav-cta { margin-top: 10px; text-align: center; }
  .menu-toggle { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .transparency-summary { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .transparency-table { min-width: 560px; }
}

/* ---- Carrossel de banners/campanhas ---- */
.banner-carousel-section { padding: 24px 0 8px; background: var(--white); }
.banner-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--light-bg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,36,48,0.06);
}
.banner-slide { display: none; grid-template-columns: 0.9fr 1.1fr; min-height: 200px; }
.banner-slide.active { display: grid; }
.banner-slide-image { background-size: cover; background-position: center; min-height: 180px; }
.banner-slide-content { padding: 28px 40px; display: flex; flex-direction: column; justify-content: center; }
.banner-badge { display: inline-block; align-self: flex-start; background: var(--dark); color: var(--white); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.banner-slide-content h3 { color: var(--dark); font-size: clamp(17px, 1.8vw, 21px); margin-bottom: 8px; }
.banner-slide-content p { color: var(--gray); margin-bottom: 16px; font-size: 14px; }
.banner-slide-content .btn { align-self: flex-start; padding: 10px 20px; font-size: 13.5px; }
.banner-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); border: none; cursor: pointer; font-size: 16px; z-index: 2; display: flex; align-items: center; justify-content: center; color: var(--dark); }
.banner-nav:hover { box-shadow: var(--shadow-md); }
.banner-nav-prev { left: 12px; }
.banner-nav-next { right: 12px; }
.banner-dots { position: absolute; bottom: 10px; right: 16px; display: flex; gap: 6px; z-index: 2; }
.banner-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(31,36,48,0.18); border: none; cursor: pointer; padding: 0; }
.banner-dot.active { background: var(--green); width: 18px; border-radius: 4px; transition: width .2s ease; }
@media (max-width: 720px) {
  .banner-slide { grid-template-columns: 1fr; }
  .banner-slide-image { min-height: 160px; }
  .banner-slide-content { padding: 20px 24px 28px; }
}

/* ---- Vaquinhas (campanhas) ---- */
.campanhas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.campanha-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(31,36,48,0.06); transition: transform .2s ease, box-shadow .2s ease; }
.campanha-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.campanha-media { aspect-ratio: 16/10; overflow: hidden; }
.campanha-media img, .campanha-media video { width: 100%; height: 100%; object-fit: cover; }
.campanha-body { padding: 22px 24px 26px; }
.campanha-body h3 { font-size: 18px; }
.campanha-body p { font-size: 14.5px; }
.campanha-progress-track { height: 10px; border-radius: 999px; background: var(--light-bg); overflow: hidden; margin: 14px 0 8px; }
.campanha-progress-fill { height: 100%; background: linear-gradient(90deg, var(--green-light), var(--green)); border-radius: 999px; }
.campanha-progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray-light); margin-bottom: 16px; }
.campanha-progress-label strong { color: var(--green-dark); }

/* ---- Rifa ---- */
.rifas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 12px; }
.rifa-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(31,36,48,0.06); transition: transform .2s ease, box-shadow .2s ease; }
.rifa-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.rifa-card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--light-bg); }
.rifa-card-media img, .rifa-card-media video, .rifa-card-media iframe { width: 100%; height: 100%; object-fit: cover; border: none; display: block; }
.rifa-card-body { padding: 22px 24px 26px; }
.rifa-card-body h3 { font-size: 18px; }
.rifa-card-body p { font-size: 14.5px; }
.rifa-numeros-wrap { margin-top: 40px; }
.rifa-info .eyebrow { color: var(--yellow-dark); }
.rifa-preco { display: inline-block; background: var(--dark); color: var(--white); font-weight: 700; padding: 8px 18px; border-radius: 999px; font-size: 14px; margin-bottom: 16px; }
.rifa-sorteio-data { display: inline-block; margin: 0 0 0 10px; font-size: 14px; color: var(--gray); font-weight: 600; }
.rifa-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 20px 0; font-size: 13px; color: var(--gray); }
.rifa-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rifa-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.rifa-numeros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin-bottom: 28px; }
.rifa-numero {
  aspect-ratio: 1; border-radius: 8px; border: none; cursor: pointer;
  font-size: 11px; font-weight: 700; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease;
}
.rifa-numero:hover { transform: scale(1.12); }
.rifa-numero.disponivel { background: var(--blue); }
.rifa-numero.reservado { background: var(--yellow-dark); cursor: not-allowed; }
.rifa-numero.pago { background: var(--gray-light); cursor: not-allowed; }
.rifa-numero.selecionado { background: var(--green); box-shadow: 0 0 0 3px rgba(62,122,26,0.3); transform: scale(1.06); }
.rifa-selecao-bar {
  position: sticky; bottom: 16px; margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--dark); color: var(--white);
  border-radius: var(--radius); padding: 16px 22px;
  box-shadow: var(--shadow-lg);
}
.rifa-selecao-bar span { font-size: 14px; }
.rifa-selecao-bar .btn { flex-shrink: 0; padding: 10px 22px; font-size: 14px; }
@media (max-width: 560px) { .rifa-selecao-bar { flex-direction: column; align-items: stretch; text-align: center; } }
.rifa-form .admin-field { margin-bottom: 14px; }
.rifa-pix-box { background: var(--light-bg); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.rifa-pix-box .chave { font-family: monospace; font-size: 15px; font-weight: 700; word-break: break-all; }

/* ---- Admin (login/dashboard) shared bits ---- */
.admin-body { background: var(--light-bg); min-height: 100vh; font-family: var(--font-body); }
.admin-shell { max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 28px; }
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-login-box { width: 100%; max-width: 420px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px 32px; }
.admin-login-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.admin-login-logo img { height: 72px; width: auto; }
.admin-login-back { display: block; text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--gray); font-weight: 600; }
.admin-login-back:hover { color: var(--green); }
.admin-field { margin-bottom: 16px; }
.admin-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--gray); }
.admin-field input, .admin-field select, .admin-field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(31,36,48,0.14); font-family: var(--font-body); font-size: 14.5px;
}
.admin-field textarea { resize: vertical; }
.admin-error { background: #fdecea; color: #b3261e; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 16px; }
.admin-success { background: #e7f5e6; color: var(--green-dark); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 16px; }
.admin-layout { display: flex; align-items: flex-start; gap: 24px; }
.admin-tabs { display: flex; flex-direction: column; gap: 4px; width: 240px; flex-shrink: 0; position: sticky; top: 24px; }
.admin-tab { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--white); border: 1.5px solid rgba(31,36,48,0.1); font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--gray); text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-tab.active { background: var(--dark); color: var(--white); border-color: var(--dark); }
.admin-tab .admin-tab-badge { background: #d0453a; color: var(--white); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.admin-card { flex: 1; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
@media (max-width: 860px) {
  .admin-layout { flex-direction: column; }
  .admin-tabs { flex-direction: row; flex-wrap: wrap; width: 100%; position: static; }
}
.admin-list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--light-bg); margin-bottom: 10px; }
.admin-list-item .meta { font-size: 13px; color: var(--gray-light); }
.admin-actions { display: flex; gap: 8px; }
.admin-btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 999px; border: none; cursor: pointer; font-weight: 600; }
.admin-btn-edit { background: rgba(46,127,224,0.12); color: var(--blue-dark); }
.admin-btn-danger { background: rgba(208,69,58,0.12); color: #b3261e; }
.admin-checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.admin-checkbox-row input { width: auto; }
.admin-hint { font-size: 12.5px; color: var(--gray-light); margin-top: -8px; margin-bottom: 16px; }

/* ---- CRM Kanban ---- */
.crm-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.crm-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.crm-filters select, .crm-filters input { padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid rgba(31,36,48,0.14); font-size: 13.5px; font-family: var(--font-body); }
.crm-filters input { flex: 1; min-width: 200px; }
.crm-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.crm-column { background: var(--light-bg); border-radius: var(--radius); min-width: 260px; max-width: 260px; flex-shrink: 0; display: flex; flex-direction: column; max-height: 70vh; }
.crm-column-header { padding: 14px 16px; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(31,36,48,0.08); }
.crm-column-count { background: rgba(31,36,48,0.1); border-radius: 999px; padding: 1px 9px; font-size: 11.5px; }
.crm-column-body { padding: 10px; overflow-y: auto; flex: 1; min-height: 60px; transition: background .15s ease; }
.crm-column-body.drag-over { background: rgba(46,127,224,0.08); }
.crm-card { background: var(--white); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow-sm); cursor: grab; }
.crm-card.dragging { opacity: 0.4; }
.crm-card-tipo { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--blue-dark); background: rgba(46,127,224,0.1); border-radius: 999px; padding: 2px 8px; margin-bottom: 6px; }
.crm-card strong { display: block; font-size: 14px; margin-bottom: 2px; }
.crm-card-meta { font-size: 12.5px; color: var(--gray); }
.crm-card-date { font-size: 11px; color: var(--gray-light); margin-top: 4px; }

/* ---- Assistente VIVA ---- */
.viva-widget { position: fixed; right: 24px; bottom: 24px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.viva-button {
  display: flex; align-items: center; gap: 10px;
  background: var(--dark); color: var(--white);
  border: none; border-radius: 999px; padding: 8px 20px 8px 8px;
  box-shadow: var(--shadow-lg); cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  transition: transform .2s ease;
}
.viva-button:hover { transform: translateY(-2px); }
.viva-avatar-btn { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow); }
.viva-widget.open .viva-button span { display: none; }

.viva-panel {
  display: none; flex-direction: column;
  width: min(360px, calc(100vw - 48px)); height: min(520px, calc(100vh - 140px));
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.viva-widget.open .viva-panel { display: flex; }

.viva-panel-header {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--dark), var(--blue-dark));
  color: var(--white); padding: 14px 16px; flex-shrink: 0;
}
.viva-avatar-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow); flex-shrink: 0; }
.viva-panel-header div { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.viva-panel-header span { font-size: 12px; opacity: .8; }
.viva-close { background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; line-height: 1; flex-shrink: 0; }

.viva-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--light-bg); }
.viva-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; }
.viva-msg-bot { align-self: flex-start; background: var(--white); box-shadow: var(--shadow-sm); border-bottom-left-radius: 4px; }
.viva-msg-user { align-self: flex-end; background: var(--green); color: var(--white); border-bottom-right-radius: 4px; }
.viva-msg-typing { align-self: flex-start; background: var(--white); box-shadow: var(--shadow-sm); border-bottom-left-radius: 4px; padding: 12px 16px; border-radius: 14px; }
.viva-typing-dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-light); margin-right: 3px; animation: vivaBlink 1.2s infinite ease-in-out; }
.viva-typing-dots span:nth-child(2) { animation-delay: .2s; }
.viva-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes vivaBlink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.viva-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(31,36,48,0.08); background: var(--white); flex-shrink: 0; }
.viva-input-row input { flex: 1; min-width: 0; border: 1.5px solid rgba(31,36,48,0.14); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-family: var(--font-body); }
.viva-input-row input:focus { outline: none; border-color: var(--green); }
.viva-input-row button { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--green); color: var(--white); font-size: 15px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

@media (max-width: 480px) {
  .viva-widget { right: 14px; bottom: 14px; }
  .viva-button span { display: none; }
  .viva-button { padding: 8px; }
}
