/*
 * ccy_hero.css
 * Componente Hero Section
 */

/* ===== Hero wrapper ===== */
.hero {
  /* background-image: url('/image/hero.png');
  background-repeat: no-repeat;
  background-size: cover; */
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  text-align: center;
  padding: 84px 18px 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 70px;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.hero.show {
  opacity: 1;
}

.hero-container-left {
  max-width: 40%;
  margin: 0 auto;
  padding: 25px 30px;
  transform: translateX(-60px);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.hero-container-right {
  max-width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 0px 25px 18px;
  transform: translateX(-60px);
  opacity: 0;
  transition: transform 0.5s ease-out 0.15s, opacity 0.5s ease-out 0.15s;
}

.hero.show .hero-container-left,
.hero.show .hero-container-right {
  transform: translateX(0);
  opacity: 1;
}

.hero-illustration {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-position: 100px 0;
  object-fit: cover;
}

.img_bg_hero {
  position: absolute;
  top: 0;
  left: 28%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Stato iniziale: invisibile e leggermente traslata a destra */
  opacity: 0;
  transform: translateX(40px) scale(1.03);
  transition: opacity 0.9s ease-out 0.3s, transform 0.9s ease-out 0.3s;
}

/* Quando .hero riceve .show (IntersectionObserver / requestAnimationFrame),
   l'immagine scivola nella posizione finale */
.hero.show .img_bg_hero {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ===== Kicker ===== */
.kicker {
  text-transform: uppercase;
  font-size: var(--font_size_kicker);
  font-weight: var(--font_weight_kicker);
  color: var(--ccy-kicker);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

/* ===== Title ===== */
.hero h1 {
  font-size: var(--font_size_title);
  font-weight: var(--font_weight_title);
  line-height: var(--line_height_title);
  margin-bottom: var(--margin_bottom_title);
  color: var(--ccy-hero-bg);
  position: relative;
  z-index: 1;
}

.hero h1::first-letter {
  font-size: var(--font_size_title_first_letter);
  color: var(--ccy-accent);
}

.hero h1 em {
  color: #0098df;
  font-style: normal;
}

/* ===== Subtitles ===== */
.hero .hero-subtitle {
  max-width: 100%;
}

.hero .sub {
  color: var(--ccy-hero-bg);
  font-size: var(--font_size_subtitle);
  position: relative;
  z-index: 1;
}

/* ===== Invite text ===== */
.hero-invite {
  max-width: 920px;
  margin: 0 auto;
  font-weight: 900;
  font-size: 1.05rem;
}

/* ===== CTA row ===== */
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}



.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}



/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero {
    flex-direction: column;
    padding: 60px 15px;
  }

  .hero-container-left {
    max-width: 100%;
    text-align: center;
  }

  .hero-container-right {
    display: none;
  }
}
