/* =========================================================
   UniCondominio Academy — Home Hero Background (Modern Tech)
   File: assets/css/home-hero.css

   Requisito:
   - Carica l'immagine in: assets/images/hero-modern-tech.png
   - L'immagine ha un riquadro bianco trasparente a DESTRA dove inserire il testo.
   ========================================================= */

/* HERO background image */
#hero-home{
  background: url('../images/hero-modern-tech.png') center/cover no-repeat !important;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* box testo a destra */
  padding: 64px 28px;
  position: relative;
}

/* leggero fade a sinistra per equilibrio (non copre il box) */
#hero-home::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(7,18,38,.28) 0%,
    rgba(7,18,38,.12) 35%,
    rgba(7,18,38,0) 60%,
    rgba(7,18,38,0) 100%);
  pointer-events: none;
}

/* BOX testo: allineato sul riquadro disegnato nell'immagine */
#hero-home .hero-box{
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  margin-right: 4.5%;
  padding: 18px 18px;
  text-align: left;
  background: transparent; /* il box è già nell'immagine */
}

/* testo scuro perché il riquadro è chiaro */
#hero-home .hero-box h1,
#hero-home .hero-box .hero-sub,
#hero-home .hero-box .hero-strong{
  color: #0b1b33 !important;
  text-shadow: none !important;
}

#hero-home .hero-box .hero-sub{ opacity: .90; }
#hero-home .hero-box .hero-strong{ opacity: .92; }

/* bottoni sul box chiaro */
#hero-home .hero-actions .btn-primary{
  box-shadow: 0 14px 26px rgba(11,99,255,.20) !important;
}

#hero-home .hero-actions .btn-ghost{
  background: rgba(11,99,255,.10) !important;
  border: 1px solid rgba(11,99,255,.18) !important;
  color: #0b1b33 !important;
}
#hero-home .hero-actions .btn-ghost:hover{
  background: rgba(11,99,255,.14) !important;
}

/* Mobile: centra e aggiunge glass per leggibilità */
@media (max-width: 900px){
  #hero-home{
    justify-content: center;
    padding: 40px 16px;
    min-height: 520px;
  }
  #hero-home .hero-box{
    margin-right: 0;
    padding: 14px 14px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(11,27,51,.12);
    border-radius: 18px;
    backdrop-filter: blur(6px);
  }
}


/* =========================================================
   HOME HERO — Premium Motion Pack (Modern Tech, più spinta)
   Incolla in fondo a assets/css/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; }
}


/* Scroll cue */
#hero-home .scroll-cue{
  margin-top: 18px;
  width: 28px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(11,27,51,.28);
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}
#hero-home .scroll-cue span{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(11,99,255,.75);
  animation: dotDown 1.25s ease-in-out infinite;
}
@keyframes dotDown{
  0%{ transform: translateY(0); opacity: .35; }
  50%{ transform: translateY(12px); opacity: 1; }
  100%{ transform: translateY(0); opacity: .35; }
}
@media (prefers-reduced-motion: reduce){
  #hero-home .scroll-cue span{ animation:none !important; }
}