/* ==========================================================================
   Sezione 5 — Ecosistema Carta + App (Figma 254:1901)
   ========================================================================== */

.eco { background: var(--color-surface); }
.eco__inner { display: flex; flex-direction: column; gap: 80px; }

/* ---- Header (eyebrow in colonna ~400px, titolo a destra) ---- */
.eco__head { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 0 24px; align-items: start; }
.eco__eyebrow {
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-body);
  color: var(--color-text);
}
.eco__eyebrow::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-info);
}
.eco__head-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eco__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-tight);
  background: linear-gradient(177deg, #9cd8e8 0%, #37b1d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eco__lead {
  font-size: var(--fs-p28);
  line-height: 1.4;
  color: var(--color-text);
  max-width: 100%; }

/* ---- Come funziona ---- */
.eco__how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 771px;
  gap: 48px;
  align-items: start;
}
.eco__how-copy { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.eco__how-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-h3);
  background: linear-gradient(177deg, #9cd8e8 0%, #37b1d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eco__gift { color: #37b1d3; flex-shrink: 0; }
.eco__gift svg { width: 30px; height: 30px; }
.eco__how-text { font-size: var(--fs-p20); line-height: 1.3; color: var(--color-text); }
.eco__how-text strong { font-weight: var(--fw-bold); }

.eco__points { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.point-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid;
  border-radius: var(--radius-pill);
  font-size: var(--fs-p22);
  color: var(--color-text);
}
.point-pill strong { font-weight: var(--fw-bold); }
.point-pill__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 12px; color: #fff;
}
.point-pill__ic svg { width: 14px; height: 14px; }
.point-pill--green { border-color: var(--color-success); }
.point-pill--green .point-pill__ic { background: linear-gradient(157deg, #5ee38d 0%, #00a86b 100%); }
.point-pill--cyan { border-color: var(--color-info); }
.point-pill--cyan .point-pill__ic { background: linear-gradient(157deg, #9cd8e8 0%, #37b1d3 100%); }

/* ---- Mockup ---- */
.eco__mockup-fit { position: relative; width: 100%; overflow: hidden; display: flex; justify-content: center; }
.eco-mockup {
  position: relative;
  width: 771px;
  min-width: 771px;
  flex-shrink: 0;
  height: 663px;
  margin-inline: auto;
}
.eco-mockup__phone { position: absolute; overflow: hidden; }
.eco-mockup__phone img { position: absolute; max-width: none; }
.eco-mockup__phone--app { left: 77px; top: 0; width: 436px; height: 663px; }
.eco-mockup__phone--app img { width: 180.27%; height: 118.76%; left: -34.35%; top: -12.12%; }
.eco-mockup__phone--card {
  left: 371px; top: 66px; width: 255px; height: 505px;
  border-radius: 32px 42px 28px 28px;
  box-shadow: -20px 27px 44px 13px rgba(0, 0, 0, 0.3);
}
.eco-mockup__phone--card img { width: 100%; height: 109.45%; top: -0.09%; left: 0; }

/* icone trasporto */
.eco-ic {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.08));
}
.eco-ic svg { width: 58%; height: 58%; }
.eco-ic--bike { width: 73px; height: 73px; background: linear-gradient(157deg, #9cd8e8 0%, #37b1d3 100%); }
.eco-ic--bus  { width: 53px; height: 53px; background: linear-gradient(157deg, #fcb465 0%, #ea405d 100%); }
.eco-ic--car  { width: 52px; height: 52px; background: linear-gradient(157deg, #fcb465 0%, #ea405d 100%); }
.eco-ic--train{ width: 73px; height: 73px; background: linear-gradient(157deg, #5ee38d 0%, #00a86b 100%); }

/* card transazione */
.eco-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.2));
}
.eco-card__body {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 17px;
  background: rgba(240, 240, 240, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 32px 32px 0 0;
}
.eco-card__head { display: flex; align-items: center; gap: 8px; }
.eco-card__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; color: #fff;
}
.eco-card--green .eco-card__ic { background: linear-gradient(157deg, #5ee38d 0%, #00a86b 100%); }
.eco-card--cyan .eco-card__ic { background: linear-gradient(157deg, #9cd8e8 0%, #37b1d3 100%); }
.eco-card__ic svg { width: 20px; height: 20px; }
.eco-card__title { font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--color-text); }
.eco-card__info { display: flex; flex-direction: column; gap: 4px; }
.eco-card__name { font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--color-text); line-height: 1.2; }
.eco-card__desc { font-size: var(--fs-body); color: var(--color-text); line-height: 1.2; }
.eco-card__row { display: flex; align-items: center; justify-content: space-between; }
.eco-card__price { font-size: var(--fs-p22); font-weight: var(--fw-bold); color: var(--color-text); }
.eco-card__pt {
  display: inline-flex; align-items: center;
  padding: 8px 21px; border-radius: 172px;
  font-size: var(--fs-body); font-weight: var(--fw-bold); color: #fff;
}
.eco-card__pt--green { background: linear-gradient(170deg, #5ee38d 0%, #00a86b 100%); }
.eco-card__pt--cyan { background: linear-gradient(170deg, #9cd8e8 0%, #37b1d3 100%); border: 2px solid rgba(255, 255, 255, 0.1); }
.eco-card__foot {
  display: flex; align-items: center; justify-content: center;
  height: 46px; padding: 4px 26px; border-radius: 0 0 32px 32px;
  font-size: var(--fs-body); color: #fff;
}
.eco-card__foot strong { font-weight: var(--fw-bold); }
.eco-card__foot--green { background: linear-gradient(175deg, #5ee38d 0%, #00a86b 100%); }
.eco-card__foot--cyan { background: linear-gradient(175deg, #9cd8e8 0%, #37b1d3 100%); }

/* ---- Due card: acquista in app / paga ovunque ---- */
.eco__cards { display: flex; flex-direction: column; gap: 48px; }
.eco__cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }

.dual-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 29px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
}
.dual-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dual-card__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-h3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dual-card__title--green { background-image: linear-gradient(176deg, #5ee38d 0%, #00a86b 100%); }
.dual-card__title--cyan { background-image: linear-gradient(176deg, #9cd8e8 0%, #37b1d3 100%); }

.dual-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px 5px 5px;
  border: 1px solid; border-radius: 49px;
  background: rgba(255, 255, 255, 0.09);
  font-size: var(--fs-body); color: var(--color-text); white-space: nowrap;
}
.dual-badge strong { font-weight: var(--fw-bold); }
.dual-badge__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 7px; color: #fff;
}
.dual-badge__ic svg { width: 9px; height: 9px; }
.dual-badge--green { border-color: var(--color-success); }
.dual-badge--green .dual-badge__ic { background: linear-gradient(157deg, #5ee38d 0%, #00a86b 100%); }
.dual-badge--cyan { border-color: var(--color-info); }
.dual-badge--cyan .dual-badge__ic { background: linear-gradient(157deg, #9cd8e8 0%, #37b1d3 100%); }

.dual-card__text { font-size: var(--fs-p20); line-height: 1.3; color: var(--color-text); }
.dual-card__text strong { font-weight: var(--fw-bold); }

.dual-feats { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.dual-feats--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.dual-feat { display: flex; gap: 8px; align-items: flex-start; padding-block: 6px; }
.dual-feat__ic {
  flex-shrink: 0; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 10px; color: #fff;
}
.dual-feat__ic svg { width: 12px; height: 12px; }
.dual-feat__ic--green { background: linear-gradient(157deg, #5ee38d 0%, #00a86b 100%); }
.dual-feat__ic--cyan { background: linear-gradient(157deg, #9cd8e8 0%, #37b1d3 100%); }
.dual-feat__txt { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-body); color: var(--color-text); line-height: 1.25; }
.dual-feat__txt strong { font-weight: var(--fw-bold); }
.dual-feat__line { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dual-feat__sub { color: var(--color-text); }
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  font-size: var(--fs-body); font-weight: var(--fw-bold); color: #fff;
}
.tag--green { background: linear-gradient(174deg, #5ee38d 0%, #00a86b 100%); }

/* ---- Card larga: righe loghi ---- */
.dual-card--wide { gap: 36px; }
.logos-block { display: flex; flex-direction: column; gap: 24px; }
.logos-block__title { font-size: var(--fs-p20); color: var(--color-text); text-align: center; letter-spacing: 0.02em; }
.logos-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px 20px;
}
.srv-logo { width: auto; }
.logos-row__more { font-size: var(--fs-body); color: var(--color-text); }
.logos-row__q8 { position: relative; display: inline-block; width: 88px; height: 40px; }
.logos-row__q8 img { position: absolute; }
.logos-row__q8 .form-logos__q8b { right: 0; top: 0; height: 40px; }
.logos-row__q8 .form-logos__q8a { left: 0; bottom: 0; height: 23px; }
.logos-divider { width: 100%; height: 1px; border: 0; background: var(--color-border); }

/* ---- CTA centrata ---- */
.eco__cta { display: flex; justify-content: center; }

/* ---- Banda: Attivazione in 3 step ---- */
.eco-steps {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 40px 40px 0 0;
  color: #fff;
}
.eco-steps__bg {
  position: absolute; inset: 0; z-index: -1;
}
.eco-steps__bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("../../img/ecosystem/steps-bg.jpg") right center / cover no-repeat;
}
.eco-steps__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(-44deg, rgba(156, 216, 232, 0) 9%, rgba(156, 216, 232, 0.5) 16%, #37b1d3 53%);
}
.eco-steps__inner { display: flex; flex-direction: column; gap: 56px; padding-block: 56px; }
.eco-steps__head { display: flex; flex-direction: column; gap: 12px; }
.eco-steps__eyebrow { font-size: var(--fs-body); color: #fff; letter-spacing: 0.04em; }
.eco-steps__title { font-size: var(--fs-h2); font-weight: var(--fw-light); line-height: var(--lh-h2); color: #fff; }
.eco-steps__title strong { font-weight: var(--fw-bold); }

.eco-steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step { display: flex; flex-direction: column; gap: 9px; }
.step__pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  margin-bottom: 8px;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 37px; flex-shrink: 0;
  background: #fff; border-radius: 18px;
  font-size: var(--fs-p20); font-weight: var(--fw-bold); color: #1c98ba;
}
.step__label { font-size: var(--fs-body); font-weight: var(--fw-bold); color: #1c98ba; }
.step__title { font-size: var(--fs-p20); font-weight: var(--fw-bold); line-height: 1.2; color: #fff; }
.step__desc { font-size: var(--fs-body); line-height: 1.25; color: #fff; }
.step__desc strong { font-weight: var(--fw-bold); }

/* ---- Valore reale ---- */
.eco-values { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.eco-values__eyebrow { font-size: var(--fs-body); color: var(--color-text); letter-spacing: 0.08em; margin-bottom: 16px; }
.eco-values__title { font-size: var(--fs-h2); font-weight: var(--fw-semibold); line-height: 1.1; color: var(--color-text); margin-bottom: 16px; }
.eco-values__sub { font-size: var(--fs-p28); color: var(--color-text); }

.eco-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.vcard {
  display: flex;
  flex-direction: column;
  gap: 23px;
  padding-left: 24px;
  border-left: 1px solid var(--color-border);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.vcard:hover {
  border-left-color: var(--color-info);
  transform: translateY(-4px);
}
.vcard__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 20px;
  background: linear-gradient(157deg, #9cd8e8 0%, #37b1d3 100%); color: #fff;
}
.vcard__ic svg { width: 24px; height: 24px; }
.vcard__title { font-size: var(--fs-p22); font-weight: var(--fw-bold); line-height: 1.2; color: var(--color-text); }
.vcard__desc { font-size: var(--fs-body); line-height: 1.2; color: var(--color-text); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .eco__how { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .eco-mockup { margin-inline: auto; }
}
@media (max-width: 960px) {
  .eco-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
}
@media (max-width: 860px) {
  .eco__cards-row { grid-template-columns: 1fr; }
  .eco-steps__list { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .eco-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .vcard {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 16px;
    align-items: start;
    padding: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-surface-2);
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(55, 177, 211, 0.06);
    padding-left: 20px;
  }
  .vcard:hover {
    transform: none;
  }
  .vcard:active {
    transform: scale(0.98);
  }
  .vcard__ic {
    grid-row: span 2;
  }
  .cta-gradient span:first-child { font-size: 1.375rem; }
}
@media (max-width: 900px) {
  .eco__head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 720px) {
  .dual-feats--grid { grid-template-columns: 1fr; }
  .logos-row { justify-content: center; gap: 20px 24px; }
}
