/* SellZone · pagina /analisi: valutazione gratuita del team commerciale con il codice, report (usa le basi di piattaforma.css) */
.an-top { padding-top: clamp(40px, 6vw, 80px); }
.an-top h1 { font-size: clamp(32px, 4.6vw, 56px); max-width: 20ch; }
.an-top h1, .rp-title { text-wrap: balance; }
.an-ok { margin-top: 22px; max-width: 900px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(46, 230, 197, .45); background: rgba(46, 230, 197, .08); color: var(--muted); }
.an-ok b { color: #9ff3e2; }
[hidden] { display: none !important; } /* (i moduli con display: grid altrimenti restano visibili) */

/* il voto (quadrante) */
.dial { --v: 0; width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative;
  background: radial-gradient(closest-side, #10101a 76%, transparent 77% 100%), conic-gradient(var(--teal) calc(var(--v) * 1%), rgba(255, 255, 255, .08) 0); }
.dial b { font-size: 34px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.dial small { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* analisi gratuita: istruzioni e strumento */
.an-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; margin-top: 40px; align-items: start; }
.an-left { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: rgba(255, 255, 255, .02); }
.an-steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.an-steps li { counter-increment: s; position: relative; padding-left: 42px; display: grid; gap: 2px; }
.an-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #08080f; background: var(--grad); }
.an-steps b { font-size: 15.5px; } .an-steps span { color: var(--muted); font-size: 14px; }
.privacy { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.privacy summary { cursor: pointer; font-weight: 650; color: var(--teal); list-style: none; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::before { content: "＋ "; } .privacy[open] summary::before { content: "－ "; }
.privacy ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.privacy li { color: var(--muted); font-size: 14px; } .privacy li b { color: var(--text); }
.tool { position: relative; border: 1px solid var(--line-2); border-radius: 22px; padding: 22px; background: linear-gradient(180deg, var(--card-2), var(--card)); box-shadow: var(--shadow); min-height: 380px; }
.tool-st { display: none; } .tool-st.on { display: grid; gap: 14px; animation: pop .35s both; }
.tool-st[data-st="read"].on, .tool-st[data-st="done"].on, .tool-st[data-st="sent"].on { place-items: center; text-align: center; min-height: 330px; align-content: center; }
.tool h3 { font-size: 19px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.code-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.code-form input { font: inherit; font-size: 19px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); background: #0c0c14; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; width: 100%; font-variant-numeric: tabular-nums; }
.code-form input::placeholder { color: var(--dim); font-weight: 600; }
.code-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46, 230, 197, .15); }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.hello { color: var(--muted); } .hello b { color: var(--text); }
.drop { position: relative; display: grid; place-items: center; gap: 8px; text-align: center; padding: 46px 20px; border: 2px dashed var(--line-2); border-radius: 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--teal); background: rgba(46, 230, 197, .05); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop b { font-size: 19px; } .drop > span { color: var(--muted); font-size: 14.5px; } .drop u { color: var(--teal); text-underline-offset: 3px; }
.drop-ico { width: 54px; height: 54px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(91, 140, 255, .7); }
.drop-ico i { width: 18px; height: 22px; border: 3px solid #08080f; border-top: 0; border-radius: 0 0 4px 4px; position: relative; top: 5px; }
.drop-ico i::before { content: ""; position: absolute; left: 50%; top: -16px; width: 3px; height: 18px; background: #08080f; transform: translateX(-50%); }
.drop-ico i::after { content: ""; position: absolute; left: 50%; top: -17px; width: 9px; height: 9px; border-left: 3px solid #08080f; border-top: 3px solid #08080f; transform: translateX(-50%) rotate(45deg); }
.drop:focus-within { outline: 2px solid var(--teal); outline-offset: 3px; }
.safe { color: var(--muted); font-size: 13.5px; padding: 10px 12px; border-radius: 12px; background: rgba(46, 230, 197, .06); border: 1px solid rgba(46, 230, 197, .25); }
.safe::before { content: "🔒 "; }
.mobile-note { display: none; color: var(--muted); font-size: 14px; } .mobile-note a { color: var(--teal); }
@media (hover: none) and (pointer: coarse) { .mobile-note { display: block; } }
.tool-err { min-height: 0; color: #ffd79a; font-size: 14.5px; } .tool-err:empty { display: none; }
.tool-err:not(:empty) { padding: 10px 12px; border-radius: 12px; background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .4); }
.spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .1); border-top-color: var(--teal); animation: turn 1s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.t-more { font-size: 14.5px; color: var(--muted); }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.lead-form input:not([type=checkbox]) { font: inherit; color: var(--text); background: #0c0c14; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; width: 100%; }
.lead-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46, 230, 197, .15); }
.lead-form .full { grid-column: 1 / -1; }
.lead-form .check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; }
.lead-form .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); }
.lead-form .check a { color: var(--teal); }
.link-btn { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.done-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #08080f; background: var(--grad); }
@media (max-width: 900px) { .an-grid { grid-template-columns: 1fr; } .tool { min-height: 0; } .tool-st[data-st="read"].on, .tool-st[data-st="done"].on, .tool-st[data-st="sent"].on { min-height: 220px; } }
@media (max-width: 520px) { .tool { padding: 16px; } .lead-form { grid-template-columns: 1fr; } .drop { padding: 34px 14px; } .code-form input { font-size: 17px; } }

/* il report dell'analisi */
.report { margin-top: 26px; border: 1px solid var(--line-2); border-radius: 26px; padding: clamp(18px, 3vw, 34px); background: linear-gradient(180deg, #12121d, #0b0b13); box-shadow: var(--shadow); display: grid; gap: 30px; scroll-margin-top: 80px; }
.report[hidden] { display: none; }
.rp-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; align-items: center; }
.rp-head .dial { width: 150px; height: 150px; } .rp-head .dial b { font-size: 46px; }
.rp-head .eyebrow { margin-bottom: 8px; }
.rp-title { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; }
.rp-sum { color: var(--muted); margin-top: 12px; font-size: 16.5px; max-width: 75ch; }
.rp-meta { color: var(--dim); font-size: 13.5px; margin-top: 10px; }
.rp-wait { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; border: 1px dashed var(--line-2); text-align: center; color: var(--muted); font-size: 13px; padding: 16px; gap: 6px; }
.rp-wait .spin { width: 34px; height: 34px; border-width: 3px; }
.rp-state { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--muted); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rp-state b { color: var(--text); }
.rp-state.warn { border-color: rgba(255, 181, 71, .4); background: rgba(255, 181, 71, .08); }
.rp-sec { display: grid; gap: 14px; }
.report [data-ai] { display: grid; gap: 30px; } .report [data-ai]:empty { display: none; }
.rp-sec > h3 { font-size: 22px; } .rp-sec > p.note { margin-top: -6px; }
.rp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kp { display: grid; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); align-content: start; }
.kp small { color: var(--muted); font-size: 13px; } .kp b { font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kp span { color: var(--dim); font-size: 13px; }
.kp.warn { border-color: rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .07); } .kp.warn b { color: #ffd79a; }
.kp.good { border-color: rgba(46, 230, 197, .35); background: rgba(46, 230, 197, .06); } .kp.good b { color: #9ff3e2; }
.kp-tag { justify-self: start; font-size: 11.5px; font-weight: 750; padding: 2px 9px; border-radius: 999px; background: rgba(255, 181, 71, .18); color: #ffd79a; letter-spacing: .02em; }
.kp.good .kp-tag { background: rgba(46, 230, 197, .16); color: #9ff3e2; }
.rp-now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rp-now .kp b { font-size: 38px; }
.rp-fix { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(46, 230, 197, .3); background: rgba(46, 230, 197, .05); color: var(--muted); font-size: 14.5px; }
.rp-fix b { color: var(--text); }
.slots { display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: 74px minmax(0, 1fr) minmax(150px, auto); gap: 12px; align-items: center; }
.slot > span { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.slot > i { height: 22px; border-radius: 7px; background: var(--grad); width: var(--w); min-width: 4px; }
.slot.slow > i { background: repeating-linear-gradient(45deg, #ffb547 0 7px, #c98a2b 7px 14px); }
.slot > b { font-size: 13.5px; font-weight: 600; } .slot.slow > b { color: #ffd79a; }
.slot-legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--dim); font-size: 12.5px; }
.slot-legend span::before { content: ""; display: inline-block; width: 22px; height: 10px; border-radius: 4px; background: var(--grad); margin-right: 6px; vertical-align: -1px; }
.slot-legend span.slow::before { background: repeating-linear-gradient(45deg, #ffb547 0 5px, #c98a2b 5px 10px); }
.losses { display: grid; gap: 12px; }
.loss { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.loss > div { padding: 18px; display: grid; gap: 8px; align-content: start; }
.loss-l { background: rgba(255, 181, 71, .05); border-right: 1px solid var(--line); }
.loss-r { background: rgba(46, 230, 197, .04); }
.loss small { font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.loss-r small { color: var(--teal); }
.loss h4 { margin: 0; font-size: 17px; line-height: 1.3; }
.loss p { color: var(--muted); font-size: 14.5px; margin: 0; }
.loss q, .forza q, .ar q { display: block; color: var(--text); font-size: 14px; font-style: italic; border-left: 3px solid var(--line-2); padding-left: 10px; }
.loss .measure { font-size: 13.5px; } .loss .measure b { color: var(--text); }
.peso { justify-self: start; font-size: 12px; font-weight: 750; padding: 3px 10px; border-radius: 999px; }
.peso.alto { background: #ffb547; color: #1a1205; } .peso.medio { background: rgba(255, 181, 71, .25); color: #ffd79a; } .peso.basso { background: rgba(255, 255, 255, .08); color: var(--muted); }
.areas { display: grid; gap: 8px; }
.ar { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.ar summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) 64px; gap: 14px; align-items: center; padding: 12px 14px; }
.ar summary::-webkit-details-marker { display: none; }
.ar summary > span { font-size: 14.5px; font-weight: 600; }
.ar summary > i { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .07); position: relative; overflow: hidden; }
.ar summary > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: var(--grad); }
.ar.low summary > i::after { background: repeating-linear-gradient(45deg, #ffb547 0 7px, #c98a2b 7px 14px); }
.ar summary > b { text-align: right; font-variant-numeric: tabular-nums; }
.ar.low summary > b { color: #ffd79a; }
.ar > div { padding: 0 14px 14px; display: grid; gap: 8px; color: var(--muted); font-size: 14.5px; }
.forza { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.forza > div { padding: 16px; border-radius: 16px; border: 1px solid rgba(46, 230, 197, .3); background: rgba(46, 230, 197, .05); display: grid; gap: 6px; align-content: start; }
.forza p { color: var(--muted); font-size: 14.5px; margin: 0; }
.todo { list-style: none; counter-reset: t; padding: 0; margin: 0; display: grid; gap: 10px; }
.todo li { counter-increment: t; position: relative; padding: 14px 16px 14px 54px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.todo li::before { content: counter(t); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #08080f; background: var(--grad); }
.rp-accs { width: 100%; border-collapse: collapse; font-size: 14px; }
.rp-accs th, .rp-accs td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); } .rp-accs th { color: var(--muted); font-weight: 600; }
.rp-accs td:not(:first-child), .rp-accs th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .rp-accs thead { display: none; }
  .rp-accs tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rp-accs td { padding: 0; border: 0; text-align: left !important; }
  .rp-accs td:first-child { grid-column: 1 / -1; font-weight: 700; }
  .rp-accs td[data-l]::before { content: attr(data-l); display: block; color: var(--dim); font-size: 12px; }
}
.rp-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px; border-radius: 20px; border: 1px solid rgba(46, 230, 197, .35); background: linear-gradient(140deg, rgba(91, 140, 255, .1), rgba(46, 230, 197, .06)); }
.rp-cta p { color: var(--muted); margin-top: 6px; }
.rp-cta .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) {
  .rp-head { grid-template-columns: 1fr; justify-items: start; gap: 16px; }
  .rp-head .dial, .rp-wait { width: 120px; height: 120px; } .rp-head .dial b { font-size: 38px; }
  .rp-kpis, .rp-now { grid-template-columns: 1fr 1fr; }
  .loss { grid-template-columns: 1fr; } .loss-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .ar summary { grid-template-columns: minmax(0, 1fr) 54px; } .ar summary > i { grid-column: 1 / -1; grid-row: 2; }
  .rp-cta { grid-template-columns: 1fr; } .rp-cta .btns { justify-content: flex-start; }
  .slot { grid-template-columns: 60px minmax(0, 1fr); } .slot > b { grid-column: 2; margin-top: -4px; }
}
@media (max-width: 520px) { .rp-kpis, .rp-now { grid-template-columns: 1fr; } .kp b { font-size: 24px; } .rp-now .kp b { font-size: 30px; } }

/* stampa del report (Salva in PDF) */
@media print {
  body { background: #fff; color: #111; }
  body::before, .nav, .progress, .foot, #analisi > :not(.report), .rp-cta .btns { display: none !important; }
  #analisi { padding: 0; } #analisi::before { display: none; }
  .report { border: 0; box-shadow: none; background: #fff; padding: 0; color: #111; }
  .report * { color: #111 !important; background: transparent !important; box-shadow: none !important; -webkit-text-fill-color: #111; }
  .kp, .loss, .ar, .forza > div, .todo li, .rp-fix, .rp-cta { border-color: #bbb !important; break-inside: avoid; }
  .slot > i, .ar summary > i::after { background: #555 !important; }
  .ar > div { display: grid !important; }
}
