/* Contenitore hero */
.bz-hero {
  position: relative;
  min-height: 600px;
  width: 100%;
  background: #394b9d;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #f4e9f9;
}

/* Logo centrale */
.bz-hero-logo {
  max-width: 480px;
  width: 80vw;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.7));
  z-index: 0;
}

/* Sottotitolo in basso */
.bz-hero-subtitle {
  position: absolute;
  bottom: 32px;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  z-index: 0;
}

/* Sommergibile + scia */
.bz-submarine-wrapper {
  position: absolute;
  width: 120px;
  pointer-events: none;
  z-index: 99;
  transform-origin: center center;
}

.bz-submarine-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  position: relative;
  z-index: 99;
}

/* scia acqua */
.bz-submarine-wake {
  position: absolute;
  left: -40%;
  top: 45%;
  width: 160%;
  height: 80%;
  background: radial-gradient(
    circle at 0% 50%,
    rgba(80, 160, 255, 0.25),
    rgba(80, 160, 255, 0.05) 45%,
    transparent 75%
  );
  opacity: 0.55;
  filter: blur(10px);
  transform: translateY(-50%);
  z-index: 99;
  pointer-events: none;
  animation: bz-wake-pulse 2.3s ease-in-out infinite;
}

@keyframes bz-wake-pulse {
  0% {
    opacity: 0.4;
    transform: translateY(-50%) scaleX(1);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-50%) scaleX(1.1);
  }
  100% {
    opacity: 0.4;
    transform: translateY(-50%) scaleX(1);
  }
}

/* Bolle blu */
.bz-bubble {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(120, 190, 255, 0.9);
  background: radial-gradient(circle, rgba(120, 190, 255, 0.6), transparent);
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  animation: bz-bubble-up var(--bz-bubble-duration, 1.8s) ease-out forwards;
}

@keyframes bz-bubble-up {
  0% {
    transform: translate3d(0, 0, 0) scale(var(--bz-bubble-scale, 1));
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate3d(
      var(--bz-bubble-x-drift, 0px),
      var(--bz-bubble-y-distance, -140px),
      0
    ) scale(calc(var(--bz-bubble-scale, 1) * 0.6));
    opacity: 0;
  }
}

/* Editor preview (solo backend) */
.bz-hero-preview {
  min-height: 200px;
  background: radial-gradient(circle at top, #222230, #0b0b11);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.bz-hero-preview-text {
  margin: 40px auto;
  max-width: 480px;
  font-size: 0.9rem;
  opacity: 0.8;
  color: #f4e9f9;
}

@media (max-width: 600px) {
  .bz-hero-logo {
    max-width: 320px;
  }

  .bz-submarine-wrapper {
    width: 90px;
  }

  .bz-hero-subtitle {
    font-size: 0.75rem;
  }
}
