/* Hero split: testo a sinistra, chat e telefono a destra (proposta D) */
.pd-hero{min-height:max(760px,100vh);text-align:left;align-items:stretch;padding:120px 16px 150px}
.pd-grid{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:center;width:100%;max-width:1240px;margin:0 auto}
.pd-hero .hero-in{max-width:none;align-items:flex-start}
.pd-hero .hero-actions{align-items:flex-start}
.pd-hero .hero-title{font-size:clamp(34px,5.2vw,68px)}
.pd-works{display:flex;align-items:center;gap:10px;margin:0;font-size:14px;font-weight:600;color:#a8a49b}
.pd-works-icons{display:inline-flex;align-items:center;gap:10px;color:#ffffff}
.pd-works svg{width:22px;height:22px;fill:currentColor}

/* Chat: card bianca, con scelta Claude o ChatGPT */
.pd-duo{position:relative;display:flex;align-items:flex-end;justify-content:center;width:100%}
.pd-chat{width:min(100%,420px);min-width:0;box-sizing:border-box;padding:20px;border-radius:36px;background:#ffffff;color:#0e0e0d;text-align:left;box-shadow:0 60px 120px -40px rgba(0,0,0,.6)}
@media (min-width:860px){.pd-chat{rotate:-1.5deg}}
.pd-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}
.pd-ai{display:inline-flex;padding:3px;border-radius:999px;background:#f1ede4}
.pd-ai button{height:30px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:#5f5b53;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer}
.pd-ai button[aria-pressed="true"]{background:#0e0e0d;color:#ffffff}
html:not([data-ai="chatgpt"]) [data-ai="chatgpt"]{display:none}
html[data-ai="chatgpt"] [data-ai="claude"]{display:none}
.pd-dots{display:flex;gap:6px}
.pd-dots span{width:9px;height:9px;border-radius:50%;background:#d6d2c9}
.pd-thread{display:flex;flex-direction:column;gap:10px}
.pd-step{max-width:85%;margin:0;padding:12px 16px;border-radius:20px;font-size:16px;font-weight:600;line-height:1.35}
.pd-step-u{align-self:flex-end;background:#0e0e0d;color:#ffffff}
.pd-step-a{align-self:flex-start;background:#f1ede4;color:#0e0e0d}
.pd-step-chart{width:85%}
.pd-step-pill{align-self:flex-start;max-width:100%;padding:8px 14px;border-radius:999px;background:#ffdd1f;color:#0e0e0d;font-size:14px;font-weight:800}

/* Grafico nella bolla: barre in basso, etichette sotto */
.pd-chart{display:flex;flex-direction:column;gap:6px;margin:0 0 10px}
.pd-bars{display:flex;align-items:flex-end;gap:8px;height:110px}
.pd-chart-sm .pd-bars{height:70px}
.pd-bar{flex:1;border-radius:8px 8px 3px 3px;background:#0e0e0d}
.pd-bar:last-child{background:#ffdd1f}
.pd-labels{display:flex;gap:8px}
.pd-labels span{flex:1;text-align:center;font-size:11px;font-weight:600;color:#5f5b53}

/* Telefono del cliente: si aggiorna quando la chat propone la modifica */
.pd-phone{flex:none;box-sizing:border-box;width:200px;margin-left:-8px;margin-bottom:-48px;padding:10px;border-radius:34px;background:#0e0e0d;rotate:3deg;box-shadow:0 60px 100px -40px rgba(0,0,0,.6)}
.pd-screen{box-sizing:border-box;min-height:330px;padding:16px 14px;border-radius:26px;background:#faf7f0;color:#0e0e0d;text-align:left}
.pd-screen-top{margin:0 0 12px;font-size:11px;font-weight:600;color:#5f5b53}
.pd-app{display:flex;flex-direction:column;gap:8px}
.pd-app-title{margin:0;font-size:17px;font-weight:800;letter-spacing:-.02em}
.pd-app-sub{margin:0;font-size:12px;font-weight:600;color:#5f5b53}
.pd-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:#ffffff;font-size:14px;font-weight:600}
.pd-newrow{border:2px solid #ffdd1f}
.pd-val{position:relative;min-width:64px;text-align:right}
.pd-old{display:block}
.pd-new{position:absolute;right:0;top:0;display:block;white-space:nowrap}
.pd-ptoast{display:inline-flex;align-self:flex-start;margin-top:4px;padding:8px 14px;border-radius:999px;background:#ffdd1f;font-size:14px;font-weight:800}
html.js .pd-duo:not(.is-play) .pd-new,
html.js .pd-duo:not(.is-play) .pd-newrow,
html.js .pd-duo:not(.is-play) .pd-ptoast{opacity:0}
html:not(.js) .pd-old{opacity:0}
.pd-duo.is-play .pd-old{animation:val-old .3s ease 4.2s both}
.pd-duo.is-play .pd-new{animation:val-new .3s ease 4.2s both}
.pd-duo.is-play .pd-newrow{animation:pop-in .42s cubic-bezier(.34,1.56,.64,1) 4.2s both}
.pd-duo.is-play .pd-ptoast{animation:toast .45s cubic-bezier(.34,1.56,.64,1) 4.5s both}
.pd-duo.is-play .pd-hit{animation:pd-flash 1s ease 4.2s both}
@keyframes pd-flash{0%,100%{background:#fff}30%{background:#ffdd1f}}

/* Sequenza: le bolle entrano in ordine, le barre crescono dopo la prima risposta */
html.js .pd-step{opacity:0}
.pd-duo.is-play .pd-step{animation:pop-in .42s cubic-bezier(.34,1.56,.64,1) both;animation-delay:calc(var(--i)*.65s + .9s)}
.pd-chat .pd-bar{animation-delay:calc(1.55s + var(--i)*90ms);animation-play-state:paused}
.pd-duo.is-play .pd-bar{animation-play-state:running}
.pd-chart-sm .pd-bar{animation-delay:calc(.5s + var(--i)*90ms)}
html:not(.js) .pd-bar{animation:none}

@media (min-width:860px) and (max-width:1099px){
  .pd-chat{width:min(100%,380px)}
  .pd-phone{width:170px;margin-left:-60px}
}

@media (max-width:859px){
  .pd-hero{min-height:0;padding:96px 16px 120px;text-align:center}
  .pd-grid{grid-template-columns:minmax(0,1fr);justify-items:center}
  .pd-hero .hero-in,.pd-hero .hero-actions{align-items:center}
  .pd-hero .hero-title{font-size:clamp(34px,9.4vw,56px)}
  .pd-step{font-size:15px}
  .pd-duo{flex-direction:column;align-items:center}
  .pd-phone{width:190px;margin:-30px 0 0;rotate:2deg}
}

@media (prefers-reduced-motion:reduce){
  html.js .pd-step{opacity:1}
  .pd-duo.is-play .pd-step{animation:none}
  .pd-bar{animation:none;transform:none}
  .pd-duo.is-play .pd-old{opacity:0;animation:none}
  .pd-duo.is-play .pd-new,.pd-duo.is-play .pd-newrow,.pd-duo.is-play .pd-ptoast{opacity:1;animation:none}
  .pd-duo.is-play .pd-hit{animation:none}
}

/* Capitoli 5-7: chat dentro la scena (440x520) */
.pd-sc-chat{display:flex;flex-direction:column;gap:10px;padding:18px;border-radius:32px;background:#ffffff;box-shadow:0 40px 80px -40px rgba(0,0,0,.35)}
.pd-sc-label{font-size:13px;font-weight:600;color:#5f5b53}
.pd-sc-bubble{box-sizing:border-box;max-width:88%;margin:0;padding:11px 15px;border-radius:20px;font-size:16px;font-weight:600;line-height:1.35}
.pd-sc-u{align-self:flex-end;background:#0e0e0d;color:#ffffff}
.pd-sc-a{align-self:flex-start;width:88%;background:#f1ede4;color:#0e0e0d}
.pd-sc-pill{align-self:flex-start;max-width:100%;box-sizing:border-box;padding:10px 16px;border-radius:999px;background:#ffdd1f;border:1.5px solid #0e0e0d;color:#0e0e0d;font-size:16px;font-weight:800;line-height:1.2}
.pd-sc-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid rgba(0,0,0,.08);font-size:15px;font-weight:700}
.pd-sc-a .pd-chart{margin:0 0 8px}
.pd-sc-a .pd-labels span{font-size:12px}
.pd-sc-note{display:block;margin-top:6px;font-size:14px;font-weight:600;color:#5f5b53;line-height:1.35}
.pd-sc-bar{flex:1;border-radius:8px 8px 3px 3px;background:#0e0e0d;transform-origin:bottom;transform:scaleY(var(--v))}
.pd-sc-bar:last-child{background:#ffdd1f}
.pd-sc-dark{align-self:flex-start;margin-top:12px;padding:16px 20px;border-radius:28px;background:#0e0e0d;color:#ffffff;font-size:17px;font-weight:800}
.pd-sc-app{margin-top:14px}
.pd-sc-applabel{align-self:flex-start;margin-bottom:12px;padding:6px 12px;border-radius:999px;background:#0e0e0d;color:#ffffff;font-size:13px;font-weight:800;line-height:1.2}
.pd-sc-app .sc-num{height:180px;font-size:190px;line-height:180px;margin:4px 0 16px -4px}
.pd-sc-app .sc-num small{left:240px;bottom:20px;font-size:40px}
.pd-sc-app .sc-meal{padding:18px 20px}
.pd-sc-app .sc-meal-h b{font-size:34px}
.pd-sc-app .sc-opts{gap:8px;margin-top:14px}
.pd-sc-app .sc-opt{min-height:52px}
.pd-sc-app .sc-pill{display:flex;width:max-content;height:48px;margin:12px auto 0}
.prod .pd-when{color:#0e0e0d;opacity:.6;margin:0 0 10px}

/* Con o senza AI: due modi, dopo il racconto */
.pd-modes{background:#0e0e0d;color:#ffffff;padding:clamp(64px,7vw,110px) 16px}
.pd-modes-in{max-width:1100px;margin:0 auto}
.pd-modes-kicker{display:inline-flex;align-items:center;height:34px;padding:0 16px;border-radius:999px;background:#ffdd1f;color:#0e0e0d;font-size:14px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.pd-modes-title{margin:18px 0 0;font-size:clamp(32px,3.8vw,54px);font-weight:800;letter-spacing:-.05em;line-height:.98}
.pd-modes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;margin-top:36px}
.pd-mode{margin:0;padding:32px;border-radius:32px;box-sizing:border-box;min-width:0}
.pd-mode-chat{background:#ffffff;color:#0e0e0d}
.pd-mode-app{background:#1c1b19;color:#ffffff;border:1px solid rgba(255,255,255,.12)}
.pd-mode-label{display:block;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#5f5b53}
.pd-mode-app .pd-mode-label{color:rgba(255,255,255,.6)}
.pd-mode-title{margin:12px 0 0;font-size:26px;font-weight:800;letter-spacing:-.04em;line-height:1.1}
.pd-steps{list-style:none;margin:28px 0 0;padding:0;display:flex;flex-direction:column;gap:18px}
.pd-steps li{display:flex;align-items:center;gap:14px}
.pd-steps p{margin:0;font-size:17px;font-weight:700;line-height:1.3}
.pd-num{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:#ffdd1f;color:#0e0e0d;font-size:20px;font-weight:800;line-height:1}
.pd-mode-list{list-style:none;margin:28px 0 0;padding:0;display:flex;flex-direction:column;gap:16px}
.pd-mode-list li{position:relative;padding-left:24px;font-size:17px;font-weight:600;line-height:1.35;color:rgba(255,255,255,.9)}
.pd-mode-list li::before{content:"";position:absolute;left:0;top:.45em;width:10px;height:10px;border-radius:50%;background:#ffdd1f}
.pd-modes-note{margin:28px 0 0;font-size:16px;font-weight:600;line-height:1.45;color:rgba(255,255,255,.7);text-align:center}

/* Gerarchia: H1 il titolo più grande, giallo solo su H1 e bottone */
.hours-title{font-size:clamp(36px,4.6cqw,64px)}
.closing-title{font-size:clamp(36px,5.2vw,68px)}
.pd-hero .wl-perk{color:#d6d2c9;font-weight:600}
.pd-hero .pd-works{margin-top:14px}

/* Sezione ore: card compatte, orologio che torna indietro e chat */
.pd-hours .feat{min-height:0;justify-content:flex-start;gap:20px}
.pd-hours .feat h3{font-size:clamp(26px,2.6cqw,36px);line-height:1.05}
.pd-hours .feat p{margin-top:-6px}
.hr-vis{height:112px;display:flex;align-items:center}
.hr-clock{width:96px;height:96px;color:#0e0e0d}
.hr-min{transform-box:view-box;transform-origin:48px 48px}
.hr-chat{display:flex;flex-direction:column;gap:8px;width:100%;max-width:360px}
.hr-b{align-self:flex-start;padding:10px 16px;border-radius:20px 20px 20px 6px;background:#2b2a27;color:#ffffff;font-size:16px;font-weight:600;line-height:1.3}
.hr-b-me{align-self:flex-end;border-radius:20px 20px 6px 20px;background:#ffdd1f;color:#0e0e0d}
@keyframes hr-back{to{transform:rotate(-360deg)}}
@keyframes hr-pop{from{opacity:0;transform:translateY(10px) scale(.94)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  .hr-min{animation:hr-back 8s linear infinite}
  @supports (animation-timeline:view()){
    .hr-b{animation:hr-pop linear both;animation-timeline:view();animation-range:entry 30% cover 34%}
    .hr-b-me{animation-range:entry 70% cover 46%}
  }
}
