/* ==========================================================================
   Design System - Dr. Euler Cardoso
   Primary Brand Color: #E5B52B (Gold / Dourado Oficial)
   Colors:
   --bg-primary: #0B0F10
   --bg-card: #1E293B
   --brand-accent: #E5B52B
   --brand-accent-bright: #F5C842
   --text-light: #E2E8F0
   ========================================================================== */

:root {
  /* Semantic Theme Tokens */
  --bg-main: #0B0F10;
  --bg-surface: #1E293B;
  --bg-surface-hover: #27354A;
  --border-color: #334155;
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --primary-accent: #0D9488;
  --primary-accent-hover: #0F766E;
  --highlight-mint: #2DD4BF;
  --highlight-mint-bg: rgba(45, 212, 191, 0.12);
  --input-bg: #1E293B;
  --input-border: #334155;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);

  /* Legacy & Project Compatibility Aliases */
  --bg-primary: var(--bg-main);
  --bg-secondary: #161D24;
  --bg-card: var(--bg-surface);
  --bg-card-hover: var(--bg-surface-hover);
  --brand-teal: #E5B52B;
  --brand-teal-light: rgba(229, 181, 43, 0.12);
  --brand-teal-bright: #F5C842;
  --brand-accent: #E5B52B;
  --brand-accent-hover: #D49E1E;
  --brand-accent-bright: #F5C842;
  --text-main: var(--text-primary);
  --text-muted: var(--text-secondary);
  --text-white: #FFFFFF;
  --border-color: rgba(226, 232, 240, 0.12);
  --border-glow: rgba(229, 181, 43, 0.35);
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(226, 232, 240, 0.08);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-teal: 0 10px 25px -5px rgba(229, 181, 43, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Safe Area Insets for iOS Notch, Dynamic Island, Android Gesture Bar & Instagram In-App Browser */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
  height: -webkit-fill-available;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: var(--sal);
  padding-right: var(--sar);
  touch-action: manipulation;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
}

/* Utility Classes */
.text-teal { color: var(--brand-accent) !important; }
.bg-teal { background-color: var(--brand-accent) !important; }
.bg-card { background-color: var(--bg-card) !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Badges & Pills */
.pill-badge,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #F59E0B;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pill-badge i,
.hero-badge i {
  color: #F59E0B;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  min-height: 44px;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, #E5B52B, #D49E1E);
  color: #0B0F10;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(229, 181, 43, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F5C842, #E5B52B);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 181, 43, 0.45);
  color: #0B0F10;
}

.btn-accent {
  background: linear-gradient(135deg, #E5B52B, #D49E1E);
  color: #0B0F10;
  font-weight: 700;
  box-shadow: 0 10px 25px -5px rgba(229, 181, 43, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #F5C842, #E5B52B);
  transform: translateY(-2px);
  color: #0B0F10;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--brand-accent);
  color: var(--brand-accent);
}

.btn-outline:hover {
  background: rgba(229, 181, 43, 0.1);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Header & Navigation */
.header-topbar {
  background-color: #06090A;
  border-bottom: 1px solid var(--border-color);
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.topbar-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-left: auto;
}

.topbar-socials a {
  color: var(--text-muted);
  font-size: 0.95rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.topbar-socials a:hover {
  color: var(--brand-accent);
}

/* Container global do cabeçalho */
#site-header,
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  will-change: padding;
  transition: all 0.3s ease-in-out;
  background-color: var(--bg-main, #0B0F10); /* Respeita o tema claro/escuro */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding-top: var(--sat);
}

/* Transição de altura da barra do topo */
#site-header .topbar,
.site-header .topbar {
  transition: height 0.25s ease, opacity 0.2s ease, margin 0.25s ease, max-height 0.25s ease;
  overflow: hidden;
}

/* Transição do menu principal (padding e tamanho do logo) */
#site-header .main-header,
.site-header .main-header {
  transition: padding 0.3s ease-in-out;
  padding-top: 15px;
  padding-bottom: 15px;
}

#site-header .main-header img.logo,
.site-header .main-header img.logo {
  transition: transform 0.3s ease-in-out;
  transform-origin: left center;
}

/* =========================================
   ESTADOS QUANDO A CLASSE .slim ESTÁ ATIVA
   ========================================= */
#site-header.slim,
.site-header.slim {
  box-shadow: var(--card-shadow, 0 4px 10px rgba(0,0,0,0.3));
}

#site-header.slim .topbar,
.site-header.slim .topbar {
  height: 0;
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom: none;
}

#site-header.slim .main-header,
.site-header.slim .main-header {
  padding-top: 8px;
  padding-bottom: 8px;
}

#site-header.slim .main-header img.logo,
.site-header.slim .main-header img.logo {
  transform: scale(0.85);
}

.header-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 1540px !important;
  margin: 0 auto !important;
  padding: 0 1.25rem !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  height: 42px;
  width: auto;
  max-width: 176px;
  object-fit: contain;
  display: block;
}

.site-logo .logo-light-theme {
  display: none !important;
}
.site-logo .logo-dark-theme {
  display: block !important;
}

[data-theme="light"] .site-logo .logo-dark-theme {
  display: none !important;
}
[data-theme="light"] .site-logo .logo-light-theme {
  display: block !important;
}

/* Animação para Dropdown */
@keyframes fadeInDownNav {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botões do Header Compartilhados */
.theme-toggle-btn {
  background: rgba(226, 232, 240, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle-btn:hover {
  color: var(--brand-accent);
  border-color: var(--brand-accent);
  background: rgba(229, 181, 43, 0.12);
  transform: translateY(-1px);
}

.btn-portal-aluno {
  background: rgba(30, 41, 59, 0.85);
  color: #E2E8F0;
  font-weight: 700;
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  border: 1px solid rgba(229, 181, 43, 0.45);
  height: 36px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.btn-portal-aluno i {
  color: #E5B52B;
}

.btn-portal-aluno:hover {
  background: rgba(229, 181, 43, 0.15);
  color: #F5C842;
  border-color: #E5B52B;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(229, 181, 43, 0.25);
}

.btn-portal-aluno.logged {
  border-color: #E5B52B;
}

[data-theme="light"] .btn-portal-aluno {
  background: #FFFFFF;
  color: #0F172A;
  border-color: rgba(229, 181, 43, 0.6);
}

[data-theme="light"] .btn-portal-aluno:hover {
  background: #FEF3C7;
  color: #92400E;
  border-color: #E5B52B;
}

.btn-header-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid rgba(226, 232, 240, 0.08);
  background: rgba(30, 41, 59, 0.4);
}

.btn-header-logout i {
  font-size: 0.85rem;
}

.btn-header-logout:hover {
  color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  transform: translateY(-1px);
}

[data-theme="light"] .btn-header-logout {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #64748B;
}

[data-theme="light"] .btn-header-logout:hover {
  color: #DC2626 !important;
  background: #FEE2E2 !important;
  border-color: #FCA5A5 !important;
}

.btn-header-cta {
  background: linear-gradient(135deg, #E5B52B, #D49E1E);
  color: #0B0F10;
  font-weight: 700;
  padding: 0.42rem 0.95rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(229, 181, 43, 0.25);
  white-space: nowrap;
  height: 36px;
  box-sizing: border-box;
  border: none;
  flex-shrink: 0;
}

.btn-header-cta:hover {
  background: linear-gradient(135deg, #F5C842, #E5B52B);
  color: #0B0F10;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(229, 181, 43, 0.4);
}

/* ==========================================================================
   1. REORGANIZAÇÃO DO HEADER DESKTOP (Telas >= 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  #site-header .header-container,
  .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 76px !important;
    padding: 0 1.5rem !important;
    max-width: 1540px !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  #site-header .main-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #site-header.slim .header-container {
    height: 60px !important;
  }

  .site-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    min-width: 176px !important;
    z-index: 10 !important;
    margin-right: 1.5rem !important;
    text-decoration: none !important;
  }

  .site-logo img {
    height: 42px !important;
    width: auto !important;
    max-width: 176px !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* .main-nav Desktop - Menu Centralizado */
  #mainNav,
  .main-nav {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: auto !important;
    width: auto !important;
    max-height: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
    flex: 1 !important;
    min-width: 0 !important;
    gap: 1rem !important;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(0.35rem, 0.75vw, 0.85rem) !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    white-space: nowrap !important;
  }

  @media (min-width: 1200px) {
    .nav-links {
      position: absolute !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      margin: 0 !important;
    }
  }

  .nav-links li {
    width: auto !important;
    white-space: nowrap !important;
  }

  /* Links com white-space: nowrap para nunca quebrarem em duas linhas */
  .nav-link:not(.nav-link-corridas) {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    padding: 0.35rem 0.35rem !important;
    background: transparent !important;
    border: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--text-main, #E2E8F0) !important;
    border-radius: 0 !important;
    position: relative !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .nav-link:not(.nav-link-corridas):hover,
  .nav-link:not(.nav-link-corridas).active {
    color: var(--brand-accent, #E5B52B) !important;
  }

  .nav-link:not(.nav-link-corridas)::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0% !important;
    height: 2px !important;
    background-color: var(--brand-accent, #E5B52B) !important;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 2px !important;
    display: block !important;
  }

  .nav-link:not(.nav-link-corridas):hover::after,
  .nav-link:not(.nav-link-corridas).active::after {
    width: 100% !important;
  }

  /* Item 'Corridas' - Pill Badge Oficial do Design System */
  .nav-link-corridas {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.3rem 0.65rem !important;
    border-radius: 9999px !important;
    background: rgba(229, 181, 43, 0.12) !important;
    border: 1px solid rgba(229, 181, 43, 0.45) !important;
    color: #E5B52B !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 2px 8px rgba(229, 181, 43, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 0.1rem !important;
    text-decoration: none !important;
    position: relative !important;
    white-space: nowrap !important;
  }

  .nav-link-corridas i {
    color: #E5B52B !important;
    font-size: 0.82rem !important;
    transition: transform 0.25s ease !important;
  }

  .nav-link-corridas:hover {
    background: rgba(229, 181, 43, 0.25) !important;
    border-color: #E5B52B !important;
    color: #F5C842 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(229, 181, 43, 0.3) !important;
  }

  .nav-link-corridas:hover i {
    transform: scale(1.15) rotate(-6deg) !important;
  }

  .nav-link-corridas.active {
    background: linear-gradient(135deg, #E5B52B, #D49E1E) !important;
    color: #0B0F10 !important;
    border-color: #E5B52B !important;
    box-shadow: 0 4px 14px rgba(229, 181, 43, 0.35) !important;
  }

  .nav-link-corridas.active i {
    color: #0B0F10 !important;
  }

  .nav-link-corridas::after {
    display: none !important;
    content: none !important;
  }

  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.45rem !important;
    width: auto !important;
    margin-left: auto !important;
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Menu de Perfil Compacto com Dropdown (Área do Aluno Logado) */
  .user-profile-menu {
    position: relative !important;
    display: inline-block !important;
  }

  .user-profile-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    height: 36px !important;
    padding: 0.4rem 0.8rem !important;
    background: rgba(30, 41, 59, 0.85) !important;
    border: 1px solid rgba(229, 181, 43, 0.45) !important;
    border-radius: 8px !important;
    color: #E2E8F0 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }

  .user-profile-btn i.fa-circle-user,
  .user-profile-btn i.fa-shield-halved {
    color: #E5B52B !important;
    font-size: 0.95rem !important;
  }

  .user-profile-arrow {
    font-size: 0.7rem !important;
    color: var(--text-muted) !important;
    transition: transform 0.25s ease !important;
  }

  .user-profile-btn:hover,
  .user-profile-menu:hover .user-profile-btn,
  .user-profile-menu.open .user-profile-btn {
    background: rgba(229, 181, 43, 0.15) !important;
    border-color: #E5B52B !important;
    color: #F5C842 !important;
    box-shadow: 0 4px 14px rgba(229, 181, 43, 0.25) !important;
  }

  .user-profile-menu:hover .user-profile-arrow,
  .user-profile-menu.open .user-profile-arrow {
    transform: rotate(180deg) !important;
    color: #E5B52B !important;
  }

  [data-theme="light"] .user-profile-btn {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border-color: rgba(229, 181, 43, 0.6) !important;
  }

  [data-theme="light"] .user-profile-btn:hover,
  [data-theme="light"] .user-profile-menu:hover .user-profile-btn,
  [data-theme="light"] .user-profile-menu.open .user-profile-btn {
    background: #FEF3C7 !important;
    color: #92400E !important;
    border-color: #E5B52B !important;
  }

  .user-profile-dropdown {
    display: none;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    min-width: 200px !important;
    background: #161D24 !important;
    border: 1px solid rgba(229, 181, 43, 0.35) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
    padding: 0.45rem 0 !important;
    z-index: 1002 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  .user-profile-menu:hover .user-profile-dropdown,
  .user-profile-menu.open .user-profile-dropdown {
    display: block !important;
    animation: fadeInDownNav 0.2s ease-out forwards;
  }

  [data-theme="light"] .user-profile-dropdown {
    background: #FFFFFF !important;
    border-color: rgba(229, 181, 43, 0.5) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
  }

  .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0.6rem 1rem !important;
    color: var(--text-main, #E2E8F0) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  .dropdown-item i {
    width: 18px !important;
    color: #E5B52B !important;
    font-size: 0.9rem !important;
    text-align: center !important;
  }

  .dropdown-item:hover {
    background: rgba(229, 181, 43, 0.12) !important;
    color: #F5C842 !important;
    padding-left: 1.15rem !important;
  }

  [data-theme="light"] .dropdown-item {
    color: #334155 !important;
  }

  [data-theme="light"] .dropdown-item:hover {
    background: #FEF3C7 !important;
    color: #92400E !important;
  }

  .dropdown-divider {
    height: 1px !important;
    background: var(--border-color, rgba(226, 232, 240, 0.1)) !important;
    margin: 0.35rem 0 !important;
  }

  .dropdown-logout {
    color: #EF4444 !important;
  }

  .dropdown-logout i {
    color: #EF4444 !important;
  }

  .dropdown-logout:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #DC2626 !important;
  }

  /* Ocultar elementos mobile no Desktop */
  .mobile-toggle,
  .mobile-nav-close,
  .mobile-user-actions,
  .mobile-theme-btn,
  #mainNavOverlay,
  .main-nav-overlay {
    display: none !important;
  }

  .desktop-theme-btn {
    display: inline-flex !important;
  }
}

/* Telas de notebook / compactas (1024px a 1280px) */
@media (min-width: 1024px) and (max-width: 1280px) {
  #site-header .header-container,
  .header-container {
    padding: 0 1rem !important;
    gap: 0.5rem !important;
  }
  .nav-links {
    gap: 0.3rem !important;
  }
  .nav-link:not(.nav-link-corridas) {
    font-size: 0.82rem !important;
    padding: 0.3rem 0.25rem !important;
  }
  .btn-header-cta,
  .user-profile-btn,
  .btn-portal-aluno {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.78rem !important;
  }
}

/* ==========================================================================
   2. BLINDAGEM DO MENU MOBILE / DRAWER (Telas < 1024px)
   ========================================================================== */
@media (max-width: 1023.98px) {
  /* Correção do Backdrop-Filter (Bug da tela borrada/invisível) */
  #site-header.menu-open,
  body.menu-open #site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    z-index: 100000 !important;
  }

  #site-header .main-header {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* Container do cabeçalho estritamente em linha única */
  #site-header .header-container,
  .header-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 1.25rem !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .site-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-right: auto !important;
    text-decoration: none !important;
  }

  .site-logo img {
    height: 38px !important;
    max-width: 155px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Botão Hambúrguer (.mobile-toggle) no lado direito, alinhado com a logo */
  .mobile-toggle,
  #mobileMenuBtn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    z-index: 100001 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: rgba(229, 181, 43, 0.12) !important;
    border: 1px solid rgba(229, 181, 43, 0.4) !important;
    color: #E5B52B !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }

  .mobile-toggle:hover {
    background: rgba(229, 181, 43, 0.25) !important;
    color: #F5C842 !important;
    border-color: #E5B52B !important;
  }

  /* Quando o drawer estiver aberto, fixa o botão de fechar/alternar no topo direito */
  body.menu-open .mobile-toggle,
  body.menu-open #mobileMenuBtn {
    position: fixed !important;
    top: calc(15px + env(safe-area-inset-top, 0px)) !important;
    right: calc(1.25rem + env(safe-area-inset-right, 0px)) !important;
    background: rgba(229, 181, 43, 0.2) !important;
    border-color: #E5B52B !important;
  }

  /* Oculta botão fechar interno redundante */
  .mobile-nav-close,
  #mobileNavClose {
    display: none !important;
  }

  /* Isolamento Estrito do Drawer (#mainNav / .main-nav) */
  #mainNav,
  .main-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background-color: #0B0F10 !important; /* Cor oficial sólida Deep Charcoal */
    z-index: 99999 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: calc(76px + env(safe-area-inset-top, 1rem)) 1.5rem calc(2rem + env(safe-area-inset-bottom, 1rem)) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 1.25rem !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #mainNav.active,
  .main-nav.active {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Remover qualquer filtro/desfoque de elementos filhos no mobile */
  #mainNav *,
  .main-nav * {
    filter: none !important;
    -webkit-filter: none !important;
  }

  /* Links Mobile em Stack Vertical */
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-links li {
    width: 100% !important;
  }

  .nav-link {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.85rem 1.15rem !important;
    border-radius: 8px !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    background: rgba(30, 41, 59, 0.4) !important;
    border: 1px solid rgba(226, 232, 240, 0.05) !important;
    color: var(--text-main, #E2E8F0) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(229, 181, 43, 0.15) !important;
    border-color: var(--brand-accent, #E5B52B) !important;
    color: var(--brand-accent, #E5B52B) !important;
  }

  .nav-link::after {
    display: none !important;
    content: none !important;
  }

  /* Item 'Corridas' no Mobile */
  .nav-link-corridas {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    background: rgba(229, 181, 43, 0.15) !important;
    border: 1px solid rgba(229, 181, 43, 0.45) !important;
    color: #E5B52B !important;
    border-radius: 8px !important;
    padding: 0.85rem 1.15rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .nav-link-corridas i {
    color: #E5B52B !important;
    font-size: 1.05rem !important;
  }

  .nav-link-corridas.active {
    background: linear-gradient(135deg, #E5B52B, #D49E1E) !important;
    color: #0B0F10 !important;
    border-color: #E5B52B !important;
  }

  .nav-link-corridas.active i {
    color: #0B0F10 !important;
  }

  /* Ações no Mobile Drawer */
  .header-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-top: 0.5rem !important;
    border-top: 1px solid var(--border-color, rgba(226, 232, 240, 0.12)) !important;
    padding-top: 1.25rem !important;
  }

  /* Ocultar Dropdown Desktop e botão tema desktop no mobile */
  .user-profile-menu,
  .desktop-theme-btn {
    display: none !important;
  }

  /* Controles de Usuário Dedicados Mobile */
  .mobile-user-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.65rem !important;
  }

  .mobile-user-info {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--brand-accent, #E5B52B) !important;
    background: rgba(229, 181, 43, 0.08) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(229, 181, 43, 0.25) !important;
  }

  .mobile-user-buttons {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.65rem !important;
  }

  .header-actions .btn-portal-aluno,
  .header-actions .btn-header-cta,
  .header-actions .btn-header-logout,
  .header-actions .mobile-theme-btn {
    width: 100% !important;
    height: 46px !important;
    font-size: 0.95rem !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .mobile-theme-btn {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid var(--border-color, rgba(226, 232, 240, 0.12)) !important;
    color: var(--text-main, #E2E8F0) !important;
    border-radius: 8px !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
  }

  .mobile-theme-btn:hover {
    border-color: var(--brand-accent) !important;
    color: var(--brand-accent) !important;
  }

  /* Overlay de fundo */
  #mainNavOverlay,
  .main-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 99998 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  #mainNavOverlay.active,
  .main-nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 768px) {
  .topbar-info-item:last-child {
    display: none;
  }
}

@media (max-width: 576px) {
  .header-topbar {
    display: none;
  }
}

/* Page Header / Hero Secondary */
.page-hero {
  background: linear-gradient(180deg, #161D24 0%, var(--bg-primary) 100%);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229, 181, 43, 0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.page-hero .pill-badge {
  margin: 0 auto 1.25rem auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.85rem;
  word-break: break-word;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.page-hero p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

/* Cards & Glass Containers */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
}

@media (max-width: 576px) {
  .glass-card {
    padding: 1.5rem 1.25rem;
  }
}

.glass-card:hover {
  border-color: rgba(229, 181, 43, 0.3);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.55), 0 0 20px -5px rgba(229, 181, 43, 0.1);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(11, 15, 16, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%),
              url('../assets/img/hero-bg-slide.webp') center/cover no-repeat;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--brand-accent);
}

.hero-image-wrapper img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

@media (max-width: 991px) {
  .hero-section {
    padding: 3rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-wrapper img {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-image-wrapper img {
    height: 280px;
  }
}

/* Feature & Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
  opacity: 0.6;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 181, 43, 0.35);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 20px -5px rgba(229, 181, 43, 0.15);
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--brand-accent);
  font-family: var(--font-heading);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Studio Sections Rhythm & Spacing */
.section-padding {
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: clamp(3rem, 5vw, 4rem) 0;
  }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 {
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.65;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}

.grid-2 > .glass-card {
  height: 100%;
}

@media (max-width: 868px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Service / Planilha Card */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.plan-card:hover {
  border-color: rgba(229, 181, 43, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(229, 181, 43, 0.2);
}

.plan-img {
  height: 230px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.plan-card:hover .plan-img {
  transform: scale(1.03);
}

.plan-body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (max-width: 576px) {
  .plan-body {
    padding: 1.25rem;
  }
}

.plan-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.plan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-accent);
}

/* Blog Cards */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  border-color: var(--brand-accent);
  transform: translateY(-4px);
}

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

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-white);
  line-height: 1.4;
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Form Controls & Mobile Input Zoom Prevention */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 0.875rem 1.15rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-family);
  font-size: 16px !important; /* Prevents auto-zoom on iOS Safari and Instagram In-App Browser */
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(229, 181, 43, 0.25);
}

textarea.form-control,
textarea {
  resize: vertical;
  min-height: 140px;
}

/* Contact Info Boxes */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .contact-info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-teal-light);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background-color: #06090A;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 calc(2rem + var(--sab));
  margin-top: auto;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-column h4 {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: inline-block;
  min-height: 24px;
}

.footer-links a:hover {
  color: var(--brand-accent);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Floating WhatsApp Button - Optimized with Safe Area */
.whatsapp-float {
  position: fixed;
  bottom: calc(1.5rem + var(--sab));
  right: calc(1.5rem + var(--sar));
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.2);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  touch-action: manipulation;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background-color: #20BA5A;
  color: #FFF;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.whatsapp-float:active {
  transform: scale(0.92);
}

/* Benefits Diagram Section */
.benefits-diagram-section {
  background-color: #0B0F10;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.benefits-subtitle {
  color: var(--brand-accent);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.benefits-main-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 3.5rem;
  word-break: break-word;
}

.benefits-layout {
  display: grid;
  grid-template-columns: 1fr 380px 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-column-left {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: flex-end;
}

.benefit-column-right {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: flex-start;
}

.benefit-item-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: right;
  position: relative;
}

.benefit-item-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  position: relative;
}

.benefit-text-box {
  max-width: 260px;
}

.benefit-item-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
}

.benefit-item-desc {
  color: #94A3B8;
  font-size: 0.875rem;
  line-height: 1.45;
}

.benefit-big-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--brand-accent);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  min-width: 70px;
}

/* Oval Frame Center */
.benefits-oval-frame {
  width: 340px;
  height: 480px;
  border-radius: 50%;
  overflow: hidden;
  border: 10px solid #3E2B1E;
  box-shadow: 0 0 0 1px rgba(229, 181, 43, 0.3), 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

.benefits-oval-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* SVG Connector Lines */
.benefits-connectors-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 991px) {
  .benefits-connectors-svg {
    display: none;
  }
  
  .benefits-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .benefits-center-col {
    order: -1;
  }

  .benefits-oval-frame {
    width: 260px;
    height: 360px;
  }

  .benefit-column-left, .benefit-column-right {
    align-items: center;
    gap: 2rem;
  }

  .benefit-item-left, .benefit-item-right {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .benefit-text-box {
    max-width: 100%;
  }

  .benefit-big-number {
    font-size: 3.25rem;
  }
}

/* Seção Sobre / Comunidade na Home - Foto inteira reduzida e alinhada ao conteúdo */
.about-welcome-grid {
  display: grid !important;
  grid-template-columns: 400px 1fr !important;
  align-items: center !important;
  gap: 3.5rem !important;
}

.about-welcome-grid .about-img-box {
  width: 100% !important;
  max-width: 400px !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-card) !important;
  overflow: hidden !important;
  background: var(--bg-card) !important;
}

.about-welcome-grid .about-img-box img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

@media (max-width: 991px) {
  .about-welcome-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .about-welcome-grid .about-img-box {
    max-width: 380px !important;
    margin: 0 auto 1.5rem !important;
  }
}


