/* =========================================================
   ESTILOS DA ANIMAÇÃO INTRO / SPLASH SCREEN
   ========================================================= */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #173f35;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-step {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden; /* Garante que passos inativos não sobreponham visualmente */
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
  pointer-events: none;
  z-index: 1;
}

.splash-step.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.splash-step.exit {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  z-index: 1;
}

/* Etapa 1: Logo Porto & Belotti */
.splash-card {
  background: #f7f4ee;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash-card img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

/* Etapa 2: Capa dos Consultores */
.splash-cover-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  object-fit: contain;
}

/* Etapa 3: Ícone Flutuante com transição para posição final */
#step-3 {
  transition: opacity 0.5s ease;
}

.splash-icon-wrapper {
  position: absolute;
  width: 160px;
  height: 160px;
  transition: transform 0.8s cubic-bezier(0.34, 1.25, 0.64, 1), width 0.8s ease, height 0.8s ease, border-radius 0.8s ease, box-shadow 0.8s ease;
}

.splash-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
  object-fit: cover;
  transition: border-radius 0.8s ease, box-shadow 0.8s ease;
}

/* Estilo da imagem ao acoplar na posição final */
.splash-icon-wrapper.morphing .splash-icon-img {
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Revelação da aplicação principal */
.app {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.app.visible {
  opacity: 1;
}