/* ZENOLIS - sistema visivo unificato v2
   Questo foglio completa lo stile esistente senza alterare dati, tracciamento o testi. */

.zen-v2 {
  --z-navy: #073852;
  --z-blue: #0b6988;
  --z-teal: #1987a3;
  --z-green: #2d9678;
  --z-ink: #102f40;
  --z-muted: #496875;
  --z-line: #b9d5dc;
  --z-paper: #ffffff;
  --z-bg: #f4fafb;
  --z-aqua: #e8f6f3;
  --z-sky: #eaf7fb;
  --z-sand: #fff3cc;
  --z-shadow: 0 16px 38px rgba(7, 56, 82, 0.12);
  background: var(--z-bg);
  color: var(--z-ink);
}

.zen-v2 body {
  background: linear-gradient(180deg, #f8fcfd 0%, #eaf6f8 100%);
  color: var(--z-ink);
}

.zen-v2 .app-shell {
  width: min(100%, 430px);
  min-height: 100dvh;
  background: var(--z-paper);
  box-shadow: var(--z-shadow);
}

.zen-v2 .screen {
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  gap: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
}

.zen-v2 .topbar {
  min-height: 42px;
  gap: 8px;
}

.zen-v2 .progress {
  height: 5px;
  background: #deecef;
}

.zen-v2 .progress > span {
  background: linear-gradient(90deg, var(--z-green), var(--z-teal));
}

.zen-v2 .title,
.zen-v2 .question-title,
.zen-v2 .answer-card h2,
.zen-v2 .missing-card h2,
.zen-v2 .process h1,
.zen-v2 .reflection h2 {
  color: var(--z-navy);
  text-wrap: balance;
}

.zen-v2 .title {
  font-size: clamp(28px, 8vw, 34px);
  line-height: 1.08;
}

.zen-v2 .title.small,
.zen-v2 .question-title {
  font-size: clamp(25px, 6.8vw, 29px);
  line-height: 1.12;
}

.zen-v2 .lead,
.zen-v2 .answer-card p,
.zen-v2 .missing-card p,
.zen-v2 .missing-help p,
.zen-v2 .faq p,
.zen-v2 .insight p {
  color: var(--z-muted);
  line-height: 1.45;
}

.zen-v2 .lead { font-size: 16px; }
.zen-v2 .answer-card p,
.zen-v2 .missing-help p { font-size: 15px; }
.zen-v2 .faq p,
.zen-v2 .insight p { font-size: 14px; }

.zen-v2 .button {
  min-height: 54px;
  border-radius: 14px;
  background: linear-gradient(130deg, var(--z-navy), var(--z-teal));
  color: #fff;
  font-size: 16px;
  line-height: 1.18;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(7, 56, 82, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.zen-v2 .button:active,
.zen-v2 .city-card:active,
.zen-v2 .option:active,
.zen-v2 .channel:active,
.zen-v2 .hotspot:active {
  transform: scale(0.985);
}

.zen-v2 .button.secondary {
  background: #fff;
  color: var(--z-blue);
  border: 1.5px solid var(--z-blue);
  box-shadow: none;
}

.zen-v2 .back,
.zen-v2 .zen-choice-back {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--z-line);
  border-radius: 50%;
  background: #fff;
  color: var(--z-navy);
  font-size: 25px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(7, 56, 82, 0.08);
}

.zen-v2 .panel,
.zen-v2 .answer-card,
.zen-v2 .missing-card,
.zen-v2 .process,
.zen-v2 .reflection,
.zen-v2 .insight {
  border: 1px solid rgba(185, 213, 220, 0.58);
  box-shadow: 0 8px 22px rgba(7, 56, 82, 0.055);
}

/* Prima schermata: le cinque scelte hanno lo stesso linguaggio visivo. */
.zen-v2 .home-hero {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--z-sky), var(--z-aqua));
}

.zen-v2 .home-hero h1 { font-size: 27px; }
.zen-v2 .home-hero p {
  color: var(--z-muted);
  font-size: 15px;
  line-height: 1.4;
}

.zen-v2 .city-grid { gap: 9px; }
.zen-v2 .city-card {
  min-height: 121px;
  border-color: var(--z-line);
  border-radius: 16px;
  box-shadow: 0 5px 14px rgba(7, 56, 82, 0.055);
}

.zen-v2 .city-card strong { font-size: 17px; }
.zen-v2 .city-card small {
  color: var(--z-muted);
  font-size: 12px;
}

.zen-v2 .search-area label {
  color: var(--z-navy);
  font-size: 16px;
  line-height: 1.25;
}

.zen-v2 .search-input {
  min-height: 54px;
  border-color: #83b7c3;
  border-width: 2px;
  font-size: 17px;
  box-shadow: 0 5px 14px rgba(7, 56, 82, 0.05);
  animation: zenSearchNudge 4s ease 3.35s infinite;
}

@keyframes zenSearchNudge {
  0%, 12%, 100% { transform: none; box-shadow: 0 5px 14px rgba(7, 56, 82, 0.05); }
  6% { transform: translateY(-2px) scale(1.008); box-shadow: 0 0 0 5px rgba(45, 150, 120, 0.12), 0 8px 18px rgba(7, 56, 82, 0.09); }
}

.zen-v2 .home-note {
  color: var(--z-ink);
  font-size: 13px;
  line-height: 1.4;
}

/* Risultati e dati: contenuto compatto, fonte e azioni sempre leggibili. */
.zen-v2 .result-hero {
  min-height: 235px;
  padding: 14px 12px;
  background: linear-gradient(145deg, var(--z-sky), #edf8f8);
}

.zen-v2 .source {
  color: var(--z-muted);
  font-size: 13px;
  line-height: 1.4;
}

.zen-v2 .data-row {
  min-height: 40px;
  align-items: center;
  font-size: 12px;
  line-height: 1.2;
}

.zen-v2 .data-row strong { color: var(--z-green); }

/* Origine del dato: un'unica composizione, senza effetto collage. */
.zen-v2 .process {
  padding: 16px 12px;
  border-radius: 18px 18px 0 0;
  margin-bottom: -12px;
  box-shadow: none;
}

.zen-v2 .reflection {
  border-radius: 0 0 18px 18px;
  padding: 17px 14px;
  box-shadow: 0 9px 22px rgba(7, 56, 82, 0.06);
}

.zen-v2 .reflection p,
.zen-v2 .reflection .muted {
  color: #526b75;
  font-size: 14px;
  line-height: 1.42;
}

/* Scelta ricostruita con componenti veri e completamente cliccabili. */
.zen-v2 .screen.zen-choice {
  justify-content: flex-start;
}

.zen-v2 .zen-choice-head {
  display: grid;
  gap: 9px;
}

.zen-v2 .zen-choice-head .topbar { margin-bottom: 0; }

.zen-v2 .zen-choice-kicker {
  margin: 5px 0 0;
  text-align: center;
  color: var(--z-green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.6px;
}

.zen-v2 .zen-choice-title {
  margin: 0;
  color: var(--z-navy);
  text-align: center;
  font-size: 29px;
  line-height: 1.1;
  text-wrap: balance;
}

.zen-v2 .path-image.zen-path-choice {
  position: static;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  align-content: center;
}

.zen-v2 .zen-path-choice > img { display: none; }

.zen-v2 .zen-path-choice .hotspot {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 20px 12px;
  border: 1.5px solid var(--z-line);
  border-radius: 21px;
  color: var(--z-navy);
  text-align: center;
  box-shadow: 0 9px 22px rgba(7, 56, 82, 0.075);
}

.zen-v2 .zen-path-choice .hotspot.hard {
  background: linear-gradient(180deg, #fff8dc, #fff2bc);
  border-color: #e4c76b;
}

.zen-v2 .zen-path-choice .hotspot.drink {
  background: linear-gradient(180deg, #edf9fc, #dff2f7);
  border-color: #9fcbd6;
}

.zen-v2 .zen-path-icon {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  font-size: 50px;
  box-shadow: 0 7px 16px rgba(7, 56, 82, 0.07);
}

.zen-v2 .hotspot.hard .zen-path-icon { color: #b17f12; }
.zen-v2 .hotspot.drink .zen-path-icon { color: var(--z-blue); }
.zen-v2 .zen-path-icon svg {
  width: 64px;
  height: 64px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zen-v2 .zen-path-choice strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.zen-v2 .zen-path-choice small {
  display: block;
  color: var(--z-muted);
  font-size: 13px;
  line-height: 1.35;
}

.zen-v2 .zen-path-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--z-navy);
  color: #fff;
  font-size: 24px;
}

.zen-v2 .zen-choice-bottom {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--z-muted);
  font-size: 13px;
  font-weight: 800;
}

/* I due percorsi condividono lo stesso modello; cambia soltanto l'accento. */
.zen-v2 .zen-path-hard {
  --path-accent: #c39221;
  --path-soft: #fff7d9;
}

.zen-v2 .zen-path-drink {
  --path-accent: #197b9d;
  --path-soft: #e9f7fb;
}

.zen-v2 .zen-path-hard .progress > span,
.zen-v2 .zen-path-drink .progress > span {
  background: var(--path-accent);
}

.zen-v2 .zen-path-hard .kicker,
.zen-v2 .zen-path-drink .kicker {
  color: var(--path-accent);
}

.zen-v2 .option {
  min-height: 64px;
  padding: 14px;
  border-radius: 15px;
  color: var(--z-ink);
  font-size: 16px;
  line-height: 1.3;
  box-shadow: 0 4px 11px rgba(7, 56, 82, 0.035);
}

.zen-v2 .zen-path-hard .option.selected,
.zen-v2 .zen-path-drink .option.selected {
  background: var(--path-soft);
  border-color: var(--path-accent);
}

.zen-v2 .helper {
  color: var(--z-muted);
  font-size: 13px;
}

.zen-v2 .answer-card { padding: 18px 15px; }
.zen-v2 .answer-card h2 { font-size: 25px; }
.zen-v2 .insight strong { font-size: 18px; line-height: 1.3; }

/* Modulo: leggibilità e campi condizionati dal canale scelto. */
.zen-v2 .contact-screen { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.zen-v2 .contact-panel { padding: 16px; }
.zen-v2 .contact-panel .title { font-size: 27px; }
.zen-v2 .contact-lead {
  color: var(--z-muted) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.zen-v2 .contact-panel .form-group label { font-size: 13px; }
.zen-v2 .contact-panel .field {
  min-height: 48px;
  font-size: 16px;
}
.zen-v2 .contact-panel .channel { min-height: 46px; font-size: 15px; }
.zen-v2 .contact-panel .consent { font-size: 12px; line-height: 1.4; }
.zen-v2 .contact-panel .form-note { font-size: 12px; line-height: 1.4; }
.zen-v2 .contact-panel.zen-whatsapp-selected .booking { display: none; }

.zen-v2 .method li { font-size: 14px; line-height: 1.42; }
.zen-v2 .faq summary { font-size: 14px; line-height: 1.35; }

/* Il Book è una schermata autonoma: nessuna parte della consulenza resta visibile
   e il marchio compare una sola volta nella barra superiore. */
.zen-v2 .book-screen {
  min-height: 100dvh;
  height: auto;
  overflow: visible;
}

.zen-v2 .book-screen-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.zen-v2 .book-screen #book-section {
  position: static;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  scroll-margin-top: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  border-top: 0;
}

.zen-v2 .book-screen .zen-book-brand {
  display: none;
}

/* Comune senza dati: chiarisce perché è richiesta una zona precisa. */
.zen-v2 .missing-manager strong { font-size: 18px; }
.zen-v2 .missing-manager small { font-size: 12px; }
.zen-v2 .missing-card p { font-size: 15px; }
.zen-v2 .missing-help { border-left-color: var(--z-green); }

/* Il banner cookie resta visibile ma non oscura l'azione principale. */
.zen-v2 .consent-banner {
  padding: 11px 12px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(8, 59, 85, 0.18);
}
.zen-v2 .consent-banner p { font-size: 11px; }

@media (max-height: 760px) {
  .zen-v2 .screen { padding-top: max(10px, env(safe-area-inset-top)); gap: 8px; }
  .zen-v2 .home-hero { padding: 11px 14px; }
  .zen-v2 .home-hero h1 { font-size: 23px; margin: 4px 0 5px; }
  .zen-v2 .home-hero p { font-size: 13px; }
  .zen-v2 .glass { width: 62px; height: 91px; }
  .zen-v2 .quick-label { font-size: 13px; }
  .zen-v2 .city-card { min-height: 94px; padding-top: 56px; }
  .zen-v2 .landmark { top: 7px; transform: translateX(-50%) scale(0.76); transform-origin: top center; }
  .zen-v2 .search-input { min-height: 48px; }
  .zen-v2 .footer-links { margin-top: 5px; padding-top: 7px; }
  .zen-v2 .zen-path-choice .hotspot { min-height: 270px; }
}

@media (max-width: 360px) {
  .zen-v2 .screen { padding-left: 15px; padding-right: 15px; }
  .zen-v2 .zen-path-choice .hotspot { min-height: 290px; padding-inline: 8px; }
  .zen-v2 .zen-path-icon { width: 78px; height: 78px; font-size: 42px; }
  .zen-v2 .zen-path-choice strong { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .zen-v2 .search-input { animation: none !important; }
}

/* Cookie choice follows content instead of covering navigation. */
.zen-v2 .consent-banner {
  position: static; inset: auto; transform: none;
  width: 100%; max-width: none; margin: 4px 0 0; padding: 10px 12px;
  grid-template-columns: minmax(0, 1fr); gap: 8px; box-shadow: none;
}
.zen-v2 .consent-banner strong { font-size: 12px; }
.zen-v2 .consent-banner p { font-size: 12px; line-height: 1.35; }
.zen-v2 .consent-banner a { color: var(--z-blue); text-decoration: underline; }
.zen-v2 .consent-banner .consent-actions {
  display: grid; grid-template-columns: minmax(88px, 1fr) minmax(0, 1.4fr); gap: 8px;
}
.zen-v2 .consent-banner .button {
  width: 100%; min-height: 44px; padding: 10px; font-size: 14px; box-shadow: none;
}
.zen-v2 .screen.consent-inline-open {
  position: relative; height: auto; overflow: visible;
  padding-bottom: max(72px, calc(env(safe-area-inset-bottom) + 56px));
}
.zen-v2 #home-screen.consent-inline-open {
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.zen-v2 .consent-inline-open .flow-back {
  position: absolute; left: 18px; bottom: max(12px, env(safe-area-inset-bottom));
}
.zen-v2 .path-screen.consent-inline-open > .consent-banner {
  width: calc(100% - 36px); margin-inline: 18px;
}

/* Long screens must grow naturally while cookie choice remains pending. */
.zen-v2 .consent-inline-open .journey-card {
  flex: none;
  min-height: auto;
  grid-template-rows: auto auto;
  overflow: visible;
}
.zen-v2 .consent-inline-open .question-body,
.zen-v2 .consent-inline-open .answer-body,
.zen-v2 .consent-inline-open .book-screen-body {
  flex: none;
  min-height: auto;
}
.zen-v2 .consent-inline-open .options {
  grid-template-rows: repeat(4, minmax(56px, auto));
}
.zen-v2 .consent-inline-open .path-image {
  height: auto;
  min-height: auto;
}
/* Subtle continuous cue, without changing document layout. */
.zen-v2 .zen-forward-action {
  animation: zenContinuePulse 2.8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes zenContinuePulse {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateY(-3px) scale(1.035); filter: brightness(1.22); }
}
@media (prefers-reduced-motion: reduce) {
  .zen-v2 .zen-forward-action { animation: none !important; transform: none; }
}

/* Parametri estesi: colonne contenute e valori sempre leggibili su mobile. */
.zen-v2 .analysis-extra { min-width: 0; max-width: 100%; }
.zen-v2 .analysis-extra .data-grid {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.zen-v2 .analysis-extra .data-row {
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 8px;
  font-size: 12px;
  line-height: 1.3;
}
.zen-v2 .analysis-extra .data-row > span,
.zen-v2 .analysis-extra .data-row > strong {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.zen-v2 .analysis-extra .data-row > strong {
  font-size: 13px;
}
