/*
Theme Name: Instituto Meio do Mundo
Author: 3BrasilTech
Version: 2.0
Description: Tema oficial do Instituto Meio do Mundo — slider cinematográfico estilo wearebrand.io
Text Domain: instituto-meio-do-mundo
*/

/* ════════════════════════════════════════════════════════════════════
   TOKENS & RESET
════════════════════════════════════════════════════════════════════ */
:root {
  --gold:       #c8a45a;
  --gold-lt:    #e8c87a;
  --gold-dk:    #a07830;
  --ink:        #061008;
  --green:      #0f2415;
  --green-md:   #1a3d22;
  --green-lt:   #2a6638;
  --off:        #f5f2ed;
  --warm:       #eeebe4;
  --muted:      rgba(255,255,255,.42);
  --r:          3px;
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --ease-cine:  cubic-bezier(.77,0,.175,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--off);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (hover: hover) { body { cursor: none; } }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ════════════════════════════════════════════════════════════════════
   LAYOUT HELPERS
════════════════════════════════════════════════════════════════════ */
.imm-container { max-width: 1240px; margin: 0 auto; padding: 0 56px; }
.imm-section   { padding: 108px 0; }
.imm-section--dark  { background: var(--ink); }
.imm-section--gold  { background: var(--gold); }
.imm-section--green { background: var(--green-md); }
.imm-section--warm  { background: var(--warm); }
.imm-section--border{ background: #fff; border-top: 1px solid var(--warm); }

/* ════════════════════════════════════════════════════════════════════
   PRELOADER
════════════════════════════════════════════════════════════════════ */
#imm-preloader {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .9s var(--ease-cine), transform .9s var(--ease-cine);
}
#imm-preloader.is-out { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.pl-logo {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: aniUp .6s var(--ease-out) .2s both;
}
.pl-sup  { font-size: 8px; letter-spacing: 5px; text-transform: uppercase; color: rgba(255,255,255,.25); }
.pl-name { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-style: italic; font-weight: 300; color: var(--gold); letter-spacing: 3px; }
.pl-bar-wrap { width: 160px; height: 1px; background: rgba(255,255,255,.07); overflow: hidden; animation: aniFade .4s ease .5s both; }
.pl-bar  { height: 100%; background: var(--gold); animation: aniBar 1.4s cubic-bezier(.4,0,.2,1) .5s forwards; }
.pl-lat  { font-size: 8px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,.18); animation: aniFade .4s ease .8s both; }

/* ════════════════════════════════════════════════════════════════════
   CURSOR
════════════════════════════════════════════════════════════════════ */
#imm-cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 8999; pointer-events: none;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  margin: -2.5px 0 0 -2.5px;
  transition: opacity .3s;
  will-change: transform;
}
#imm-cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 8998; pointer-events: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(200,164,90,.5);
  margin: -17px 0 0 -17px;
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              margin .35s var(--ease-out), border-color .35s, opacity .3s;
  will-change: transform;
}
#imm-cursor-ring.is-xl {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-color: rgba(200,164,90,.22);
}
@media (hover: none) { #imm-cursor-dot, #imm-cursor-ring { display: none; } }

/* ════════════════════════════════════════════════════════════════════
   SCROLL PROGRESS
════════════════════════════════════════════════════════════════════ */
#imm-scroll-prog {
  position: fixed; top: 0; left: 0; z-index: 8997;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transition: width .08s linear;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════════════ */
#imm-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 76px; display: flex; align-items: center;
  padding: 0 56px;
  background: transparent;
  transition: background .5s ease, backdrop-filter .5s ease, box-shadow .5s ease;
}
#imm-nav.is-solid {
  background: rgba(6,16,8,.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.imm-nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.imm-nav-logo  { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.imm-nav-icon, .custom-logo  { width: 38px; height: 38px; flex-shrink: 0; }
.imm-nav-txt   { display: flex; flex-direction: column; line-height: 1.2; }
.imm-nav-sup   { font-size: 8px; letter-spacing: 3.5px; text-transform: uppercase; color: rgba(255,255,255,.32); font-weight: 400; }
.imm-nav-name  { font-size: 14px; font-weight: 700; color: var(--gold); letter-spacing: .4px; }

/* Nav links */
.imm-nav-links {
  display: flex; align-items: center; gap: 38px;
  list-style: none; margin: 0; padding: 0;
}
.imm-nav-links li { list-style: none; }
.imm-nav-links a {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.52); text-decoration: none; font-weight: 500;
  position: relative; padding-bottom: 2px;
  transition: color .2s;
}
.imm-nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.imm-nav-links a:hover { color: var(--gold); }
.imm-nav-links a:hover::after { transform: scaleX(1); }
.imm-nav-menu { display: flex; align-items: center; }

/* CTA button */
.imm-nav-cta {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink); background: var(--gold);
  padding: 11px 26px; border-radius: var(--r);
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.imm-nav-cta:hover { background: var(--gold-lt); transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════════════
   HERO — CINEMATIC SLIDER
   Arquitectura exata: slides 100vh · crossfade · Ken Burns · texto gigante
════════════════════════════════════════════════════════════════════ */
#imm-hero {
  position: relative;
  width: 100%; height: 100svh; min-height: 600px;
  overflow: hidden;
  background: var(--ink);
}

/* ── Linha do Equador ── */
.hero-equator-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; z-index: 4; pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(200,164,90,.14) 20%,
    rgba(200,164,90,.30) 50%,
    rgba(200,164,90,.14) 80%,
    transparent 100%);
  opacity: 0; animation: aniFade 2s ease 2.8s forwards;
}
.hero-equator-label {
  position: absolute; left: 56px; top: 50%;
  transform: translateY(-50%);
  font-size: 7px; letter-spacing: 3.5px; text-transform: uppercase;
  color: rgba(200,164,90,.45); font-weight: 500;
  background: var(--ink); padding: 3px 10px; border-radius: 2px;
  opacity: 0; animation: aniFade 1.5s ease 3.2s forwards;
  white-space: nowrap;
}

/* ── Slides wrapper ── */
.hero-slides { position: absolute; inset: 0; }

/* ── Individual slide ── */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s var(--ease-cine);
}
.hero-slide.is-active  { opacity: 1; pointer-events: auto; z-index: 2; }
.hero-slide.is-leaving { opacity: 0; z-index: 1; }

/* ── Background image — inset:-6% gives room for Ken Burns ── */
.slide-img {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Ken Burns — 4 variants, one per slide */
.hero-slide.is-active:nth-child(1) .slide-img { animation: kb1 10s ease-out forwards; }
.hero-slide.is-active:nth-child(2) .slide-img { animation: kb2 10s ease-out forwards; }
.hero-slide.is-active:nth-child(3) .slide-img { animation: kb3 10s ease-out forwards; }
.hero-slide.is-active:nth-child(4) .slide-img { animation: kb4 10s ease-out forwards; }

@keyframes kb1 { from { transform: scale(1)    translate(0%,    0%); }
                 to   { transform: scale(1.12)  translate(-1.5%, .5%); } }
@keyframes kb2 { from { transform: scale(1.06) translate(1%,    0%); }
                 to   { transform: scale(1.16)  translate(-.5%, -.5%); } }
@keyframes kb3 { from { transform: scale(1)    translate(0%,    1%); }
                 to   { transform: scale(1.1)   translate(.5%,  -.5%); } }
@keyframes kb4 { from { transform: scale(1.08) translate(-.5%,  .5%); }
                 to   { transform: scale(1)     translate(.5%,   0%); } }

/* ── Cinematic vignette overlay ── */
.slide-vignette {
  position: absolute; inset: 0; z-index: 1;
  background:
    /* side left dark — texto legível */
    linear-gradient(to right,
      rgba(6,16,8,.80) 0%,
      rgba(6,16,8,.45) 45%,
      rgba(6,16,8,.20) 70%,
      rgba(6,16,8,.45) 100%),
    /* bottom dark — ancora o texto */
    linear-gradient(to top,
      rgba(6,16,8,.88) 0%,
      rgba(6,16,8,.35) 35%,
      transparent 65%),
    /* top strip */
    linear-gradient(to bottom,
      rgba(6,16,8,.45) 0%,
      transparent 20%);
}

/* ── Slide body: texto + aside ── */
.slide-body {
  position: absolute;
  inset: 0; z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 0 56px 88px;
}

/* ── TÍTULO GIGANTE — coração do efeito wearebrand ── */
.slide-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(68px, 9.5vw, 148px);
  font-weight: 300;
  font-style: italic;
  line-height: .9;
  color: #fff;
  letter-spacing: -.5px;
  flex-shrink: 0;
  max-width: 70%;
}

/* Cada linha tem wrapper de overflow + inner que anima */
.tline {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;  /* evita corte de descenders */
}
.tline-inner {
  display: block;
  transform: translateY(108%);
  transition: transform 1.1s var(--ease-out);
}
/* Linha 1 entra um pouco antes */
.hero-slide.is-active .tline:nth-child(1) .tline-inner { transition-delay: .18s; transform: translateY(0); }
.hero-slide.is-active .tline:nth-child(2) .tline-inner { transition-delay: .34s; transform: translateY(0); }
.hero-slide.is-active .tline:nth-child(3) .tline-inner { transition-delay: .50s; transform: translateY(0); }

/* ── Aside: tag + desc + CTA ── */
.slide-aside {
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  min-width: 240px; max-width: 280px;
  padding-bottom: 6px;
}

.slide-tag {
  font-size: 8px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease .7s, transform .7s var(--ease-out) .7s;
}
.slide-desc {
  font-size: 12.5px; color: rgba(255,255,255,.48); line-height: 1.8;
  text-align: right; font-weight: 300;
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease .85s, transform .7s var(--ease-out) .85s;
}
.slide-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; text-decoration: none;
  border: 1px solid rgba(200,164,90,.35); padding: 10px 20px;
  border-radius: var(--r);
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease 1s, transform .7s var(--ease-out) 1s,
              background .2s, border-color .2s;
}
.slide-cta:hover { background: rgba(200,164,90,.1); border-color: rgba(200,164,90,.6); }
.slide-cta-arrow { transition: transform .25s; }
.slide-cta:hover .slide-cta-arrow { transform: translateX(4px); }

/* Activa os aside elements quando slide está active */
.hero-slide.is-active .slide-tag,
.hero-slide.is-active .slide-desc,
.hero-slide.is-active .slide-cta { opacity: 1; transform: translateY(0); }

/* ── Dots ── */
.hero-dots {
  position: absolute; left: 56px; bottom: 44px; z-index: 10;
  display: flex; gap: 8px; align-items: center;
}
.hdot {
  width: 22px; height: 1.5px;
  background: rgba(255,255,255,.22); border: none; cursor: pointer;
  padding: 0; flex-shrink: 0;
  transition: background .35s, width .35s;
}
.hdot.is-on { width: 48px; background: var(--gold); }

/* ── Counter (canto direito vertical) ── */
.hero-counter {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hc-cur, .hc-tot {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; letter-spacing: 2px;
  writing-mode: vertical-rl; text-orientation: mixed;
  color: rgba(255,255,255,.28);
}
.hc-cur { color: var(--gold); font-size: 13px; }
.hc-track {
  width: 1px; height: 64px; background: rgba(255,255,255,.1); overflow: hidden;
}
.hc-prog {
  width: 100%; height: 0%; background: var(--gold);
  transition: height 7s linear; /* duração = tempo entre slides */
}

/* ── Scroll cue ── */
.hero-scroll-cue {
  position: absolute; right: 56px; bottom: 44px; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; animation: aniFade 1s ease 3s forwards;
}
.hsc-line { width: 36px; height: 1px; background: rgba(255,255,255,.22); }
.hsc-txt  { font-size: 8px; letter-spacing: 3.5px; text-transform: uppercase; color: rgba(255,255,255,.28); }

/* ════════════════════════════════════════════════════════════════════
   MARQUEE
════════════════════════════════════════════════════════════════════ */
.imm-marquee { background: var(--gold); overflow: hidden; padding: 13px 0; }
.imm-marquee-track {
  display: flex; white-space: nowrap;
  animation: aniMarquee 26s linear infinite;
}
.imm-marquee:hover .imm-marquee-track { animation-play-state: paused; }
.mq-item {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 28px;
  font-size: 9px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--ink); flex-shrink: 0;
}
.mq-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink); opacity: .3; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════════
   TYPOGRAPHY HELPERS
════════════════════════════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 9px; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; flex-shrink: 0; }
.eyebrow--dark  { color: var(--green-md); }
.eyebrow--dark::before  { background: var(--green-md); }
.eyebrow--gold  { color: var(--gold-dk); }
.eyebrow--gold::before  { background: var(--gold-dk); }

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 400; line-height: 1.12; margin-bottom: 20px;
  color: var(--ink);
}
.section-heading em { font-style: italic; color: var(--green-lt); }
.section-heading--light { color: #fff; }
.section-heading--light em { color: var(--gold); }
.section-sub {
  font-size: 14px; color: rgba(255,255,255,.36); max-width: 500px;
  line-height: 1.75; font-weight: 300;
}

/* ════════════════════════════════════════════════════════════════════
   REVEAL ON SCROLL
════════════════════════════════════════════════════════════════════ */
.imm-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s var(--ease-out);
}
.imm-reveal.is-in { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════════════════════
   SOBRE
════════════════════════════════════════════════════════════════════ */
#sobre { background: var(--off); }
.sobre-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center;
}
.sobre-card {
  background: var(--green-md); padding: 44px; border-radius: var(--r);
  color: #fff; position: relative; overflow: hidden; margin-bottom: 12px;
}
.sobre-card::before {
  content: '0°'; font-family: 'Cormorant Garamond', serif;
  font-size: 150px; font-weight: 300; font-style: italic;
  color: rgba(255,255,255,.04);
  position: absolute; right: -8px; bottom: -28px; line-height: 1; pointer-events: none;
}
.sobre-card-lbl   { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.32); margin-bottom: 16px; font-weight: 500; }
.sobre-card-quote { font-family: 'Cormorant Garamond', serif; font-size: 23px; line-height: 1.55; color: #fff; font-style: italic; margin-bottom: 20px; font-weight: 400; }
.sobre-card-sub   { font-size: 12.5px; color: rgba(255,255,255,.46); line-height: 1.85; font-weight: 300; }

.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-card  { background: #fff; border: 1px solid #e6e2da; padding: 20px; border-radius: var(--r); border-top: 2px solid var(--gold-dk); }
.mc-icon    { font-size: 20px; margin-bottom: 10px; display: block; }
.mc-title   { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green-md); margin-bottom: 6px; }
.mc-txt     { font-size: 12px; color: #5a6b5c; line-height: 1.65; }

.sobre-text p { font-size: 14.5px; color: #4a5e4c; line-height: 1.9; margin-bottom: 18px; font-weight: 300; }

.values { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.value-row {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 16px; border-left: 2px solid var(--gold-dk);
  background: rgba(160,120,48,.06); border-radius: 0 var(--r) var(--r) 0;
}
.val-num   { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-style: italic; color: var(--gold-dk); font-weight: 400; flex-shrink: 0; width: 20px; }
.val-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green-md); margin-bottom: 4px; }
.val-txt   { font-size: 12px; color: #5a7a62; line-height: 1.65; }

/* ════════════════════════════════════════════════════════════════════
   PILARES
════════════════════════════════════════════════════════════════════ */
.pilares-header { text-align: center; margin-bottom: 64px; }
.pilares-header .section-heading { margin-bottom: 14px; }
.pilares-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px;
}
.pilar {
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05);
  padding: 44px 24px; text-align: center; cursor: pointer;
  transition: background .35s, border-color .35s, transform .4s var(--ease-out), opacity .35s;
  position: relative; overflow: hidden;
}
.pilar::before {
  content: attr(data-n); font-family: 'Cormorant Garamond', serif;
  font-size: 90px; font-weight: 300; font-style: italic;
  color: rgba(255,255,255,.025);
  position: absolute; top: -14px; right: 6px; line-height: 1; pointer-events: none;
}
.pilar:hover  { background: rgba(200,164,90,.07); border-color: rgba(200,164,90,.2); transform: translateY(-8px); }
.pilar.is-dim { opacity: .18; transform: none !important; }

.pilar-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(200,164,90,.08); border: 1px solid rgba(200,164,90,.18);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 24px;
  transition: background .35s, border-color .35s;
}
.pilar:hover .pilar-icon { background: rgba(200,164,90,.18); border-color: rgba(200,164,90,.38); }
.pilar-name  { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.pilar-desc  { font-size: 11.5px; color: rgba(255,255,255,.34); line-height: 1.75; font-weight: 300; }
.pilar-arrow { display: block; margin-top: 22px; font-size: 16px; color: rgba(200,164,90,.25); transition: color .3s, transform .3s; }
.pilar:hover .pilar-arrow { color: var(--gold); transform: translateX(5px); }

/* ════════════════════════════════════════════════════════════════════
   IMPACTO
════════════════════════════════════════════════════════════════════ */
#impacto { padding: 88px 0; }
.impacto-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0;
  position: relative;
}
.impacto-grid::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(6,16,8,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,16,8,.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.impacto-item { text-align: center; padding: 36px 20px; border-right: 1px solid rgba(6,16,8,.12); }
.impacto-item:last-child { border-right: none; }
.imp-val  { font-family: 'Cormorant Garamond', serif; font-size: clamp(48px, 6.5vw, 72px); font-style: italic; font-weight: 400; color: var(--ink); line-height: 1; }
.imp-sfx  { font-size: 30px; color: var(--green-md); }
.imp-label{ font-size: 9px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(6,16,8,.46); margin-top: 8px; }
.imp-sub  { font-size: 11px; color: rgba(6,16,8,.3); margin-top: 4px; font-weight: 300; }

/* ════════════════════════════════════════════════════════════════════
   PROGRAMAS
════════════════════════════════════════════════════════════════════ */
#programas { background: #fff; }
.programas-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 52px; }
.programas-header .section-heading { margin-bottom: 0; }
.link-arrow { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dk); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: gap .2s; }
.link-arrow:hover { gap: 12px; }

.programas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.prog-card--featured { grid-row: span 2; }

.prog-card { position: relative; overflow: hidden; display: block; text-decoration: none; }
.prog-bg {
  width: 100%; height: 100%; min-height: 248px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; position: relative;
  transition: transform .65s cubic-bezier(.25,.46,.45,.94);
}
.prog-card--featured .prog-bg { min-height: 506px; }
.prog-card:hover .prog-bg { transform: scale(1.04); }
.prog-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,16,8,.92) 0%, rgba(6,16,8,.18) 55%, transparent 100%);
  pointer-events: none;
}
.prog-bg--eco  { background: linear-gradient(145deg, #1a4a28, #2a6638); }
.prog-bg--rota { background: linear-gradient(145deg, #0f2e1a, #1e4d2b); }
.prog-bg--camp { background: linear-gradient(145deg, #0d1e10, #1a3d22); }
.prog-bg--cult { background: linear-gradient(145deg, #0a1a0c, #163620); }
.prog-content  { position: relative; z-index: 2; }
.prog-eixo     { display: inline-block; font-size: 8px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; font-weight: 600; }
.prog-title    { font-family: 'Cormorant Garamond', serif; font-size: 26px; color: #fff; font-weight: 300; font-style: italic; line-height: 1.2; }
.prog-card--featured .prog-title { font-size: 40px; }
.prog-desc     { font-size: 12.5px; color: rgba(255,255,255,.46); margin-top: 10px; line-height: 1.65; font-weight: 300; }
.prog-icon {
  position: absolute; top: 20px; right: 20px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(200,164,90,.12); border: 1px solid rgba(200,164,90,.28);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: background .3s;
}
.prog-card:hover .prog-icon { background: rgba(200,164,90,.26); }

/* ════════════════════════════════════════════════════════════════════
   DEPOIMENTO
════════════════════════════════════════════════════════════════════ */
#depoimento { text-align: center; }
.dep-wrap   { max-width: 780px; margin: 0 auto; }
.dep-mark   { font-family: 'Cormorant Garamond', serif; font-size: 130px; font-style: italic; color: rgba(15,36,21,.08); line-height: .55; margin-bottom: 24px; display: block; }
.dep-quote  { font-family: 'Cormorant Garamond', serif; font-size: clamp(22px, 3.2vw, 32px); color: var(--ink); line-height: 1.6; font-style: italic; font-weight: 300; margin-bottom: 36px; transition: opacity .35s, transform .35s; }
.dep-divider{ width: 32px; height: 1px; background: var(--gold-dk); margin: 0 auto 18px; }
.dep-author { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green-md); }
.dep-role   { font-size: 11px; color: #6a8a6c; margin-top: 4px; }
.dep-dots   { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.dep-dot    { width: 7px; height: 7px; border-radius: 50%; background: rgba(15,36,21,.14); border: none; cursor: pointer; transition: background .3s; }
.dep-dot.is-on { background: var(--gold-dk); }

/* ════════════════════════════════════════════════════════════════════
   PARCEIROS
════════════════════════════════════════════════════════════════════ */
.parceiros-label { text-align: center; font-size: 8px; letter-spacing: 4px; text-transform: uppercase; color: rgba(15,36,21,.28); margin-bottom: 40px; }
.parceiros-row   { display: flex; align-items: center; justify-content: center; gap: 52px; flex-wrap: wrap; }
.parceiro        { height: 38px; display: flex; align-items: center; background: var(--warm); border-radius: var(--r); padding: 0 26px; font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(15,36,21,.3); font-weight: 700; }

/* ════════════════════════════════════════════════════════════════════
   CTA FINAL
════════════════════════════════════════════════════════════════════ */
#cta-final { position: relative; overflow: hidden; }
#cta-final::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 50%, rgba(200,164,90,.08) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(26,61,34,.7) 0%, transparent 45%);
}
.cta-inner   { position: relative; z-index: 2; text-align: center; max-width: 680px; margin: 0 auto; }
.cta-heading { font-family: 'Cormorant Garamond', serif; font-size: clamp(38px, 5.5vw, 66px); color: #fff; font-weight: 300; line-height: 1.06; margin-bottom: 18px; font-style: italic; }
.cta-heading em { color: var(--gold); }
.cta-sub     { font-size: 15px; color: rgba(255,255,255,.4); margin-bottom: 48px; line-height: 1.75; font-weight: 300; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white   { background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; padding: 16px 38px; border: none; cursor: pointer; border-radius: var(--r); text-decoration: none; display: inline-block; transition: background .2s, transform .15s; }
.btn-white:hover { background: var(--off); transform: translateY(-2px); }
.btn-outline { background: transparent; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; padding: 16px 38px; border: 1px solid rgba(255,255,255,.22); cursor: pointer; border-radius: var(--r); text-decoration: none; display: inline-block; transition: border-color .2s, color .2s; }
.btn-outline:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* ════════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════════ */
#imm-footer { background: var(--ink); padding: 68px 0 0; }
.footer-top  { display: grid; grid-template-columns: 280px 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo-row   { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-inst-txt   { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.25); }
.footer-name-txt   { font-size: 15px; font-weight: 700; color: var(--gold); }
.footer-tagline    { font-size: 10px; color: rgba(255,255,255,.2); line-height: 1.75; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 22px; }
.footer-socials    { display: flex; gap: 8px; }
.social-btn        { width: 34px; height: 34px; border-radius: var(--r); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; text-decoration: none; transition: background .2s, border-color .2s; }
.social-btn:hover  { background: rgba(200,164,90,.12); border-color: rgba(200,164,90,.25); }
.footer-col-title  { font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 18px; }
.footer-col-links  { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a{ font-size: 12.5px; color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.footer-col-links a:hover { color: var(--gold); }
.footer-bottom     { border-top: 1px solid rgba(255,255,255,.05); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-copy       { font-size: 10px; color: rgba(255,255,255,.15); }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { font-size: 10px; color: rgba(255,255,255,.15); text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.4); }

/* ════════════════════════════════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════════════════════════════════ */
#imm-back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--ink);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
  opacity: 0; transform: translateY(14px);
  transition: opacity .35s, transform .35s, background .2s;
  pointer-events: none;
}
#imm-back-top.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
#imm-back-top:hover { background: var(--gold-lt); }

/* ════════════════════════════════════════════════════════════════════
   KEYFRAMES
════════════════════════════════════════════════════════════════════ */
@keyframes aniFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes aniUp    { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes aniBar   { from { width: 0; } to { width: 100%; } }
@keyframes aniMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .slide-body    { padding: 0 44px 80px; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .slide-aside   { align-items: flex-start; min-width: unset; }
  .slide-desc, .slide-cta { text-align: left; }
  .hero-equator-label { left: 44px; }
  .sobre-grid    { grid-template-columns: 1fr; gap: 48px; }
  .pilares-grid  { grid-template-columns: repeat(3, 1fr); }
  .footer-top    { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .imm-container  { padding: 0 28px; }
  #imm-nav        { padding: 0 28px; }
  .imm-nav-menu, .imm-nav-cta { display: none; }
  .slide-body     { padding: 0 28px 72px; gap: 24px; }
  .slide-title    { font-size: clamp(52px, 13vw, 80px); max-width: 100%; }
  .hero-dots      { left: 28px; bottom: 36px; }
  .hero-counter   { display: none; }
  .hero-scroll-cue{ display: none; }
  .hero-equator-line, .hero-equator-label { display: none; }
  .impacto-grid   { grid-template-columns: 1fr 1fr; }
  .programas-grid { grid-template-columns: 1fr; }
  .prog-card--featured { grid-row: span 1; }
  .pilares-grid   { grid-template-columns: 1fr 1fr; }
  .footer-top     { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; gap: 10px; text-align: center; }
}
