/* Peasy Doctor – la home, sul kit di taste-skill (assets/).
   Il kit dà griglia, bottoni, nav, card e movimento; qui ci sono il marchio, la
   hero (quella di prima, riportata) e le sezioni. Le verticali e le pagine
   legali restano su style.css. */

/* ─── Caratteri, serviti dal nostro dominio (vedi style.css per il perché) ─── */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/fraunces.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/dm-sans.woff2') format('woff2'); }

/* ─── Il marchio ───
   Azure 600 come azione (#0055dd, index.css), inchiostro slate 900, il navy
   della sidebar come fondo scuro. ⚠️ Sono una copia: cambiando il marchio,
   cambiarlo anche in index.css, style.css e scripts/og/card.html. */
:root {
  --p-bg: #f8fafc; --p-surface: #ffffff; --p-ink: #0f172a; --p-muted: #475569;
  --p-accent: #0055dd; --p-accent-ink: #ffffff; --p-action: #0055dd; --p-action-ink: #ffffff;
  --p-inv-bg: #01203f; --p-inv-surface: #0d2f4f; --p-inv-ink: #f4f7fb; --p-inv-muted: #a9b8c9;
  --p-inv-accent: #76b4ff; --p-inv-accent-ink: #01203f; --p-inv-action: #ffffff; --p-inv-action-ink: #01203f;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-text: 'DM Sans', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.015em;
  --display-tracking-xl: -0.02em;

  --body: #334155;          /* il testo corrente di prima (slate 700) */
  --eye: #0055dd;           /* le tre specializzazioni, come nelle verticali */
  --aesthetics: #008fac;
  --teeth: #0a7c5f;
  --grp-a: #0055dd;         /* i tre gruppi dell'agenda */
  --grp-b: #008fac;
  --grp-c: #0a7c5f;
}
:root :is(h1, h2, h3) { font-optical-sizing: auto; }

/* ─── Le sezioni crescono quanto serve ───
   Il kit vuole ogni sezione alta esattamente una o due schermate: per stare
   dentro bisognava tagliare i testi, e i testi qui sono il prodotto. L'id di
   `main` e del footer battono le regole del kit a ogni larghezza. */
#top > :is(section, .section), footer#contatti { height: auto; min-height: 0; }
#top > :is(section, .section) > .wrap, footer#contatti > .wrap { height: auto; }

/* ─── Nav ─── il logo vero al posto del segno del kit */
.nav__logo img { width: 28px; height: 28px; flex: none; }
.nav__logo { gap: 10px; }

/* ─── Hero (quella di prima) ─── */
.hero-main {
  padding: calc(var(--nav) + 72px) 0 88px;
  text-align: center;
  background: linear-gradient(#fff, #fff) top / 100% 62% no-repeat, var(--bg);
}
.hero-main__inner { display: flex; flex-direction: column; align-items: center; }
.hero-status {
  display: inline-flex; align-items: center; margin: 0; padding: 6px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 16px; font-weight: 500; color: var(--body);
}
.hero-title {
  margin: 32px 0 24px; max-width: 16ch;
  font: 600 clamp(2.7rem, 6.2vw, 4.75rem)/1.04 var(--font-display);
  letter-spacing: -0.005em; color: var(--ink);
}
.hero-title em { display: block; margin-top: 0.12em; font-style: italic; font-weight: 600; color: var(--action); }
.hero-kicker {
  margin: 0 0 14px; font: 600 clamp(1.25rem, 1vw + 0.9rem, 1.6rem)/1.3 var(--font-text);
  letter-spacing: -0.01em; color: var(--ink);
}
.hero-lead { margin: 0; max-width: 40rem; font-size: 1.24rem; line-height: 1.6; color: var(--body); }
.hero-lead strong { font-weight: 600; color: var(--ink); }
.hero-actions { justify-content: center; margin-top: 32px; }
.hero-note { margin: 16px 0 0; color: #475569; }
.hero-note a, .facts a { color: var(--action); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--action) 30%, transparent); text-underline-offset: 3px; }
.hero-note a:hover, .facts a:hover { text-decoration-color: currentColor; }

/* La schermata vera, in una finestra: la dashboard dello studio demo.
   Sotto, una riga sola con le schede dedicate (non è una didascalia). */
.pd-hero-shot { position: relative; margin-top: 64px; }
.pd-hero-shot::before {
  content: ""; position: absolute; inset: 12% -4% 2%; z-index: -1; border-radius: 48px;
  background: radial-gradient(60% 70% at 50% 40%, rgba(0, 113, 244, .22), transparent 70%),
              radial-gradient(40% 50% at 85% 80%, rgba(0, 177, 211, .18), transparent 70%);
  filter: blur(8px);
}
.pd-window {
  overflow: hidden; border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 50px 100px -40px rgba(1, 32, 63, .45), 0 12px 24px -12px rgba(1, 32, 63, .18);
}
.pd-window__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.pd-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.pd-window__bar span {
  margin: 0 auto; padding: 3px 18px; border-radius: 8px; background: #fff;
  font-size: 13px; color: #64748b; transform: translateX(-24px);
}
.pd-window img, .pd-window video { display: block; width: 100%; height: auto; }
.pd-hero-specs { margin: 28px auto 0; max-width: 46rem; text-align: center; font-size: 17px; line-height: 1.6; color: var(--body); }
.pd-hero-specs a { font-weight: 600; color: #0046b8; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--action) 30%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.pd-hero-specs a:hover { text-decoration-color: currentColor; }
.pd-hero-specs a:last-child { margin-left: 4px; font-weight: 500; white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 16px; color: var(--body); }

/* ─── Intestazioni di sezione: titolo a sinistra, frase a destra ─── */
.head-split > h2 { margin: 0; }
.head-split__p { margin: 0; max-width: 34rem; font-size: var(--t-lead); line-height: 1.55; color: var(--muted); }
.head-split + * { margin-top: var(--s-8); }

.scenes { list-style: none; margin: 0; padding: 0; }
.scene { padding: 20px 0; border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); }
.scene:first-child { padding-top: 0; border-top: 0; }
.scene h4 { margin: 0; font: 600 18px/1.35 var(--font-display); color: var(--ink); }
.scene p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--body); }

.ba { margin: var(--s-5) 0 0; width: 100%; max-width: 420px; align-self: center; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .35); }
.ba-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ba-title { font-weight: 500; white-space: nowrap; }
.ba-modes { display: inline-flex; padding: 2px; border: 1px solid #cbd5e1; border-radius: 8px; flex-shrink: 0; }
.ba-modes span { padding: 2px 8px; border-radius: 6px; color: #64748b; font-size: 13px; }
.ba-modes .is-on { background: #f1f5f9; color: var(--ink); font-weight: 500; }
.ba-frame { --pos: 50%; position: relative; aspect-ratio: 164 / 205; overflow: hidden; user-select: none; touch-action: pan-y; }
.ba-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag { position: absolute; top: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: #334155; font-size: 13px; font-weight: 500; }
.ba-tag--before { left: 10px; } .ba-tag--after { right: 10px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); pointer-events: none; }
.ba-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .25);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-frame:has(.ba-range:focus-visible) .ba-handle::after { outline: 2px solid var(--action); outline-offset: 2px; }
.ba figcaption { padding: 9px 14px; border-top: 1px solid var(--line); font-size: 13px; color: #64748b; }

.pd-day { --row: 46px; padding: 14px 16px 0; font-family: var(--ui-font, var(--font-text)); color: var(--u-ink); }
.pd-day__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.pd-day__title { font: 500 20px/1.2 var(--font-display); }
.pd-day__views { display: inline-flex; padding: 2px; border: 1px solid var(--u-border); border-radius: 8px; font-size: 13px; }
.pd-day__views span { padding: 3px 10px; border-radius: 6px; color: var(--u-muted); }
.pd-day__views .is-on { background: var(--u-fill-2); color: var(--u-ink); font-weight: 500; }
.pd-day__cols, .pd-day__grid { display: grid; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); column-gap: 8px; }
.pd-day__cols { padding: 8px 0; border-top: 1px solid var(--u-line); font-size: 13px; font-weight: 500; color: var(--u-muted); }
.pd-day__grid { position: relative; height: calc(var(--row) * 10); background: repeating-linear-gradient(to bottom, var(--u-line) 0 1px, transparent 1px var(--row)); }
.pd-day__hours { display: grid; grid-auto-rows: calc(var(--row) * 2); font-size: 13px; color: var(--u-muted); font-variant-numeric: tabular-nums; }
.pd-day__lane { position: relative; }
.pd-ev {
  position: absolute; left: 0; right: 0; top: calc(var(--t) * var(--row) + 3px); height: calc(var(--d) * var(--row) - 6px);
  display: grid; align-content: start; gap: 1px; padding: 5px 8px 5px 10px; overflow: hidden;
  border-radius: 8px; border-top: 3px solid var(--g); background: color-mix(in oklab, var(--g) 11%, #fff);
  font-size: 13px; line-height: 1.3;
}
.pd-ev b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 18px; }
.pd-ev span { color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-ev--a { --g: var(--grp-a); } .pd-ev--b { --g: var(--grp-b); } .pd-ev--c { --g: var(--grp-c); }
.pd-ev--online { border: 1px dashed #b7791f; background: #fffaf0; }
.pd-wa { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: #25d366; }
.pd-wa::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px solid #fff; border-bottom-left-radius: 1px; }

/* ─── Le etichette Premium ─── */
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 2px; font: 500 13px/1.5 var(--font-text); letter-spacing: 0; color: var(--action); background: color-mix(in oklab, var(--action) 9%, #fff); }

/* ─── Bento: i riquadri ───
   Griglia a 12 colonne di riquadri di misure diverse. Ogni riquadro ha la
   sua tinta (le tre specializzazioni) o è bianco con il bordo; dentro, una
   schermata vera o un pezzetto d'interfaccia disegnato, poi il testo. */
.pd-bento { list-style: none; margin: var(--s-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.pd-span-4 { grid-column: span 4; } .pd-span-6 { grid-column: span 6; } .pd-span-8 { grid-column: span 8; }
.pd-rows-2 { grid-row: span 2; }
.pd-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}
.pd-card:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -32px rgba(15, 23, 42, .35); }
.pd-card--eye { background: linear-gradient(160deg, #eaf2ff, #f6f9ff 60%); border-color: #d6e4fb; }
.pd-card--eye-soft { background: #f6f9ff; border-color: #dfe9fa; }
.pd-card--aesthetics { background: linear-gradient(160deg, #e3f6fa, #f4fbfd 60%); border-color: #cdebf2; }
.pd-card--aesthetics-soft, .pd-card--compare { background: #f4fbfd; border-color: #d6eef4; }
.pd-card--teeth { background: linear-gradient(160deg, #e3f5ed, #f3fbf7 60%); border-color: #cbe9dc; }
.pd-card--teeth-soft { background: #f3fbf7; border-color: #d3ece1; }
.pd-kicker { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--action); }
.pd-card--aesthetics .pd-kicker { color: var(--aesthetics); }
.pd-card--teeth .pd-kicker { color: var(--teeth); }
.pd-card__title { margin: 0; max-width: 30ch; font: 500 clamp(24px, 1.2vw + 14px, 32px)/1.2 var(--font-display); letter-spacing: -0.01em; }
.pd-card__sub { margin: 0; font: 600 20px/1.3 var(--font-display); }
.pd-card--compare > p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.pd-card__more { margin: 14px 0 0; }
.pd-shot { margin: 28px -32px -32px 32px; flex: 1 0 auto; display: flex; align-items: flex-start; overflow: hidden; border-top-left-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 24px 48px -24px rgba(15, 23, 42, .3); }
.pd-shot { position: relative; min-height: 340px; }
.pd-shot img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.pd-shot--face { margin: 24px 0 0; border-radius: 14px; aspect-ratio: 1; background: #f8fafc; }
.pd-shot--face { min-height: 0; }
.pd-shot--face img { object-position: 50% 30%; }
.pd-card .scene h4 { font-size: 17px; }
.pd-card .scene p { font-size: 15px; }

/* le funzionalità: il pezzetto d'interfaccia in alto, il testo sotto */
.pd-feat h3 { margin: 24px 0 0; font: 600 18px/1.35 var(--font-text); letter-spacing: 0; }
.pd-feat p { margin: 8px 0 0; line-height: 1.6; color: var(--body); }
.pd-feat .link { display: inline-block; margin-top: 4px; }
.pd-mini { position: relative; border-radius: 16px; background: #f8fafc; border: 1px solid var(--line); padding: 16px; font-size: 13px; color: var(--ink); overflow: hidden; }
.pd-mini i { font-style: normal; }
.pd-mini--agenda { flex: 1 1 auto; min-height: 380px; padding: 0; background: #fff; }
.pd-mini--agenda::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, #fff); }
.pd-card .pd-day { --row: 48px; }
.pd-card .ba-modes span:first-child { display: none; }
.pd-wa-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pd-wa-head b { display: block; font-weight: 600; }
.pd-wa-head i { color: #16a34a; font-size: 12px; }
.pd-wa-avatar, .pd-pat-av { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #0071f4, #00b1d3); color: #fff; font-size: 12px; font-weight: 600; }
.pd-mini--wa { background: #efeae2; }
.pd-wa-bubble { position: relative; margin: 14px 0 0 auto; max-width: 92%; padding: 10px 12px 18px; border-radius: 12px 12px 4px 12px; background: #d9fdd3; line-height: 1.45; }
.pd-wa-time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: #4b8a3f; }
.pd-search { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #334155; }
.pd-caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--action); animation: pd-blink 1s steps(1) infinite; }
@keyframes pd-blink { 50% { opacity: 0; } }
.pd-patient { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.pd-patient b, .pd-msg--patient b { display: block; font-weight: 600; }
.pd-patient i { color: #16a34a; font-size: 12px; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pd-chips span { padding: 2px 8px; border-radius: 999px; background: #e8eef8; color: #334155; font-size: 12px; }
.pd-doc { padding: 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px -14px rgba(15, 23, 42, .4); }
.pd-doc__head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 12px; color: #64748b; }
.pd-doc__head b { color: var(--ink); font-size: 13px; }
.pd-line { display: block; height: 7px; margin-top: 7px; border-radius: 4px; background: #e2e8f0; }
.pd-line--short { width: 55%; } .pd-line--mid { width: 78%; }
.pd-lock { display: inline-flex; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: #e7f0ff; color: var(--action); font-size: 12px; font-weight: 500; }
.pd-mini--invoice { background: #fff; }
.pd-inv__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pd-paid { padding: 1px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 500; }
.pd-inv__row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid #eef2f6; color: #334155; font-variant-numeric: tabular-nums; }
.pd-inv__tot { font-weight: 600; color: var(--ink); border-top-color: #cbd5e1; }
.pd-bars { display: flex; align-items: flex-end; gap: 8px; height: 112px; }
.pd-bars i { flex: 1; height: calc(var(--v) * 100%); border-radius: 6px 6px 2px 2px; background: #c7dbfb; transition: height .4s; }
.pd-bars i.is-on { background: var(--action); }
.pd-card:hover .pd-bars i { height: calc(var(--v) * 92% + 8%); }
.pd-bars__axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: #64748b; }
.pd-mini--chat { display: grid; gap: 8px; }
.pd-msg { max-width: 80%; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: #fff; border: 1px solid var(--line); line-height: 1.45; }
.pd-msg b { display: block; font-size: 12px; color: var(--action); }
.pd-msg--patient { display: flex; align-items: center; gap: 10px; }
.pd-msg--patient i { font-size: 12px; color: var(--action); text-decoration: underline; }
.pd-msg--me { justify-self: end; border-radius: 12px 12px 4px 12px; background: #0055dd; border-color: #0055dd; color: #fff; }
.pd-mini--sign { background: #fff; }
.pd-sign__doc b { display: block; margin-bottom: 4px; }
.pd-sign__ink { display: block; width: 72%; height: auto; margin: 10px 0 0 6px; }
.pd-sign__ink path { stroke-dasharray: 420; stroke-dashoffset: 0; }
.pd-card:hover .pd-sign__ink path { animation: pd-sign 1.6s ease forwards; }
@keyframes pd-sign { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
.pd-sign__line { padding-top: 6px; border-top: 1px dashed #94a3b8; font-size: 12px; color: #64748b; }
@media (prefers-reduced-motion: reduce) { .pd-card, .pd-bars i { transition: none; } .pd-caret, .pd-card:hover .pd-sign__ink path { animation: none; } }

/* ─── Più carattere: la fascia navy delle specializzazioni ───
   I riquadri restano chiari sul navy: dentro, i colori tornano quelli della
   pagina (la sezione è ground-inverse e ne cambierebbe inchiostro e azione). */
.specs { background: radial-gradient(1200px 600px at 85% -10%, rgba(0, 113, 244, .35), transparent 60%), var(--bg); }
.specs .head-split__p { color: var(--muted); }
.pd-card { --ink: #0f172a; --muted: #475569; --line: rgba(15, 23, 42, .1); --action: #0055dd; color: var(--ink); }
.specs .pd-card { border-color: transparent; }
.head-split > h2 { font-size: clamp(34px, 3vw + 10px, 60px); line-height: 1.06; }
.pd-span-12 { grid-column: 1 / -1; }
.pd-card--photo { padding: 0; min-height: 280px; background: #0d2f4f; }
.pd-photo { margin: 0; position: absolute; inset: 0; }
.pd-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pd-card--photo:hover .pd-photo img { transform: scale(1.03); }
.pd-scenes-row .scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.pd-scenes-row .scene, .pd-scenes-row .scene:first-child { padding: 0; border-top: 0; }
.pd-scenes-row .scene + .scene { padding-left: 28px; border-left: 1px solid color-mix(in oklab, var(--aesthetics) 30%, transparent); }

/* ─── L'agenda che si muove ───
   Un appuntamento viene preso e spostato in un'altra colonna, e Peasy
   avvisa che il promemoria va rimandato (lo fa davvero: spostare un
   appuntamento azzera il promemoria già aperto). Dieci secondi, in loop;
   fermo con «riduci movimento». */
.pd-ev--move { overflow: visible; z-index: 2; animation: pd-move 10s cubic-bezier(.45, 0, .2, 1) infinite; }
.pd-ev--move::after {
  content: ""; position: absolute; left: 58%; top: 55%; width: 18px; height: 18px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8-6 1.6L10 19z' fill='%230f172a' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: pd-cursor 10s linear infinite;
}
.pd-ev--move .pd-wa { animation: pd-wa 10s step-end infinite; }
@keyframes pd-move {
  0%, 14% { transform: none; box-shadow: none; opacity: 1; }
  18% { transform: scale(1.04); box-shadow: 0 12px 24px -10px rgba(15, 23, 42, .35); }
  40% { transform: translate(calc(-100% - 8px), calc(2 * var(--row))) scale(1.04); box-shadow: 0 12px 24px -10px rgba(15, 23, 42, .35); }
  46%, 88% { transform: translate(calc(-100% - 8px), calc(2 * var(--row))); box-shadow: none; opacity: 1; }
  92% { transform: translate(calc(-100% - 8px), calc(2 * var(--row))); opacity: 0; }
  96% { transform: none; opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes pd-cursor { 0%, 8% { opacity: 0; } 12%, 44% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pd-wa { 0% { background: #25d366; } 46% { background: #f59e0b; } 96% { background: #25d366; } }
.pd-toast {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; background: #0f172a; color: #fff; font-size: 13px; line-height: 1.45;
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .6); opacity: 0; transform: translateY(12px);
  animation: pd-toast 10s ease infinite;
}
.pd-toast b { display: block; font-weight: 600; }
.pd-toast__wa { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #25d366; }
@keyframes pd-toast { 0%, 48% { opacity: 0; transform: translateY(12px); } 54%, 86% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  .pd-ev--move, .pd-ev--move::after, .pd-ev--move .pd-wa, .pd-toast { animation: none; }
  .pd-toast { display: none; }
}

/* ─── Perché: la fascia del marchio ─── */
.why h2 { margin: 0; max-width: 30rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); margin-top: var(--s-8); }
.why-item { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .3); }
.why-item h3 { margin: 0; font: 500 1.4rem/1.3 var(--font-display); }
.why-item p { margin: 12px 0 0; line-height: 1.65; color: color-mix(in oklab, var(--ink) 85%, transparent); }

/* ─── Prezzi ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; padding: var(--s-7); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.pricing-card--premium { border-color: var(--action); box-shadow: 0 0 0 1px var(--action), 0 30px 60px -36px rgba(0, 85, 221, .45); }
.pricing-name { margin: 0; font: 600 20px/1.3 var(--font-text); letter-spacing: 0; }
.pricing-price { margin: 16px 0 0; color: #475569; }
.pricing-amount { margin-right: 4px; font: 600 48px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.pricing-annual { margin: 8px 0 0; font-size: 14px; color: #475569; }
.pricing-includes { margin: 28px 0 0; font-size: 15px; font-weight: 600; }
.pricing-features { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.pricing-features li { position: relative; padding-left: 26px; line-height: 1.5; color: var(--body); }
.pricing-features li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }
.pricing-features--rich { gap: 0; }
.pricing-features--rich li { padding-block: 12px; border-top: 1px solid var(--line); }
.pricing-features--rich li:first-child { border-top: 0; padding-top: 0; }
.pricing-features--rich li::before { top: calc(12px + .45em); }
.pricing-features--rich li:first-child::before { top: .45em; }
.pricing-features--rich strong { display: block; font-weight: 600; color: var(--ink); }
.pricing-features--rich span:not(.pricing-soon-badge) { display: block; margin-top: 4px; font-size: 15px; line-height: 1.55; }
.pricing-check-soon strong { color: #475569; }
.pricing-soon-badge { margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #8a5a00; background: #fff4dc; vertical-align: 1px; }
.pricing-foot { margin-top: auto; padding-top: var(--s-6); display: grid; gap: 10px; justify-items: start; }
.pricing-trial { margin: 0; font-size: 14px; color: #475569; }
.pricing-lab { display: flex; gap: 16px; align-items: baseline; margin-top: var(--s-6); padding: 20px 24px; border: 1px dashed #cbd5e1; border-radius: var(--r-md); }
.pricing-lab p { margin: 0; line-height: 1.6; color: var(--body); }
.pricing-lab strong { color: var(--ink); font-weight: 600; }
.pricing-lab-badge { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink); background: #f1f5f9; }

/* ─── Domande: a fisarmonica, la prima aperta ─── */
.faq-head p { margin: 16px 0 0; max-width: 24rem; color: var(--muted); line-height: 1.6; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative; display: block; padding: 20px 44px 20px 0; cursor: pointer; list-style: none;
  font: 600 18px/1.4 var(--font-text); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { color: var(--action); }
.faq-item p a, .faq-head a, .access-note a { color: var(--action); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--action) 30%, transparent); text-underline-offset: 3px; }
.faq-item p a:hover, .faq-head a:hover, .access-note a:hover { text-decoration-color: currentColor; }
.faq-item p { margin: 0 0 22px; max-width: 46rem; line-height: 1.65; color: var(--body); }

/* ─── Accesso ─── */
.access-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); padding: var(--s-8); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(15, 23, 42, .3); }
.access-eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--action); }
.access-lead h2 { margin: 0; }
.access-desc { margin: 16px 0 0; max-width: 36rem; line-height: 1.6; color: var(--body); }
.access-cta { margin: 24px 0 0; }
.access-note { margin: 24px 0 0; color: #475569; line-height: 1.6; }
.access-form { position: relative; margin-top: 12px; }
.access-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.access-field { display: grid; gap: 6px; }
.access-field label { font-size: 14px; font-weight: 500; }
.access-input { height: 48px; width: 100%; padding: 0 14px; font: 400 16px/1 var(--font-text); color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-radius: var(--r-sm); }
.access-input:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.access-submit { margin-top: 16px; }
.access-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.access-form-msg { margin: 12px 0 0; min-height: 1.5em; }
.access-form-msg a { text-decoration: underline; }
.access-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; align-self: start; }
.access-step { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 24px 0; border-bottom: 1px solid var(--line); }
.access-step:first-child { padding-top: 0; }
.access-step:last-child { border-bottom: 0; }
.access-step::before { content: counter(step); grid-row: 1 / span 2; font: 500 30px/1 var(--font-display); color: var(--action); }
.access-step h3 { margin: 0 0 6px; font: 600 18px/1.35 var(--font-text); letter-spacing: 0; }
.access-step p { margin: 0; line-height: 1.6; color: var(--body); }

/* ─── Footer ─── */
.close-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-7); margin-bottom: var(--s-8); }
.close-row h2 { margin: 0; }
.close-row .t-lead { margin: 12px 0 0; max-width: 40rem; }
.footer__legal { margin-top: var(--s-7); }
.footer-copy { margin: 0; font-size: 14px; color: var(--muted); }
.footer-copy + .footer-copy { margin-top: 8px; }
.footer-copy a { text-decoration: underline; text-underline-offset: 3px; }

/* ─── Larghezze ─── */
@media (max-width: 1100px) {
  .pd-span-8, .pd-span-6 { grid-column: span 12; }
  .pd-scenes-row .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-scenes-row .scene + .scene { padding-left: 0; border-left: 0; }
  .pd-span-4 { grid-column: span 6; }
  .pd-rows-2 { grid-row: auto; }
  .pd-mini--agenda { min-height: 340px; }
  .access-panel { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
  .why-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .pricing-grid { grid-template-columns: 1fr; }
  .close-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .pd-span-4 { grid-column: span 12; }
  .pd-scenes-row .scenes { grid-template-columns: 1fr; }
  .pd-card--photo { min-height: 240px; }
  .pd-card { padding: 24px; border-radius: 20px; }
  .pd-shot { margin: 24px -24px -24px 24px; }
  .pd-card .pd-day { --row: 34px; }
  .pd-card .pd-day__cols, .pd-card .pd-day__grid { grid-template-columns: 40px repeat(3, minmax(0, 1fr)); column-gap: 4px; }
  .pd-card .pd-ev { padding: 4px 5px 4px 6px; font-size: 12px; }
  .pd-card .pd-ev span, .pd-card .pd-wa { display: none; }
  .hero-main { padding: calc(var(--nav) + 48px) 0 64px; }
  .pd-hero-shot { margin-top: 44px; }
  .pd-window { border-radius: 12px; }
  .pd-window__bar { height: 30px; }
  .pd-window__bar span { display: none; }
  /* Sul telefono la dashboard intera è illeggibile: si inquadra il centro,
     senza la barra laterale (≈17% della larghezza della schermata). */
  .pd-window { aspect-ratio: 4 / 3.4; }
  .pd-window video { width: 175%; max-width: none; margin-left: -36%; }
  .pd-hero-specs { font-size: 16px; text-align: left; }
  .facts { flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
  .hero-actions .btn { width: 100%; }
  .access-panel { padding: var(--s-6) var(--s-5); }
  .access-fields { grid-template-columns: 1fr; }
  .access-submit { width: 100%; }
  .pricing-card { padding: var(--s-6) var(--s-5); }
  .pricing-lab { flex-direction: column; gap: 10px; }
  .ba-modes { display: none; }
}
@media (max-width: 379px) {
  .nav-login { display: none; }
  .nav__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 760px) {
  .pd-card .pd-day__views { display: none; }
  .pd-card .pd-day__cols, .pd-card .pd-day__grid { grid-template-columns: 40px repeat(2, minmax(0, 1fr)); }
  .pd-card .pd-day__cols > :nth-child(4), .pd-card .pd-day__lane:nth-child(4) { display: none; }
  .pd-card .pd-day { --row: 46px; }
  .pd-card .pd-ev b { white-space: normal; padding-right: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* il prima/dopo largo: testo a sinistra, cursore a destra */
.pd-compare-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; align-items: center; }
.pd-compare-wide .ba { margin: 0; }
.pd-compare-text > p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); }
@media (max-width: 760px) { .pd-compare-wide { grid-template-columns: 1fr; } }

/* ─── Premium e «Il tuo studio, da oggi»: scuri, come prima ───
   La banda navy della sidebar (la sfumatura di style.css, --navy-band) con il
   ciano del logo per le spunte e l'occhiello. ground-inverse del kit inverte
   inchiostro e azione: il bottone principale diventa bianco su navy. */
.pricing-card--premium, .access-panel {
  --line: rgba(255, 255, 255, .14);
  background: linear-gradient(165deg, #00102f 0%, #01203f 55%, #0d2f4f 100%);
  border: 0; color: #fff;
}
.pricing-card--premium { box-shadow: 0 30px 60px -30px rgba(1, 32, 63, .6); }
.pricing-card--premium .pricing-name { color: #00b1d3; }
.pricing-card--premium .pricing-price, .pricing-card--premium .pricing-annual, .pricing-card--premium .pricing-trial { color: rgba(255, 255, 255, .8); }
.pricing-card--premium .pricing-amount, .pricing-card--premium .pricing-includes, .pricing-card--premium .pricing-features--rich strong { color: #fff; }
.pricing-card--premium .pricing-features li { color: rgba(255, 255, 255, .84); }
.pricing-card--premium .pricing-features li::before { border-color: #00b1d3; }
.pricing-card--premium .pricing-check-soon strong { color: rgba(255, 255, 255, .82); }
.access-panel { box-shadow: 0 30px 60px -36px rgba(1, 32, 63, .55); }
.access-eyebrow { color: #00b1d3; }
.access-lead h2, .access-step h3, .access-field label { color: #fff; }
.access-desc, .access-note, .access-step p, .access-form-msg { color: rgba(255, 255, 255, .85); }
.access-note a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.access-input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.access-input::placeholder { color: rgba(255, 255, 255, .45); }
.access-input:focus-visible { outline-color: #00b1d3; }
select.access-input option { color: #0f172a; background: #fff; }
.access-step::before { color: #00b1d3; }

/* «Easy peasy.» in grande nel footer: la stessa frase del titolo, decorativa.
   Interlinea e margine lasciano spazio alle discendenti (y, p). */
.pd-close-word { margin: 0 0 .18em; font: italic 600 clamp(56px, 11vw, 176px)/1 var(--font-display); letter-spacing: -0.02em; color: #fff; }

/* ─── Semplice dal primo giorno ───
   La catena paziente → incasso a tutta larghezza (il messaggio principale),
   poi tre riquadri con un dettaglio d'interfaccia disegnato. */
.pd-simple--chain { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; background: linear-gradient(160deg, #eaf2ff, #f6f9ff 60%); border-color: #d6e4fb; }
.pd-simple__text p { margin: 14px 0 0; max-width: 34rem; font-size: 17px; line-height: 1.6; color: var(--body); }
.pd-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; position: relative; }
.pd-chain::before { content: ""; position: absolute; left: 10%; right: 10%; top: 22px; height: 2px; background: linear-gradient(90deg, #c7dbfb, #0055dd); border-radius: 2px; }
.pd-chain::after {
  content: ""; position: absolute; top: 18px; left: 10%; width: 10px; height: 10px; border-radius: 50%;
  background: #00b1d3; box-shadow: 0 0 0 4px rgba(0, 177, 211, .2);
  animation: pd-pulse 3.2s cubic-bezier(.45, 0, .2, 1) infinite;
}
@keyframes pd-pulse { 0% { left: 10%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(90% - 10px); opacity: 0; } }
.pd-chain__step { position: relative; display: grid; align-content: start; justify-items: center; gap: 2px; text-align: center; font-size: 13px; }
.pd-chain__step b { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pd-chain__step i { font-style: normal; color: #475569; line-height: 1.35; }
.pd-chain__icon {
  position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: #fff; border: 1px solid #d6e4fb; color: var(--action); font-weight: 600; font-size: 13px;
  box-shadow: 0 8px 18px -12px rgba(1, 32, 63, .4);
}
.pd-chain__icon::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.pd-chain__icon:not([class*="--"])::before { display: none; }
.pd-chain__icon--cal { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.pd-chain__icon--doc { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M9 12h7M9 16h5'/%3E%3C/svg%3E"); }
.pd-chain__icon--inv { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E"); }
.pd-chain__icon--ok { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); }
.pd-chain__step--done .pd-chain__icon { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.pd-chain__step--done i { color: #166534; }
.pd-simple > h3 { margin: 24px 0 0; font: 600 18px/1.35 var(--font-text); letter-spacing: 0; }
.pd-simple > p { margin: 8px 0 0; line-height: 1.6; color: var(--body); }
.pd-mini--browser { display: grid; gap: 12px; }
.pd-url { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid #cbd5e1; color: #334155; }
.pd-url i { width: 10px; height: 12px; border: 2px solid #16a34a; border-radius: 3px 3px 2px 2px; border-top-width: 5px; }
.pd-devices { display: flex; gap: 6px; }
.pd-devices span { flex: 1; padding: 6px 0; text-align: center; border-radius: 8px; background: #e8eef8; color: #334155; font-size: 12px; }
.pd-steps__head { display: flex; justify-content: space-between; font-size: 13px; }
.pd-steps__head span { color: #64748b; }
.pd-steps__bar { height: 6px; margin: 8px 0 10px; border-radius: 6px; background: #e2e8f0; overflow: hidden; }
.pd-steps__bar i { display: block; width: 33%; height: 100%; border-radius: inherit; background: var(--action); transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.pd-simple:hover .pd-steps__bar i { width: 50%; }
.pd-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pd-steps__list li { display: flex; align-items: center; gap: 8px; color: #334155; }
.pd-steps__list li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #94a3b8; }
.pd-steps__list .is-done { color: #64748b; text-decoration: line-through; text-decoration-color: #94a3b8; }
.pd-steps__list .is-done::before { border-color: #16a34a; background: #16a34a; box-shadow: inset 0 0 0 3px #fff; }
.pd-steps__list .is-next { font-weight: 600; color: var(--ink); }
.pd-steps__list .is-next::before { border-color: var(--action); }
.pd-mini--help { display: grid; gap: 8px; }

/* Preventivi e prenotazioni, nello studio */
.pd-mini--pay { background: #fff; }
.pd-mini--book { background: #fff; }
.pd-book__head { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pd-book__head span { color: #64748b; }
.pd-book__day { margin: 12px 0 8px; font-weight: 500; }
.pd-book__slots { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-book__slots span { padding: 6px 12px; border-radius: 8px; border: 1px solid #cbd5e1; color: #334155; font-variant-numeric: tabular-nums; }
.pd-book__slots .is-on { background: var(--action); border-color: var(--action); color: #fff; }

/* ─── La tua specializzazione non c'è ancora ───
   Una card azzurra sulla fascia navy: è l'invito della sezione, non una scheda. */
.pd-request {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center;
  --ink: #fff; --line: rgba(255, 255, 255, .18); color: #fff;
  background: radial-gradient(80% 120% at 100% 0%, rgba(0, 177, 211, .45), transparent 60%), linear-gradient(135deg, #0055dd, #01306a 70%);
}
.specs .pd-request { border-color: rgba(255, 255, 255, .14); }
.pd-request .pd-kicker { color: #9fe7f5; }
.pd-request .pd-card__title { max-width: 22ch; color: #fff; }
.pd-request__text > p:last-child { margin: 14px 0 0; max-width: 32rem; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.pd-request__form { position: relative; display: grid; gap: 14px; }
.pd-request .access-input { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.pd-request .access-input:focus-visible { outline-color: #9fe7f5; }
.pd-request .access-input[aria-invalid="true"] { border-color: #fecaca; }
.pd-request__submit { justify-self: start; background: #fff; color: #01306a; }
.pd-request__submit:hover { background: #e8f3ff; }
.pd-request__msg { margin: 0; color: rgba(255, 255, 255, .9); }
.pd-request .access-done { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.pd-request .access-done em { font-style: normal; color: rgba(255, 255, 255, .86); }

@media (max-width: 1100px) {
  .pd-simple--chain, .pd-request { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .pd-chain { grid-template-columns: 1fr; gap: 14px; }
  .pd-chain::before { left: 22px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(#c7dbfb, #0055dd); }
  .pd-chain::after { display: none; }
  .pd-chain__step { grid-template-columns: 46px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 14px; row-gap: 0; }
  .pd-chain__icon { grid-row: span 2; }
  .pd-chain__step b { margin-top: 4px; }
  .pd-request__submit { width: 100%; justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-chain::after { animation: none; display: none; }
  .pd-steps__bar i { transition: none; }
}


/* ─── Hero: testo a sinistra, lo studio in astratto a destra ───
   La griglia va sul `.wrap` con l'id di main davanti: il kit fa di ogni .wrap
   figlio di sezione un flex in colonna, con più specificità di una classe. */
@media (min-width: 1024px) {
  #top > .hero-main { text-align: left; }
  #top > .hero-main > .hero-main__inner {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 4vw, 72px);
    align-items: start;
  }
  #top > .hero-main > .hero-main__inner > :not(.hero-art) { grid-column: 1; justify-self: start; }
  #top > .hero-main > .hero-main__inner > .hero-art { grid-column: 2; grid-row: 1 / span 6; align-self: center; }
  .hero-title { max-width: 13ch; }
  .hero-actions { justify-content: flex-start; }
}
.hero-art { width: 100%; max-width: 560px; }
.studio-art { display: block; width: 100%; height: auto; overflow: visible; }
@media (max-width: 1023px) { .hero-art { display: none; } }

/* Il ciclo dura 10 s: la settimana si riempie, l'impulso va alla visita
   (che si scrive), poi alla fattura (che si compila e si segna pagata). */
.studio-art { --cyc: 10s; --ease: cubic-bezier(.22, 1, .36, 1); }
.sa-days rect { fill: #e2e8f0; }
.sa-days .is-today { fill: #0055dd; }
.sa-cell { fill: #f8fafc; stroke: #e8eef6; stroke-width: 1; }
.sa-tile { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sa-tile var(--cyc) var(--ease) infinite; animation-delay: calc(var(--i) * 0.14s); }
.sa-tile--a { fill: #cfe0fc; } .sa-tile--b { fill: #c9eef5; } .sa-tile--c { fill: #cdeee0; } .sa-tile--d { fill: #fde2cc; }
@keyframes sa-tile { 0% { opacity: 0; transform: scale(.85); } 6% { opacity: 1; transform: scale(1); } 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.96); } }
.sa-focus { fill: #0055dd; opacity: 0; transform-box: fill-box; transform-origin: center; animation: sa-focus var(--cyc) var(--ease) infinite; }
@keyframes sa-focus { 0%, 22% { opacity: 0; transform: scale(.85); } 27% { opacity: 1; transform: scale(1.04); } 31% { transform: scale(1); } 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
.sa-wire { fill: none; stroke: #9ec0f5; stroke-width: 1.6; stroke-dasharray: 4 6; opacity: 0; animation: sa-wire var(--cyc) linear infinite; }
@keyframes sa-wire { 0%, 28% { opacity: 0; } 32%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
.sa-card { animation: sa-float 6s ease-in-out infinite; }
.sa-card--bill { animation-delay: -3s; }
@keyframes sa-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.sa-type { fill: #cbd5e1; transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: sa-type var(--cyc) var(--ease) infinite; }
.sa-type--2 { animation-name: sa-type2; } .sa-type--3 { animation-name: sa-type3; }
@keyframes sa-type  { 0%, 44% { transform: scaleX(0); } 52%, 92% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes sa-type2 { 0%, 49% { transform: scaleX(0); } 56%, 92% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes sa-type3 { 0%, 53% { transform: scaleX(0); } 60%, 92% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
.sa-rows rect { fill: #e2e8f0; opacity: 0; animation: sa-row var(--cyc) var(--ease) infinite; }
.sa-rows rect:nth-child(n+3) { animation-delay: .2s; } .sa-rows rect:nth-child(n+5) { animation-delay: .4s; }
@keyframes sa-row { 0%, 70% { opacity: 0; } 75%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
.sa-paid { opacity: 0; transform-box: fill-box; transform-origin: left center; animation: sa-paid var(--cyc) var(--ease) infinite; }
@keyframes sa-paid { 0%, 80% { opacity: 0; transform: scale(.8); } 84% { opacity: 1; transform: scale(1.06); } 87%, 92% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; } }
/* L'impulso: dalla casella alla visita, poi giù alla fattura (offset-path). */
.sa-dot {
  fill: #00b1d3; stroke: #fff; stroke-width: 3; opacity: 0;
  offset-path: path("M146 139 C 210 139, 250 92, 330 92 L 452 92 L 452 160 C 452 210, 452 230, 452 268");
  animation: sa-dot var(--cyc) cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes sa-dot {
  0%, 30% { offset-distance: 0%; opacity: 0; }
  32% { opacity: 1; }
  42% { offset-distance: 45%; }
  60% { offset-distance: 45%; }
  70% { offset-distance: 100%; opacity: 1; }
  74%, 100% { offset-distance: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-art * { animation: none !important; }
  .sa-tile, .sa-focus, .sa-wire, .sa-rows rect, .sa-paid { opacity: 1; transform: none; }
  .sa-type { transform: none; }
  .sa-dot { display: none; }
}

/* ═══ Setup ═══ i tre passi del servizio di preparazione, numerati. */
.pd-setup__n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(160deg, #eaf2ff, #f6f9ff); border: 1px solid #d6e4fb;
  font: 600 18px/1 var(--font-display, inherit); color: #0055dd;
}
.pd-setup .pd-simple > h3 { margin-top: 18px; }
.pd-setup__note { margin: 24px 0 0; max-width: 46rem; line-height: 1.6; color: var(--muted); }
.pricing-setup { margin: var(--s-6) 0 0; padding: 18px 24px; border: 1px solid #e2e8f0; border-radius: var(--r-md); background: #fff; line-height: 1.6; color: var(--body); }
.pricing-setup strong { color: var(--ink); font-weight: 600; }
