/* ========== Text Band (shared) ========== */

.text-band {
  background-color: var(--color-bg);
}

.text-band__inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: var(--section-pad-y-compact);
  padding-bottom: var(--section-pad-y);
}

.text-band__accent {
  flex-shrink: 0;
  align-self: stretch;
  width: 4px;
  border-radius: 2px;
  background-color: var(--color-primary);
}

.text-band__content {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.text-band__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: var(--font-weight-bold);
  line-height: 30.4px;
  color: var(--color-text);
}

.text-band__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: var(--font-weight-regular);
  line-height: 22.95px;
  color: var(--color-text);
}

/* Accent + prompt/CTA (es. Scelta rinnovabili) */
.text-band--accent-cta .text-band__inner {
  flex-direction: column;
  gap: 32px;
  padding-block: var(--section-pad-y);
}

.text-band__heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.text-band--accent-cta .text-band__accent {
  align-self: flex-start;
  width: 4px;
  height: 80px;
  border-radius: 2px;
}

.text-band--accent-cta .text-band__title {
  flex: 1 1 0;
  min-width: 0;
}

.text-band__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-band__prompt {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: var(--font-weight-medium);
  line-height: 22px;
  color: var(--color-text);
}

.text-band__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: stretch;
  font-size: 16px;
  line-height: 19.2px;
}

.text-band__cta img {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
}

/* Layout: banner (Futuro) */
.text-band--banner {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  background-color: var(--color-text);
  background-image:
    linear-gradient(rgba(42, 41, 43, 0.45), rgba(42, 41, 43, 0.45)),
    var(--text-band-bg-image, url("../img/future-intro.webp"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.text-band--banner .text-band__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-block: var(--section-pad-y);
  padding-inline: var(--container-padding);
}

.text-band--banner .text-band__content {
  flex: none;
  width: 100%;
  gap: 24px;
}

.text-band--banner .text-band__title,
.text-band--banner .text-band__text {
  color: var(--color-bg);
}

@media (min-width: 1025px) {
  .text-band--accent:not(.text-band--accent-cta) .text-band__inner {
    gap: 80px;
    padding-top: var(--section-pad-y-compact);
    padding-bottom: var(--section-pad-y);
  }

  .text-band--accent:not(.text-band--accent-cta) .text-band__content {
    gap: 32px;
  }

  .text-band--accent:not(.text-band--accent-cta) .text-band__title {
    font-size: 52px;
    line-height: 44.2px;
  }

  .text-band--accent:not(.text-band--accent-cta) .text-band__text {
    font-size: 21px;
    line-height: 27.3px;
  }

  .text-band--accent-cta .text-band__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 80px;
    padding-block: var(--section-pad-y);
  }

  .text-band--accent-cta .text-band__heading {
    flex: 1 1 0;
    min-width: 0;
    gap: 24px;
  }

  .text-band--accent-cta .text-band__accent {
    align-self: stretch;
    height: auto;
    min-height: 120px;
  }

  .text-band--accent-cta .text-band__title {
    font-size: 52px;
    line-height: 44.2px;
  }

  .text-band--accent-cta .text-band__body {
    flex: 1 1 0;
    min-width: 0;
    gap: 32px;
  }

  .text-band--accent-cta .text-band__text {
    font-size: 21px;
    line-height: 27.3px;
  }

  .text-band--accent-cta .text-band__cta {
    align-self: flex-start;
  }

  .text-band--banner .text-band__inner {
    gap: 40px;
    align-items: center;
    padding-block: var(--section-pad-y);
    text-align: center;
  }

  .text-band--banner .text-band__content {
    align-items: center;
    gap: 40px;
  }

  .text-band--banner .text-band__title {
    max-width: 900px;
    font-size: 52px;
    line-height: 44.2px;
  }

  .text-band--banner .text-band__text {
    max-width: 900px;
    font-size: 21px;
    line-height: 27.3px;
    opacity: 0.9;
  }
}
