
/* ===== RESET & BASE ===== */
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:'Inter',sans-serif;background:var(--white);color:var(--gray-text);line-height:1.65;}

/* ===== TOKENS (idênticos ao Manual v3 / demais páginas) ===== */
:root{
  --navy:#0D1F3C;
  --navy2:#081629;
  --navy-mid:#162847;
  --gold:#C9A84C;
  --gold-light:#E8D5A3;
  --white:#FFFFFF;
  --gray-bg:#F4F5F7;
  --gray-border:#E2E4E8;
  --gray-text:#3D3D3D;
  --gray-muted:#6b7a8d;
}

/* ===== DROPDOWN (desktop) ===== */
.dropdown{position:relative;}
.dropdown::after{content:"";position:absolute;top:100%;left:0;width:100%;height:10px;}
.dropdown-menu{
  position:absolute;top:100%;left:0;margin-top:10px;
  background:#0a1628;border:1px solid rgba(201,168,76,.2);border-radius:6px;
  min-width:240px;padding:.4rem 0;z-index:200;
  opacity:0;visibility:hidden;transform:translateY(5px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.dropdown:hover .dropdown-menu{opacity:1;visibility:visible;transform:translateY(0);}
.dropdown-right .dropdown-menu{left:auto;right:0;}
.dropdown-menu a{display:block;padding:.6rem 1.25rem;font-size:12px;color:#b0bcd0;text-decoration:none;}
.dropdown-menu a:hover{color:#c9a84c;background:rgba(201,168,76,.06);}

/* ===== HEADER ===== */
.hdr{
  background:var(--navy);padding:0 2.5rem;display:flex;align-items:center;justify-content:space-between;
  height:72px;border-bottom:1px solid rgba(201,168,76,.2);position:sticky;top:0;z-index:100;
}
.logo-wrap{display:flex;align-items:center;gap:13px;text-decoration:none;}
.logo-text{display:flex;flex-direction:column;}
.logo-name{font-family:'Cormorant Garamond',serif;font-size:20px;font-weight:600;color:var(--white);letter-spacing:0.03em;line-height:1.1;}
.logo-slogan{font-family:'Inter',sans-serif;font-size:8px;font-weight:400;letter-spacing:0.18em;color:var(--gold);text-transform:uppercase;margin-top:3px;}
.nav{display:flex;gap:2rem;align-items:center;}
.nav a{font-size:13px;color:rgba(255,255,255,0.6);text-decoration:none;letter-spacing:.02em;transition:color .2s;}
.nav a:hover,.nav a.ativo{color:var(--gold);}
.btn-hdr{background:var(--gold);color:var(--navy);font-family:'Inter',sans-serif;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;padding:9px 22px;border:none;border-radius:3px;cursor:pointer;}

/* Hamburger — oculto por padrão, some no mobile via media query */
.menu-toggle{display:none;}
.mobile-menu-overlay{display:none;}
.mobile-menu{display:none;}

/* ===== HERO ===== */
.hero{position:relative;min-height:560px;display:grid;grid-template-columns:1.05fr .95fr;align-items:stretch;background:var(--navy);overflow:hidden;}
.hero-cover-wrap{position:relative;display:flex;align-items:center;justify-content:center;padding:3.5rem;min-height:560px;}
.hero-cover-glow{position:absolute;width:64%;aspect-ratio:1/1;border-radius:50%;background:radial-gradient(circle, rgba(201,168,76,.18) 0%, rgba(201,168,76,0) 72%);pointer-events:none;}
.hero-cover-card{position:relative;width:100%;max-width:400px;aspect-ratio:1/1;border-radius:8px;overflow:hidden;border:1px solid rgba(201,168,76,.4);box-shadow:0 34px 70px -12px rgba(0,0,0,.55);}
.hero-cover-card::after{content:'';position:absolute;top:-9px;left:-9px;width:26px;height:26px;border-top:2px solid var(--gold);border-left:2px solid var(--gold);pointer-events:none;}
.hero-cover-card img{width:100%;height:100%;object-fit:cover;display:block;}
.hero-cnt{position:relative;z-index:2;padding:4.5rem 4rem;display:flex;flex-direction:column;justify-content:center;order:-1;}
.eyebrow{font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);display:flex;align-items:center;gap:12px;margin-bottom:1.1rem;}
.eyebrow-line{flex:none;width:32px;height:1px;background:var(--gold);}
.hero h1{font-family:'Cormorant Garamond',serif;font-size:44px;font-weight:600;color:var(--white);line-height:1.16;margin-bottom:1.4rem;letter-spacing:-.01em;max-width:580px;}
.hero p{font-size:15.5px;color:rgba(255,255,255,.72);line-height:1.85;margin-bottom:2.2rem;max-width:500px;}
.hero-btns{display:flex;gap:14px;flex-wrap:wrap;align-items:center;}
.btn-gold{background:var(--gold);color:var(--navy);font-size:13px;font-weight:600;padding:14px 28px;border-radius:4px;border:none;cursor:pointer;font-family:'Inter',sans-serif;letter-spacing:.03em;transition:opacity .2s;text-decoration:none;display:inline-block;}
.btn-gold:hover{opacity:.88;}
.btn-outline-wh{background:transparent;color:var(--white);font-size:13px;font-weight:500;padding:13px 26px;border-radius:4px;border:1px solid rgba(255,255,255,.35);cursor:pointer;font-family:'Inter',sans-serif;letter-spacing:.03em;transition:border-color .2s,color .2s;text-decoration:none;display:inline-block;}
.btn-outline-wh:hover{border-color:var(--gold);color:var(--gold);}
.hero-line{position:absolute;left:0;bottom:0;width:100%;height:3px;background:var(--gold);z-index:3;}

/* ===== FAIXA DE CONFIANÇA ===== */
.trust{background:var(--navy2);padding:1.75rem 4rem;display:grid;grid-template-columns:repeat(5,1fr);gap:1.5rem;}
.trust-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.6rem;}
.trust-item svg{width:26px;height:26px;flex-shrink:0;}
.trust-item span{font-size:11.5px;color:rgba(255,255,255,.68);letter-spacing:.02em;line-height:1.35;}

/* ===== SEÇÕES BASE ===== */
.sec-white{background:var(--white);padding:5.5rem 4rem;}
.sec-gray{background:var(--gray-bg);padding:5.5rem 4rem;}
.sec-dark{background:var(--navy);padding:5.5rem 4rem;}
.sec-title{font-family:'Cormorant Garamond',serif;font-size:34px;font-weight:600;color:var(--navy);line-height:1.2;margin-bottom:.5rem;}
.sec-title.lt{color:var(--white);}
.gold-bar{width:40px;height:2px;background:var(--gold);margin:.8rem 0 2.2rem;}
.sec-sub{font-size:15px;color:var(--gray-muted);line-height:1.78;max-width:660px;margin-bottom:2.5rem;}
.sec-sub.lt{color:rgba(255,255,255,.62);}
.text-center{text-align:center;}
.mx-auto{margin-left:auto;margin-right:auto;}

/* ===== PARA QUEM ===== */
.publico-wrap{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start;max-width:1180px;margin:0 auto;}
.publico-intro p{font-size:16px;color:#4a5a6e;line-height:1.9;}
.publico-list{list-style:none;display:flex;flex-direction:column;gap:1.1rem;}
.publico-list li{display:flex;gap:14px;align-items:flex-start;font-size:14.5px;color:var(--gray-text);line-height:1.6;}
.publico-list svg{flex-shrink:0;width:20px;height:20px;margin-top:2px;}

/* ===== POR QUE (dark) ===== */
.txt-block{max-width:740px;margin:0 auto;}
.txt-block p{font-size:15.5px;line-height:1.9;margin-bottom:1.2rem;color:rgba(255,255,255,.68);}
.risco-cta{margin-top:2.2rem;}

/* ===== INSTRUTOR ===== */
.instrutor-wrap{display:grid;grid-template-columns:.85fr 1.15fr;gap:3.5rem;align-items:center;max-width:1180px;margin:0 auto;}
.instrutor-photo{position:relative;background:linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);border-radius:10px;overflow:hidden;display:flex;align-items:flex-end;justify-content:center;min-height:420px;}
.instrutor-photo img{width:100%;max-width:340px;height:auto;display:block;object-fit:contain;}
.instrutor-name{font-family:'Cormorant Garamond',serif;font-size:28px;font-weight:600;color:var(--navy);margin-bottom:1.1rem;}
.instrutor-bio p{font-size:15px;color:#4a5a6e;line-height:1.9;margin-bottom:1.1rem;}

/* ===== CURRÍCULO / ACCORDION ===== */
.curriculo-wrap{max-width:880px;margin:0 auto;}
.mod-item{border-bottom:1px solid var(--gray-border);}
.mod-item:first-child{border-top:1px solid var(--gray-border);}
.mod-head{display:flex;align-items:center;gap:1.5rem;width:100%;background:none;border:none;padding:1.5rem .5rem;cursor:pointer;text-align:left;font-family:'Inter',sans-serif;}
.mod-num{font-family:'Cormorant Garamond',serif;font-size:26px;font-weight:600;color:var(--gold-light);width:44px;flex-shrink:0;}
.mod-title{flex:1;font-size:15.5px;font-weight:600;color:var(--navy);line-height:1.4;}
.mod-caret{flex-shrink:0;width:18px;height:18px;color:var(--gold);transition:transform .25s ease;}
.mod-item.open .mod-caret{transform:rotate(180deg);}
.mod-panel{max-height:0;overflow:hidden;transition:max-height .3s ease;}
.mod-item.open .mod-panel{max-height:400px;}
.mod-panel-inner{padding:0 .5rem 1.6rem 3.7rem;}
.mod-panel-inner ul{list-style:none;display:flex;flex-direction:column;gap:.55rem;}
.mod-panel-inner li{font-size:13.5px;color:var(--gray-muted);line-height:1.6;position:relative;padding-left:16px;}
.mod-panel-inner li::before{content:'';position:absolute;left:0;top:8px;width:6px;height:1.5px;background:var(--gold);}
.curriculo-nota{font-size:12.5px;color:var(--gray-muted);text-align:center;margin-top:2rem;font-style:italic;}
.aulas-videos{max-width:880px;margin:0 auto;}
.video-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-top:1.5rem;}
.video-wrap{position:relative;aspect-ratio:16/9;border-radius:8px;overflow:hidden;box-shadow:0 20px 44px rgba(13,31,60,.18);background:var(--navy2);}
.video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}

/* ===== COMO FUNCIONA ===== */
.func-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1.75rem;max-width:1200px;margin:0 auto;}
.func-item{text-align:center;padding:0 .5rem;}
.func-item svg{width:34px;height:34px;color:var(--gold);margin-bottom:1.1rem;}
.func-item h3{font-family:'Cormorant Garamond',serif;font-size:18px;font-weight:600;color:var(--navy);margin-bottom:.6rem;}
.func-item p{font-size:13px;color:var(--gray-muted);line-height:1.6;}

/* ===== CTA FINAL ===== */
.cta-f{background:var(--gold);padding:5.5rem 4rem;text-align:center;position:relative;overflow:hidden;}
.cta-f::before{content:'';position:absolute;right:-120px;top:-120px;width:360px;height:360px;border-radius:50%;border:1px solid rgba(13,31,60,.1);}
.cta-f h2{font-family:'Cormorant Garamond',serif;font-size:34px;font-weight:600;color:var(--navy);line-height:1.3;margin-bottom:1rem;max-width:640px;margin-left:auto;margin-right:auto;position:relative;}
.cta-f p{font-size:15px;color:rgba(13,31,60,.75);margin-bottom:2.2rem;max-width:560px;margin-left:auto;margin-right:auto;line-height:1.78;position:relative;}
.btn-dk{background:var(--navy);color:var(--white);font-size:13px;font-weight:600;padding:14px 28px;border-radius:4px;border:none;cursor:pointer;font-family:'Inter',sans-serif;letter-spacing:.03em;transition:opacity .2s;text-decoration:none;display:inline-block;position:relative;}
.btn-dk:hover{opacity:.88;}

/* ===== DÚVIDA / WHATSAPP ===== */
.duvida{background:var(--navy2);padding:3.5rem 4rem;text-align:center;}
.duvida h2{font-family:'Cormorant Garamond',serif;font-size:24px;font-weight:600;color:var(--white);margin-bottom:.4rem;}
.duvida p{font-size:14px;color:rgba(255,255,255,.6);margin-bottom:1.6rem;}
.duvida-links{display:flex;gap:1.5rem;justify-content:center;flex-wrap:wrap;font-size:13.5px;}
.duvida-links a{color:var(--gold);text-decoration:none;}
.duvida-links a:hover{text-decoration:underline;}

/* ===== FOOTER ===== */
.ftr{background:#060e1c;padding:3.5rem 4rem 2rem;}
.ftr-g{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;margin-bottom:2.5rem;}
.ftr h4{font-size:11px;font-weight:700;color:var(--gold);margin-bottom:1.1rem;letter-spacing:.1em;text-transform:uppercase;}
.ftr ul{list-style:none;}
.ftr li{font-size:13px;color:rgba(255,255,255,.5);padding:5px 0;}
.ftr a{color:inherit;text-decoration:none;transition:color .2s;}
.ftr a:hover{color:var(--gold);}
.ftr-divider{border:none;border-top:.5px solid rgba(255,255,255,.08);margin-bottom:1.5rem;}
.ftr-bot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;}
.ftr-logo{display:flex;align-items:center;gap:12px;}
.ftr-logo-text{display:flex;flex-direction:column;}
.ftr-logo-name{font-family:'Cormorant Garamond',serif;font-size:15px;font-weight:600;color:rgba(255,255,255,.7);line-height:1.1;}
.ftr-logo-slogan{font-size:8px;font-weight:600;letter-spacing:.14em;color:var(--gold);text-transform:uppercase;margin-top:3px;}
.ftr-copy{font-size:11px;color:rgba(255,255,255,.25);letter-spacing:.05em;}

/* ===== RESPONSIVO ===== */
@media(max-width:900px){
  .hero{grid-template-columns:1fr;min-height:auto;}
  .hero-cover-wrap{padding:2.5rem 2rem;min-height:auto;}
  .hero-cover-card{max-width:280px;}
  .hero-cnt{padding:3rem 2rem;}
  .hero h1{font-size:32px;max-width:100%;}
  .hero p{max-width:100%;}
  .trust{grid-template-columns:repeat(3,1fr);padding:1.5rem 2rem;}
  .sec-white,.sec-gray,.sec-dark{padding:3.5rem 2rem;}
  .publico-wrap{grid-template-columns:1fr;gap:2rem;}
  .instrutor-wrap{grid-template-columns:1fr;gap:2rem;}
  .instrutor-photo{min-height:320px;}
  .func-grid{grid-template-columns:repeat(2,1fr);gap:2rem;}
  .cta-f{padding:3.5rem 2rem;}
  .duvida{padding:3rem 2rem;}
  .ftr{padding:3rem 1.5rem 1.5rem;}
  .ftr-g{grid-template-columns:1fr 1fr;}
  .ftr-bot{flex-direction:column;align-items:flex-start;}
  .mod-panel-inner{padding-left:2.5rem;}
  .video-grid{grid-template-columns:1fr;}

  /* Menu hamburger passa a ativar aqui (900px), junto com o resto do layout mobile —
     entre 480px e 900px o nav desktop completo não cabia e estourava a largura da tela
     (bug confirmado também nas páginas já publicadas: Escola Eleitoral, Escola de Gestão
     Pública e Escola de Licitações, todas com overflow horizontal real nessa faixa). */
  .nav{display:none;}
  .btn-hdr{display:none;}
  .menu-toggle{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:5px;width:32px;height:32px;background:none;border:none;cursor:pointer;padding:0;flex-shrink:0;}
  .menu-toggle span{display:block;width:24px;height:2px;background:var(--gold);border-radius:2px;transition:transform .25s ease,opacity .2s ease;}
  .menu-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .menu-toggle.open span:nth-child(2){opacity:0;}
  .menu-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
  .mobile-menu-overlay{display:block;position:fixed;top:72px;left:0;right:0;bottom:0;background:rgba(6,14,28,.6);z-index:998;opacity:0;pointer-events:none;transition:opacity .3s ease;}
  .mobile-menu-overlay.open{opacity:1;pointer-events:auto;}
  .mobile-menu{display:flex;flex-direction:column;position:fixed;top:72px;right:0;height:calc(100% - 72px);width:80%;max-width:320px;background:var(--navy2);z-index:999;padding:1.25rem 1.5rem 2rem;overflow-y:auto;transform:translateX(100%);visibility:hidden;transition:transform .3s ease,visibility 0s linear .3s;box-shadow:-12px 0 32px rgba(0,0,0,.35);}
  .mobile-menu.open{transform:translateX(0);visibility:visible;transition:transform .3s ease,visibility 0s linear 0s;}
  .mobile-menu a,.mobile-menu .mm-toggle{display:block;width:100%;text-align:left;background:none;border:none;color:rgba(255,255,255,.85);font-family:'Inter',sans-serif;font-size:15px;padding:14px 2px;border-bottom:1px solid rgba(255,255,255,.08);text-decoration:none;cursor:pointer;}
  .mobile-menu .mm-toggle{display:flex;align-items:center;justify-content:space-between;}
  .mm-caret{color:var(--gold);font-size:12px;transition:transform .2s ease;}
  .mm-group.open .mm-caret{transform:rotate(180deg);}
  .mm-submenu{max-height:0;overflow:hidden;transition:max-height .25s ease;}
  .mm-group.open .mm-submenu{max-height:260px;}
  .mm-submenu a{padding-left:1rem;font-size:13.5px;color:rgba(255,255,255,.6);border-bottom:none;}
  .mobile-menu .mm-cta{margin-top:auto;margin-bottom:0;background:var(--gold)!important;color:var(--navy)!important;text-align:center;font-weight:600;border-radius:6px;padding:16px 20px!important;border-bottom:none!important;letter-spacing:.02em;}
}
@media(max-width:560px){
  .trust{grid-template-columns:repeat(2,1fr);}
  .func-grid{grid-template-columns:1fr;}
  .ftr-g{grid-template-columns:1fr;gap:1.75rem;}
  .cta-f h2{font-size:26px;}
  .hero h1{font-size:27px;}
}
@media(max-width:480px){
  .hdr{padding:0 1.125rem;height:68px;}
  .logo-wrap{max-width:260px;gap:10px;}
  .logo-wrap svg{width:22px;height:auto;flex-shrink:0;}
  .logo-text{min-width:0;}
  .logo-name{font-size:16px;}
  .logo-slogan{font-size:7px;letter-spacing:.12em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
  .mobile-menu-overlay,.mobile-menu{top:68px;}
  .mobile-menu{height:calc(100% - 68px);}
}
@media(prefers-reduced-motion:reduce){
  *{transition:none!important;transform:none!important;}
}
