:root { --ink:#17151f; --muted:#6d687c; --violet:#6757e8; --line:#e8e5f0; --soft:#f7f7fb; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:radial-gradient(ellipse at 90% 20%,#f0edff 0,transparent 45%),#fff; font-family:-apple-system,BlinkMacSystemFont,"Avenir Next","Segoe UI",system-ui,sans-serif; line-height:1.5; }
a { color:#5140c4; text-underline-offset:3px; }
button,input { font:inherit; }
button,a,input { -webkit-tap-highlight-color:transparent; }
[hidden] { display:none !important; }
:focus-visible { outline:3px solid #27bfe6; outline-offset:4px; }
.service-header { max-width:1200px; margin:auto; padding:24px 32px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand { display:flex; align-items:center; gap:10px; color:var(--ink); font-size:20px; font-weight:800; letter-spacing:-.05em; text-decoration:none; }
.brand img { display:block; width:40px; height:40px; object-fit:contain; }
.back-link { font-size:14px; text-decoration:none; }
.account-link { border:0; padding:0; color:var(--violet); background:none; font:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.back-link.account-link { font-size:14px; text-decoration:none; }
.account-navigation { order:-1; }
.service-shell { max-width:1136px; margin:auto; padding:24px 32px; }
.service-intro { margin:8px 0 36px; }
.eyebrow { color:#6653ce; font-size:12px; font-weight:750; text-transform:uppercase; letter-spacing:.12em; }
h1 { margin:12px 0 18px; font-size:clamp(36px,5vw,60px); letter-spacing:-.055em; line-height:1.05; }
h1 span { color:var(--violet); }
.service-intro>p:last-child { color:var(--muted); font-size:16px; }
h2 { margin:0 0 6px; font-size:26px; line-height:1.2; letter-spacing:-.035em; }
.service-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:28px; align-items:start; }
.service-form-card { border:1px solid var(--line); border-radius:26px; padding:32px; background:#fff; box-shadow:0 16px 60px #34215308; min-width:0; }
.service-steps { list-style:none; margin:0 0 32px; padding:0 0 24px; display:flex; gap:24px; border-bottom:1px solid var(--line); }
.service-steps li { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; font-weight:650; }
.service-steps li span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--soft); }
.service-steps [aria-current] { color:var(--violet); }
.service-steps [aria-current] span { background:var(--violet); color:#fff; }
.section-note,.account-note { color:var(--muted); font-size:14px; margin:10px 0 24px; }
.account-note { font-size:13px; margin-top:-8px; }
.step-actions+.account-note { margin-top:20px; }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 16px; }
.field { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:650; }
.field.full,.field-help.full { grid-column:1/-1; }
.field input { width:100%; min-width:0; min-height:46px; border:1px solid #d8d3e4; border-radius:10px; padding:10px 12px; background:#fff; color:var(--ink); font-size:15px; font-weight:400; }
.field input:focus { border-color:var(--violet); }
.field input[readonly] { background:var(--soft); color:var(--muted); }
.field-help { margin:0; color:var(--muted); font-size:12px; }
.field-help.full { margin-top:-10px; }
.optional { display:contents; color:var(--muted); font-weight:400; }
.step-actions { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-top:28px; }
.step-actions>.primary:only-child { margin-left:auto; }
.button { display:inline-flex; justify-content:center; align-items:center; min-height:48px; border:1px solid transparent; border-radius:12px; padding:12px 22px; font-size:14px; font-weight:700; text-decoration:none; cursor:pointer; }
.primary { color:#fff; background:linear-gradient(115deg,#5743d2,#7961e9); box-shadow:0 5px 18px #6757e825; }
.primary:hover { background:#5140c4; }
.secondary { color:var(--muted); background:var(--soft); }
.button:disabled { opacity:.65; cursor:wait; }
.review-list { margin:22px 0; padding:16px; border-radius:14px; background:var(--soft); font-size:14px; }
.review-list div { display:flex; justify-content:space-between; gap:15px; padding:5px 0; }
.review-list dt { color:var(--muted); }
.review-list dd { margin:0; text-align:right; font-weight:700; }
.budget-field { max-width:250px; margin:20px 0 8px; }
.staff-note { position:relative; margin:24px 0; padding:18px; border:1px solid #e6defa; border-radius:14px; background:#f9f6ff; transition:border-color 240ms ease; }
.staff-note::before { content:''; position:absolute; inset:-1px; padding:2px; border-radius:inherit; background:linear-gradient(125deg,#20c7df 0%,#7660ef 48%,#c75aca 100%); -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask-composite:exclude; opacity:0; transition:opacity 240ms ease; pointer-events:none; }
.staff-note:has(input[name="staff_program_requested"]:checked) { border-color:transparent; background:linear-gradient(125deg,#effbfd 0%,#f4f0ff 58%,#fcf2fc 100%); box-shadow:inset 0 1px 0 #fff; }
.staff-note:has(input[name="staff_program_requested"]:checked)::before { opacity:1; }
.staff-note:has(input[name="staff_program_requested"]:checked) .beta-label { color:#6750c4; }
.beta-label { display:block; font-size:10px; font-weight:750; letter-spacing:.06em; text-transform:uppercase; color:#7750b8; margin-bottom:7px; }
.staff-note strong { font-size:16px; }
.staff-note p { font-size:13px; color:var(--muted); margin:7px 0 0; }
.staff-choice { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.staff-switch { position:relative; display:inline-flex; align-items:center; flex:0 0 auto; min-height:44px; cursor:pointer; }
.staff-switch input { position:absolute; z-index:1; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.staff-switch-track { display:block; position:relative; width:64px; height:38px; border-radius:999px; background:#d8d8dd; box-shadow:inset 0 1px 3px #26223716; transition:background-color 180ms ease; }
.staff-switch-track::after { content:''; position:absolute; top:4px; left:4px; width:30px; height:30px; border-radius:50%; background:linear-gradient(150deg,#fff,#f4f2fb); box-shadow:0 2px 4px #28223b24; transition:transform 220ms cubic-bezier(.2,.75,.3,1); }
.staff-switch input:checked+.staff-switch-track { background:var(--violet); }
.staff-switch input:checked+.staff-switch-track::after { transform:translateX(26px); }
.staff-switch input:focus-visible+.staff-switch-track { outline:3px solid #27bfe6; outline-offset:4px; }
.consents { display:grid; gap:15px; }
.consents label { display:flex; gap:10px; align-items:flex-start; font-size:12px; color:#504b61; cursor:pointer; }
.consents input { flex:0 0 auto; width:18px; height:18px; margin:0; accent-color:var(--violet); }
.secure-note { margin:16px 0 0; font-size:11px; text-align:center; color:var(--muted); }
.submit-status { font-size:13px; color:var(--violet); }
.submit-status:empty { display:none; }
.service-summary { position:sticky; top:24px; overflow:hidden; padding:32px; border:1px solid #e1daf5; border-radius:26px; background:linear-gradient(150deg,#fbfaff,#f0ebff); }
.plan-label { display:inline-block; margin-bottom:16px; color:var(--violet); font-size:12px; font-weight:750; }
.summary-price { margin:22px 0 0; font-size:90px; line-height:1; font-weight:750; letter-spacing:-.07em; }
.summary-price span { font-size:45px; }
.price-caption { margin:6px 0 26px; color:var(--muted); font-size:13px; }
.summary-rate { display:flex; flex-direction:column; padding:18px 0; border-top:1px solid #ded5f2; border-bottom:1px solid #ded5f2; }
.summary-rate strong { font-size:24px; }
.summary-rate span { color:var(--muted); font-size:13px; }
.service-summary ul { list-style:none; display:grid; gap:12px; padding:22px 0; margin:0; font-size:13px; color:#504b61; }
.service-summary li::before { content:'✓'; padding-right:9px; color:var(--violet); font-weight:800; }
.summary-footer { display:flex; flex-direction:column; align-items:start; gap:6px; border-top:1px solid #ded5f2; padding-top:20px; }
.summary-footer img { max-width:85px; height:25px; object-fit:contain; }
.summary-footer span { color:var(--muted); font-size:11px; }
.service-footer { display:flex; justify-content:space-between; gap:16px; padding:32px 0 12px; color:var(--muted); font-size:12px; }
.alert { padding:14px 16px; margin:0 0 24px; border-radius:12px; background:#fff2f0; border:1px solid #f1c7c1; color:#9d3024; font-size:14px; }
.result-card { max-width:620px; margin:6vh auto; }
.result-card h1 { font-size:42px; }
.result-card>p { color:var(--muted); }
.result-badge { display:inline-block; padding:6px 10px; border-radius:20px; background:#f0ebff; color:var(--violet); font-size:12px; font-weight:750; }
.result-badge.active { background:#e5f7ee; color:#10784f; }
@media(max-width:800px) {
  .service-layout { grid-template-columns:minmax(0,1fr); }
  .service-summary { position:static; }
  .service-shell { padding-top:12px; }
}
@media(max-width:480px) {
  .service-header { padding:20px; }
  .service-shell { padding:12px 16px; }
  .service-intro { padding:0 4px; }
  .service-form-card,.service-summary { padding:24px 20px; border-radius:20px; }
  .field-grid { grid-template-columns:minmax(0,1fr); }
  .service-steps { gap:14px; }
  .service-steps li { font-size:12px; }
  .step-actions .primary { flex:1; }
  .review-list { padding:12px; font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; } .staff-note,.staff-note::before,.staff-switch-track,.staff-switch-track::after { transition:none; } }
@media(forced-colors:active) { .staff-note::before { display:none; } .staff-note:has(input[name="staff_program_requested"]:checked) { border-color:Highlight; outline:1px solid Highlight; background:Canvas; box-shadow:none; } .staff-switch-track { border:1px solid ButtonText; background:Canvas; } .staff-switch-track::after { background:ButtonText; box-shadow:none; } .staff-switch input:checked+.staff-switch-track { background:Highlight; } .staff-switch input:checked+.staff-switch-track::after { background:HighlightText; } }
/* Piano free: dati del locale per la campagna. */
.field select { width:100%; min-width:0; min-height:46px; border:1px solid #d8d3e4; border-radius:10px; padding:10px 12px; background:#fff; color:var(--ink); font:inherit; font-size:15px; font-weight:400; }
.field select:focus { border-color:var(--violet); }
.slot-choices { border:0; margin:0; padding:0; min-width:0; }
.slot-choices legend { padding:0; margin-bottom:8px; font-size:13px; font-weight:650; }
.slot-choices label { display:inline-flex; align-items:center; gap:8px; margin:0 18px 8px 0; font-size:14px; font-weight:500; cursor:pointer; }
.slot-choices input { width:18px; height:18px; accent-color:var(--violet); }
.locale-map { height:280px; border:1px solid #d8d3e4; border-radius:14px; overflow:hidden; background:var(--soft); }
.map-actions { display:flex; flex-wrap:wrap; gap:10px; }
.map-actions .button { min-height:40px; padding:8px 14px; font-size:13px; }
.field-help.is-error { color:#b3261e; }
