/**
 * DIGINETIC - HERO MEP STYLE
 * Full-screen hero with rotating text + animated logo D
 * v2.1 - 2026-02-26
 */

/* Hero section */
.hero-mep {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
  position: relative;
}

.hero-mep > .container {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.hero-mep-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 30px;
}

/* Left side: rotating text - anchored at 5vw left */
.hero-text-side {
  flex: none;
  width: 38vw;
  min-width: 320px;
}

.hero-text-rotator {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.hero-text-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition: none;
}

.hero-text-item.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-text-item.exit-up {
  opacity: 0;
  transform: translateY(-100%);
}

/* Title: single line, palette primary */
.hero-text-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dg-accent-red);
  margin: 0 0 16px 0;
  white-space: nowrap;
}

/* Description: blue-dark, 70% of T1 */
.hero-text-desc {
  font-size: calc(var(--text-5xl) * 0.7);
  line-height: 1.4;
  color: var(--dg-blue-dark);
  margin: 0;
}

/* Right side: logo + brand */
.hero-logo-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-logo-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
}

/* Brand group: "diginetic" + payoff stacked */
.hero-brand-group {
  display: flex;
  flex-direction: column;
}

.hero-brand-text {
  display: flex;
  letter-spacing: 0.24em;
}

.hero-brand-payoff {
  font-family: 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
  font-weight: 400;
  font-size: calc(var(--logo-d) * 0.035);   /* quota della D (era fissa) */
  color: var(--dg-gray);
  line-height: 1;
  margin-top: calc(var(--logo-d) * 0.025);
  opacity: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.hero-brand-letter {
  font-family: 'Titillium', 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
  font-weight: 600;
  font-size: calc(var(--logo-d) * 0.107);   /* quota della D (era fissa) */
  color: var(--dg-gray);
  line-height: 1;
  opacity: 0;
  display: inline-block;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-mep {
    padding-top: 80px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-mep > .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-mep-inner {
    flex-direction: column-reverse;
    gap: 40px;
    text-align: center;
  }

  .hero-text-side {
    width: 100%;
    min-width: 0;
  }

  .hero-text-rotator {
    height: 280px;
  }

  .hero-text-title {
    font-size: var(--text-4xl);
    white-space: normal;
  }

  .hero-text-desc {
    font-size: calc(var(--text-4xl) * 0.7);
  }

  .hero-text-desc br {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-text-rotator {
    height: 180px;
  }

  .hero-text-title {
    font-size: var(--text-3xl, 1.875rem);
  }
}
