/* =========================================================
   HOME HERO — Premium Motion Pack (Modern Tech)
   File: assets/css/home-hero-premium.css
   Carica questo file DOPO home-hero.css
   ========================================================= */

/* 1) Entrata morbida del box */
#hero-home .hero-box{
  animation: heroFloatIn .65s cubic-bezier(.2,.9,.2,1) both;
  will-change: transform, opacity;
}
@keyframes heroFloatIn{
  from{ transform: translateY(10px); opacity: 0; }
  to  { transform: translateY(0);  opacity: 1; }
}

/* 2) Accent line sotto H1 (effetto premium) */
#hero-home .hero-box h1{
  position: relative;
  padding-bottom: 8px;
}
#hero-home .hero-box h1::after{
  content:"";
  display:block;
  width: 74px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b63ff, #2d8cff);
  margin-top: 10px;
  opacity: .95;
}

/* 3) Glow leggero sul box (senza coprire il riquadro dell’immagine) */
#hero-home .hero-box::before{
  content:"";
  position:absolute;
  inset:-18px;
  border-radius: 22px;
  background: radial-gradient(closest-side, rgba(11,99,255,.14), transparent 70%);
  filter: blur(8px);
  opacity: .55;
  pointer-events:none;
  z-index:-1;
}

/* 4) Bottoni “premium”: micro-shine al passaggio */
#hero-home .hero-actions .btn{
  position: relative;
  overflow: hidden;
}
#hero-home .hero-actions .btn::after{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: rotate(18deg);
  opacity: 0;
  transition: opacity .2s ease, transform .55s ease;
}
#hero-home .hero-actions .btn:hover::after{
  opacity: .9;
  transform: translateX(220%) rotate(18deg);
}

/* 5) Hover più “app-like” */
#hero-home .hero-actions .btn:hover{
  transform: translateY(-1px);
}

/* 6) Micro-parallax solo su desktop (leggerissimo) */
@media (min-width: 901px){
  #hero-home{
    background-position: center center !important;
    animation: heroBgBreath 6.5s ease-in-out infinite;
  }
  @keyframes heroBgBreath{
    0%   { background-position: 50% 50%; }
    50%  { background-position: 52% 48%; }
    100% { background-position: 50% 50%; }
  }
}

/* 7) Mobile: mantieni leggibilità e riduci motion */
@media (max-width: 900px){
  #hero-home{ animation: none; }
  #hero-home .hero-box{ animation: heroFloatIn .55s ease-out both; }
}

/* 8) Accessibilità: riduci animazioni */
@media (prefers-reduced-motion: reduce){
  #hero-home, #hero-home .hero-box, #hero-home .hero-actions .btn{
    animation: none !important;
    transition: none !important;
  }
  #hero-home .hero-actions .btn::after{ display:none !important; }
}
