/* ========== VARIÁVEIS / THEME ========== */
:root{
  --brand:#b30016;
  --dark:#000;
  --light:#f6f6f6;
  --accent:#ffb400;
  --header-h:72px;
  --radius:14px;
  --max-width:1200px;
}

/* ========== RESET / BASE ========== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  color:#111;
  background:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Alternância automática das seções (cinza e branco) */
section.alt:nth-of-type(odd){background:#fff}
section.alt:nth-of-type(even){background:#f6f6f6}

/* spacer para hero colar na navbar fixa */
body::before{
  content:"";
  display:block;
  height:var(--header-h);
  width:100%;
}

/* ========== HEADER / NAVBAR ========== */
header{
  position:fixed;top:0;left:0;right:0;height:var(--header-h);
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 28px;background:var(--brand);color:#fff;z-index:1200;
  box-shadow:0 1px 6px rgba(0,0,0,.08);
}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;color:#fff;font-size:1.05rem;letter-spacing:.6px;cursor:pointer}
.logo img{height:48px;object-fit:contain;display:block;margin:0;padding:0;transition:transform .12s ease}
.logo:hover img{transform:translateY(-3px)}
.logo small{display:block;font-size:.55rem;margin-top:-4px;color:#fff;font-weight:600}
.header-right{display:flex;align-items:center;gap:12px}
nav{display:flex;gap:18px;align-items:center}
nav a{color:#fff;text-decoration:none;font-weight:600;font-size:0.95rem;opacity:.95}
nav a:hover{opacity:1}
.nav-cta{
  display:inline-block;background:#fff;color:var(--brand);padding:10px 16px;border-radius:999px;
  font-weight:800;text-decoration:none;box-shadow:0 8px 18px rgba(179,0,22,0.12);margin-left:6px;
  transition:transform .12s, box-shadow .12s;
}
.nav-cta:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(179,0,22,0.18)}

/* ========== LAYOUT PRINCIPAL / HERO GRID ========== */
.destaques{
  width:100%;max-width:var(--max-width);margin:0 auto;
  display:grid;grid-template-columns: 1fr 420px;gap:32px;align-items:stretch;padding:18px;
  min-height:calc(100vh - var(--header-h));
}

/* ========== HERO - LEFT (visuals) ========== */
.hero-left{
  position:relative;overflow:hidden;border-radius:12px;
  background:linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.75) 100%);
  display:flex;align-items:center;padding:40px;color:#fff;
}
.hero-left .bg{position:absolute;inset:0;z-index:0;object-fit:cover;width:100%;height:100%;filter:brightness(.35) contrast(1.03)}
.hero-left .stripe{position:absolute;inset:0;z-index:1;pointer-events:none;background:
  linear-gradient(120deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.00) 10%),
  linear-gradient(transparent 0, transparent 100%)}
.hero-left .content{position:relative;z-index:2;max-width:720px;width:100%}
.promo-badge{padding:8px 14px;border-radius:999px;background:rgba(255,255,255,0.06);color:#fff;font-weight:700;font-size:.9rem;border:1px solid rgba(255,255,255,0.06);margin-bottom:16px}
.hero-title{font-size: clamp(1.8rem, 3.6vw, 3.6rem);line-height:1;margin:6px 0 18px;font-weight:900;color:var(--brand);text-shadow:0 6px 28px rgba(179,0,22,.12), 0 0 30px rgba(255,0,0,.06)}
.hero-sub{font-size: clamp(1rem, 1.8vw, 1.25rem);margin-bottom:22px;opacity:.95;max-width:58ch}
.benefit-area{margin-top:18px}
.big-value{font-size: clamp(2.2rem, 4.8vw, 4.2rem);font-weight:900;line-height:1;color:#fff;margin:6px 0}
.benefit-list{list-style:none;padding:0;margin:18px 0 10px;display:flex;flex-direction:column;gap:10px;max-width:640px}
.benefit-list li{padding:10px 14px;border-radius:8px;border:2px solid rgba(255,180,0,0.95);background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.12));font-weight:600;color:#fff;font-size:0.96rem}
.offer-note{margin-top:14px;font-weight:600;color:#fff;opacity:.95}

/* ========== HERO - RIGHT / FORM PANEL ========== */
.hero-right{display:flex;align-items:center;justify-content:center;padding:10px}
.form-matricula{width:100%;background:#fff;border-radius:var(--radius);padding:26px;box-shadow:0 18px 50px rgba(0,0,0,.12);border:1px solid rgba(0,0,0,0.04)}
.form-matricula h2{margin:0 0 12px;font-size:1.1rem;color:#111;font-weight:700}
.form-matricula p.lead{margin:0 0 18px;color:#444;font-size:0.95rem;line-height:1.4}
.form-matricula .field{margin-bottom:12px}
.form-matricula input[type="text"],.form-matricula input[type="email"],.form-matricula input[type="tel"]{width:100%;padding:12px 14px;border-radius:8px;border:1px solid #e6e6e6;font-size:0.98rem;outline:none;transition:.12s}
.form-matricula input:focus{box-shadow:0 4px 14px rgba(179,0,22,.06);border-color:rgba(179,0,22,.15)}
.btn-submit{width:100%;padding:12px 16px;border-radius:10px;border:none;background:var(--brand);color:#fff;font-weight:800;font-size:1rem;cursor:pointer;margin-top:6px}
.btn-submit:hover{filter:brightness(.95)}
.legal{margin-top:12px;font-size:0.82rem;color:#666;line-height:1.3}
.form-help{margin-top:10px;color:var(--brand);font-weight:700;text-decoration:none;display:inline-block;font-size:0.92rem}

/* ========== CURSOS / CARDS ========== */
.courses-inner{max-width:var(--max-width);margin:0 auto;padding:0 28px}
.grade-cursos{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:18px}
.course-category{grid-column:1/-1;margin-top:8px}
.course-category h3{margin:0 0 10px;color:var(--brand)}
.card-cursos{background:#fff;border-radius:12px;padding:16px;border:1px solid #eee;box-shadow:0 8px 26px rgba(0,0,0,0.04);display:flex;flex-direction:column;gap:6px;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;will-change: transform;perspective: 1000px;position: relative;}
.card-cursos .card-inner{
  transition: transform .62s cubic-bezier(.2,.9,.2,1);
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100px;
}
.card-cursos .card-front,
.card-cursos .card-back{
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
}
.card-cursos .card-front{
  background: transparent;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-cursos .card-back{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding: 18px;
  gap: 4px;
  transform: rotateY(180deg);
  background: linear-gradient(180deg, rgba(179,0,22,1), rgba(128,0,16,1));
  color: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,0.12);
  border-radius: 12px;
}
.card-cursos:hover .card-inner,
.card-cursos.flipped .card-inner{
  transform: rotateY(180deg);
}
.card-cursos .promo-title{font-weight:900;font-size:1rem;margin:0 0 4px 0;line-height:1.2;color:#fff}
.card-cursos .promo-desc{font-size:.95rem;margin:0 0 8px 0;line-height:1.3;color:rgba(255,255,255,0.95)}
.card-cursos .promo-cta{
  background:#fff;color:var(--brand);padding:10px 14px;border-radius:8px;font-weight:800;text-decoration:none;display:inline-block;margin-top:4px;transition:all .2s ease;
}
.card-cursos .promo-cta:hover{
  transform:scale(1.05);box-shadow:0 6px 18px rgba(0,0,0,0.2);
}
@media (max-width:600px){
  .card-cursos .card-back{padding:12px}
}
.card-cursos h4{margin:0 0 4px 0;font-size:1.05rem;color:#111;line-height:1.2}
.card-cursos:hover,.card-cursos:focus-within{transform:translateY(-8px);box-shadow:0 20px 50px rgba(0,0,0,0.10);border-color:rgba(179,0,22,0.06)}
.modalidades{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px;margin-bottom:4px}
.modalidade-presencial{background:rgba(179,0,22,0.06);color:var(--brand);padding:6px 10px;border-radius:999px;font-weight:700;font-size:.85rem}
.modalidade-ead{background:#e6f4ff;color:#0b66cc;padding:6px 10px;border-radius:999px;font-weight:700;font-size:.85rem}
.course-desc{color:#444;font-size:.95rem;line-height:1.3;margin-bottom:4px}
.infos{font-size:0.95rem;color:#444;margin:2px 0;line-height:1.3}
.infos span{font-weight:700;margin-right:6px;color:#111}

/* ========== DEPOIMENTOS  ========== */
.testimonials-section{width:100%;padding:40px 0}
.testimonials-inner{max-width:var(--max-width);margin:0 auto;padding:0 28px}
.testimonials-inner h2{color:var(--brand);margin:0 0 8px}
.testimonials-inner p{margin:0 0 18px;color:#444}
.testimonials-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.testimonial-card{background:#fff;border-radius:12px;padding:18px;box-shadow:0 10px 30px rgba(0,0,0,0.06);border:1px solid #f3f3f3}
.testimonial-quote{font-style:italic;color:#333;margin-bottom:12px;min-height:70px}
.testimonial-author{display:flex;align-items:center;gap:12px}
.testimonial-author img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.testimonial-author .meta{font-weight:700;color:#111}
.testimonial-author .role{display:block;font-size:.9rem;color:#666;font-weight:600}

/* ========== LOCALIZAÇÃO ========== */
.map-wrap{position:relative;width:100%;padding-bottom:56%;border-radius:12px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,0.08)}
.map-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* ========== CONTATO ========== */
.contato-grid{display:grid;grid-template-columns:320px 1fr;gap:20px;align-items:start;margin-top:12px}
.contact-card{background:#fff;padding:26px;border-radius:12px;box-shadow:0 18px 50px rgba(0,0,0,.12);border:1px solid rgba(0,0,0,0.04)}
.contact-card h3{margin:0 0 8px;color:var(--brand)}
.contact-card h2{margin:0 0 12px;font-size:1.1rem;color:#111;font-weight:700}
.contact-item{display:flex;align-items:center;gap:12px;margin:10px 0}
.contact-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;background:#25D366;color:#fff;text-decoration:none;font-weight:700}
.contact-btn.mail{
    background:#1a73e8;
    color:#fff;
    border:0;
    box-shadow:0 8px 20px rgba(26,115,232,0.18);
}
.contact-btn.mail svg{fill:currentColor}
@media (max-width:900px){.contato-grid{grid-template-columns:1fr}}

/* ========== UTILITÁRIOS / CONTAINERS ========== */
.container-center{max-width:var(--max-width);margin:0 auto;padding:0 18px}
.card-cta{
  display:inline-block;
  margin-top:10px;
  padding:10px 14px;
  border-radius:10px;
  font-weight:800;
  font-size:0.95rem;
  background:var(--brand);
  color:#fff;
  text-decoration:none;
  border:0;
  box-shadow:none;
  text-align:center;
}
.card-cursos .card-cta{align-self:start}
@media (max-width:600px){
  .card-cursos .card-cta{display:block;width:100%;}
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width:1000px){
  .destaques{grid-template-columns:1fr;min-height:auto;padding:14px;gap:18px}
  .hero-left{padding:24px;border-radius:12px}
  .hero-right{padding:6px}
  .form-matricula{box-shadow:none;padding:20px;border-radius:12px}
  .hero-left .content{max-width:100%}
  .hero-left .bg{object-position:center center}
  .benefit-list{max-width:100%}
  .big-value{font-size:2.6rem}
  .hero-sub{max-width:60ch}
  .courses-inner,.testimonials-inner{padding:0 18px}
  .grade-cursos{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
}

@media (max-width:700px){
  .courses-inner{padding:0 14px}
  .grade-cursos{gap:12px}
}

@media (max-width:600px){
  header{padding:8px 14px;height:64px}
  .logo{font-size:1rem}
  nav{display:none}
  .nav-cta{display:inline-block}
  .destaques{padding:10px;gap:12px}
  .hero-left{padding:18px;border-radius:10px}
  .hero-title{font-size:2.2rem}
  .big-value{font-size:2rem}
  .benefit-list li{padding:8px 10px;font-size:.92rem}
  .hero-right{padding:8px}
  .form-matricula{padding:14px;border-radius:10px}
  .form-matricula h2{font-size:1rem}
  .form-matricula p.lead{font-size:.95rem}
  .whatsapp-fab{right:12px;bottom:12px;width:48px;height:48px}
  .whatsapp-fab img{width:20px;height:20px}
  .grade-cursos{grid-template-columns:1fr;gap:12px}
  .testimonials-grid{grid-template-columns:1fr;gap:12px}
  .map-wrap{padding-bottom:66%}
  input[type="text"],input[type="email"],input[type="tel"]{font-size:0.95rem}
}

/* ========== FOOTER ==========  - redes sociais (estilos melhorados) */
.socials-footer{
  display:flex;gap:12px;justify-content:center;margin-top:8px;align-items:center;
}
.socials-footer a{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:10px;
  background:rgba(255,255,255,0.08);text-decoration:none;
  transition:background .12s,transform .12s,box-shadow .12s;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);border:1px solid rgba(255,255,255,0.06);
}
.socials-footer a img{width:20px;height:20px;filter:brightness(0) invert(1);display:block}
.socials-footer a:hover{background:rgba(255,255,255,0.14);transform:translateY(-4px);box-shadow:0 10px 30px rgba(0,0,0,0.12)}
.socials-footer a:focus{outline:none;box-shadow:0 0 0 3px rgba(255,255,255,0.12)}
@media (max-width:600px){
  .socials-footer{gap:8px}
  .socials-footer a{width:40px;height:40px}
  .socials-footer a img{width:18px;height:18px}
}

/* WHATSAPP FLOAT BUTTON - estilo circular e ícone branco */
.whatsapp-fab{
  position:fixed;right:18px;bottom:18px;
  width:56px;height:56px;border-radius:50%;
  background:#25D366;display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 14px 40px rgba(37,55,37,0.18);
  z-index:1400;cursor:pointer;transition:transform .14s,box-shadow .14s,background .14s;
}
.whatsapp-fab img{width:24px;height:24px;filter:brightness(0) invert(1);display:block}
.whatsapp-fab:hover{transform:translateY(-6px);box-shadow:0 18px 50px rgba(37,55,37,0.22)}
.whatsapp-fab:focus{outline:none;box-shadow:0 0 0 6px rgba(37,211,102,0.16)}
@media (max-width:600px){
  .whatsapp-fab{right:12px;bottom:12px;width:48px;height:48px}
  .whatsapp-fab img{width:20px;height:20px}
}

/* hamburger toggle + mobile menu */
.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;height:44px;border-radius:8px;border:0;background:transparent;color:#fff;cursor:pointer;
  z-index:10001; /* aumentado para ficar acima de todos os elementos */
  position:relative; /* mantém empilhamento consistente */
}
.nav-toggle svg{width:20px;height:20px;display:block}

/* backdrop overlay para o menu mobile (opcional visual) */
.mobile-menu-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.45);
  opacity:0;
  pointer-events:none;
  transition:opacity .16s ease;
  z-index:10000;
}
.mobile-menu-backdrop.open{
  opacity:1;
  pointer-events:auto;
}

/* menu móvel — z-index muito alto para garantir sobreposição */
.mobile-menu{
  position:fixed;
  top:var(--header-h);
  right:12px;
  width:calc(100% - 36px);
  max-width:320px;
  background:#fff;
  color:#111;
  border-radius:12px;
  box-shadow:0 18px 50px rgba(0,0,0,.12);
  padding:12px;
  transform:translateY(-8px) scale(.98);
  opacity:0;
  pointer-events:none;
  transition:transform .16s ease,opacity .16s ease;
  z-index:10002; /* garante sobre modais e botões flutuantes */
}
.mobile-menu.open{
  transform:translateY(0) scale(1);
  opacity:1;
  pointer-events:auto;
  z-index:10002;
}

/* menu móvel — links estilizados (fonte, cor, espaçamento, hover/focus) */
.mobile-menu a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;            /* melhor área de toque */
  color:var(--brand);           /* texto em cor da marca */
  text-decoration:none;
  font-weight:700;
  font-size:1rem;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  border-radius:10px;
  transition: background .14s ease, transform .08s ease, box-shadow .14s ease, color .12s ease;
  /* leve borda sutil para separar visualmente */
  border:1px solid rgba(0,0,0,0.04);
  background:transparent;
  box-shadow:none;
}

/* ícones dentro dos links (se houver) */
.mobile-menu a img,
.mobile-menu a svg{
  width:20px;
  height:20px;
  flex-shrink:0;
  display:block;
  /* se quiser ícones coloridos, remova filter; caso contrário, ajuste aqui */
  filter:none;
}

/* estados interativos */
.mobile-menu a:hover,
.mobile-menu a:focus{
  background:var(--light);
  color:var(--dark);
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(0,0,0,0.06);
  outline:none;
}

/* foco acessível (teclado) */
.mobile-menu a:focus{
  box-shadow:0 0 0 4px rgba(179,0,22,0.08);
}

/* estado ativo/tocado */
.mobile-menu a:active{
  transform:translateY(0);
  box-shadow:none;
}

/* opcional: tornar o primeiro link mais destacado */
.mobile-menu a:first-child{
  margin-top:6px;
}

/* ========== CARDS - DEPOIMENTOS (TESTEMUNHOS) ========== */
.testimonial-card{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  background:#fff;
  padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
  border:1px solid #f3f3f3;
  display:flex;
  flex-direction:column;
  gap:12px;
  transition:transform .18s ease, box-shadow .18s ease;
}
.testimonial-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 36px rgba(0,0,0,0.12);
}
.testimonial-card .quote{
  font-style:italic;
  color:#333;
  margin-bottom:10px;
  position:relative;
}
.testimonial-card .quote:before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(120deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  z-index:1;
}
.testimonial-card .author{
  display:flex;
  align-items:center;
  gap:10px;
  position:relative;
  z-index:2;
}
.testimonial-card .author img{
  width:48px;
  height:48px;
  border-radius:50%;
  object-fit:cover;
}
.testimonial-card .author .meta{
  font-weight:700;
  color:#111;
}
.testimonial-card .author .role{
  display:block;
  font-size:.9rem;
  color:#666;
  font-weight:600;
}

/* ========== MODAL DE CURSO (detalhes do curso) ========== */
#courseModal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.45);
  z-index:1600;
  opacity:0;
  transition:opacity .12s;
  pointer-events:none;
  visibility:hidden;
  padding:20px;
}
#courseModal.open{
  opacity:1;
  pointer-events:auto;
  visibility:visible;
}
#courseModal .modal-dialog{
  background:#fff;
  padding:18px;
  border-radius:12px;
  max-width:420px;
  width:100%;
  box-shadow:0 20px 50px rgba(0,0,0,0.18);
  max-height:90vh;
  overflow-y:auto;
  transform:scale(0.95);
  transition:transform .12s cubic-bezier(.2,.9,.2,1);
}
#courseModal.open .modal-dialog{
  transform:scale(1);
}
#courseModal h3{
  margin:0 0 10px;
  font-size:1.05rem;
  color:var(--brand);
}
#courseModal select{
  appearance:auto;
}

@media (max-width:600px){
  #courseModal{
    padding:12px;
  }
  #courseModal .modal-dialog{
    padding:16px;
    border-radius:10px;
    max-height:85vh;
  }
  #courseModal h3{
    font-size:1rem;
  }
  #courseModal label{
    font-size:0.95rem !important;
  }
  #courseModal select,
  #courseModal input{
    font-size:16px !important;
    padding:10px !important;
    border-radius:6px !important;
  }
  #courseModal .modal-actions button{
    font-size:0.95rem;
    padding:10px 14px !important;
  }
}

/* Exibir hamburger e esconder nav até 900px (novo) */
@media (max-width:900px){
  .nav-toggle{display:inline-flex}
  nav{display:none}
  .nav-cta{display:inline-block}
}

/* (mantive a media query existente para 600px sem alterações) */
@media (max-width:600px){
  .nav-toggle{display:inline-flex}
  nav{display:none}
  .nav-cta{display:inline-block}
}

/* Carousel CSS (MELHORADO) */
.testimonials-carousel{max-width:var(--max-width);margin:18px auto;padding:6px 18px}
.carousel-viewport{overflow:hidden;border-radius:12px}
.carousel-track{display:flex;transition:transform .45s cubic-bezier(.2,.9,.2,1);gap:20px}
.carousel-slide{min-width:100%;flex:0 0 100%;background:transparent;padding:0}
.carousel-nav{position:relative;display:flex;justify-content:space-between;gap:12px;margin-top:16px;align-items:center}
.carousel-btn{
  width:50px;
  height:50px;
  border-radius:50%;
  background:#fff;
  border:2px solid var(--brand);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:24px;
  color:var(--brand);
  font-weight:700;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  transition:all .2s ease;
}
.carousel-btn:hover:not(:disabled){
  background:var(--brand);
  color:#fff;
  transform:scale(1.08);
  box-shadow:0 10px 28px rgba(0,0,0,0.12);
}
.carousel-btn:active:not(:disabled){
  transform:scale(0.98);
}
.carousel-btn:disabled{
  opacity:0.4;
  cursor:not-allowed;
}
.carousel-dots{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:16px;
  flex-wrap:wrap;
}
.carousel-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#e0e0e0;
  border:0;
  cursor:pointer;
  transition:all .3s ease;
}
.carousel-dot:hover{
  background:#b0b0b0;
  transform:scale(1.15);
}
.carousel-dot.active{
  background:var(--brand);
  width:28px;
  border-radius:999px;
  box-shadow:0 4px 12px rgba(179,0,22,0.24);
}
@media (min-width:800px){
  .carousel-slide{min-width:50%;flex:0 0 50%}
  .testimonials-inner{padding:0 28px}
}
@media (min-width:1100px){
  .carousel-slide{min-width:33.3333%;flex:0 0 33.3333%}
}
@media (max-width:600px){
  .carousel-btn{width:40px;height:40px;font-size:18px;border-width:1.5px}
  .carousel-dot{width:10px;height:10px;gap:6px}
  .carousel-dot.active{width:24px}
  .carousel-nav{gap:8px}
  .carousel-dots{gap:6px}
  .testimonials-carousel{padding:4px 12px}
}

.protegido {
  display: none;
}
body.autenticado .protegido {
  display: revert;
}

/* ========== VITRINE DINÂMICA DE CURSOS E CABEÇALHO MOBILE (ETAPA 6) ========== */
.home-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-filter-pills button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.home-filter-pills button.active,
.home-filter-pills button:hover {
  background: var(--brand, #b30016);
  border-color: var(--brand, #b30016);
  color: #fff;
}

.badge-oferta-home {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.preco-home-box {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.preco-home-antigo {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.9rem;
}

.preco-home-promo {
  color: #15803d;
  font-size: 1.25rem;
  font-weight: 700;
}

.preco-home-normal {
  color: var(--brand, #b30016);
  font-size: 1.2rem;
  font-weight: 700;
}

.btn-select-api-course {
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: 14px;
  width: 100%;
  text-align: center;
}

@media (max-width: 680px) {
  body:not([data-role]) header .nav-cta {
    display: none;
  }
}

/* ========== MELHORIAS DA LANDING PAGE (ETAPA 6 COMPLETA) ========== */
.nav-cta-outline {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-cta-outline:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mobile-menu .mobile-cta-primary {
  background: var(--brand, #b30016);
  color: #fff !important;
  justify-content: center;
  margin-top: 8px;
}

.mobile-menu .mobile-cta-login {
  border: 1.5px solid var(--brand, #b30016);
  color: var(--brand, #b30016) !important;
  justify-content: center;
}

.hero-quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-btn-cursos {
  padding: 11px 20px;
  border-radius: 8px;
  background: #ffb400;
  color: #111827;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.hero-btn-cursos:hover {
  filter: brightness(0.95);
}

.hero-btn-whats {
  padding: 11px 20px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.hero-btn-whats:hover {
  background: rgba(255, 255, 255, 0.18);
}

.home-select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
}

.home-select:focus {
  border-color: var(--brand, #b30016);
}

.hero-whats-alt {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: #15803d;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-whats-alt:hover {
  text-decoration: underline;
}

.form-status-box {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
}

.form-status-box.ok {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-status-box.erro {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Faixa de Diferenciais */
.trust-strip {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  padding: 28px 20px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}

.trust-number {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--brand, #b30016);
  line-height: 1.2;
}

.trust-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
  margin-top: 4px;
}

.trust-desc {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 6px 0 0;
  line-height: 1.45;
}

/* Sobre + Como Funciona */
.section-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b45309;
  text-transform: uppercase;
}

.sobre-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: start;
}

.como-funciona-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand, #b30016);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.steps-list p {
  margin: 3px 0 0;
  font-size: 0.86rem;
  color: #555;
  line-height: 1.45;
}

/* Abas de Cursos & Cards Renovados */
.courses-header-center {
  text-align: center;
}

.course-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.course-tab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}

.course-tab-btn:hover {
  border-color: var(--brand, #b30016);
  color: var(--brand, #b30016);
}

.course-tab-btn.active {
  background: var(--brand, #b30016);
  border-color: var(--brand, #b30016);
  color: #fff;
  box-shadow: 0 4px 12px rgba(179, 0, 22, 0.22);
}

.api-tab-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.home-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-filter-pills button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.home-filter-pills button.active,
.home-filter-pills button:hover {
  background: var(--brand, #b30016);
  border-color: var(--brand, #b30016);
  color: #fff;
}

.badge-oferta-home {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.preco-home-box {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.preco-home-antigo {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.9rem;
}

.preco-home-promo {
  color: #15803d;
  font-size: 1.25rem;
  font-weight: 700;
}

.preco-home-normal {
  color: var(--brand, #b30016);
  font-size: 1.2rem;
  font-weight: 700;
}

.preco-static-line strong {
  color: var(--brand, #b30016);
  font-size: 1rem;
}

.card-actions-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.card-btn-primary,
.card-btn-whats {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: filter 0.15s ease;
}

.card-btn-primary {
  background: var(--brand, #b30016);
  color: #fff;
}

.card-btn-whats {
  background: #15803d;
  color: #fff;
}

.card-btn-primary:hover,
.card-btn-whats:hover {
  filter: brightness(0.92);
}

/* Depoimentos: Selo Google e Estrelas */
.google-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.stars-gold,
.card-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 1rem;
}

.card-stars {
  margin-bottom: 8px;
}

/* Localização */
.location-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: stretch;
}

.location-info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.location-info-card h3 {
  margin: 0;
  color: var(--brand, #b30016);
}

.location-address {
  margin: 0;
  color: #374151;
  font-size: 0.92rem;
  line-height: 1.7;
}

.location-hours {
  font-size: 0.88rem;
  color: #4b5563;
}

.location-hours ul {
  margin: 6px 0 0 18px;
  padding: 0;
  line-height: 1.65;
}

.location-route-btn {
  display: inline-block;
  text-align: center;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--brand, #b30016);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.location-route-btn:hover {
  filter: brightness(0.92);
}

/* FAQ Home */
.home-faq-item {
  margin-bottom: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  background: #fff;
  transition: border-color 0.15s ease;
}

.home-faq-item[open] {
  border-color: rgba(179, 0, 22, 0.35);
}

.home-faq-item summary {
  font-weight: 700;
  color: var(--brand, #b30016);
  font-size: 1rem;
  cursor: pointer;
}

.home-faq-item p {
  color: #4b5563;
  margin: 10px 0 0;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Responsividade Landing Page */
@media (max-width: 960px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sobre-layout,
  .location-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body:not([data-role]) header .nav-cta,
  body:not([data-role]) header .nav-cta-outline {
    display: none;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   AJUSTES FINAIS: AUTH HEADER, GRID FIX, CARD FLIP 3D & FAQ
   ========================================================= */
.header-auth-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta-logout:hover {
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-1px);
}

.mobile-cta-logout {
  background: #fee2e2;
  color: #991b1b !important;
  font-weight: 700;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 780px) {
  .header-auth-group {
    display: none;
  }
}

/* Impede que 1 ou 2 cursos estiquem na largura inteira da tela */
.grade-cursos {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
  align-items: stretch;
}

/* --- CARD FLIP 3D (EXCLUSIVO PARA CURSOS EM PROMOÇÃO) --- */
.card-cursos.card-promo-flip {
  perspective: 1100px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 0.9, 0.32, 1);
  transform-style: preserve-3d;
}

@media (hover: hover) {
  .card-cursos.card-promo-flip:hover .card-flip-inner {
    transform: rotateY(180deg);
  }
}

.card-cursos.card-promo-flip.flipped .card-flip-inner {
  transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

.card-flip-front {
  position: relative;
  background: #fff;
  padding: 20px;
  border: 2px solid rgba(179, 0, 22, 0.35);
  box-shadow: 0 8px 22px rgba(179, 0, 22, 0.08);
}

.flip-hint {
  margin-top: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand, #b30016);
  text-align: center;
  opacity: 0.85;
}

.card-flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #b30016 0%, #7f0010 100%);
  color: #fff;
  padding: 24px 20px;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 28px rgba(179, 0, 22, 0.25);
}

.flip-back-tag {
  display: inline-block;
  background: #ffb400;
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.flip-back-title {
  margin: 0 0 10px !important;
  font-size: 1.25rem !important;
  color: #fff !important;
}

.flip-back-old {
  font-size: 0.95rem;
  text-decoration: line-through;
  opacity: 0.82;
}

.flip-back-new {
  font-size: 2rem;
  font-weight: 900;
  color: #ffb400;
  line-height: 1.15;
  margin: 4px 0 8px;
}

.flip-back-sub {
  font-size: 0.8rem;
  opacity: 0.92;
  margin-bottom: 18px;
}

.flip-back-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 220px;
}

.flip-btn-primary,
.flip-btn-whats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.flip-btn-primary {
  background: #ffb400;
  color: #111;
}

.flip-btn-whats {
  background: #15803d;
  color: #fff;
}

/* FAQ 100% clicável e com indicador visual */
.home-faq-item {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-faq-item[open] {
  border-color: rgba(179, 0, 22, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.home-faq-item summary {
  font-weight: 700;
  color: var(--brand, #b30016);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.home-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  flex-shrink: 0;
}

.home-faq-item[open] summary::after {
  content: '−';
}

.home-faq-item p {
  margin: 12px 0 2px;
  color: #4b5563;
  line-height: 1.6;
}