@charset "UTF-8";
:root {
  --bloom-primary: #4b32e6;
}

.wp-block-acf-hero-bloom,
.wp-block-acf-hero-bloom > .acf-block-component {
  margin: 0 !important;
  padding: 0 !important;
}

body:not(.wp-admin):not(.block-editor-page):not(.block-editor-iframe__body) .wp-block-post-content > .wp-block-acf-hero-bloom,
body:not(.wp-admin):not(.block-editor-page):not(.block-editor-iframe__body) .wp-block-post-content > .wp-block-acf-hero-bloom > .acf-block-component {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: transparent;
}

.bloom-hero {
  /* React: min-h-[85vh] md:min-h-[90vh] + frame scroll (margin/radius → 0) */
  box-sizing: border-box;
  min-height: 85vh;
  display: flex;
  align-items: center;
  /* React: pt-32 pb-16 */
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
  background: #000;
}

@media (min-width: 768px) {
  .bloom-hero {
    min-height: 90vh;
    /* React: md:pt-40 md:pb-20 */
    padding-top: 10rem;
    padding-bottom: 5rem;
  }
}
body.admin-bar:not(.wp-admin) .bloom-hero {
  min-height: calc(100vh - 32px);
}
@media screen and (min-width: 783px) {
  body.admin-bar:not(.wp-admin) .bloom-hero {
    min-height: calc(100vh - 32px);
  }
}

.bloom-hero__bg,
.bloom-hero__bg-gradient,
.bloom-hero__aurora,
.bloom-hero__video {
  position: absolute;
  inset: 0;
}

.bloom-hero__bg {
  z-index: 0;
}

.bloom-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.bloom-hero__bg-gradient {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent, #000);
}

.bloom-hero__aurora {
  opacity: 0.3;
}

.bloom-hero__container {
  /* React: max-w-7xl mx-auto px-6 md:pl-12 w-full grid lg:grid-cols-2 gap-12 items-center */
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 10;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.bloom-hero__content {
  color: #fff;
}

/* React: containerVariants + itemVariants (stagger 0.2s, delayChildren 0.1s)
 * Perf: l'ingresso animava anche filter: blur(10px) → blur(0). Il blur non è
 * componibile: ogni frame ri-rasterizzava il testo sfocato a un raggio diverso,
 * per 1.2s e su tre blocchi sfalsati — proprio durante il caricamento, dove su
 * mobile competeva con video e font. Restano opacity e transform, che il
 * compositor gestisce senza lavoro sul main thread. */
.bloom-hero__title-wrap,
.bloom-hero__description-wrap,
.bloom-hero__ctas {
  opacity: 0;
  transform: translateY(5rem);
  animation: bloom-hero-item-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bloom-hero__title-wrap {
  animation-delay: 0.1s;
}

.bloom-hero__description-wrap {
  animation-delay: 0.3s;
}

.bloom-hero__ctas {
  animation-delay: 0.5s;
}

/* React: mb-10 around title + subtitle */
.bloom-hero__title-wrap {
  overflow: hidden;
  margin: 0;
  padding-bottom: 0.25rem;
}

.bloom-hero__title {
  /* React: text-5xl md:text-7xl lg:text-[5.25rem] font-light leading-[0.85]
   * Il prototipo rende ~400 (h1 computed weight 400): allineiamo al rendering reale */
  color: #fff !important;
  font-size: 3rem;
  font-weight: 400 !important;
  font-variation-settings: "wght" 400;
  line-height: 0.85;
  letter-spacing: -0.025em;
  margin: 0;
  padding-bottom: 0.5rem;
}

.bloom-hero__title-line {
  display: block;
  padding-bottom: 0.25rem;
  color: #fff;
  font-weight: inherit;
}

.bloom-hero__title-line--accent {
  color: var(--color-primary-300, #a3abfe);
}

.bloom-hero__description-wrap {
  overflow: hidden;
  margin: 1.25rem 0 2.5rem;
  padding-bottom: 0;
}

.bloom-hero__description {
  /* React: text-base md:text-lg text-white/75 max-w-xl font-light */
  margin: 0;
  max-width: 36rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 1rem;
  font-weight: 300 !important;
  font-variation-settings: "wght" 300;
}

.bloom-hero__description-break {
  display: none;
}

.bloom-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bloom-hero__cta {
  /* React ButtonFilled/Glass small */
  box-sizing: border-box;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.75rem; /* text-xs */
  line-height: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem; /* gap-2.5 */
  padding: 0.625rem 1rem; /* py-2.5 px-4 */
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.bloom-hero__cta--primary {
  background: var(--bloom-primary);
  color: #fff;
  border: 1px solid transparent;
}

.bloom-hero__cta--primary svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.3s ease;
}

.bloom-hero__cta--primary i {
  font-size: 0.875rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.bloom-hero__cta--primary:hover {
  box-shadow: 0 20px 25px -5px rgba(75, 50, 230, 0.2);
}

.bloom-hero__cta--primary:hover svg,
.bloom-hero__cta--primary:hover i {
  transform: translateY(0.25rem);
}

/* Perf: niente backdrop-filter. Il bottone vive dentro .bloom-hero__ctas, che
 * trasla nell'animazione d'ingresso e si muove insieme allo scroll: lo sfondo
 * dietro cambia a ogni frame, quindi la sfocatura non è mai riutilizzabile.
 * Su un video scuro un blur(4px) non si legge — basta il velo semitrasparente. */
.bloom-hero__cta--glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.bloom-hero__cta--glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

.bloom-hero__visual {
  display: none;
  position: relative;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.8);
  animation: bloom-hero-visual-in 1.2s ease-out 0.6s forwards;
}

.bloom-hero__bloom-wrap {
  position: relative;
  width: 100%;
  max-width: 32rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Perf: erano tinte piatte con filter: blur(100px)/blur(80px) animate in scale.
 * Ogni frame la sfocatura veniva ricalcolata alla nuova scala su una superficie
 * grande quanto il visual. Il risultato di un blur così ampio su un cerchio
 * pieno è di fatto un radial-gradient: lo disegniamo direttamente (zero filter)
 * e facciamo respirare l'opacità, che il compositor gestisce senza repaint. */
.bloom-hero__pulse {
  position: absolute;
  border-radius: 999px;
  animation: bloom-pulse 2s ease-in-out infinite;
  will-change: opacity;
}

.bloom-hero__pulse--primary {
  width: 120%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(75, 50, 230, 0.26) 0%, rgba(75, 50, 230, 0.12) 45%, transparent 72%);
}

.bloom-hero__pulse--cyan {
  width: 80%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.14) 0%, rgba(34, 211, 238, 0.06) 45%, transparent 72%);
  animation-delay: 0.7s;
}

/* React: scale [1,1.05,1] + rotate [0..360] in 20s linear
 * Perf: rotazione pura, senza lo scale. Con lo scale il layer (che contiene il
 * core sfocato e la stella) andava rasterizzato di nuovo a ogni frame; ruotando
 * soltanto, il compositor riusa la stessa texture.
 * Rimosso anche backdrop-filter: su un elemento in movimento lo sfondo dietro
 * cambia sempre, quindi la sfocatura non è mai riutilizzabile — era il costo
 * per-frame più alto del visual. */
.bloom-hero__rotator {
  position: relative;
  z-index: 10;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  animation: bloom-rotator-spin 20s linear infinite;
  will-change: transform;
}

.bloom-hero__rotator-inner {
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bloom-hero__core {
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: linear-gradient(to top right, var(--bloom-primary), #22d3ee);
  opacity: 0.2;
  filter: blur(24px);
}

.bloom-hero__star {
  width: 8rem;
  height: 8rem;
  position: absolute;
  fill: currentColor;
  color: #fff;
}

.bloom-hero__star--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  line-height: 1;
}

/* React: motion.div absolute inset-0 flex center → rotate 360; cerchio figlio 300/400/500px */
.bloom-hero__orbit-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: bloom-orbit-rotate linear infinite;
  will-change: transform;
}

.bloom-hero__orbit-track--one {
  animation-duration: 15s;
}

.bloom-hero__orbit-track--two {
  animation-duration: 20s;
}

.bloom-hero__orbit-track--three {
  animation-duration: 25s;
}

.bloom-hero__orbit-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  box-sizing: border-box;
}

.bloom-hero__orbit-track--one .bloom-hero__orbit-ring {
  width: 18.75rem;
  height: 18.75rem;
}

.bloom-hero__orbit-track--two .bloom-hero__orbit-ring {
  width: 25rem;
  height: 25rem;
}

.bloom-hero__orbit-track--three .bloom-hero__orbit-ring {
  width: 31.25rem;
  height: 31.25rem;
}

/* Perf: il pulse era in scale, e uno scale dentro il track in rotazione
 * costringeva a ri-rasterizzare tutto il layer del track (500px) a ogni frame.
 * In opacità il dot vive su un layer suo e la texture del track resta valida. */
.bloom-hero__orbit-dot {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  transform: translateX(-50%);
  animation: bloom-orbit-dot-pulse 2s ease-in-out infinite;
  will-change: opacity;
}

.bloom-hero__orbit-track--two .bloom-hero__orbit-dot {
  animation-delay: 0.5s;
}

.bloom-hero__orbit-track--three .bloom-hero__orbit-dot {
  animation-delay: 1s;
}

.bloom-hero__card {
  position: absolute;
  /* React: p-6 rounded-2xl */
  padding: 1.5rem;
  border-radius: 1rem;
  z-index: 20;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.bloom-hero__card--top {
  /* React: -top-10 -right-10 */
  top: -2.5rem;
  right: -2.5rem;
  max-width: 200px;
  animation: bloom-float-up 4s ease-in-out infinite;
}

.bloom-hero__card--bottom {
  bottom: -2.5rem;
  left: -2.5rem;
  animation: bloom-float-down 5s ease-in-out infinite;
}

.bloom-hero__card-topline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.bloom-hero__card-play {
  /* React: w-14 h-14 bg-primary-400/20 rounded-lg text-primary-500 */
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-500, #6960f4);
  background: rgba(127, 128, 250, 0.2); /* primary-400 @ 20% */
  flex: 0 0 auto;
}

.bloom-hero__card-play i {
  font-size: 1rem; /* React: w-10 h-10 */
  line-height: 1;
}

.bloom-hero__card-topline span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bloom-hero__bar {
  height: 0.375rem;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

/* React: bg-primary-500, width 0 → 75% */
.bloom-hero__bar-progress {
  height: 100%;
  width: 0;
  background: var(--color-primary-500, #6960f4);
  animation: bloom-hero-bar-fill 2s ease forwards 1s;
}

.bloom-hero__badge-icon {
  /* React: stesso stile del play — w-14 h-14 rounded-lg bg-primary-400/20 text-primary-500 */
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-500, #6960f4);
  background: rgba(127, 128, 250, 0.2); /* primary-400 @ 20% */
  flex: 0 0 auto;
}

.bloom-hero__badge-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: currentColor;
}

.bloom-hero__badge-icon i {
  font-size: 1rem;
  line-height: 1;
}

.bloom-hero__badge-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.625rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.bloom-hero__badge-text strong {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
}

.bloom-hero__card--bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bloom-hero__ctas {
    flex-direction: row;
    width: auto;
  }
  .bloom-hero__cta {
    width: auto;
  }
}
@media (min-width: 768px) {
  .bloom-hero__title {
    font-size: 4.5rem; /* md:text-7xl */
  }
  .bloom-hero__title-line {
    padding-bottom: 0.5rem;
  }
  .bloom-hero__description {
    font-size: 1.125rem;
  }
  .bloom-hero__description-break {
    display: inline;
  }
  .bloom-hero__cta {
    padding: 0.625rem 1.25rem; /* md:px-5 py-2.5 */
    font-size: 0.875rem; /* md:text-sm */
  }
  .bloom-hero__cta--primary svg,
  .bloom-hero__cta--primary i {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
  }
  .bloom-hero__container {
    padding-left: 3rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .bloom-hero__container {
    grid-template-columns: 1fr 1fr;
  }
  .bloom-hero__title {
    font-size: 5.25rem;
  }
  .bloom-hero__visual {
    display: flex;
    min-height: 31.25rem;
  }
}
@keyframes bloom-hero-item-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bloom-hero-visual-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes bloom-hero-bar-fill {
  to {
    width: var(--bloom-bar-width, 75%);
  }
}
@keyframes bloom-orbit-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes bloom-orbit-dot-pulse {
  0%, 100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}
@keyframes bloom-rotator-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes bloom-pulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}
@keyframes bloom-float-up {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@keyframes bloom-float-down {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bloom-hero__title-wrap,
  .bloom-hero__description-wrap,
  .bloom-hero__ctas,
  .bloom-hero__visual,
  .bloom-hero__bar-progress {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  /* Decorativi: niente loop infiniti (né layer promossi) a motion ridotto. */
  .bloom-hero__pulse,
  .bloom-hero__rotator,
  .bloom-hero__orbit-track,
  .bloom-hero__card--top,
  .bloom-hero__card--bottom {
    animation: none;
    will-change: auto;
  }
  .bloom-hero__orbit-dot {
    animation: none;
    will-change: auto;
    opacity: 1;
  }
  .bloom-hero__bar-progress {
    width: var(--bloom-bar-width, 75%);
  }
}
/* Editor: anteprima senza animazioni che nascondono il blocco */
.editor-styles-wrapper .bloom-hero__title-wrap,
.editor-styles-wrapper .bloom-hero__description-wrap,
.editor-styles-wrapper .bloom-hero__ctas,
.editor-styles-wrapper .bloom-hero__visual,
.editor-styles-wrapper .bloom-hero__rotator,
.editor-styles-wrapper .bloom-hero__orbit-track,
.editor-styles-wrapper .bloom-hero__pulse,
.editor-styles-wrapper .bloom-hero__card--top,
.editor-styles-wrapper .bloom-hero__card--bottom,
.editor-styles-wrapper .bloom-hero__bar-progress,
.block-editor-iframe__body .bloom-hero__title-wrap,
.block-editor-iframe__body .bloom-hero__description-wrap,
.block-editor-iframe__body .bloom-hero__ctas,
.block-editor-iframe__body .bloom-hero__visual,
.block-editor-iframe__body .bloom-hero__rotator,
.block-editor-iframe__body .bloom-hero__orbit-track,
.block-editor-iframe__body .bloom-hero__pulse,
.block-editor-iframe__body .bloom-hero__card--top,
.block-editor-iframe__body .bloom-hero__card--bottom,
.block-editor-iframe__body .bloom-hero__bar-progress {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.editor-styles-wrapper .bloom-hero__bar-progress,
.block-editor-iframe__body .bloom-hero__bar-progress {
  width: var(--bloom-bar-width, 75%);
}

.editor-styles-wrapper .bloom-hero__visual,
.block-editor-iframe__body .bloom-hero__visual {
  display: flex;
}

/*# sourceMappingURL=hero-bloom.css.map */
