/* ===================================================
   PORTAL PASTORAL ESCOLAR — Educação Adventista RS
   =================================================== */

:root {
  --ink: #0f1520;
  --ink-2: #2a3446;
  --ink-3: #5a6478;
  --paper: #fbf7f0;
  --paper-2: #f2ebdc;
  --line: #e8e0cd;
  --brand: #a5241a;      /* vermelho adventista */
  --brand-2: #cf4a30;
  --brand-3: #f56b3d;
  --gold: #d9a441;
  --forest: #1f4d3f;
  --forest-2: #2d6b56;
  --sky: #2b5f8a;
  --sky-2: #3f7fb0;
  --plum: #4a2340;
  --sand: #efe4c9;
  --shadow: 0 20px 60px -20px rgba(15,21,32,.25);
  --shadow-soft: 0 8px 30px -12px rgba(15,21,32,.15);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body {
  background:
    radial-gradient(1200px 700px at 100% -10%, rgba(165,36,26,.06), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(43,95,138,.05), transparent 60%),
    var(--paper);
  min-height: 100vh;
  padding-bottom: 60px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ============ TOP BAR ============ */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 32px;
  background: rgba(251,247,240,.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  height: 44px; width: auto; object-fit: contain;
  display: block;
}
.brand-logo-adv { height: 46px; }
.brand-divider {
  width: 1px; height: 32px; background: var(--line);
  align-self: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: 'Prompt', 'Inter', sans-serif; font-weight: 600; font-size: 19px; letter-spacing: .01em; color: var(--ink); }
.brand-sub { font-family: 'Prompt', 'Inter', sans-serif; font-size: 10.5px; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; font-weight: 400; }

.topbar-actions { display: flex; align-items: center; gap: 14px; }
.sync-info {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2);
}
.sync-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #c9c2b4; box-shadow: 0 0 0 3px rgba(201,194,180,.25);
  transition: all .3s ease;
}
.sync-dot.ok { background: #2d9c5f; box-shadow: 0 0 0 3px rgba(45,156,95,.2); }
.sync-dot.loading { background: var(--gold); animation: pulse 1s infinite; }
.sync-dot.err { background: var(--brand); }
.sync-time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
@keyframes pulse { 50% { opacity: .35; } }

.btn-sync {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 13px;
  transition: transform .15s ease, background .2s ease;
}
.btn-sync:hover { background: var(--brand); transform: translateY(-1px); }
.btn-sync.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12px; font-weight: 500; color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }

/* ============ HERO ============ */
.hero {
  max-width: 1280px; margin: 40px auto 30px; padding: 0 32px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; padding: 6px 14px;
  background: rgba(165,36,26,.08); color: var(--brand);
  border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02;
  letter-spacing: -.025em; color: var(--ink);
}
.hero h1 em {
  font-style: italic; color: var(--brand);
  background: linear-gradient(120deg, #001a5c, #1a3a8a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .08em;
  margin-right: -.04em;
  letter-spacing: 0;
}
.hero h1 br { display: block; content: ""; margin-top: 4px; }
.hero-lead {
  margin-top: 20px; font-size: 17px; color: var(--ink-3);
  line-height: 1.6; max-width: 560px;
}
.hero-stats {
  margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 620px;
}
.hero-stat {
  padding: 16px 0; border-top: 2px solid var(--ink);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stat-num { font-family: 'Fraunces', serif; font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.hero-stat-lbl { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

.hero-visual { position: relative; height: 380px; display: grid; place-items: center; }
.hero-trilha {
  max-width: 100%; max-height: 340px; width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(15,21,32,.12));
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-8px); } }
@keyframes rotate { to { transform: rotate(360deg); } }

.verse {
  position: absolute; bottom: 20px; right: 0;
  max-width: 260px; text-align: right;
  font-family: 'Fraunces', serif; font-style: italic; color: var(--ink-2);
  font-size: 15px; line-height: 1.4;
}
.verse small { display: block; margin-top: 8px; font-style: normal; font-size: 11px; color: var(--brand); letter-spacing: .1em; text-transform: uppercase; }

/* ============ CARDS SHELL ============ */
.cards {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; flex-direction: column; gap: 28px;
}
.card {
  background: #fff; border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
  border: 1px solid rgba(232,224,205,.6);
  position: relative; overflow: hidden;
  animation: cardIn .6s cubic-bezier(.2,.7,.2,1) both;
}
.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3) { animation-delay: .16s; }
.card:nth-child(4) { animation-delay: .24s; }
.card:nth-child(5) { animation-delay: .32s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.card-head { margin-bottom: 28px; }
.card-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); background: rgba(165,36,26,.08);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.card-tag.light { color: rgba(255,255,255,.9); background: rgba(255,255,255,.14); }
.card h2 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -.02em; line-height: 1.05;
}
.card-sub { margin-top: 10px; color: var(--ink-3); font-size: 15px; line-height: 1.55; max-width: 720px; }

/* ============ CARD 1 · ACORDO ============ */
.card-agreement::before {
  content: ''; position: absolute; top: 0; right: 0; width: 380px; height: 100%;
  background: linear-gradient(135deg, rgba(165,36,26,.05), rgba(217,164,65,.06));
  pointer-events: none;
}
.agreement-summary {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px;
}
.ag-tile {
  padding: 22px; border-radius: 16px;
  background: linear-gradient(180deg, var(--paper), #fff);
  border: 1px solid var(--line);
}
.ag-tile.hi {
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
  color: #fff; border: 0;
  box-shadow: 0 20px 40px -18px rgba(165,36,26,.5);
}
.ag-num { font-family: 'Fraunces', serif; font-size: 40px; font-weight: 700; letter-spacing: -.03em; }
.ag-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; opacity: .8; }

.campo-compare {
  position: relative;
  margin: 22px 0 20px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f1520, #2a1a1a 60%, #4a1e1a);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 18px 40px -20px rgba(15,21,32,.5);
}
.campo-compare::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,181,71,.15), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(165,36,26,.25), transparent 55%);
  pointer-events: none;
}
.campo-compare-head { position: relative; margin-bottom: 16px; }
.campo-compare-title {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 20px; letter-spacing: -.01em;
}
.campo-compare-sub {
  font-size: 12px; color: rgba(255,255,255,.6);
  letter-spacing: .06em; text-transform: uppercase; margin-top: 4px;
}
.campo-compare-body {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.campo-tile {
  padding: 16px 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}
.campo-tile.hi {
  background: linear-gradient(160deg, #d9a441, #b8862a);
  border: 0;
  box-shadow: 0 12px 30px -14px rgba(217,164,65,.6);
}
.campo-tile-num {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 30px; letter-spacing: -.02em; line-height: 1.1;
}
.campo-tile.hi .campo-tile-num { color: #1a1108; }
.campo-tile-lbl {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  margin-top: 6px; opacity: .8;
}
.campo-tile.hi .campo-tile-lbl { color: rgba(26,17,8,.75); opacity: 1; }
@media (max-width: 720px) {
  .campo-compare-body { grid-template-columns: 1fr; }
}

.agreement-progress { position: relative; margin: 6px 0 24px; }
.ag-progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--ink-3); margin-bottom: 8px;
}
.ag-progress-head span:last-child { font-family: 'Fraunces', serif; color: var(--brand); font-weight: 700; font-size: 16px; }
.ag-progress-bar {
  height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden;
}
.ag-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-3), var(--gold));
  border-radius: 999px; transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}

.unit-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.unit-card {
  padding: 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; transition: all .2s ease;
}
.unit-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-soft); }
.unit-code { font-weight: 700; letter-spacing: .06em; font-size: 14px; }
.unit-stats { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.unit-stat { display: flex; flex-direction: column; }
.unit-stat-num { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: var(--brand); }
.unit-stat-lbl { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

/* ============ CARD 2 · AULAS & CULTOS ============ */
.card-teach { background: linear-gradient(150deg, #fff, #fbf6ea 100%); }
.teach-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--paper-2); border-radius: 999px; margin-bottom: 24px;
}
.teach-tab {
  padding: 10px 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink-3); transition: all .2s;
}
.teach-tab.active { background: var(--ink); color: #fff; box-shadow: 0 4px 14px -4px rgba(15,21,32,.4); }

.teach-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.teach-total-tile {
  padding: 24px; border-radius: 18px;
  background: linear-gradient(160deg, var(--forest), var(--forest-2));
  color: #fff; box-shadow: 0 18px 36px -20px rgba(31,77,63,.6);
}
.teach-total-tile.alt { background: linear-gradient(160deg, var(--sky), var(--sky-2)); box-shadow: 0 18px 36px -20px rgba(43,95,138,.6); }
.teach-total-tile.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.teach-total-num { font-family: 'Fraunces', serif; font-size: 46px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.teach-total-lbl { font-size: 12px; opacity: .85; margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }

.pastor-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pastor-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: all .2s;
}
.pastor-item:hover { border-color: var(--forest); transform: translateY(-1px); }
.pastor-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--forest), var(--sky));
  color: #fff; display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 16px;
}
.pastor-info { flex: 1; }
.pastor-name { font-weight: 600; font-size: 14px; }
.pastor-unit { font-size: 11px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.pastor-val {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700;
  color: var(--forest);
}

/* ============ CARD 3 · EVENTOS ============ */
.card-events { background: linear-gradient(180deg, #1a2436, #0f1520); color: #fff; }
.card-events .card-tag { background: rgba(255,255,255,.1); color: #ffb547; }
.card-events .card-sub { color: rgba(255,255,255,.65); }

.events-tabs { display: flex; gap: 8px; margin: 26px 0 22px; flex-wrap: wrap; }
.events-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.75);
  font-weight: 600; font-size: 12.5px; transition: all .2s;
  border: 1px solid rgba(255,255,255,.08); white-space: nowrap;
}
.events-tab:hover { background: rgba(255,255,255,.12); color: #fff; }
.events-tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: #fff; border-color: transparent;
  box-shadow: 0 12px 30px -12px rgba(245,107,61,.6);
}
.events-tab-icon { font-size: 14px; opacity: .9; }

.events-slider { position: relative; }
.slider-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 20px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.slider-track::-webkit-scrollbar { height: 6px; }
.slider-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 6px; }

.event-slide {
  min-width: 340px; max-width: 340px; scroll-snap-align: start;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  transition: all .3s;
}
.event-slide:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.event-photo {
  height: 180px; background: linear-gradient(135deg, var(--brand-2), var(--plum));
  position: relative; overflow: hidden; cursor: pointer;
}
.event-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event-photo:hover img { transform: scale(1.06); }
.event-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7));
}
.event-photo-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 10px; background: rgba(0,0,0,.5);
  border-radius: 999px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.event-photo-unit {
  position: absolute; bottom: 12px; left: 14px; z-index: 2;
  font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; letter-spacing: -.02em;
}
.event-photo-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12px; color: rgba(255,255,255,.75);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,181,71,.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(165,36,26,.45), transparent 55%),
    linear-gradient(135deg, #3a2f4a, #1c1a2c);
  transition: transform .4s ease;
}
.event-photo:hover .event-photo-empty { transform: scale(1.04); }
.event-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.event-title { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; }
.event-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto;
}
.event-stat {
  padding: 10px 12px; background: rgba(255,255,255,.05); border-radius: 10px;
}
.event-stat-num { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: #ffb547; }
.event-stat-lbl { font-size: 10px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }
.event-desc { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.5; min-height: 40px; }
.event-drive {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #ffb547; margin-top: 4px;
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08);
}
.event-drive:hover { color: #ffd47f; }

.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  font-size: 22px; font-family: 'Fraunces', serif;
  display: grid; place-items: center;
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.15);
  transition: all .2s;
}
.slider-nav:hover { background: var(--brand); border-color: var(--brand); }
.slider-nav.prev { left: -8px; }
.slider-nav.next { right: -8px; }

.slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.slider-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2);
  transition: all .2s;
}
.slider-dots span.active { background: #ffb547; width: 22px; border-radius: 4px; }

/* ============ CARD 4 · ESTUDOS ============ */
.card-studies::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--sky), var(--forest));
}
.studies-hero {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-bottom: 28px;
}
.sh-big {
  padding: 32px; border-radius: 20px;
  background: linear-gradient(160deg, var(--sky), var(--forest));
  color: #fff; box-shadow: 0 20px 40px -18px rgba(43,95,138,.5);
  display: flex; flex-direction: column; justify-content: center;
}
.sh-num { font-family: 'Fraunces', serif; font-size: 64px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.sh-lbl { font-size: 13px; opacity: .9; margin-top: 8px; text-transform: uppercase; letter-spacing: .08em; }

.sh-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sh-mini {
  padding: 20px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, var(--paper), #fff);
  transition: all .2s;
}
.sh-mini:hover { border-color: var(--sky); transform: translateY(-2px); }
.sh-mini-num { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 700; color: var(--sky); }
.sh-mini-lbl { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

.studies-table-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.studies-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.studies-table thead th {
  background: var(--paper-2); color: var(--ink-2);
  text-align: left; padding: 14px 16px; font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
}
.studies-table tbody td {
  padding: 14px 16px; border-top: 1px solid var(--line);
}
.studies-table tbody tr:hover { background: rgba(43,95,138,.03); }
.studies-table td:first-child { font-weight: 700; letter-spacing: .05em; }
.studies-table .num { font-family: 'Fraunces', serif; font-weight: 700; color: var(--sky); font-size: 18px; }

/* ============ CARD 5 · BANNER MISSÃO ============ */
.card-banner {
  padding: 0; overflow: hidden; position: relative;
  background: linear-gradient(140deg, #1a2f26 0%, #0f1e18 40%, #1c1a2c 100%);
  color: #fff;
  min-height: 460px;
}
.banner-bg { position: absolute; inset: 0; pointer-events: none; }
.banner-map { position: absolute; right: -80px; top: 50%; transform: translateY(-50%); width: 600px; height: 600px; opacity: .6; }
.banner-map svg { width: 100%; height: 100%; }
.banner-map .latlng { animation: rotate 120s linear infinite; transform-origin: center; }

.banner-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  padding: 48px; min-height: 460px; align-items: center;
}
.banner-left h2 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(34px, 4.5vw, 54px); line-height: 1.02;
  letter-spacing: -.02em; margin: 10px 0 18px;
}
.banner-lead { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 520px; margin-bottom: 26px; }
.banner-lead strong { color: var(--gold); font-weight: 600; }

.mission-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.mission-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: rgba(255,255,255,.05);
  border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
  transition: all .2s;
}
.mission-row:hover { background: rgba(255,255,255,.1); }
.mission-flag {
  width: 36px; height: 24px; border-radius: 4px;
  display: grid; place-items: center; font-weight: 700; font-size: 10px;
  letter-spacing: .05em;
}
.mission-flag.BRA { background: linear-gradient(180deg, #009c3b 50%, #ffdf00 50%); color: #002776; }
.mission-flag.URU { background: linear-gradient(180deg, #0038a8 33%, #fff 33% 66%, #0038a8 66%); color: #0038a8; }
.mission-flag.PAR { background: linear-gradient(180deg, #d52b1e 33%, #fff 33% 66%, #0038a8 66%); color: #d52b1e; }
.mission-place { flex: 1; font-weight: 600; font-size: 14px; }
.mission-leader { font-size: 12px; color: rgba(255,255,255,.65); font-style: italic; }

.btn-calendar {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--gold); color: #2b1a06;
  font-weight: 700; font-size: 14px;
  transition: all .2s;
}
.btn-calendar:hover { background: #ffd47f; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(217,164,65,.6); }

.banner-right { display: grid; place-items: center; }
.mission-globe {
  position: relative; width: 300px; height: 300px;
  display: grid; place-items: center;
}
.globe-ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(217,164,65,.3);
  animation: rotate 20s linear infinite;
}
.globe-ring.r1 { inset: 0; }
.globe-ring.r2 { inset: 30px; border-color: rgba(217,164,65,.4); animation-duration: 30s; animation-direction: reverse; }
.globe-ring.r3 { inset: 60px; border-color: rgba(217,164,65,.5); animation-duration: 40s; }
.globe-core {
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), #b48a2f 60%, #6d4d0f);
  display: grid; place-items: center;
  box-shadow: inset -20px -30px 60px rgba(0,0,0,.5), 0 20px 40px -10px rgba(217,164,65,.5);
  color: #2b1a06;
}
.globe-num { font-family: 'Fraunces', serif; font-size: 48px; font-weight: 700; }
.globe-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; text-align: center; padding: 0 12px; }
.pin {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-3); box-shadow: 0 0 0 4px rgba(245,107,61,.25);
  animation: ping 2s ease-in-out infinite;
}
.pin.p1 { top: 30px; left: 40px; }
.pin.p2 { bottom: 40px; right: 30px; animation-delay: .5s; }
.pin.p3 { top: 60%; left: 10px; animation-delay: 1s; }
@keyframes ping { 50% { box-shadow: 0 0 0 12px rgba(245,107,61,0); } }

/* ============ CARD 1 · UNIT CARD DETALHADO ============ */
.unit-grid-detailed { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.unit-card-lg { padding: 18px 18px 14px; }
.unit-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.unit-head .unit-code { font-family: 'Fraunces', serif; font-size: 20px; color: var(--brand); }
.unit-head .unit-name {
  font-size: 10.5px; color: var(--ink-3); text-align: right;
  text-transform: uppercase; letter-spacing: .06em; line-height: 1.2;
  max-width: 60%;
}
.unit-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px;
  margin-bottom: 12px;
}
.unit-stats-grid .unit-stat-num { font-size: 26px; }
.unit-stats-grid .unit-stat-num.small { font-size: 18px; color: var(--ink-2); }
.unit-extra {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 11px;
}
.unit-extra-row { display: flex; justify-content: space-between; gap: 8px; }
.unit-extra-lbl { color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.unit-extra-val { color: var(--ink-2); font-weight: 500; text-align: right; max-width: 65%; }

/* ============ CARD 5 · CALENDÁRIO ============ */
.card-calendar {
  background:
    radial-gradient(1000px 400px at 100% -20%, rgba(0,26,92,.06), transparent 60%),
    linear-gradient(180deg, #fff, #f7f4ec);
}
.cal-toolbar {
  display: grid; grid-template-columns: 1fr auto; gap: 20px;
  align-items: end; margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.cal-summary { display: flex; flex-direction: column; gap: 4px; }
.cal-count { font-size: 14px; color: var(--ink-3); }
.cal-count strong { font-family: 'Fraunces', serif; font-size: 28px; color: var(--brand); font-weight: 700; margin-right: 6px; letter-spacing: -.02em; }
.cal-next { font-size: 13px; color: var(--ink-3); }
.cal-next strong { color: var(--ink); font-weight: 600; }

.cal-months {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px;
  margin-top: 8px;
}
.cal-month-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 4px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  cursor: pointer; transition: all .2s;
  min-height: 54px;
}
.cal-month-btn:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.cal-month-btn.empty { opacity: .35; cursor: default; }
.cal-month-btn.empty:hover { transform: none; border-color: var(--line); box-shadow: none; }
.cm-name { font-family: 'Prompt', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); }
.cm-count {
  font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: var(--brand);
  line-height: 1; margin-top: 2px;
}
.cal-month-btn.empty .cm-count { color: var(--ink-3); }

.cal-timeline { display: flex; flex-direction: column; gap: 32px; }
.cal-month {
  padding: 20px 22px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.cal-month-head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cal-month-num {
  font-family: 'Fraunces', serif; font-size: 42px; font-weight: 700;
  color: var(--brand); line-height: 1; letter-spacing: -.03em;
  min-width: 52px;
}
.cal-month-title h3 {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em;
}
.cal-month-title span {
  font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .1em;
}
.cal-events { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cal-event {
  display: grid; grid-template-columns: 72px 1fr; gap: 16px;
  padding: 14px 14px 14px 0;
  border-left: 3px solid var(--brand);
  padding-left: 14px; border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(165,36,26,.03), transparent 60%);
  transition: background .2s;
}
.cal-event:hover { background: linear-gradient(90deg, rgba(165,36,26,.06), transparent 60%); }
.cal-event.past { border-left-color: var(--ink-3); opacity: .65; }
.cal-event.past:hover { opacity: .85; }
.cal-day {
  text-align: center; padding: 6px 4px;
  border-radius: 10px; background: var(--paper-2);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 60px;
}
.cal-day-num { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 700; color: var(--brand); line-height: 1; letter-spacing: -.02em; }
.cal-event.past .cal-day-num { color: var(--ink-3); }
.cal-day-wd { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; font-weight: 500; }
.cal-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-title { font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.35; }
.cal-time { font-size: 12px; color: var(--brand); font-weight: 600; }
.cal-loc { font-size: 12px; color: var(--ink-3); }
.cal-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; margin-top: 4px; }

.card-calendar .btn-calendar {
  align-self: end;
  padding: 12px 20px; font-size: 13px;
  background: var(--ink); color: #fff;
}
.card-calendar .btn-calendar:hover { background: var(--brand); box-shadow: 0 12px 24px -10px rgba(165,36,26,.5); }

/* ============ FOOTER ============ */
.foot {
  max-width: 1280px; margin: 40px auto 0; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-3);
  flex-wrap: wrap; gap: 10px;
}
.foot-mini { font-variant-numeric: tabular-nums; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15,21,32,.94); backdrop-filter: blur(10px);
  display: none; place-items: center;
}
.lightbox.open,
.lightbox.active { display: grid; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { max-width: 88vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); object-fit: contain; }
.lb-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 24px;
  border: 1px solid rgba(255,255,255,.2);
}
.lb-close:hover { background: var(--brand); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 28px;
  border: 1px solid rgba(255,255,255,.2);
}
.lb-nav.prev { left: 24px; }
.lb-nav.next { right: 24px; }
.lb-nav:hover { background: var(--brand); }
.lb-caption {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  color: #fff; font-size: 13px; opacity: .9;
  padding: 8px 18px; background: rgba(0,0,0,.35); border-radius: 999px;
  backdrop-filter: blur(8px);
}
.lb-caption-unit { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lb-caption-count { font-variant-numeric: tabular-nums; opacity: .75; }

/* ============ MURAL DE FOTOS · thumbs + loading ============ */
.event-photo-hero {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transition: transform .5s ease;
}
.event-photo-hero.has-photo .event-photo-empty { display: none; }
.event-photo-cover {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.event-photo-hero.has-photo:hover .event-photo-cover { transform: scale(1.06); }

.event-photo-loading {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(15,21,32,.35);
  backdrop-filter: blur(2px);
  z-index: 3;
}
.event-photo-loading .spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}

.event-photo-count {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  padding: 5px 10px; background: rgba(0,0,0,.55);
  border-radius: 999px; font-size: 10.5px; letter-spacing: .06em;
  font-weight: 600; text-transform: uppercase;
  backdrop-filter: blur(6px);
  color: #fff;
}

.event-thumbs {
  display: flex; gap: 6px; padding: 8px 10px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.event-thumbs::-webkit-scrollbar { display: none; }
.event-thumb {
  flex: 0 0 44px; height: 44px;
  border-radius: 8px; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.08);
  padding: 0; cursor: pointer;
  background: rgba(255,255,255,.06);
  transition: all .18s ease;
  display: grid; place-items: center;
  color: rgba(255,255,255,.7);
  font-weight: 700; font-size: 11px;
  letter-spacing: .04em;
}
.event-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.event-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--brand-3);
  box-shadow: 0 8px 16px -8px rgba(245,107,61,.5);
}
.event-thumb-more {
  background: linear-gradient(135deg, rgba(245,107,61,.2), rgba(165,36,26,.25));
  color: #fff;
}

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  z-index: 998;
  padding: 14px 24px; background: var(--ink); color: #fff;
  border-radius: 999px; font-size: 13px; font-weight: 500;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.5);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--brand); }
.toast.ok { background: var(--forest); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .topbar { padding: 12px 18px; gap: 8px; flex-wrap: wrap; }
  .topbar-actions { flex-wrap: wrap; gap: 8px; }
  .sync-info { padding: 6px 12px; font-size: 11px; }
  .btn-sync { padding: 8px 14px; font-size: 12px; }
  .btn-ghost span { display: none; }

  .hero { grid-template-columns: 1fr; gap: 20px; padding: 0 20px; margin: 24px auto; }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .cards { padding: 0 18px; gap: 20px; }
  .card { padding: 24px; border-radius: 18px; }
  .card h2 { font-size: 26px; }

  .agreement-summary { grid-template-columns: repeat(2, 1fr); }
  .ag-num { font-size: 32px; }

  .teach-totals { grid-template-columns: 1fr; }
  .teach-total-num { font-size: 38px; }

  .studies-hero { grid-template-columns: 1fr; }
  .sh-num { font-size: 48px; }
  .studies-table { font-size: 12px; }
  .studies-table thead th, .studies-table tbody td { padding: 10px 8px; }

  .banner-inner { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; text-align: center; }
  .mission-list { text-align: left; }
  .btn-calendar { align-self: center; }
  .mission-globe { width: 220px; height: 220px; }
  .globe-core { width: 120px; height: 120px; }
  .globe-num { font-size: 36px; }

  .slider-nav { display: none; }
  .event-slide { min-width: 280px; max-width: 280px; }

  .foot { padding: 0 18px; }
}
@media (max-width: 960px) {
  .cal-toolbar { grid-template-columns: 1fr; }
  .cal-months { grid-template-columns: repeat(6, 1fr); }
  .card-calendar .btn-calendar { align-self: start; margin-top: 8px; }
  .cal-event { grid-template-columns: 60px 1fr; gap: 12px; }
  .cal-month-num { font-size: 34px; }
}
@media (max-width: 500px) {
  .hero h1 { font-size: 34px; }
  .agreement-summary { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .sh-mini-grid { grid-template-columns: 1fr 1fr; }
  .cal-months { grid-template-columns: repeat(4, 1fr); }
  .brand-sub { display: none; }
  .brand-logo { height: 36px; }
  .brand-logo-adv { height: 38px; }
}
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-trilha {
  max-width: 90%;
}

@media (max-width: 768px) {
  .hero {
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    font-size: 38px;
  }
}
.hero {
  align-items: start;
}

.hero-content {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-visual {
  min-width: 0;
  height: auto;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-trilha {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 300px;
}

.verse {
  position: relative;
  right: auto;
  bottom: auto;
  margin-top: 16px;
  max-width: 260px;
  text-align: center;
}
