:root {
  --bg: #0a0a0f;
  --bg-soft: #10131c;
  --sidebar: rgba(17, 18, 26, 0.96);

  --card: #151622;
  --card-strong: #1b1d2c;

  --accent: #00bcd4;
  --accent-soft: rgba(0, 188, 212, 0.12);

  --text: #e6e6e6;
  --muted: #9aa0a6;

  --border: #1f2230;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);

  --radius: 18px;
  --radius-soft: 14px;
}

/* ===========================
   RESET GLOBAL
=========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(0, 188, 212, 0.14), transparent 22%),
    linear-gradient(180deg, #090b10 0%, var(--bg) 100%);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}

/* Imagens padrão */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   MENU MOBILE
=========================== */

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1100;

  border: 1px solid rgba(0, 188, 212, 0.55);
  background: rgba(17, 18, 26, 0.92);
  color: var(--accent);

  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ===========================
   SIDEBAR
=========================== */

.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--sidebar);
  backdrop-filter: blur(14px);

  border-right: 1px solid var(--border);
  position: fixed;
  padding: 30px 20px;
  z-index: 900;
}

.logo {
  font-family: "Outfit", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
  line-height: 1.4;
}

/* Menu */
.menu {
  list-style: none;
}

.menu li + li {
  margin-top: 12px;
}

.menu a {
  display: block;
  padding: 12px 14px;

  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);

  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.menu a.active {
  background: var(--card);
  color: var(--accent);
  font-weight: 700;
  border-color: rgba(0, 188, 212, 0.24);
  border-left: 4px solid var(--accent);
}

/* ===========================
   CONTEÚDO PRINCIPAL
=========================== */

.main {
  margin-left: 260px;
  padding: 54px 50px;
  width: 100%;
}

.container {
  max-width: 980px;
  margin: 0 auto;
}

/* ===========================
   HOME GRID (LAYOUT)
=========================== */

.home-layout {
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.content-column {
  min-width: 0;
}

.info-sidebar {
  position: sticky;
  top: 32px;
  margin-top: 32px;
}

.info-panel {
  background: linear-gradient(180deg, rgba(21, 22, 34, 0.96), rgba(11, 14, 22, 0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.info-panel h2 {
  font-size: 1.45rem;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
}

.info-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(0, 188, 212, 0.12);
}

.info-item span {
  display: block;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 6px;
}

.info-item strong {
  font-size: 1rem;
  line-height: 1.45;
}

.next-class-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(0, 188, 212, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(0, 188, 212, 0.12), rgba(21, 22, 34, 0.96));
  border: 1px solid rgba(0, 188, 212, 0.22);
}

.next-class-label {
  display: inline-block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.next-class-card h3 {
  margin-bottom: 8px;
}

.next-class-card p {
  margin-bottom: 16px;
}

/* ===========================
   SECTIONS + ANIMAÇÃO
=========================== */

blockquote {
  margin-top: 28px;
  margin-bottom: 28px;
}

section {
  margin-top: 34px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   HERO
=========================== */

.hero {
  margin-top: 0;
  background: linear-gradient(180deg, rgba(27, 29, 44, 0.92), rgba(16, 19, 28, 0.88));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 34px;
  border-radius: 22px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1,
h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero h3 {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.lead,
section p,
li {
  color: var(--muted);
  line-height: 1.65;
}

/* ===========================
   BOTÕES
=========================== */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  padding: 11px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, transform 0.25s;
  font-weight: 600;
}

.btn:hover {
  background: var(--accent);
  color: #031015;
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--card);
  color: var(--text);
}

/* ===========================
   TIPOGRAFIA
=========================== */

h2 {
  font-size: 1.85rem;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* ===========================
   GRID
=========================== */

.grid {
  display: grid;
  gap: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===========================
   CARD PADRÃO
=========================== */

.card {
  background: linear-gradient(180deg, rgba(21, 22, 34, 0.98), rgba(13, 15, 24, 0.98));
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
  border-color: rgba(0, 188, 212, 0.3);
  transform: translateY(-3px);
}

/* Links dentro do card */
.card h3 a {
  color: #ffffff;
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ===========================
   CARD LATERAL COM IMAGEM
=========================== */

.card-side {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
  align-items: center;
}

.card-side .card-text {
  min-width: 0;
}

.card-side .card-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===========================
   CARD DE ATENÇÃO
=========================== */

.card-warning {
  background: linear-gradient(180deg, rgba(255, 245, 200, 0.95), rgba(255, 235, 160, 0.9));
  border: 1px solid rgba(255, 210, 80, 0.75);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  color: #2c2300;
}

.card-warning p {
  color: rgba(44, 35, 0, 0.85);
}

.card-warning h3 {
  color: #8a5b00;
  font-weight: 800;
}

.card-warning strong {
  color: #5e3c00;
}

/* ===========================
   GALERIA / MEDIA CARD
=========================== */

.media-gallery {
  display: grid;
  gap: 18px;
}

.media-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(21, 22, 34, 0.98), rgba(13, 15, 24, 0.98));
  box-shadow: var(--shadow);
}

.media-card img {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.media-card img,
.graphic-panel img {
  width: 100%;
  height: auto;
}

/* Texto da media */
.media-copy {
  padding: 20px 22px 22px;
}

/* ===========================
   VÍDEO
=========================== */

.video-showcase {
  padding: 20px;
}

.video-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #07090d;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070b;
}

.video-copy {
  margin-top: 16px;
}

/* ===========================
   GRÁFICOS / MÉTRICAS
=========================== */

.graphic-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-metrics div {
  padding: 18px 12px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 188, 212, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(0, 188, 212, 0.18);
}

.mini-metrics strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 1.7rem;
  color: var(--accent);
}

.mini-metrics span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===========================
   BADGES
=========================== */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.referencias {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.referencias li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 16px;
  border-left: 2px solid var(--border);
  line-height: 1.6;
}

.referencias a {
  color: var(--accent);
  text-decoration: none;
}

.referencias a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(0, 188, 212, 0.45);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent);
}

/* ===========================
   ALERTA
=========================== */

.alert {
  background: rgba(0, 188, 212, 0.12);
  padding: 15px 18px;
  border-radius: 14px;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--text);
  border: 1px solid rgba(0, 188, 212, 0.25);
}

/* ===========================
   LISTAS
=========================== */

.list {
  padding-left: 20px;
  margin-top: 8px;
}

.list li + li {
  margin-top: 8px;
}

/* ===========================
   FAQ
=========================== */

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 188, 212, 0.25);
}

.faq-item + .faq-item {
  margin-top: 14px;
}

.faq-item h4 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.35s ease;
  color: var(--muted);
}

.faq-item.active .faq-answer {
  max-height: 240px;
  margin-top: 12px;
}

.page-intro {
  margin-bottom: 18px;
}

/* ===========================
   DOCENTES
=========================== */

.teacher-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teacher-item {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(21, 22, 34, 0.98), rgba(13, 15, 24, 0.98));
  box-shadow: var(--shadow);
  transition: border-color 0.25s, transform 0.25s;
}

.teacher-item:hover {
  border-color: rgba(0, 188, 212, 0.28);
  transform: translateY(-2px);
}

.teacher-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.teacher-summary::-webkit-details-marker {
  display: none;
}

.teacher-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--card-strong);
  border: 2px solid rgba(0, 188, 212, 0.22);

  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-basic {
  min-width: 0;
  flex: 1;
}

.teacher-basic h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-basic .role {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-details {
  padding: 0 18px 18px 18px;
  color: var(--muted);
  line-height: 1.65;
}

.teacher-details p {
  margin-bottom: 12px;
}

.teacher-link a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}

.teacher-link a:hover {
  text-decoration: underline;
}

.teacher-item[open] .teacher-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===========================
   TIMELINE
=========================== */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.timeline-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-left: 6px;
}

.timeline-content h3 {
  margin: 0;
  font-size: 1.05rem;
}

.timeline-content p {
  margin: 4px 0 0;
  color: var(--muted);
}

/* ===========================
   PREÇO / DIVISOR
=========================== */

.price {
  font-size: 1.4rem;
  margin-top: 10px;
  margin-bottom: 8px;
}

.divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  margin: 14px 0;
}

/* ===========================
   CHECKLIST / PARCELAS
=========================== */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.4;
}

.checklist li::before {
  content: "✔";
  color: var(--accent);
  font-weight: 700;
}

.installments {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.installment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.installment span {
  color: var(--muted);
}

/* ===========================
   CARROSSEL DE IMAGENS
=========================== */

.media-section {
  width: 100%;
  padding: 40px 0;
}

.media-carousel {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  position: relative;

  display: flex;
  align-items: center;
  gap: 15px;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 18px;
  -webkit-transform: translateZ(0);
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.media-card {
  min-width: 100%;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.media-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Botões do carrossel */
.carousel-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 28px;

  background: rgba(0, 188, 212, 0.15);
  color: white;

  transition: 0.3s;
}

.carousel-btn:hover {
  background: rgba(0, 188, 212, 0.35);
}

/* ===========================
   EQUIVALÊNCIA IMG
=========================== */

.equivalencia-img {
  width: 100%;
  max-width: 100%;
  margin-top: 18px;

  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;
}

.equivalencia-img img {
  width: 100%;
  max-width: 900px;
  max-height: 520px;
  object-fit: contain;
}

/* ===========================
   MÓDULOS
=========================== */

.grid-modulos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 4px 0 8px;
}

.card-modulo {
  background: #ffffff;
  border: 0.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border-top: 3px solid var(--accent);
}

.card-modulo h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 10px;
  color: #1a1a1a;
  line-height: 1.4;
}

.card-modulo ul {
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-modulo ul li {
  font-size: 13px;
  color: #555555;
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}

.card-modulo ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.card-modulo-full {
  grid-column: 1 / -1;
}

.card-modulo-full ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  background: rgba(0, 188, 212, 0.08);
  border: 1px solid rgba(0, 188, 212, 0.28);
}

.contact-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 20px;
  background: rgba(0, 188, 212, 0.12);
  border: 1px solid rgba(0, 188, 212, 0.22);
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-title {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-info strong {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}

.contact-arrow {
  margin-left: auto;
  font-size: 18px;
  color: rgba(0, 188, 212, 0.8);
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.contact-card:hover .contact-arrow {
  transform: translateX(3px);
}

/* Responsivo */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   RESPONSIVO
=========================== */

@media (max-width: 900px) {
  .home-layout {
      grid-template-columns: 1fr;
  }
  
  .info-sidebar {
      display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1000;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
    padding: 76px 20px 28px;
  }

  .hero {
    padding: 24px;
  }

  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .card-side {
    grid-template-columns: 1fr;
  }

  .card-side .card-image img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .teacher-summary {
    padding: 14px 14px;
  }

  .teacher-photo {
    width: 54px;
    height: 54px;
  }

  .teacher-basic h3 {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .grid-modulos {
    grid-template-columns: 1fr;
  }

  .card-modulo-full ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .teacher-photo {
    width: 50px;
    height: 50px;
  }

  h2 {
    font-size: 1.55rem;
  }
}

@media (max-width: 900px) {
  .info-sidebar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .media-card img {
    height: auto;
    max-height: 320px;
    object-fit: contain;
    background: #07090d; /* evita fundo vazio feio */
  }
}

/* SAFARI FIX - esconder info sidebar no celular */
@media screen and (max-width: 900px) {
  aside.info-sidebar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* SAFARI FIX - bug de zoom em imagens com transform */
.carousel-track-wrapper,
.carousel-track,
.media-card img {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
