/* Raccolta contatti: illustrazione locale, senza moduli o richieste di rete. */
.lead-detail { background: #fff; }
.lead-detail__figure { margin: 48px 0 0; }
.lead-flow { border: 9px solid #000; border-radius: 16px; overflow: hidden; background: #f1f1f1; color: #111; }
.lead-flow__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; background: #fff; border-bottom: 1px solid #d8d8d8; }
.lead-flow__logo { display: block; width: 146px; height: auto; }
.lead-flow__label { font: 500 12px/1.5 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.lead-flow__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 28px 28px 20px; list-style: none; }
.lead-flow__steps li { min-width: 0; }
.lead-flow__step { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 0 16px; border: 0; border-bottom: 2px solid #ccc; color: #555; text-align: left; font: 500 15px/1.45 'JetBrains Mono', monospace; cursor: pointer; }
.lead-flow__number { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid #aaa; border-radius: 50%; font-size: 13px; }
.lead-flow__step[aria-current="step"] { color: #000; border-color: #000; }
.lead-flow__step[aria-current="step"] .lead-flow__number { color: #fff; border-color: #000; background: #000; }
.lead-flow__step:focus-visible, .lead-flow__toggle:focus-visible { outline: 2px solid #111; outline-offset: 5px; }
.lead-flow__screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 28px; padding: 0 28px 28px; }
.lead-flow__screen { min-width: 0; position: relative; border: 1px solid #ccc; border-radius: 12px; background: #fff; padding: 22px; box-shadow: 0 8px 24px #00000005; }
.lead-flow__screen + .lead-flow__screen::before { content: '→'; position: absolute; left: -25px; top: 50%; color: #444; font: 500 22px 'JetBrains Mono', monospace; }
.lead-flow__screen-title { margin: 0 0 20px; font: 600 17px/1.5 'JetBrains Mono', monospace; letter-spacing: -.035em; }
.lead-flow__muted { color: #666; font: 400 12px/1.55 'Montserrat', sans-serif; }
.lead-flow__rules { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-flow__rule { padding: 8px 10px; border: 1px solid #dedede; border-radius: 8px; background: #f4f4f4; font: 400 12px/1.5 'Montserrat', sans-serif; }
.lead-flow__rule--chosen { background: #111; color: #fff; border-color: #111; transition: background .35s, color .35s; }
.lead-flow__field-label { display: block; margin: 22px 0 8px; font: 500 12px/1.6 'JetBrains Mono', monospace; }
.lead-flow__instruction { padding: 12px; border: 1px solid #ddd; border-radius: 8px; font: 400 13px/1.6 'Montserrat', sans-serif; }
.lead-flow__setting { display: flex; align-items: center; gap: 12px; margin-top: 22px; font: 400 12px/1.5 'Montserrat', sans-serif; }
.lead-flow__switch { width: 29px; height: 17px; border-radius: 20px; flex: 0 0 29px; background: #dedede; padding: 3px; }
.lead-flow__switch::before { content: ''; display: block; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.lead-flow__question { margin: 0 0 16px 28px; padding: 12px 15px; border-radius: 14px 14px 2px 14px; background: #111; color: #fff; font: 400 14px/1.6 'Montserrat', sans-serif; }
.lead-flow__form { padding: 14px; border-radius: 12px; background: #f4f4f5; font: 400 13px/1.45 'Montserrat', sans-serif; }
.lead-flow__form p { margin: 0 0 14px; }
.lead-flow__form-label { display: block; margin: 10px 0 5px; font-size: 12px; }
.lead-flow__input { display: flex; align-items: center; min-height: 37px; padding: 8px; border: 1px solid #a5a5a5; border-radius: 8px; background: #fff; overflow: hidden; white-space: nowrap; }
.lead-flow__value { display: inline-block; clip-path: inset(0); }
.lead-flow__send { display: block; margin-top: 14px; padding: 11px; border-radius: 8px; background: #000; color: #fff; text-align: center; }
.lead-flow__sent { display: block; margin-top: 12px; font: 500 12px/1.5 'JetBrains Mono', monospace; text-align: center; }
.lead-flow__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.lead-flow__metric { padding: 12px; border: 1px solid #ddd; border-radius: 9px; background: #f5f5f5; font: 400 11px/1.5 'Montserrat', sans-serif; }
.lead-flow__metric b { display: block; margin-top: 8px; font: 600 28px/1 'JetBrains Mono', monospace; }
.lead-flow__contact { padding: 16px; border: 1px solid #111; border-radius: 10px; }
.lead-flow__contact strong { display: block; font: 600 17px/1.5 'JetBrains Mono', monospace; letter-spacing: -.04em; }
.lead-flow__email { display: block; margin-top: 3px; font: 400 12px/1.6 'Montserrat', sans-serif; overflow-wrap: anywhere; }
.lead-flow__badge { display: inline-block; margin-top: 15px; padding: 5px 8px; border-radius: 4px; background: #e9e9e9; font: 500 11px/1.5 'JetBrains Mono', monospace; }
.lead-flow__source { display: block; margin-top: 15px; font: 400 12px/1.6 'Montserrat', sans-serif; }
.lead-flow__conversation { display: block; margin-top: 15px; padding-top: 14px; border-top: 1px solid #ddd; font: 500 12px/1.5 'JetBrains Mono', monospace; }
.lead-flow__export { display: inline-block; margin-top: 20px; padding: 10px 13px; border: 1px solid #bbb; border-radius: 6px; font: 400 12px/1.5 'JetBrains Mono', monospace; }
.lead-flow__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-top: 1px solid #d8d8d8; background: #fff; color: #666; font: 400 11px/1.6 'JetBrains Mono', monospace; }
.lead-flow__toggle { flex-shrink: 0; display: none; padding: 7px 0; color: #111; font: 500 12px/1.5 'JetBrains Mono', monospace; cursor: pointer; }
.lead-flow[data-enhanced] .lead-flow__toggle { display: block; }
.lead-flow[data-enhanced][data-phase="0"] .lead-flow__value,
.lead-flow[data-enhanced][data-phase="0"] .lead-flow__sent { visibility: hidden; }
.lead-flow[data-enhanced]:not([data-phase="2"]) .lead-flow__contact { opacity: .25; }
.lead-flow[data-phase="1"] .lead-flow__value--name { animation: lead-type 1s .6s steps(13, end) both; }
.lead-flow[data-phase="1"] .lead-flow__value--email { animation: lead-type 1.4s 1.9s steps(17, end) both; }
.lead-flow[data-phase="1"] .lead-flow__sent { animation: lead-reveal .4s 4.5s both; }
.lead-flow[data-phase="1"] .lead-flow__send { animation: lead-send .6s 4s both; }
.lead-flow[data-phase="2"] .lead-flow__contact { animation: lead-arrive .6s ease-out both; }
.lead-flow[data-phase="0"] .lead-flow__rule--chosen { animation: lead-select .6s .4s both; }
.lead-flow[data-paused="true"] * { animation-play-state: paused !important; }
.lead-detail__captions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.lead-detail__captions h3 { margin: 0; font: 700 22px/1.4 'JetBrains Mono', monospace; letter-spacing: -.025em; }
.lead-detail__captions p { margin: 14px 0 0; color: #56565b; font-size: 16px; line-height: 1.65; }
@keyframes lead-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes lead-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes lead-send { 50% { transform: scale(.96); background: #444; } }
@keyframes lead-arrive { from { opacity: .25; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lead-select { from { background: #f4f4f4; color: #111; } to { background: #111; color: #fff; } }
@media (min-width: 1100px) and (max-width: 1279px) {
  .lead-flow__screen { padding: 16px; }
  .lead-flow__steps, .lead-flow__screens { gap: 22px; padding-inline: 20px; }
  .lead-flow__screen + .lead-flow__screen::before { left: -21px; font-size: 18px; }
}
@media (max-width: 1099px) {
  .lead-flow__screens { grid-template-columns: 1fr; gap: 28px; }
  .lead-flow__screen { padding: 24px; scroll-margin-top: 112px; }
  .lead-flow__screen + .lead-flow__screen::before { content: '↓'; left: calc(50% - 8px); top: -30px; }
  .lead-flow__steps { gap: 16px; }
  .lead-flow__step { align-items: flex-start; flex-direction: column; font-size: 12px; }
  .lead-flow__rules { max-width: 480px; }
  .lead-flow__form { max-width: 560px; margin: auto; }
  .lead-flow__question { max-width: 380px; margin-left: auto; }
  .lead-detail__captions { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 639px) {
  .lead-detail__figure { margin-top: 32px; }
  .lead-flow__top { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 16px; }
  .lead-flow__logo { width: 124px; }
  .lead-flow__steps { padding: 20px 16px; gap: 10px; }
  .lead-flow__screens { padding: 0 12px 20px; }
  .lead-flow__screen { padding: 16px; }
  .lead-flow__footer { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-flow * { animation: none !important; transition: none !important; }
}
