/*
 * Art direction «Persone reali, prodotto vero» — page-level pattern.
 * NOT a Marketing UI Design System component (no Figma component set).
 *
 *   figure.ad-photo        → real photo, radius-24, widgets positioned on/off its edge
 *     img.ad-photo__img
 *     widgets below (.ad-chain, .ad-card, .ad-push, …)
 *
 * Inside .mkt-split-card__media-cell the photo uses the Card Main image mode
 * (img.mkt-split-card__media); this file restores the widget chrome that
 * split-card.css strips from non-image children.
 *
 * Breakpoint 767px: EXISTING WEBFLOW value. Below it widgets leave the photo
 * and stack under it with a small overlap.
 */

.ad-photo {
  position: relative;
  margin: 0;
  width: 100%;
}

.ad-photo__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ad-photo-ratio, 4 / 5);
  object-fit: cover;
  border-radius: var(--radius-24);
}

/* Page rules such as `.ai-hero p` must not leak into widgets. */
.ad-photo p,
.ad-scene p,
.ad-hub p { max-width: none; margin: 0; color: inherit; font-size: inherit; line-height: inherit; letter-spacing: normal; }

@media (max-width: 767px) {
  .ad-photo { display: flex; flex-direction: column; align-items: stretch; }
}

/*
 * Widget vocabulary — read from the Webflow compositions
 * (PromotionTE-hero, Member Get Member, Promozioni intelligenti):
 *   .ad-chain   steps joined by a Pink/200 connector, round nodes with a white ring
 *   .ad-card    white admin fragment: muted header + rule rows
 *   .ad-select  value chip with chevron (rule builder dropdown)
 *   .ad-toggle  switch (off = Gray/200)
 *   .ad-push    the message as the end customer receives it
 * Colour is reserved for nodes, chips and the AI step; cards stay white.
 */

.ad-chain {
  position: absolute;
  z-index: 1;
  top: var(--space-24);
  left: calc(-1 * var(--space-72));
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  width: min(17.5rem, 70%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ad-chain::before {
  content: "";
  position: absolute;
  top: var(--space-16);
  bottom: var(--space-24);
  left: 12px;
  width: 4px;
  border-radius: 2px;
  background: var(--color-pink-200);
}

.ad-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--space-8);
  align-items: start;
}

.ad-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: var(--space-10);
  border-radius: 50%;
  background: var(--color-pink-500);
  box-shadow: 0 0 0 4px var(--color-standard-white), var(--shadow-small);
}

.ad-node::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--color-standard-white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.75l6 6 9-13.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.75l6 6 9-13.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ad-node.is-ai { background: var(--color-violet-800); }

.ad-node.is-ai::after {
  -webkit-mask-image: url("/src/components/navbar/assets/heroicons/sparkles.svg");
  mask-image: url("/src/components/navbar/assets/heroicons/sparkles.svg");
}

.ad-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-10) var(--space-16) var(--space-16);
  border-radius: var(--radius-8);
  background: var(--color-standard-white);
  box-shadow: var(--shadow-large);
  color: var(--color-gray-800);
  font-family: var(--font-family-lexend);
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
}

.ad-card p { margin: 0; max-width: none; font-size: inherit; line-height: inherit; }

.ad-card .ad-card__head {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-gray-200);
  color: var(--color-gray-500);
  font-size: var(--text-body-xsmall-size);
  line-height: var(--text-body-xsmall-line-height-regular);
}

.ad-card .ad-card__head.is-ai { color: var(--color-violet-800); }

.ad-card .ad-card__bubble {
  padding: var(--space-8) var(--space-10);
  border-radius: var(--radius-8);
  background: var(--color-violet-100);
  color: var(--color-violet-800);
}

.ad-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.ad-select {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-4);
  padding: 2px var(--space-8);
  border-radius: var(--radius-8);
  background: var(--color-gray-100);
  color: var(--color-gray-900);
  font-weight: var(--font-weight-medium);
}

.ad-select::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--color-gray-500);
  -webkit-mask: url("/src/components/navbar/assets/chevron-down.svg") center / contain no-repeat;
  mask: url("/src/components/navbar/assets/chevron-down.svg") center / contain no-repeat;
}

.ad-toggle {
  position: relative;
  flex: none;
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: var(--color-gray-200);
}

.ad-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-standard-white);
  box-shadow: var(--shadow-xsmall);
}

.ad-push {
  position: absolute;
  z-index: 1;
  right: calc(-1 * var(--space-24));
  bottom: var(--space-32);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-10);
  width: min(18rem, 75%);
  padding: var(--space-16);
  border-radius: var(--radius-24);
  background: var(--color-standard-white);
  box-shadow: var(--shadow-xlarge);
  color: var(--color-gray-800);
  font-family: var(--font-family-lexend);
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
}

.ad-push p { margin: 0; max-width: none; font-size: inherit; line-height: inherit; }

.ad-push__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-8);
  background: var(--color-pink-900);
  color: var(--color-standard-white);
}

.ad-push__icon svg { width: 22px; height: auto; }

.ad-push__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-8);
  color: var(--color-gray-900);
  font-weight: var(--font-weight-medium);
}

.ad-push__head span {
  color: var(--color-gray-500);
  font-size: var(--text-body-xsmall-size);
  font-weight: var(--font-weight-regular);
}

.ad-push .ad-push__caption {
  position: absolute;
  top: calc(-1 * var(--space-10));
  left: var(--space-24);
  padding: 2px var(--space-8);
  border-radius: 20px;
  background: var(--color-pink-500);
  color: var(--color-standard-white);
  font-size: var(--text-body-xsmall-size);
  line-height: var(--text-body-xsmall-line-height-regular);
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .ad-chain,
  .ad-push {
    position: relative;
    inset: auto;
    width: auto;
  }

  .ad-chain { margin: calc(-1 * var(--space-72)) var(--space-8) 0; }

  .ad-push { margin: var(--space-24) var(--space-8) 0; }
}

/* ── Placement: one float per widget, offsets set inline with tokens ── */
.ad-float {
  position: absolute;
  z-index: 1;
  top: var(--t, auto);
  right: var(--r, auto);
  bottom: var(--b, auto);
  left: var(--l, auto);
  width: min(var(--w, 18rem), 80%);
}

.ad-push.ad-float { right: var(--r, auto); bottom: var(--b, auto); }

/* ── Shared atoms ── */
.ad-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 2px var(--space-8);
  border-radius: 20px;
  background: var(--color-pink-100);
  color: var(--color-pink-900);
  font-size: var(--text-body-xsmall-size);
  line-height: var(--text-body-xsmall-line-height-regular);
  white-space: nowrap;
}

.ad-chip.is-blue { background: var(--color-blue-100); color: var(--color-blue-500); }
.ad-chip.is-violet { background: var(--color-violet-100); color: var(--color-violet-800); }
.ad-chip img { width: 14px; height: 14px; }

.ad-chips { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.ad-pill {
  align-self: center;
  padding: 2px var(--space-8);
  border-radius: 20px;
  background: var(--color-pink-500);
  color: var(--color-standard-white);
  font-size: var(--text-body-xsmall-size);
  line-height: var(--text-body-xsmall-line-height-regular);
  text-transform: uppercase;
}

.ad-node.is-sm { width: 20px; height: 20px; margin-top: 0; box-shadow: 0 0 0 3px var(--color-standard-white); }
.ad-node.is-sm::after { width: 10px; height: 10px; }
.ad-node.is-off { background: var(--color-pink-200); }

.ad-card .ad-card__title { color: var(--color-gray-900); font-weight: var(--font-weight-medium); }
.ad-card .ad-card__meta { color: var(--color-gray-500); font-size: var(--text-body-xsmall-size); line-height: var(--text-body-xsmall-line-height-regular); }

/* ── Track: horizontal milestones (Webflow «Member Get Member») ── */
.ad-track {
  position: absolute;
  z-index: 1;
  right: var(--space-16);
  bottom: var(--space-16);
  left: var(--space-16);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ad-track::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 16%;
  left: 16%;
  height: 4px;
  border-radius: 2px;
  background: var(--color-pink-500);
}

.ad-track > li { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-8); }
.ad-track .ad-node { margin-top: 0; }
.ad-track .ad-card { width: 100%; padding: var(--space-10); gap: var(--space-4); align-items: flex-start; }
.ad-track .ad-chip { white-space: normal; }

/* ── Scene: autonomous composition on a pastel media cell ── */
.mkt-split-card__media-cell > .ad-scene {
  position: relative;
  display: block;
  width: 100%;
  min-height: 22rem;
}

.ad-scene > .ad-float { width: min(var(--w, 18rem), 100%); }

/* Tree: Programma → Rete → Negozio → Cassa */
.ad-tree { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-8); }

.ad-tree > li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  margin-left: calc(var(--lvl, 0) * var(--space-24));
  padding: var(--space-8) var(--space-10);
  border-radius: var(--radius-8);
  background: var(--color-gray-100);
  color: var(--color-gray-900);
  font-weight: var(--font-weight-medium);
}

.ad-tree > li + li::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--space-8) - 10px);
  left: calc(-1 * var(--space-16) + 2px);
  width: var(--space-16);
  height: calc(var(--space-8) + 10px + 50%);
  border-bottom: 2px solid var(--color-pink-200);
  border-left: 2px solid var(--color-pink-200);
  border-bottom-left-radius: var(--radius-8);
}

/* Tier card (Webflow «Gold» card) */
.ad-tier {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-16);
  border-radius: var(--radius-24);
  background: var(--color-standard-white);
  box-shadow: var(--shadow-xlarge);
  font-family: var(--font-family-lexend);
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  text-align: center;
}

.ad-tier p { margin: 0; max-width: none; }

.ad-tier .ad-tier__name {
  color: var(--color-gray-900);
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  font-weight: var(--font-weight-medium);
}

.ad-tier .ad-chips { justify-content: center; }

.ad-ladder { display: flex; align-items: center; gap: var(--space-4); width: 100%; padding-top: var(--space-8); border-top: 1px solid var(--color-gray-200); color: var(--color-gray-500); font-size: var(--text-body-xsmall-size); }
.ad-ladder i { flex: 1; height: 4px; border-radius: 2px; background: var(--color-pink-500); }
.ad-ladder b { color: var(--color-gray-900); font-weight: var(--font-weight-medium); }

/* Hub: channels → one engine → assistants */
.mkt-split-card__media-cell > .ad-hub {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  width: 100%;
}

.ad-hub__col { display: flex; flex-direction: column; gap: var(--space-8); }

.ad-hub__label {
  color: var(--color-gray-500);
  font-size: var(--text-body-xsmall-size);
  line-height: var(--text-body-xsmall-line-height-regular);
  text-transform: uppercase;
}

.ad-hub__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-10);
  border-radius: var(--radius-8);
  background: var(--color-standard-white);
  box-shadow: var(--shadow-small);
  color: var(--color-gray-900);
  font-size: var(--text-body-xsmall-size);
  line-height: var(--text-body-xsmall-line-height-regular);
  font-weight: var(--font-weight-medium);
  flex-wrap: nowrap;
}

.ad-hub__row img { flex: none; width: 16px; height: 16px; }
.ad-hub__col.is-ai .ad-hub__row { background: var(--color-violet-800); color: var(--color-standard-white); }
.ad-hub__col.is-ai .ad-hub__row img { filter: invert(1); }

.ad-hub__row::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -36px;
  width: 36px;
  height: 2px;
  background: var(--color-pink-200);
}

.ad-hub__col.is-ai .ad-hub__row::after { right: auto; left: -36px; }

.ad-hub__core {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
}

.ad-hub__core::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 8%;
  left: calc(50% - 2px);
  width: 4px;
  border-radius: 2px;
  background: var(--color-pink-200);
}

.ad-hub__engine {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-10) var(--space-4);
  border-radius: var(--radius-8);
  background: var(--color-pink-900);
  color: var(--color-standard-white);
  font-size: var(--text-body-xsmall-size);
  line-height: var(--text-body-xsmall-line-height-regular);
  text-align: center;
  box-shadow: var(--shadow-large);
}

.ad-hub__engine svg { width: 26px; height: auto; }

/* Chat + skeleton table (Webflow table rows drawn as placeholders) */
.ad-bubble {
  box-sizing: border-box;
  padding: var(--space-10) var(--space-16);
  border-radius: var(--radius-24) var(--radius-24) var(--radius-8) var(--radius-24);
  background: var(--color-pink-900);
  color: var(--color-standard-white);
  box-shadow: var(--shadow-large);
  font-family: var(--font-family-lexend);
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
}

.ad-bubble p { margin: 0; max-width: none; }

.ad-table { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: var(--space-8) var(--space-10); align-items: center; }
.ad-table > span { color: var(--color-gray-500); font-size: var(--text-body-xsmall-size); line-height: var(--text-body-xsmall-line-height-regular); }
.ad-table > i { display: block; height: 8px; border-radius: 4px; background: var(--color-gray-200); }
.ad-table > i.is-short { width: 60%; }
.ad-table > .ad-chip { justify-self: start; }

/* Purchase progress: 1° 2° 3° */
.ad-progress { display: flex; align-items: center; gap: var(--space-4); }
.ad-progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--color-pink-200); }
.ad-progress i.is-on { background: var(--color-pink-500); }
.ad-progress span { color: var(--color-gray-500); font-size: var(--text-body-xsmall-size); }

/* Checklist with nodes */
.ad-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-8); }
.ad-checks li { display: flex; align-items: center; gap: var(--space-10); color: var(--color-gray-900); font-weight: var(--font-weight-medium); }

@media (max-width: 767px) {
  .ad-photo > .ad-float {
    position: relative;
    inset: auto;
    width: auto;
    margin: var(--space-16) var(--space-8) 0;
  }

  .ad-photo > .ad-photo__img + .ad-float { margin-top: calc(-1 * var(--space-40)); }

  .ad-scene > .ad-float { position: relative; inset: auto; width: auto; margin-top: var(--space-16); }
  .ad-scene > .ad-float:first-child { margin-top: 0; }
  .mkt-split-card__media-cell > .ad-scene { min-height: 0; }
}

@media (max-width: 479px) {
  .mkt-split-card__media-cell > .ad-push.ad-float { display: none; }
  .mkt-split-card__media-cell > .ad-hub { grid-template-columns: 1fr 48px 1fr; }
  .ad-hub__row img { display: none; }
  .ad-hub__row::after { right: -24px; width: 24px; }
  .ad-hub__col.is-ai .ad-hub__row::after { left: -24px; }
}

/* Card Main strips chrome from non-image children: restore it for widgets. */
.mkt-split-card__media-cell > .ad-push {
  position: absolute;
  width: min(var(--w, 18rem), 80%);
  height: auto;
  margin: 0;
  border-radius: var(--radius-24);
  background: var(--color-standard-white);
  box-shadow: var(--shadow-xlarge);
}

.mkt-split-card__media-cell > .ad-track { width: auto; height: auto; }

.ad-tier .ad-card__meta,
.ad-scene .ad-card__meta {
  color: var(--color-gray-500);
  font-size: var(--text-body-xsmall-size);
  line-height: var(--text-body-xsmall-line-height-regular);
}

/* Card Main revert: the organic curve sits bottom-right above 991px (Webflow). */
@media (min-width: 992px) {
  .mkt-split-card[data-media-position="left"] .ad-track { right: 28%; }
}

/*
 * ── Webflow-faithful widgets (pilot: homepage hero) ─────────────────────
 * Rebuilt from Image/PromotionTE-hero.png (2124px).
 *
 * figure.adw-art is a static artboard, like the Webflow PNG composite: photo
 * and widgets never re-layout, the whole picture scales with its width.
 * Artboard 640 × 600 units, --u = 1 unit. Photo 480 × 576, bleeding off the
 * bottom of a Pink/100 field (#FFEDF7 in the source) with a faint grid
 * (1u lines every 105u, ≈ 15% Pink/200, fading out).
 * At 1u = 1px the type sits on Lexend tokens:
 *   rows Body/Medium 16/24 · rule header, push Body/Small 14/20 ·
 *   tier name Title/XSmall 24 · tier pill and note Body/XSmall 12/18.
 * Below 767px (existing Webflow breakpoint) a portrait artboard 343 × 900 is
 * used, with 1u ≥ 1px, so no text goes under 12px.
 * Colours sampled from the source and mapped to the nearest token:
 *   #9DA8C1 → Gray/400 · #F4F5FA → Gray/100 · #1F2937 → Gray/900 ·
 *   tier lip #B4C5D0 → Gray/200 · medal disc → Blue/500.
 * One-off values measured on the source frame (not tokens): 4u field radius,
 * 6u node ring, 16u connector. The 3D medal is replaced by the cake icon.
 */

.adw-art {
  --u: calc(100cqw / 640);
  container-type: inline-size;
  display: block;
  aspect-ratio: 640 / 600;
  overflow: hidden;
  border-radius: calc(24 * var(--u));
  font-family: var(--font-family-lexend);
}

.adw-art::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(24 * var(--u));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--color-pink-200) 15%, transparent) calc(1 * var(--u)), transparent 0) calc(18 * var(--u)) 0 / calc(105 * var(--u)) 100%,
    linear-gradient(color-mix(in srgb, var(--color-pink-200) 15%, transparent) calc(1 * var(--u)), transparent 0) 0 calc(90 * var(--u)) / 100% calc(105 * var(--u)),
    var(--color-pink-100);
}

/* Real photo fills the whole artboard. Overlay widgets keep their original
   unit positions and type sizes; only object-position is tuned per photo. */
.adw-art .ad-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 16%;
  border-radius: 0;
}

.promo-win-art .ad-photo__img { object-position: 48% 22%; }
.promo-ai-art .ad-photo__img { object-position: 74% 0%; }

/* Homepage hero: the portrait is cropped from the top so the face stays in
   frame. The rule cards, Gold badge and push are not moved or scaled. */
.adw-art:not(.promo-ai-art):not(.promo-win-art) .ad-photo__img {
  object-position: 50% 0%;
}

.adw-chain {
  position: absolute;
  z-index: 1;
  top: calc(40 * var(--u));
  left: calc(16 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--u));
  width: calc(322 * var(--u));
  margin: 0;
  padding: 0;
  list-style: none;
}

.adw-chain::before {
  content: "";
  position: absolute;
  top: calc(28 * var(--u));
  bottom: calc(96 * var(--u));
  left: calc(18 * var(--u));
  width: calc(16 * var(--u));
  box-sizing: border-box;
  border: calc(3 * var(--u)) solid var(--color-standard-white);
  border-top: 0;
  border-bottom: 0;
  background: linear-gradient(var(--color-pink-400), var(--color-pink-200) 60%, var(--color-pink-100));
}

.adw-step {
  display: grid;
  grid-template-columns: calc(52 * var(--u)) 1fr;
  gap: calc(10 * var(--u));
  align-items: start;
}

.adw-node {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  margin: calc(6 * var(--u));
  border-radius: 50%;
  background: linear-gradient(color-mix(in srgb, var(--color-pink-400) 60%, var(--color-pink-200)), var(--color-pink-500));
  box-shadow:
    0 0 0 calc(6 * var(--u)) var(--color-standard-white),
    0 0 0 calc(7 * var(--u)) var(--color-pink-100),
    0 calc(6 * var(--u)) calc(12 * var(--u)) calc(4 * var(--u)) color-mix(in srgb, var(--color-pink-500) 24%, transparent);
}

.adw-node::after {
  content: "";
  width: calc(19 * var(--u));
  height: calc(19 * var(--u));
  background: var(--color-standard-white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.75l6 6 9-13.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.75l6 6 9-13.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.adw-rule {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--u));
  padding: calc(10 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u));
  border-radius: calc(8 * var(--u));
  background: var(--color-standard-white);
  box-shadow: var(--shadow-large);
  color: var(--color-gray-900);
  font-size: calc(16 * var(--u));
  line-height: calc(24 * var(--u));
  font-weight: var(--font-weight-regular);
}

.ad-photo .adw-rule__head {
  margin: 0 calc(-16 * var(--u)) calc(4 * var(--u));
  padding: 0 calc(16 * var(--u)) calc(8 * var(--u));
  border-image: linear-gradient(90deg, var(--color-gray-200) 70%, transparent) 0 0 1 0 / 0 0 1px 0;
  border-bottom: 1px solid;
  color: var(--color-gray-400);
  font-size: calc(14 * var(--u));
  line-height: calc(20 * var(--u));
}

.adw-field {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  min-height: calc(30 * var(--u));
}

.adw-value {
  display: inline-flex;
  align-items: center;
  gap: calc(4 * var(--u));
  padding: calc(3 * var(--u)) calc(10 * var(--u));
  border-radius: calc(4 * var(--u));
  background: var(--color-gray-100);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.adw-value::after {
  content: "";
  width: calc(12 * var(--u));
  height: calc(12 * var(--u));
  background: var(--color-gray-900);
  -webkit-mask: url("/src/components/navbar/assets/chevron-down.svg") center / contain no-repeat;
  mask: url("/src/components/navbar/assets/chevron-down.svg") center / contain no-repeat;
}

.adw-toggle {
  position: relative;
  width: calc(36 * var(--u));
  height: calc(20 * var(--u));
  border-radius: calc(10 * var(--u));
  background: var(--color-gray-900);
}

.adw-toggle::after {
  content: "";
  position: absolute;
  top: calc(3 * var(--u));
  right: calc(3 * var(--u));
  width: calc(14 * var(--u));
  height: calc(14 * var(--u));
  border-radius: 50%;
  background: var(--color-standard-white);
}

/* Tier card, as in the source: pill, level, gain chip, note, round badge */
.adw-tier {
  position: absolute;
  z-index: 1;
  top: calc(230 * var(--u));
  right: calc(8 * var(--u));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(8 * var(--u));
  width: calc(184 * var(--u));
  padding: calc(16 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u));
  border-radius: calc(24 * var(--u)) calc(24 * var(--u)) calc(92 * var(--u)) calc(92 * var(--u));
  background: var(--color-standard-white);
  box-shadow: 0 calc(8 * var(--u)) 0 var(--color-gray-200), var(--shadow-large);
  color: var(--color-gray-900);
  text-align: center;
}

.ad-photo .adw-tier__level {
  padding: 0 calc(10 * var(--u));
  border-radius: calc(10 * var(--u));
  background: var(--color-pink-500);
  color: var(--color-standard-white);
  font-size: calc(12 * var(--u));
  line-height: calc(18 * var(--u));
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.ad-photo .adw-tier__name {
  font-size: calc(24 * var(--u));
  line-height: calc(30 * var(--u));
  font-weight: var(--font-weight-semibold);
}

.ad-photo .adw-tier__gain {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--u));
  padding: calc(5 * var(--u)) calc(12 * var(--u));
  border-radius: calc(4 * var(--u));
  background: var(--color-violet-100);
  font-size: calc(14 * var(--u));
  line-height: calc(24 * var(--u));
}

.adw-tier__gain::before {
  content: "";
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  background: var(--color-violet-500);
  -webkit-mask: url("/src/components/navbar/assets/heroicons/star.svg") center / contain no-repeat;
  mask: url("/src/components/navbar/assets/heroicons/star.svg") center / contain no-repeat;
}

.adw-tier__gain b {
  font-size: calc(18 * var(--u));
  font-weight: var(--font-weight-bold);
}

.ad-photo .adw-tier__note {
  font-size: calc(12 * var(--u));
  line-height: calc(18 * var(--u));
}

.adw-tier__badge {
  display: grid;
  place-items: center;
  width: calc(140 * var(--u));
  height: calc(140 * var(--u));
  margin-top: calc(8 * var(--u));
  border-radius: 50%;
  background: var(--color-blue-500);
}

.adw-tier__badge::before {
  content: "";
  width: calc(56 * var(--u));
  height: calc(56 * var(--u));
  background: var(--color-standard-white);
  -webkit-mask: url("/src/components/navbar/assets/heroicons/cake.svg") center / contain no-repeat;
  mask: url("/src/components/navbar/assets/heroicons/cake.svg") center / contain no-repeat;
}

/* iOS-style push, as in the source */
.adw-push {
  position: absolute;
  z-index: 2;
  bottom: calc(18 * var(--u));
  left: calc(78 * var(--u));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: calc(38 * var(--u)) 1fr;
  align-items: center;
  gap: calc(10 * var(--u));
  width: calc(365 * var(--u));
  padding: calc(10 * var(--u)) calc(16 * var(--u)) calc(10 * var(--u)) calc(10 * var(--u));
  border-radius: calc(24 * var(--u));
  background: color-mix(in srgb, var(--color-standard-white) 78%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-standard-white) 70%, transparent), var(--shadow-medium);
  font-size: calc(14 * var(--u));
  line-height: calc(20 * var(--u));
  color: var(--color-gray-800);
}

.adw-push__icon {
  display: grid;
  place-items: center;
  width: calc(38 * var(--u));
  height: calc(38 * var(--u));
  border-radius: 50%;
  background: var(--color-pink-900);
  color: var(--color-standard-white);
}

.adw-push__icon svg { width: calc(21 * var(--u)); height: auto; }

.ad-photo .adw-push__head {
  display: flex;
  justify-content: space-between;
  gap: calc(8 * var(--u));
  color: var(--color-gray-900);
  font-weight: var(--font-weight-semibold);
}

.adw-push__head span { color: var(--color-gray-400); font-weight: var(--font-weight-regular); }

.ad-photo .adw-push__body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 767px) {
  .adw-art { --u: calc(100cqw / 343); aspect-ratio: 343 / 900; }

  .adw-art .ad-photo__img,
  .promo-win-art .ad-photo__img,
  .promo-ai-art .ad-photo__img {
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 14%;
    border-radius: 0;
  }

  .promo-ai-art .ad-photo__img { object-position: 78% 8%; }

  .adw-art:not(.promo-ai-art):not(.promo-win-art) .ad-photo__img {
    object-position: 50% 18%;
  }

  .adw-chain { top: calc(330 * var(--u)); left: calc(8 * var(--u)); }

  .adw-tier {
    top: calc(32 * var(--u));
    bottom: auto;
    right: auto;
    left: calc(8 * var(--u));
    gap: calc(6 * var(--u));
    width: calc(144 * var(--u));
    padding: calc(12 * var(--u));
    border-radius: calc(24 * var(--u)) calc(24 * var(--u)) calc(72 * var(--u)) calc(72 * var(--u));
  }

  .ad-photo .adw-tier__gain { padding: calc(4 * var(--u)) calc(8 * var(--u)); }

  .adw-tier__badge { width: calc(80 * var(--u)); height: calc(80 * var(--u)); margin-top: calc(4 * var(--u)); }
  .adw-tier__badge::before { width: calc(36 * var(--u)); height: calc(36 * var(--u)); }

  .adw-push { right: calc(16 * var(--u)); bottom: calc(16 * var(--u)); left: calc(16 * var(--u)); width: auto; }
}

/*
 * Headless map — page-specific composition, not a Design System component.
 * Language recovered from:
 *   Tecnologia-Hero.png  → pink-900 disc, nested squares, MARTA mark as fulcrum
 *   Gestione touchpoint  → violet-100 field, rings, filled junction pills
 *   Wallet connessi      → content-width outline pills, one heavier object
 *   Motore omnichannel   → vertical rail with nodes into the engine
 */

.mkt-split-card__media-cell > .hl-map {
  position: relative;
  container-type: inline-size;
  display: block;
  width: 100%;
  min-height: 22rem;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-family-lexend);
}

.hl-map__core {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  translate: -50% -50%;
}

.hl-map__core::before {
  content: "";
  position: absolute;
  top: 4.25rem;
  left: -6.5rem;
  right: 0;
  height: 2px;
  background: var(--color-violet-200);
}

.hl-map__core::after {
  content: "";
  position: absolute;
  inset: 4.25rem auto auto 50%;
  width: 18rem;
  height: 18rem;
  translate: -50% -50%;
  border-radius: 50%;
  box-shadow:
    0 0 0 2.75rem color-mix(in srgb, var(--color-violet-200) 32%, transparent),
    0 0 0 5.5rem color-mix(in srgb, var(--color-violet-200) 16%, transparent);
  pointer-events: none;
}

.hl-map__engine {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  background: var(--color-pink-900);
  color: var(--color-standard-white);
}

.hl-map__engine::before,
.hl-map__engine::after {
  content: "";
  position: absolute;
  border-radius: var(--radius-24);
  border: 1px solid color-mix(in srgb, var(--color-standard-white) 22%, transparent);
  pointer-events: none;
}

.hl-map__engine::before { inset: var(--space-16); }
.hl-map__engine::after { inset: var(--space-32); }

.hl-map__engine svg {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: auto;
}

.mkt-split-card__media-cell .hl-map__name {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-pink-900);
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  font-weight: var(--font-weight-semibold);
}

.hl-map__join {
  position: absolute;
  z-index: 4;
  top: calc(50% + var(--space-8));
  right: calc(-1 * var(--space-16));
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-8);
  background: var(--color-violet-500);
  color: var(--color-standard-white);
  font-size: var(--text-body-xsmall-size);
  line-height: var(--text-body-xsmall-line-height-medium);
  font-weight: var(--font-weight-medium);
  translate: 0 -50%;
}

.hl-map__join.is-out {
  top: var(--space-24);
  right: auto;
  left: 0;
  background: var(--color-pink-500);
  translate: calc(-100% - var(--space-8)) 0;
}

.hl-map__channels,
.hl-map__assist {
  position: absolute;
  z-index: 2;
  top: 50%;
  translate: 0 -50%;
}

.hl-map__channels {
  left: auto;
  right: calc(50% + 6.25rem);
  width: max-content;
}

.hl-map__assist {
  left: calc(50% + 7.5rem);
  right: auto;
  width: max-content;
}

.hl-map__kicker {
  margin: 0 0 var(--space-8);
  color: var(--color-gray-400);
  font-size: var(--text-body-xsmall-size);
  line-height: var(--text-body-xsmall-line-height-medium);
}

.hl-map__channels .hl-map__kicker { text-align: right; }

.hl-map ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hl-map__channels ul {
  position: relative;
  padding-right: var(--space-16);
}

.hl-map__channels ul::before {
  content: "";
  position: absolute;
  top: var(--space-16);
  bottom: var(--space-16);
  right: 0;
  width: 2px;
  background: var(--color-violet-200);
}

.mkt-split-card__media-cell .hl-map li,
.mkt-split-card__media-cell .hl-map__lead {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-8);
  width: fit-content;
  max-width: 100%;
  padding: var(--space-8) var(--space-16);
  border: 1px solid var(--color-violet-200);
  border-radius: var(--radius-8);
  background: var(--color-standard-white);
  color: var(--color-gray-900);
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  white-space: nowrap;
}

.hl-map__channels li {
  position: relative;
  margin-left: auto;
}

.hl-map__channels li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--space-16) - 3px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-violet-500);
  translate: 0 -50%;
}

.hl-map li img,
.hl-map__lead img {
  flex: none;
  width: 16px;
  height: 16px;
}

.mkt-split-card__media-cell .hl-map__lead {
  position: relative;
  margin: 0 0 var(--space-8);
  border: 0;
  box-shadow: var(--shadow-small);
  color: var(--color-violet-800);
  font-size: var(--text-body-medium-size);
  line-height: var(--text-body-medium-line-height);
  font-weight: var(--font-weight-semibold);
}

.hl-map__lead::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: var(--space-24);
  height: 2px;
  background: var(--color-violet-200);
}

.mkt-split-card__media-cell .hl-map__assist li {
  padding: var(--space-4) var(--space-10);
  background: var(--color-standard-white);
  color: var(--color-violet-800);
  font-size: var(--text-body-xsmall-size);
  line-height: var(--text-body-xsmall-line-height-medium);
}

@media (max-width: 991px) {
  .mkt-split-card__media-cell > .hl-map { min-height: 24rem; }
}

@container (max-width: 28rem) {
  .hl-map__engine {
    width: 6.5rem;
    height: 6.5rem;
  }

  .hl-map__engine svg { width: 2rem; }
  .hl-map__engine::before { inset: var(--space-10); }
  .hl-map__engine::after { inset: var(--space-24); }

  .hl-map__core::before { top: 3.25rem; left: -4.5rem; }
  .hl-map__core::after {
    inset: 3.25rem auto auto 50%;
    width: 12rem;
    height: 12rem;
  }

  .hl-map__join { display: none; }

  .hl-map__channels { right: calc(50% + 4.75rem); }
  .hl-map__assist { left: calc(50% + 5.25rem); }

  .mkt-split-card__media-cell .hl-map li,
  .mkt-split-card__media-cell .hl-map__lead {
    padding: var(--space-8) var(--space-10);
    font-size: var(--text-body-xsmall-size);
    line-height: var(--text-body-xsmall-line-height-medium);
  }

  .mkt-split-card__media-cell .hl-map__lead {
    font-size: var(--text-body-small-size);
    line-height: var(--text-body-small-line-height);
  }
}

@media (max-width: 479px) {
  .mkt-split-card__media-cell > .hl-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-24);
    min-height: 0;
    overflow: visible;
  }

  .hl-map__core,
  .hl-map__channels,
  .hl-map__assist {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    right: auto;
    translate: none;
  }

  .hl-map__channels .hl-map__kicker,
  .hl-map__channels li { text-align: left; margin-left: 0; }

  .hl-map__channels ul { padding-right: 0; }
  .hl-map__channels ul::before,
  .hl-map__channels li::after,
  .hl-map__lead::before { content: none; }

  .hl-map__join,
  .hl-map__join.is-out {
    display: inline-block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: fit-content;
    translate: none;
  }

  .hl-map__core::before {
    top: -1.5rem;
    bottom: -1.5rem;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
  }

  .hl-map__core::after { width: 13rem; height: 13rem; }
}
