:root {
  --blue: #1239F5; --blue-dark: #0A1A4F; --yellow: #FFD500; --yellow-dark: #C9A400;
  --ink: #0A1A4F; --soft: #3D4766; --mute: #5A6380; --line: #E3E7F3; --tint: #F1F4FF; --bg: #F7F8FC;
  --green: #1FAF5A; --red: #C8452C;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Nunito', system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--blue); }
h1, h2, h3, .fred { font-family: 'Fredoka', 'Nunito', sans-serif; letter-spacing: -0.01em; }
.top { background: var(--blue); color: #fff; padding: 14px 20px; }
.top-in { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-t { display: flex; flex-direction: column; gap: 4px; }
.brand b { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 26px; line-height: 0.9; }
.brand small { font-weight: 700; font-size: 11px; line-height: 1; color: #DCE4FF; padding-left: 2px; }
.brand .logo { height: 39px; width: auto; display: block; }
.step-label { font-size: 13px; font-weight: 800; color: #DCE4FF; }
.bar { max-width: 720px; margin: 12px auto 0; height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); overflow: hidden; }
.bar > div { height: 8px; background: var(--yellow); border-radius: 99px; width: 0; transition: width .3s; }
.wrap { max-width: 720px; margin: 0 auto; padding: 28px 20px 140px; }
.card { background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 2px 0 var(--line); }
h1 { font-size: 34px; line-height: 1.08; margin: 0 0 12px; font-weight: 700; }
h2 { font-size: 27px; line-height: 1.12; margin: 0 0 8px; font-weight: 700; }
.lead { font-size: 17px; color: var(--soft); margin: 0 0 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; font-weight: 800; font-size: 15px; }
.field small { font-weight: 600; color: var(--mute); font-size: 13px; }
.req { color: var(--red); }
input[type=text], input[type=tel], input[type=email], input[type=url], input[type=number], input[type=date], select, textarea {
  font: inherit; font-weight: 600; font-size: 16px; color: var(--ink); background: #fff;
  padding: 13px 14px; border: 2px solid var(--line); border-radius: 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { resize: vertical; min-height: 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; font-weight: 800; padding: 10px 14px; min-height: 44px; border-radius: 99px; border: 2px solid var(--line); background: #fff; color: var(--soft); cursor: pointer; }
.chip[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: #fff; }
.choice { display: block; width: 100%; text-align: left; font: inherit; padding: 16px 18px; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; margin: 0 0 10px; color: var(--ink); }
.choice[aria-pressed=true] { border-color: var(--blue); background: var(--tint); }
.choice b { display: block; font-size: 17px; }
.choice span { font-size: 14px; color: var(--mute); font-weight: 600; }
.choice .price { float: right; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 20px; color: var(--blue); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sector { font: inherit; text-align: left; padding: 18px; border-radius: 20px; border: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); min-height: 92px; }
.sector:hover, .sector:focus { border-color: var(--blue); outline: none; }
.sector b { display: block; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 20px; }
.sector span { font-size: 14px; color: var(--mute); font-weight: 600; }
.tip { background: #FFF7CC; border-radius: 16px; padding: 12px 14px; font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.note { font-size: 13px; color: var(--mute); }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.ph { position: relative; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; background: var(--tint); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .st { position: absolute; left: 6px; bottom: 6px; background: rgba(10,26,79,.8); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.ph button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(255,255,255,.95); color: var(--ink); font-weight: 800; cursor: pointer; }
.upload { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border: 2px dashed #B9C4EA; border-radius: 18px; background: #fff; font-weight: 800; color: var(--blue); cursor: pointer; text-align: center; }
.upload input { display: none; }
.counter { font-weight: 800; font-size: 15px; }
.counter.ok { color: var(--green); }
.btn { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; padding: 15px 22px; min-height: 52px; border-radius: 99px; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-y { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-dark); }
.btn-y:disabled { opacity: .5; cursor: not-allowed; }
.btn-o { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-g { background: var(--green); color: #fff; }
.foot { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); }
.foot-in { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; }
.foot-in .btn-y { flex: 1; }
.err { background: #FBEBEB; color: #9B2C1C; border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 14px; margin: 0 0 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 15px; margin: 0 0 14px; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.rec { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.hidden { display: none !important; }
.done-ic { width: 96px; height: 96px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; margin: 12px auto 18px; }
.center { text-align: center; }
.stars { display: flex; gap: 8px; }
.stars button { font-size: 30px; background: none; border: none; cursor: pointer; color: #C9CFE6; padding: 4px; }
.stars button.on { color: #E8A500; }

/* ---- modulo corto (assets/modulo.js): un passo per schermata, pulsanti grandi ---- */
.mc-kicker { font-weight: 800; font-size: 13px; color: var(--mute); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.mc-kicker a { text-transform: none; letter-spacing: 0; }
.mc-h { font-size: 21px; margin: 24px 0 4px; }
.mc-passi { list-style: none; counter-reset: p; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mc-passi li { counter-increment: p; background: var(--tint); border-radius: 16px; padding: 12px 12px 12px 46px; position: relative; min-height: 62px; }
.mc-passi li::before { content: counter(p); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.mc-passi b { display: block; font-size: 15px; line-height: 1.2; }
.mc-passi span { display: block; font-size: 12.5px; line-height: 1.3; color: var(--mute); font-weight: 600; margin-top: 2px; }
.upload.fatto { border-style: solid; border-color: var(--green); color: var(--green); }
.upload-grande { justify-content: flex-start; text-align: left; padding: 18px 20px; gap: 14px; background: var(--tint); border-color: #9FB0F0; }
.upload-grande b { display: block; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 20px; color: var(--blue); }
.upload-grande small { display: block; font-weight: 700; font-size: 13px; color: var(--mute); }
.up-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.chip.mc-dopo { width: 100%; margin: 4px 0 6px; border-radius: 16px; text-align: center; }
.tip.mc-invito { margin: 4px 0 10px; font-weight: 600; text-align: center; }
.mc-consigli { margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 10px; }
.mc-consigli summary, .mc-extra summary { cursor: pointer; list-style: none; }
.mc-consigli summary::-webkit-details-marker, .mc-extra summary::-webkit-details-marker { display: none; }
.mc-consigli summary { font-weight: 800; color: var(--blue); font-size: 15px; padding: 6px 0; }
.mc-consigli summary::after { content: ' ›'; }
.mc-consigli[open] summary::after { content: ' ⌄'; }
.mc-consigli ul { margin: 6px 0 8px; padding-left: 20px; font-weight: 600; color: var(--soft); font-size: 15px; }
.mc-logo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.mc-logo > span b { font-weight: 800; }
.mc-logo > span small { color: var(--mute); font-weight: 700; font-size: 13px; }
.mc-logo .upload { padding: 10px 16px; font-size: 15px; flex: none; }
.mc-voce { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0 0 20px; padding: 14px; background: #EAF8F0; border-radius: 18px; }
.mc-voce .btn { gap: 10px; font-size: 18px; }
.mc-voce .btn.rec-on { background: var(--red); }
.mc-voce .note { text-align: center; font-weight: 700; }
.mc-extra { margin: 6px 0 18px; border: 2px solid var(--line); border-radius: 18px; background: #fff; }
.mc-extra[open] { border-color: #C9D3F5; }
.mc-extra summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.mc-extra summary b { display: block; font-size: 16px; }
.mc-extra summary small { display: block; font-size: 13px; color: var(--mute); font-weight: 600; }
.mc-extra summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--blue); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.mc-extra[open] summary::after { content: '–'; }
.mc-extra-in { padding: 0 16px 6px; }
.mc-extra-in h3 { font-size: 17px; margin: 14px 0 10px; color: var(--soft); }
.mc-staff { font-size: 13px; color: var(--mute); margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.mc-staff input { width: 20px; height: 20px; }
.mc-conto { background: var(--tint); }
.gg-btn { font: inherit; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; margin: 0 0 18px; border: 2px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); cursor: pointer; }
.gg-btn:hover { border-color: var(--blue); }
.gg-btn b { display: block; font-size: 16px; }
.gg-btn small { display: block; font-size: 13px; color: var(--mute); font-weight: 600; }
.gg-g { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--blue); font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.gg-box { background: var(--tint); border-radius: 18px; padding: 14px; margin: 0 0 18px; }
.gg-box .field { margin-bottom: 10px; }
.gg-cerca { width: 100%; }
.gg-luogo { margin: 0 0 8px; }
.gg-chiudi { font: inherit; font-weight: 800; font-size: 14px; color: var(--blue); background: none; border: none; padding: 10px 0 0; cursor: pointer; text-decoration: underline; }
body[data-passo="6"] .center .btn-o { margin-top: 4px; }
@media (max-width: 420px) {
  body[data-passo] .wrap { padding: 20px 14px 130px; }
  body[data-passo] .card { padding: 20px 18px; border-radius: 22px; }
  body[data-passo] h1 { font-size: 30px; }
  body[data-passo] h2 { font-size: 25px; }
}
