/* eAula — Header restyle (v0 inspired) */
:root{
  --eax-h-primary:#2C1654;
  --eax-h-primary-2:#2d005d;
  --eax-h-secondary:#FF4757;
  --eax-h-secondary-2:#ff304c;
  --eax-h-fg:#2c1654;
  --eax-h-muted:#6b7280;
  --eax-h-border:#e5e7eb;
  --eax-h-bg:#ffffff;
  --eax-h-top-h:36px;
  --eax-h-nav-h:68px;
}

/* Body offset for fixed header (replaces margin-top: 140px scattered hacks) */
body{padding-top:calc(var(--eax-h-top-h) + var(--eax-h-nav-h))}
@media(max-width:767px){
  body{padding-top:var(--eax-h-nav-h)}
}

/* Reset legacy elements that pushed content down */
#slider,#page-title,#bar-sales-consultant{margin-top:0!important}

/* ============== TOP BAR ============== */
header#header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:transparent;box-shadow:none;
  margin-top:0;
  transform:translateY(0);
  transition:
    margin-top .4s cubic-bezier(.4,0,.2,1),
    transform .45s cubic-bezier(.22,.61,.36,1);
  will-change:margin-top,transform;
}
/* Auto-hide: adicionada pelo JS quando o usuário rola para baixo */
header#header.is-hidden{
  transform:translateY(-100%);
  transition:transform .35s cubic-bezier(.4,0,.2,1);
}
@media(prefers-reduced-motion:reduce){
  header#header{ transition:none!important; }
  header#header.is-hidden{ transform:none!important; visibility:hidden; }
}
header#header .container{
  max-width:80rem!important;width:100%!important;
  padding:0 1rem!important;
  display:flex!important;
}
@media(min-width:768px){header#header .container{padding:0 1.5rem!important}}
@media(min-width:1024px){header#header .container{padding:0 2rem!important}}

.mine-top-bar{
  height:var(--eax-h-top-h)!important;
  background:var(--eax-h-primary-2)!important;
  background:linear-gradient(90deg,var(--eax-h-primary-2),#3b0772)!important;
  border-bottom:0!important;
  display:flex!important;justify-content:center!important;align-items:center;
  padding:0;
}
.mine-top-bar .container{
  display:flex!important;align-items:center;justify-content:space-between;
  height:100%;
}
.mine-top-bar ul{
  border:0!important;
  display:flex!important;align-items:center;gap:1rem;flex-wrap:wrap;
  margin:0;padding:0;list-style:none;height:100%;
}
.mine-top-bar li{
  border:0!important;height:auto!important;padding:0!important;margin:0!important;
  display:inline-flex!important;align-items:center;gap:.4rem;
  font-size:11.5px!important;color:#fff!important;line-height:1;
  letter-spacing:.01em;
  background:transparent!important;
}
@media(min-width:768px){.mine-top-bar li{font-size:12px!important}}
.mine-top-bar li .material-icons{
  font-size:14px!important;color:rgba(255,255,255,.75)!important;margin-right:0!important;
}
.mine-top-bar li a{color:#fff!important;text-decoration:none;display:inline-flex;align-items:center;gap:.4rem;transition:opacity .2s}
.mine-top-bar li a:hover{opacity:.8;background:transparent!important}
.mine-top-bar .mine-top-bar-li-link{padding:.3rem .65rem!important;border-radius:9999px;border:0!important;transition:all .2s ease}
.mine-top-bar .mine-top-bar-li-link:hover{background:rgba(255,255,255,.12)!important;border:0!important;color:#fff!important}
.mine-top-bar .mine-top-bar-li-link a{color:#fff!important}
.mine-top-bar .mine-top-bar-li-link .material-icons{color:#fff!important}

.mine-top-bar-right{display:flex!important;align-items:center;gap:.5rem;height:100%}
.mine-top-bar-right a{
  background:transparent!important;border:0!important;
  padding:.3rem .65rem!important;border-radius:9999px;
  font-size:11.5px!important;font-weight:500;line-height:1;
  display:inline-flex;align-items:center;gap:.35rem;
  color:rgba(255,255,255,.92)!important;text-decoration:none;
  transition:all .2s ease;
}
@media(min-width:768px){.mine-top-bar-right a{font-size:12px!important;padding:.35rem .8rem!important}}
.mine-top-bar-right a:hover{background:rgba(255,255,255,.12)!important;border:0!important;color:#fff!important}
.mine-top-bar-right a .material-icons{font-size:14px!important;margin-right:0!important;color:rgba(255,255,255,.85)!important}
.mine-top-bar-right .blue,
.mine-top-bar-right .facebook,
.mine-top-bar-right .instagram{
  background:transparent!important;border:0!important;
  width:auto;padding:.3rem .55rem!important;
}
.mine-top-bar-right .facebook:hover,
.mine-top-bar-right .instagram:hover{background:rgba(255,255,255,.15)!important}
.mine-top-bar-right .blue{padding:.35rem .9rem!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.25)!important}
.mine-top-bar-right .blue:hover{background:rgba(255,255,255,.2)!important}

@media(max-width:767px){
  .mine-top-bar{display:none!important}
}

/* ============== NAV BAR ============== */
.nav-bar{
  height:var(--eax-h-nav-h)!important;
  background:rgba(255,255,255,.92)!important;
  backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  box-shadow:0 1px 0 rgba(229,231,235,.7),0 4px 20px -10px rgba(44,22,84,.1)!important;
  border-bottom:1px solid rgba(229,231,235,.5);
  padding:0;
}
.nav-bar .container{
  display:flex!important;align-items:center;justify-content:space-between;
  height:100%;
}

/* Logo */
.logo{display:flex;align-items:center;flex-shrink:0}
.logo a{display:inline-flex;align-items:center}
.logo img{
  width:auto!important;height:42px!important;
  transition:transform .2s ease;
}
.logo a:hover img{transform:scale(1.03)}

/* Nav */
.nav{display:flex;align-items:center;height:100%}
.nav nav{display:flex;align-items:center;height:100%}
.nav nav ul{
  display:flex!important;align-items:center;gap:.25rem;
  margin:0;padding:0;list-style:none;height:100%;
}
.nav nav > ul > a{display:inline-flex;align-items:center;height:100%;text-decoration:none}
.nav nav li{
  width:auto!important;height:auto!important;padding:.55rem 1rem!important;
  margin:0!important;border:0;
  font-size:14px!important;font-weight:500!important;
  color:var(--eax-h-fg);
  border-radius:9999px;
  transition:all .2s ease;
  display:inline-flex;align-items:center;gap:.25rem;
  white-space:nowrap;
}
.nav nav li:hover{
  background:rgba(44,22,84,.06);
  color:var(--eax-h-primary-2);
  border:0;cursor:pointer;
}
.nav nav li .material-icons{font-size:18px!important;transition:transform .2s ease}
.nav nav .nav-dropdown:hover li .material-icons{transform:rotate(180deg)}

/* Dropdowns */
.nav-dropdown{position:relative;overflow:visible!important;height:100%;display:flex;align-items:center}
.nav-dropdown-content{
  position:absolute!important;top:100%!important;left:50%!important;
  transform:translate(-50%,8px) translateY(-.5em)!important;
  margin-left:0!important;padding:1rem!important;padding-top:1rem!important;
  background:#fff!important;
  border:1px solid var(--eax-h-border)!important;
  border-radius:1rem!important;
  box-shadow:0 20px 50px -15px rgba(44,22,84,.25),0 8px 20px -8px rgba(44,22,84,.1)!important;
  width:540px!important;
  visibility:hidden;opacity:0;
  transition:all .25s ease,visibility 0s linear .25s!important;
}
.nav-dropdown:hover .nav-dropdown-content{
  visibility:visible;opacity:1;
  transform:translate(-50%,8px) translateY(0)!important;
  transition-delay:0s,0s,.05s!important;
}
.nav-dropdown-content::before{
  content:'';position:absolute;top:-7px;left:50%;transform:translateX(-50%) rotate(45deg);
  width:14px;height:14px;background:#fff;border-left:1px solid var(--eax-h-border);border-top:1px solid var(--eax-h-border);
}
.nav-dropdown-box-items{display:flex!important;width:100%;gap:1.25rem;justify-content:space-between!important;padding:.25rem .5rem}
.nav-dropdown-box-item{flex:1;display:flex;flex-direction:column;gap:.25rem}
.nav-dropdown-box-item a{
  display:flex!important;align-items:center;gap:.4rem;
  padding:.55rem .75rem!important;border-radius:.5rem;
  font-size:13px!important;color:var(--eax-h-fg)!important;
  text-decoration:none!important;
  transition:all .15s ease;
}
.nav-dropdown-box-item a:hover{
  background:rgba(44,22,84,.05);
  color:var(--eax-h-primary-2)!important;
  text-decoration:none!important;
  transform:translateX(2px);
}
.nav-dropdown-box-item a .material-icons{font-size:14px!important;color:var(--eax-h-secondary-2)!important;margin-right:0!important}
.nav-dropdown-content-footer{
  display:flex!important;width:100%;margin:1rem 0 0!important;padding:1rem 0 0!important;
  justify-content:center;border-top:1px solid var(--eax-h-border)!important;
}
.nav-dropdown-content-footer a{
  margin:0!important;padding:.55rem 1.25rem!important;
  border:1.5px solid var(--eax-h-primary-2)!important;
  background:transparent!important;color:var(--eax-h-primary-2)!important;
  border-radius:9999px;font-size:13px;font-weight:600;
  transition:all .25s ease;
}
.nav-dropdown-content-footer a:hover{
  background:var(--eax-h-primary-2)!important;color:#fff!important;
  transform:scale(1.04);
}

/* Contact menu in dropdown (Fale Conosco) */
.contact-menu-in-drop{margin:.5rem!important;text-align:left!important}
.contact-menu-in-drop p{font-size:13px;color:var(--eax-h-fg);margin:.5rem 0!important}
.contact-menu-in-drop p .material-icons{color:var(--eax-h-secondary-2)!important}
.contact-menu-in-drop .wtsp-btn{
  display:inline-flex!important;align-items:center;gap:.4rem;
  padding:.55rem 1rem!important;border-radius:9999px;
  background:#25D366!important;color:#fff!important;
  font-size:13px;font-weight:600;text-decoration:none;
  transition:all .25s ease;
}
.contact-menu-in-drop .wtsp-btn:hover{background:#1fbb56!important;transform:scale(1.03)}

/* Matricule-se button */
.btn-register{
  background:var(--eax-h-secondary-2)!important;
  color:#fff!important;
  border:1px solid var(--eax-h-secondary-2)!important;
  border-radius:9999px!important;
  padding:.55rem 1.25rem!important;margin:0 0 0 .75rem!important;
  font-weight:600!important;font-size:13.5px!important;
  width:auto!important;
  transition:all .3s ease!important;
}
.btn-register:hover{
  background:#fff!important;color:var(--eax-h-secondary-2)!important;
  border-color:var(--eax-h-secondary-2)!important;
  transform:scale(1.05);box-shadow:0 8px 20px -8px rgba(255,71,87,.5)!important;
}

/* Mobile menu hamburger */
.mobile-menu{
  display:none;
  width:42px;height:42px;
  align-items:center;justify-content:center;
  border-radius:9999px;color:var(--eax-h-primary-2)!important;
  cursor:pointer;transition:background .2s ease;
}
.mobile-menu:hover{background:rgba(44,22,84,.08)}
.mobile-menu span{font-size:24px!important;display:flex;align-items:center;justify-content:center}
@media(max-width:1023px){
  .nav{display:none!important}
  .mobile-menu{display:flex!important}
  .logo img{height:36px!important}
  .nav-bar{height:60px!important}
  body{padding-top:60px}
}
@media(max-width:767px){
  body{padding-top:60px}
}

/* ============== SIDE MOBILE BAR (sheet — v0 inspired) ============== */

/* Backdrop com blur (mesmo padrão do modal de atendimento) */
.side-mobile-bar-backdrop{
  position:fixed;inset:0;
  background:rgba(44,22,84,.35);
  backdrop-filter:blur(8px) saturate(140%);
  -webkit-backdrop-filter:blur(8px) saturate(140%);
  z-index:99;
  visibility:hidden;opacity:0;
  transition:opacity .3s ease,visibility 0s linear .3s;
  cursor:pointer;
}
body.side-bar-open .side-mobile-bar-backdrop{
  visibility:visible;opacity:1;
  transition:opacity .3s ease,visibility 0s linear 0s;
}
body.side-bar-open{overflow:hidden}

/* Container do sheet: flex column para sticky head + main scrollable + sticky foot */
.side-mobile-bar{
  position:fixed!important;top:0;right:0;
  width:0;max-width:340px;height:100%!important;
  background:#fff!important;
  box-shadow:-10px 0 30px rgba(44,22,84,.18)!important;
  padding:0!important;
  overflow:hidden;
  transition:width .35s cubic-bezier(.4,0,.2,1)!important;
  z-index:100;
  display:flex;flex-direction:column;
}
body.side-bar-open .side-mobile-bar{width:85vw!important}
@media(min-width:380px){body.side-bar-open .side-mobile-bar{width:340px!important}}

/* HEAD — logo + close */
.side-mobile-bar-head{
  flex:0 0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.1rem 1.25rem;
  border-bottom:1px solid var(--eax-h-border);
  background:#fff;
  min-width:340px;
}
.side-mobile-bar-logo{
  display:inline-flex;align-items:center;
  text-decoration:none!important;
  transition:transform .2s ease;
}
.side-mobile-bar-logo:hover{transform:scale(1.03)}
.side-mobile-bar-logo img{height:30px;width:auto;display:block}
.side-mobile-bar .closebtn{
  position:static!important;
  width:2.25rem;height:2.25rem;border-radius:50%;
  background:#f3f4f6;color:var(--eax-h-fg)!important;
  font-size:1.4rem!important;font-weight:300;line-height:1!important;
  display:inline-flex;align-items:center;justify-content:center;
  padding:0!important;text-decoration:none!important;
  margin:0!important;
  transition:all .2s ease;flex-shrink:0;
}
.side-mobile-bar .closebtn:hover{
  background:var(--eax-h-secondary-2);color:#fff!important;
  transform:rotate(90deg);
}

/* MAIN NAV — área scrollable com os links e seções intermediárias */
.side-mobile-bar-nav{
  flex:1 1 auto;
  overflow-y:auto;overflow-x:hidden;
  padding:.5rem .75rem 1rem;min-width:340px;
  display:flex;flex-direction:column;
  scrollbar-width:thin;scrollbar-color:var(--eax-h-border) transparent;
}
.side-mobile-bar-nav::-webkit-scrollbar{width:6px}
.side-mobile-bar-nav::-webkit-scrollbar-thumb{background:var(--eax-h-border);border-radius:3px}

.side-mobile-bar-nav > a{
  display:flex;align-items:center;
  padding:.85rem 1rem!important;margin:.15rem 0!important;
  border-radius:.75rem;
  color:var(--eax-h-fg)!important;
  font-size:.95rem!important;font-weight:500;
  text-decoration:none!important;
  transition:all .2s ease;
}
.side-mobile-bar-nav > a:hover,
.side-mobile-bar-nav > a:focus-visible{
  background:rgba(44,22,84,.06)!important;
  color:var(--eax-h-primary-2)!important;
  text-decoration:none!important;
  padding-left:1.15rem!important;
}

/* SEÇÕES intermediárias (Fale conosco etc) — exceto a última (Efetuar matrícula) */
.side-mobile-bar-nav .side-mobile-bar-section{
  margin:1rem 0 .5rem!important;
  padding:1rem!important;
  background:#f9fafb;
  border:1px solid var(--eax-h-border);
  border-radius:.85rem;
  color:var(--eax-h-fg)!important;
}
.side-mobile-bar-nav .side-mobile-bar-section h1{
  font-size:.72rem!important;font-weight:700!important;
  text-transform:uppercase;letter-spacing:.06em;
  color:var(--eax-h-muted)!important;margin:0 0 .65rem!important;
  display:flex;align-items:center;gap:.4rem;
}
.side-mobile-bar-nav .side-mobile-bar-section h1 i{color:var(--eax-h-secondary-2)!important;font-size:.85rem}
.side-mobile-bar-nav .side-mobile-bar-section p,
.side-mobile-bar-nav .side-mobile-bar-section > span{
  font-size:.88rem!important;color:var(--eax-h-fg)!important;
  margin:.3rem 0!important;line-height:1.4;
}
.side-mobile-bar-nav .side-mobile-bar-section .material-icons{color:var(--eax-h-secondary-2)!important;font-size:16px!important}
.side-mobile-bar-section-wsp{
  display:inline-flex!important;align-items:center;gap:.45rem;
  background:#25D366!important;color:#fff!important;
  padding:.6rem 1rem!important;border-radius:9999px;
  font-size:.82rem!important;font-weight:600;margin-top:.65rem!important;
  transition:all .2s ease;
}
.side-mobile-bar-section-wsp:hover{background:#1fbb56!important;transform:scale(1.03)}

/* FOOT — última seção "Efetue sua matrícula" fica sticky no final */
.side-mobile-bar > .side-mobile-bar-section:last-child{
  flex:0 0 auto;
  margin:0!important;padding:1.1rem 1.25rem!important;
  background:rgba(45,0,93,.04)!important;
  border-top:1px solid var(--eax-h-border)!important;
  border-radius:0!important;
  min-width:340px;
}
.side-mobile-bar > .side-mobile-bar-section:last-child h1{
  font-size:.78rem!important;font-weight:700!important;
  text-transform:uppercase;letter-spacing:.06em;
  color:var(--eax-h-muted)!important;
  margin:0 0 .65rem!important;
}
.side-mobile-bar > .side-mobile-bar-section:last-child span[onclick]{
  display:flex!important;align-items:center;justify-content:center;gap:.4rem;
  background:var(--eax-h-secondary-2)!important;color:#fff!important;
  padding:.85rem 1.25rem!important;border-radius:9999px!important;
  font-size:.95rem!important;font-weight:600!important;
  width:100%!important;text-align:center!important;
  cursor:pointer;transition:all .25s ease;
  border:2px solid var(--eax-h-secondary-2);
}
.side-mobile-bar > .side-mobile-bar-section:last-child span[onclick]:hover{
  background:#fff!important;color:var(--eax-h-secondary-2)!important;
  transform:scale(1.02);text-decoration:none!important;
  box-shadow:0 8px 20px -8px rgba(255,48,76,.5);
}

@media(prefers-reduced-motion:reduce){
  .side-mobile-bar,.side-mobile-bar-backdrop{transition:none!important}
  .side-mobile-bar .closebtn:hover{transform:none}
}
