/* ── Full-height wrapper below navbar ─────────────────── */
.bu-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: calc(100vh - 50px);
  /* 50px = Bootstrap default navbar height */
}

/* ── LEFT PANEL ───────────────────────────────────────── */
.bu-left {
  width: 45%;
  background-color: #f4f5f7;
  padding: 80px 64px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.bu-left .eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iveco-blue);
  font-weight: 600;
  margin-bottom: 20px;
}

.bu-left h1 {
  font-size: 34px;
  font-weight: 700;
  color: #0d1f36;
  line-height: 1.2;
  margin: 0 0 20px 0;
}

.bu-left h1 span {
  color: var(--iveco-blue);
}

.bu-left p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  max-width: 340px;
  margin: 0;
}

/* ── RIGHT PANEL ──────────────────────────────────────── */
.bu-right {
  position: relative;
  width: 55%;
  padding: 60px 52px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden; /* taglia l'immagine ai bordi del pannello */
}

.bu-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(13, 31, 54, 0.25) 0%,
      /* centro: quasi trasparente, immagine ben visibile */ rgba(13, 31, 54, 0.75) 55%,
      /* via via più scuro */ rgba(5, 12, 22, 0.97) 100% /* bordi: quasi nero */
    ),
    url("../img/hero-bg.jpg") center / cover no-repeat;
  animation: kenBurns 12s ease-in-out infinite alternate;
  transform-origin: center center;
  z-index: 0;
}

/**
 * MI assicuro che il contenuto interno stia sopra lo pseudo-elemento:
 */
.bu-right > * {
  position: relative;
  z-index: 1;
}

/* Fallback for browsers without gap on flexbox */
.bu-right .bu-card + .bu-card {
  margin-top: 16px;
}

/* ── CARDS ────────────────────────────────────────────── */
.bu-card {
  display: block;
  border-radius: 8px;
  padding: 24px 28px;
  text-decoration: none;
  -webkit-transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
  cursor: pointer;

  background-color: rgba(13, 31, 54, 0.55); /* navy semi-opaco invece di bianco trasparente */
  border: 1px solid rgba(255, 255, 255, 0.25); /* bordo leggermente più visibile */
  backdrop-filter: blur(4px); /* sfocha l'immagine sotto la card — effetto vetro */
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.bu-card:hover,
.bu-card:focus {
  background-color: rgba(26, 79, 138, 0.65);
  border-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  outline: none;
  transform: translateY(-2px);
}

.bu-card-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.bu-card-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-bottom: 5px;
}

.bu-card-name {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.bu-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  line-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin-left: 20px;
  -webkit-transition:
    border-color 0.18s ease,
    color 0.18s ease;
  transition:
    border-color 0.18s ease,
    color 0.18s ease;
}

.bu-card:hover .bu-card-arrow,
.bu-card:focus .bu-card-arrow {
  border-color: #6ea8e0;
  color: #6ea8e0;
}

.bu-card.accent .bu-card-arrow {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .bu-wrapper {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: auto;
  }

  .bu-left,
  .bu-right {
    width: 100%;
    padding: 48px 28px;
  }

  .bu-left h1 {
    font-size: 26px;
  }
}
