/* Turismo uses the shared sector typography, frames and contact panel.
   Static hero comparison, site funnel reel and interactive trip app. */
.page-tour {
  --tour-success: color-mix(in srgb, var(--ok) 50%, var(--ink));
  --tour-rail: color-mix(in srgb, var(--blue) 45%, var(--white));
  --tour-sunset-soft: color-mix(in srgb, var(--sunset) 14%, var(--white));
  --tour-sea-soft: color-mix(in srgb, var(--sea) 8%, var(--white));
}

.tour-symbols {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tour-check,
.tour-vs svg {
  display: block;
  flex: none;
  width: var(--space-16);
  height: var(--space-16);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tour-check {
  fill: var(--white);
  stroke-width: 1.05;
}

/* Hero */
.tour-hero {
  padding-block: var(--space-32) var(--space-64);
}

.tour-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: var(--space-48);
}

.tour-hero h1 {
  margin-top: var(--space-16);
}

@media (min-width: 900px) {
  .tour-hero h1 .thin {
    display: block;
  }
}

.tour-hero .lead,
.tour-section-head .lead {
  max-width: 48ch;
}

.tour-hero .vf-cta {
  margin-top: var(--space-32);
}

/* Hero comparison: rented tools on the left, one owned system on the right. */
.tour-vs {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: var(--space-16);
  margin: 0;
}

.tour-vs-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tour-vs-label {
  margin-bottom: var(--space-8);
  color: var(--muted);
  font-size: var(--type-13);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tour-vs-ours .tour-vs-label {
  color: var(--blue-dark);
}

.tour-vs-today {
  position: relative;
}

.tour-vs-mess {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: var(--space-8);
  margin: 0;
  padding: var(--space-24) var(--space-16);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-16);
  background: var(--paper-2);
  list-style: none;
}

.tour-vs-mess li {
  padding: calc(var(--space-8) / 2) var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--muted);
  font-size: var(--type-13);
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
  transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg));
}

.tour-vs-mess li.is-fee {
  border-color: color-mix(in srgb, var(--sunset) 60%, var(--white));
  background: var(--tour-sunset-soft);
  color: var(--ink);
}

.tour-vs-mess li b {
  font-weight: 800;
}

.tour-vs-mess li:nth-child(1) { --rot: -5deg; --ty: 4px; }
.tour-vs-mess li:nth-child(2) { --rot: 3deg; --tx: -6px; }
.tour-vs-mess li:nth-child(3) { --rot: -2deg; --ty: -4px; }
.tour-vs-mess li:nth-child(4) { --rot: 4deg; --tx: 8px; --ty: 2px; }
.tour-vs-mess li:nth-child(5) { --rot: -6deg; --ty: -2px; }
.tour-vs-mess li:nth-child(6) { --rot: 7deg; --tx: -4px; --ty: 6px; }
.tour-vs-mess li:nth-child(7) { --rot: -3deg; --tx: 6px; }
.tour-vs-mess li:nth-child(8) { --rot: 5deg; --ty: -6px; }
.tour-vs-mess li:nth-child(9) { --rot: -4deg; --tx: -8px; --ty: 2px; }
.tour-vs-mess li:nth-child(10) { --rot: 2deg; --tx: 4px; --ty: -2px; }
.tour-vs-mess li:nth-child(11) { --rot: -7deg; --ty: 4px; }

.tour-vs-note {
  margin-top: var(--space-8);
  color: var(--muted);
  font-size: var(--type-13);
  line-height: 1.4;
}

.tour-vs-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: var(--space-48);
  height: var(--space-48);
  margin-top: var(--space-24);
  border: 1px solid var(--tour-rail);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: var(--shadow-1);
}

.tour-vs .tour-vs-arrow svg {
  width: var(--space-24);
  height: var(--space-24);
}

.tour-vs-system {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-16);
  border: 1px solid var(--tour-rail);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-2);
}

.tour-vs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.tour-vs-head b {
  font-size: var(--type-17);
  line-height: 1.25;
}

.tour-vs-own {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--space-8) / 2);
  padding: calc(var(--space-8) / 4) var(--space-8);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ok) 13%, var(--white));
  color: var(--tour-success);
  font-size: var(--type-13);
  font-weight: 800;
  line-height: 1.35;
}

.tour-vs-modules {
  display: grid;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tour-vs-modules li {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: calc(var(--space-8) * .75) var(--space-8);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-8);
  background: var(--paper);
  font-size: var(--type-15);
  font-weight: 750;
  line-height: 1.3;
}

.tour-vs-modules svg {
  box-sizing: content-box;
  padding: calc(var(--space-8) / 2);
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.tour-vs-modules li:nth-child(even) svg {
  background: var(--tour-sea-soft);
  color: var(--sea);
}

/* Sections */
.tour-section {
  scroll-margin-top: 0;
}

.tour-close {
  scroll-margin-top: var(--space-24);
}

/* Sito: the reel beside the explanation, with the KPI board below. */
.tour-site-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  align-items: center;
  gap: var(--space-64);
}

.tour-site-layout h2 { max-width: 21ch; }
.tour-site-layout .lead { max-width: 44ch; }

#sito .tour-funnel { width: min(100%, 368px); }

@media (max-width: 899px) {
  .tour-site-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-32);
  }
}

.tour-app-wrap {
  width: min(100%, 1056px);
  margin-inline: auto;
}

/* Shown when the app has not rendered (no JS, or the script failed). */
#tour-app:not(:empty) + .tour-app-fallback {
  display: none;
}

.tour-app-fallback {
  padding: var(--space-32);
  box-shadow: var(--shadow-2);
}

.tour-app-fallback-meta {
  color: var(--blue-dark);
  font-size: var(--type-13);
  font-weight: 700;
}

.tour-app-fallback h3 {
  margin-top: var(--space-8);
  font-size: var(--type-24);
  line-height: 1.2;
}

.tour-app-fallback h3 span {
  color: var(--text-2);
  font-size: var(--type-17);
  font-weight: 500;
}

.tour-app-fallback dl {
  margin: var(--space-16) 0 0;
}

.tour-app-fallback dl div {
  display: grid;
  grid-template-columns: minmax(0, 14ch) minmax(0, 1fr);
  gap: var(--space-16);
  padding-block: var(--space-8);
  border-top: 1px solid var(--line);
  font-size: var(--type-15);
  line-height: 1.5;
}

.tour-app-fallback dt {
  font-weight: 800;
}

.tour-app-fallback dd {
  margin: 0;
  color: var(--text-2);
}

@media (max-width: 1099px) and (min-width: 900px) {
  .tour-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-32);
  }

  .tour-vs {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour-vs-arrow {
    justify-self: center;
    margin: 0;
    transform: rotate(90deg);
  }

  .tour-vs-mess {
    padding-block: var(--space-16);
  }
}

@media (max-width: 899px) {
  .tour-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour-hero .vf-cta,
  .tour-close .vf-cta {
    width: 100%;
  }
}

@media (max-width: 599px) {
  .tour-vs {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .tour-vs-arrow {
    justify-self: center;
    width: var(--space-32);
    height: var(--space-32);
    margin: 0;
    transform: rotate(90deg);
  }

  .tour-vs .tour-vs-arrow svg {
    width: var(--space-16);
    height: var(--space-16);
  }

  .tour-vs-mess {
    padding: var(--space-16) var(--space-8);
  }

  .tour-vs-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-vs-modules li:last-child {
    grid-column: 1 / -1;
  }

  .tour-app-fallback {
    padding: var(--space-16);
  }

  .tour-app-fallback dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (max-width: 379px) {
  .tour-vs-modules {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 359px) {
  .tour-vs-mess li {
    white-space: normal;
  }
}

/* Index: the custom-solutions invite card (third card, links to the contact band). */
.pc-area.pc-area-custom { background: color-mix(in srgb, var(--blue) 6%, var(--white)); }
.pc-area.pc-area-custom .pc-area-title { color: var(--blue-dark); }
.pc-area.pc-area-custom .pc-area-q { border-left-color: color-mix(in srgb, var(--blue) 35%, transparent); }

/* Hero: the key words in blue. */
.tour-hl { font-style: normal; color: var(--blue); }

/* Hero system card: the AI helper that links every module. */
.tour-vs-ai {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: calc(var(--space-8) / 2) var(--space-8) calc(var(--space-8) / 2) calc(var(--space-8) / 2);
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: var(--type-13);
  font-weight: 700;
  line-height: 1.3;
  width: fit-content;
}
.tour-vs-ai b { font-weight: 900; }
.tour-robot {
  width: var(--space-32);
  height: var(--space-32);
  flex: none;
  padding: calc(var(--space-8) / 2);
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tour-robot circle { fill: var(--blue-dark); stroke: none; }

.tour-vs-ai svg.tour-robot { width: 36px; height: 36px; box-sizing: border-box; }

/* Hero system card: «Voi + AI» as its own bar on top, an arrow down into every module. */
.tour-vs-system .tour-vs-ai {
  width: auto;
  padding: var(--space-8) var(--space-16) var(--space-8) var(--space-8);
  border-radius: var(--radius-8);
  background: var(--white);
  border: 1px solid var(--line-soft);
}
.tour-vs-you {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--white);
}
.tour-vs-you svg { width: 20px; height: 20px; fill: none; stroke: var(--blue-dark); stroke-width: 1.8; stroke-linecap: round; }
.tour-vs-plus { font-size: var(--type-17); font-weight: 800; color: var(--blue-dark); }
.tour-vs-ai-text { display: grid; line-height: 1.25; }
.tour-vs-ai-text b { font-size: var(--type-15); color: var(--blue-dark); }
.tour-vs-ai-text small { font-size: var(--type-13); font-weight: 600; color: var(--blue-dark); }
.tour-vs-down { display: grid; place-items: center; margin-block: calc(var(--space-8) * -1); }
.tour-vs-down svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Sistema: «Demo per i clienti» label above the interactive app. */
.tour-demo-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-16);
  max-width: 1056px;
  margin: var(--space-48) auto var(--space-16);
  color: var(--text-2);
  font-size: var(--type-15);
}
/* The label is the kit's .demo-pill (30 Nov). */

/* Hero copy: lighter, fewer words, so the comparison image speaks. */
.tour-hero-copy h1 { font-size: clamp(var(--type-44), 4.2vw, var(--type-56)); }
.tour-hero-lead { max-width: 30ch; color: var(--muted); }

.tour-vs-result { display: block; margin: calc(var(--space-8) * -1) 0 0; color: var(--tour-success); font-size: var(--type-15); font-weight: 800; line-height: 1.3; }

/* Sito: the figures are the page's one facts band (30 Nov). */
.tour-site { margin: var(--space-48) 0 0; font-variant-numeric: tabular-nums; }
.tour-site figcaption { margin-bottom: var(--space-16); color: var(--muted); font-size: var(--type-15); }
.tour-site figcaption b { color: var(--ink); font-weight: 800; }
.tour-facts { --cols: 2; }
.tour-facts dd { white-space: nowrap; }

/* Sistema: the result under the app. */
.tour-app-result { max-width: 60ch; margin: var(--space-24) auto 0; color: var(--text-2); font-size: var(--type-17); line-height: 1.5; text-align: center; }
.tour-app-result strong { color: var(--ink); font-weight: 850; white-space: nowrap; }
.tour-demo-note .demo-pill { flex: none; }
