/* Percorso "Crea il tuo sito" */
.wiz { min-height: 100vh; display: flex; flex-wrap: wrap; }
.wiz-sx { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 36px; padding: 28px clamp(24px, 4vw, 64px) 36px; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wiz-esci { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted-d); text-decoration: none; }
.wiz-esci:hover { color: var(--bone); }
.wiz-prog { display: flex; flex-direction: column; gap: 12px; max-width: 600px; }
.wiz-prog-txt { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-d); }
.wiz-barre { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.wiz-barre i { display: block; height: 3px; border-radius: 2px; background: var(--line-d); transition: background .5s; }
.wiz-barre i.on { background: var(--acc); }
#form { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.passo { display: flex; flex-direction: column; gap: 28px; max-width: 600px; animation: entra .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wiz-h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.4vw, 66px); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; outline: none; }
.wiz-p { margin: 0; max-width: 470px; font-size: 17px; line-height: 1.55; color: var(--muted-d); text-wrap: pretty; }
.wiz-campo { display: flex; flex-direction: column; gap: 10px; }
.wiz-campo > .mono { color: var(--muted-d); }
.wiz-grande { width: 100%; padding: 6px 0 14px; border: 0; border-bottom: 1px solid var(--line-d2); background: transparent; font-family: var(--serif); font-size: clamp(32px, 3.2vw, 42px); color: var(--bone); caret-color: var(--acc); outline: none; transition: border-color .2s; }
.wiz-grande:focus { border-bottom-color: var(--acc); }
.wiz-grande::placeholder { color: #6F6B63; }

/* Settore */
.scelte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.scelta { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--line-d); border-radius: 14px; background: #141412; color: var(--bone); font-size: 16px; font-weight: 500; text-align: left; transition: border-color .25s, background .25s; }
.scelta:hover { border-color: #4A4843; }
.scelta[aria-pressed="true"] { border-color: var(--acc); background: #1C1916; }
.scelta-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink-3); }
.scelta-testo { flex: 1; min-width: 0; }
.scelta-check { flex: none; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1.5px solid #4A4843; border-radius: 50%; transition: background .25s, border-color .25s; }
.scelta-check svg { opacity: 0; }
.scelta[aria-pressed="true"] .scelta-check { background: var(--acc); border-color: var(--acc); }
.scelta[aria-pressed="true"] .scelta-check svg { opacity: 1; }

/* Modelli e colori */
.modelli { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.modello { display: flex; flex-direction: column; gap: 12px; padding: 10px; border: 1px solid var(--line-d); border-radius: 18px; background: var(--ink-2); color: var(--bone); text-align: left; transition: box-shadow .25s, border-color .25s; }
.modello[aria-pressed="true"] { border-color: transparent; box-shadow: 0 0 0 2px var(--acc); }
.modello-mini { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 3; padding: 14px; border-radius: 12px; transition: background .4s; }
.modello-mini b { font-size: 36px; line-height: .9; letter-spacing: -0.02em; }
.modello-righe { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.modello-righe i { display: block; height: 4px; border-radius: 2px; background: currentColor; opacity: .18; }
.modello-righe i:first-child { width: 72%; }
.modello-righe i:nth-child(2) { width: 48%; }
.modello-righe em { display: block; width: 40%; height: 14px; margin-top: 5px; }
.modello-nome { display: flex; flex-direction: column; gap: 2px; padding: 0 6px 6px; }
.modello-nome strong { font-size: 15px; font-weight: 600; }
.modello-nome span { font-size: 13px; color: var(--muted-d); }
.colori { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.colore { width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 1px var(--line-d2); transition: box-shadow .2s; }
.colore[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bone); }
.colore-nome { margin-left: 4px; font-size: 14px; color: var(--muted-d); }

/* Foto */
.drop { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; border: 1.5px dashed #44423D; border-radius: 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.sopra { border-color: var(--acc); background: rgba(255, 95, 46, .05); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #24221F; }
.drop strong { font-size: 17px; font-weight: 600; }
.drop span { font-size: 14px; line-height: 1.5; color: var(--muted-d); }
.drop .drop-cta { font-weight: 600; color: var(--acc); }
.miniature-box { display: flex; flex-direction: column; gap: 10px; }
.miniature-box .mono { color: var(--muted-d); }
.miniature { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.miniatura { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--ink-3); }
.miniatura img { width: 100%; height: 100%; object-fit: cover; }
.miniatura button { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(15, 15, 14, .78); color: #FFFFFF; }
.miniatura button::before { content: ''; position: absolute; inset: -6px; }

/* Pubblica */
.indirizzo { display: flex; align-items: center; min-height: 56px; padding: 0 18px; border: 1px solid var(--line-d2); border-radius: 14px; background: #151513; font-family: var(--mono); font-size: 15px; transition: border-color .2s; }
.indirizzo:focus-within { border-color: var(--acc); }
.indirizzo span { color: var(--muted-d); white-space: nowrap; }
.indirizzo input { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--bone); font: inherit; outline: none; }
.stato-slug { display: flex; align-items: center; gap: 8px; min-height: 22px; font-size: 14px; color: var(--muted-d); }
.stato-slug.ok { color: var(--ok-d); }
.stato-slug.no { color: var(--err-d); }
.separatore { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted-d); }
.separatore::before, .separatore::after { content: ''; flex: 1; height: 1px; background: var(--line-d); }
.due { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.avanzamento { margin: 0; min-height: 22px; font-size: 14px; color: var(--muted-d); }

/* Fatto */
.fatto-ico { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--acc); color: var(--ink); }
.url-pill { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border: 1px solid var(--line-d); border-radius: 999px; background: #151513; }
.url-pill span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 15px; }
.condividi { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid #22211F; }
.condividi .mono { color: var(--muted-d); }
.condividi div { display: flex; flex-wrap: wrap; gap: 8px; }
.avviso-d { margin: 0; padding: 12px 16px; border-radius: 12px; background: #2A1F1A; color: #F5C9B6; font-size: 14px; }

/* Avanti / indietro */
.wiz-nav { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 600px; }
.wiz-nav-dx { display: flex; align-items: center; gap: 16px; }
.wiz-nav .mono { color: var(--muted-d); }

/* Anteprima */
.wiz-dx { flex: 1.25 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 28px clamp(24px, 3vw, 52px) 36px; background: radial-gradient(70% 55% at 50% 42%, #262420 0%, #171715 72%); }
.wiz-dx-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.live { display: inline-flex; align-items: center; gap: 10px; color: var(--muted-d); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px rgba(255, 95, 46, .2); animation: pulsa 2.2s ease-in-out infinite; }
.live.online i { background: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
@keyframes pulsa { 50% { box-shadow: 0 0 0 7px rgba(255, 95, 46, .06); } }
.seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-d); border-radius: 999px; background: var(--ink); }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted-d); font-size: 13px; font-weight: 500; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.browser-wrap { flex: 1; display: flex; justify-content: center; align-items: flex-start; }
.browser { width: 100%; max-width: 100%; overflow: hidden; border-radius: 14px; background: #FFFFFF; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07); transition: max-width .5s cubic-bezier(.2, .7, .2, 1), border-radius .5s; }
.browser.mobile { max-width: 360px; border-radius: 32px; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #DCD8D0; background: #ECE9E3; color: #4A4741; }
.dots { flex: none; display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #D3CFC6; }
.browser-url { flex: 1; min-width: 0; display: flex; justify-content: center; }
.browser-url span { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 12px; border-radius: 8px; background: #F8F6F2; font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-online { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--ok); color: #FFFFFF; font-size: 11px; font-weight: 600; }
.browser-vista { position: relative; height: clamp(440px, 64vh, 700px); overflow: hidden; background: #F6F1EA; }
.browser-vista iframe { position: absolute; top: 0; left: 0; border: 0; background: #FFFFFF; transform-origin: 0 0; }
.wiz-caption { margin: 0; text-align: center; font-size: 13px; color: #8C887F; }

@media (max-width: 720px) {
  .wiz-dx { padding-top: 20px; }
  .browser-vista { height: 420px; }
  .wiz-nav { position: sticky; bottom: 0; padding: 12px 0; background: var(--ink); }
}
