/* ===== HERO PRINCIPALE ===== */

.ventureon-hero-main {
  position: relative;
  color: #ffffff;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center; /* centratura verticale del contenuto */
}

.ventureon-hero-main__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -2;
}

.ventureon-hero-main__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* overlay scuro per leggibilità */
.ventureon-hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 15% 20%, rgba(10, 58, 74, 0.9), rgba(10, 58, 74, 0.85));
}

/* contenuto */
.ventureon-hero-main__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.ventureon-hero-main__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
}

.ventureon-hero-main__subtitle {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  color: #ffffff;
}

.ventureon-hero-main__text {
  margin: 0 0 2rem;
  max-width: 640px;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #ffffff;
}

.ventureon-hero-main__buttons {
  display: flex;
  gap: 1rem;
}

.ventureon-hero-main__button .wp-block-button__link {
  border-radius: 999px;
  padding: 0.85rem 2rem 0.95rem;
  font-weight: 600;
  background-color: var(--color-accent);
  border: none;
}

/* ===== HERO SEZIONE ===== */

.ventureon-hero-section {
  position: relative;
  color: #ffffff;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center; /* centratura verticale */
}

.ventureon-hero-section__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -2;
}

.ventureon-hero-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* overlay scuro */
.ventureon-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 58, 74, 0.7);
}

.ventureon-hero-section__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.ventureon-hero-section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 600;
  color: #ffffff;
}

.ventureon-hero-section__text {
  margin: 0;
  max-width: 720px;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #ffffff;
}

/* ===== FULL-BLEED HERO (FUORI DALLA HOME) ===== */
/* In home restano dentro il container. Fuori dalla home escono dal wrap. */

body:not(.home) main.container .ventureon-hero-main,
body:not(.home) main.container .ventureon-hero-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* =========================================
   HERO HOME – CAROSELLO ARTICOLI IN EVIDENZA
   ========================================= */

.ventureon-hero-carousel {
  position: relative;
  color: #ffffff;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* fa “uscire” dai padding del main, come gli altri hero */
main.container .ventureon-hero-carousel {
  margin: 0 -1.5rem;
}

/* lista del Query Loop */
.ventureon-hero-carousel__slides .wp-block-post-template {
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
  width: 100%;
}

/* ogni <li> viene appiattito, evitiamo gap strani */
.ventureon-hero-carousel__slides .wp-block-post-template > li {
  margin: 0;
}

/* overlay scuro (come hero principale) */
.ventureon-hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 15% 20%, rgba(10, 58, 74, 0.9), rgba(10, 58, 74, 0.85));
}

/* SLIDE di base: tutte impilate una sopra l’altra */
.ventureon-hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  width: 100%;
  height: 100%;
}

/* slide visibile */
.ventureon-hero-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* immagine in evidenza a pieno schermo */
.ventureon-hero-carousel__image {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -1;
}

.ventureon-hero-carousel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* contenuto testuale allineato in basso a sinistra */
.ventureon-hero-carousel__overlay {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ventureon-hero-carousel__title a {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #ffffff;
}


.ventureon-hero-carousel__title:hover a {
  opacity: .7;
  color: var(--color-accent);
  transition: all ease-in-out .3s;
}

.ventureon-hero-carousel__date {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* CONTROLLI (prev/next) */
.ventureon-hero-carousel__controls {
  position: absolute;
  inset-inline: 0;
  bottom: 1.5rem;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.ventureon-hero-carousel__prev .wp-block-button__link,
.ventureon-hero-carousel__next .wp-block-button__link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  background-color: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(229, 231, 235, 0.6);
  text-decoration: none;
}

.ventureon-hero-carousel__prev .wp-block-button__link .arrow,
.ventureon-hero-carousel__next .wp-block-button__link .arrow {
  width: 0.4rem;
  height: 0.4rem;
  border: .2rem solid white;
  border-bottom: 0;
  border-left: 0;
}

.ventureon-hero-carousel__prev .wp-block-button__link .arrow {
  transform: rotate(-135deg) translatex(-0.1rem);
}

.ventureon-hero-carousel__next .wp-block-button__link .arrow {
  transform: rotate(45deg) translatey(0.1rem);
}

.ventureon-hero-carousel__prev .wp-block-button__link:hover,
.ventureon-hero-carousel__next .wp-block-button__link:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transition: all ease-in-out .15s;
}

/* responsive */
@media (max-width: 768px) {
  .ventureon-hero-carousel {
    min-height: 420px;
  }

  main.container .ventureon-hero-carousel {
    margin: 0 -1.25rem;
  }

  .ventureon-hero-carousel__overlay {
    padding: 3.5rem 1.25rem 3rem;
  }

  .ventureon-hero-carousel__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}

/* ===== RESPONSIVE HERO ===== */

@media (max-width: 768px) {
  .ventureon-hero-main,
  .ventureon-hero-section {
    min-height: 420px;
  }

  .ventureon-hero-main__inner {
    padding: 4.5rem 1.25rem;
  }

  .ventureon-hero-section__inner {
    padding: 3rem 1.25rem;
  }

  .ventureon-hero-main__title,
  .ventureon-hero-main__subtitle,
  .ventureon-hero-main__text {
    text-align: left;
  }

  .ventureon-hero-main__buttons {
    flex-wrap: wrap;
  }
}

.ventureon-hero-main__bg,
.ventureon-hero-section__bg,
.ventureon-hero-carousel__image {
  height: 100%;
}

/* ancora l'immagine al contenitore e copri sempre */
.ventureon-hero-main__bg img,
.ventureon-hero-section__bg img,
.ventureon-hero-carousel__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}