/* ============================================================
   HERO PREMIUM UPGRADE — Ferramenta 3D
   Layer additivo: non sovrascrive nulla del sito esistente.
   Glassmorphism · Gradienti profondi · Micro-animazioni
   ============================================================ */

/* ── Keyframes ── */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-badge-in {
  from { opacity: 0; transform: scale(0.88) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shimmer-line {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,193,7,0); }
  50%       { box-shadow: 0 0 0 10px rgba(255,193,7,0.18), 0 0 40px rgba(255,193,7,0.12); }
}

@keyframes float-orb {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-18px) scale(1.04); }
}

@keyframes scan-line {
  0%   { top: -2px; opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

/* ── Hero container upgrade ── */
section#home.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Gradient overlay sopra l'immagine — più profondo e direzionato */
section#home.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg,
      rgba(2, 6, 23, 0.96) 0%,
      rgba(5, 14, 40, 0.88) 45%,
      rgba(10, 20, 55, 0.72) 100%);
  pointer-events: none;
}

/* Orb ambientale in basso a destra */
section#home.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle,
    rgba(255, 193, 7, 0.13) 0%,
    rgba(255, 120, 0, 0.06) 40%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-orb 7s ease-in-out infinite;
  z-index: 0;
}

/* Secondo orb in alto a sinistra — freddo */
section#home.hero .secondary-hero-bg::after {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle,
    rgba(30, 80, 200, 0.18) 0%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Scan line cinematica */
section#home.hero .secondary-hero-bg::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,193,7,0.25) 30%,
    rgba(255,193,7,0.5) 50%,
    rgba(255,193,7,0.25) 70%,
    transparent 100%);
  animation: scan-line 5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

/* ── Badge "Maurer Point" upgrade → glassmorphism ── */
section#home.hero .container > div > div:first-child {
  background: rgba(255, 193, 7, 0.08) !important;
  border: 1px solid rgba(255, 193, 7, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
  animation: hero-badge-in 0.6s cubic-bezier(0.22,1,0.36,1) both !important;
  position: relative;
  overflow: hidden;
}

/* Shimmer sul badge */
section#home.hero .container > div > div:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.15),
    transparent);
  animation: shimmer-line 3.5s ease-in-out infinite;
  border-radius: inherit;
}

/* ── H1 — animazione entrata + grandezza ── */
section#home.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.5px;
  animation: hero-fade-up 0.7s 0.15s cubic-bezier(0.22,1,0.36,1) both;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.6),
    0 8px 32px rgba(0,0,0,0.4) !important;
}

/* Span accent nel titolo */
section#home.hero h1 span {
  background: linear-gradient(90deg, #FFC107 0%, #FFD54F 60%, #FF8F00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255,193,7,0.4));
}

/* ── Paragraph sottotitolo ── */
section#home.hero p:not(.cta-highlight) {
  animation: hero-fade-up 0.7s 0.28s cubic-bezier(0.22,1,0.36,1) both;
}

/* ── CTA highlight glass pill ── */
section#home.hero p.cta-highlight {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82) !important;
  animation: hero-fade-up 0.7s 0.38s cubic-bezier(0.22,1,0.36,1) both;
  margin-top: 0.5rem;
}

/* ── CTA buttons upgrade ── */
section#home.hero .container > div > div[style*="flex"] {
  animation: hero-fade-up 0.7s 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

/* Pulsante WhatsApp — premium glow */
section#home.hero .btn-primary.btn-pulse-gold {
  position: relative;
  background: linear-gradient(135deg, #F4B400 0%, #FF8F00 100%) !important;
  border: none !important;
  box-shadow:
    0 4px 24px rgba(255,193,7,0.35),
    0 1px 0 rgba(255,255,255,0.2) inset !important;
  color: #000 !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  border-radius: 8px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  animation: pulse-glow 2.4s ease-in-out infinite !important;
  overflow: hidden;
}

section#home.hero .btn-primary.btn-pulse-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: shimmer-line 2.8s ease-in-out infinite;
  pointer-events: none;
}

section#home.hero .btn-primary.btn-pulse-gold:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow:
    0 8px 36px rgba(255,193,7,0.5),
    0 1px 0 rgba(255,255,255,0.3) inset !important;
  animation: none !important;
}

/* Pulsante "Chiama" — glass upgrade */
section#home.hero .btn.btn-solid {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  border-radius: 8px !important;
  transition: background 0.25s, border-color 0.25s, transform 0.25s !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
}

section#home.hero .btn.btn-solid:hover {
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.45) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3) !important;
}

/* ── Cataloghi bar ── */
.hero-cataloghi-bar {
  animation: hero-fade-up 0.7s 0.65s cubic-bezier(0.22,1,0.36,1) both;
}

.hero-cat-pill {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: transform 0.2s, background 0.2s !important;
}

.hero-cat-pill:hover {
  transform: translateY(-2px) !important;
}

/* ── Rumore texture sottile sopra hero ── */
section#home.hero .container {
  position: relative;
  z-index: 2;
}

/* ── Scroll indicator bottom ── */
.scroll-indicator {
  z-index: 5 !important;
  animation: hero-fade-up 0.7s 1.1s cubic-bezier(0.22,1,0.36,1) both !important;
}

/* ── Mobile adjustments ── */
@media (max-width: 768px) {
  section#home.hero {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  section#home.hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem) !important;
  }

  section#home.hero::after {
    width: 280px;
    height: 280px;
    bottom: -60px;
    right: -40px;
  }
}
