/**
 * Three Globe - Layout & Structure
 * Configurações de layout e posicionamento para o webdoor do globo
 */

/* ===================================
   Hero Globe Layout & Structure
   ================================ */

/* Prevenir rolagem horizontal */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Webdoor do Globo - Mobile: sem diagonal */
#home-hero-globe {
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  padding-bottom: 60px;
  margin-bottom: 0;
  border-bottom: 1px solid #e2e8f0;
  clip-path: none !important;
}

/* Desktop: sem diagonal */
@media (min-width: 1024px) {
  #home-hero-globe {
    clip-path: none !important;
    padding-bottom: 80px;
    margin-bottom: 0;
  }
}

/* Marquee de Empresas - Mobile: sem compensação */
#home-firm-marquee {
  margin-top: 0;
  padding-top: 60px;
  padding-bottom: 60px;
  overflow-x: hidden;
  background-color: #ffffff;
}

/* Desktop: padding normal sem compensação */
@media (min-width: 1024px) {
  #home-firm-marquee {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* Marquee full-width em desktop */
@media (min-width: 1024px) {
  .firm-marquee-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
}

/* Layout Hero Globo - Mobile (padrão) */
.hero-globe-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
  position: relative;
}

.hero-globe-text-column {
  width: 100%;
  position: relative;
  z-index: 20;
  order: 1;
}

.globe-container-wrapper {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 10;
  order: 2;
}

.globe-container {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

#globeCanvas {
  width: 100%;
  height: 100%;
}

/* Canvas do globo 3D - Mobile */
@media (max-width: 640px) {
  .globe-container {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  #globeCanvas {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
  }
}

/* KPIs - Mobile */
.hero-globe-text-column dl {
  position: relative;
  z-index: 20;
}

/* Layout Hero Globo - Desktop */
@media (min-width: 1024px) {
  .hero-globe-layout {
    display: block !important;
    position: relative !important;
    min-height: 560px !important;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  
  .hero-globe-text-column {
    width: 45% !important;
    max-width: 45% !important;
    padding-top: 0 !important;
    position: relative !important;
    z-index: 20 !important;
    order: unset !important;
  }
  
  .globe-container-wrapper {
    position: absolute !important;
    right: -100px !important;
    bottom: 15px !important;
    transform: translateY(0) !important;
    z-index: 5 !important;
    pointer-events: none !important;
    overflow: visible !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    order: unset !important;
  }
  
  .globe-container {
    transform: scale(2.15) !important;
    transform-origin: center center !important;
    pointer-events: all !important;
    position: relative !important;
    width: 500px !important;
    height: 500px !important;
    aspect-ratio: unset !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }
  
  #globeCanvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: all !important;
    display: block !important;
  }
}

