/* WARE - Sito pronto: configuratore d'acquisto. Tutto è limitato a #ware-spc. */
#ware-spc {
	--spc-bg: #101722;
	--spc-surface: #151e2b;
	--spc-card: #192332;
	--spc-line: #293e50;
	--spc-line-strong: #3a5368;
	--spc-text: #f4f6fa;
	--spc-muted: #b5c5d8;
	--spc-dim: #8293a8;
	--spc-blue: #4c85a2;
	--spc-blue-hover: #5c96b1;
	--spc-link: #78bdd7;
	--spc-amber: #ffbd59;
	--spc-ok: #8fd6ae;
	--spc-warn: #f2b27a;
	background: var(--spc-bg);
	color: var(--spc-text);
	font-family: FigTreeRegular, Figtree, Arial, sans-serif;
	padding: 132px 0 72px;
}
#ware-spc *, #ware-spc *::before, #ware-spc *::after { box-sizing: border-box; }
#ware-spc [hidden] { display: none !important; }
#ware-spc .spc-shell { width: calc(100% - 48px); max-width: 1180px; margin: 0 auto; container-type: inline-size; container-name: spc; }

/* Intestazione */
#ware-spc .spc-head { max-width: 760px; margin-bottom: 30px; }
#ware-spc .spc-back { display: inline-flex; gap: 6px; color: var(--spc-amber); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
#ware-spc .spc-back:hover { color: #ffd08a; }
body #wrapper #main #ware-spc h1,
#ware-spc h1 { font-family: "Zen Kaku Gothic New", sans-serif !important; font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -.02em; color: var(--spc-text); margin: 14px 0 12px !important; }
#ware-spc .spc-lead { color: var(--spc-muted); font-size: 17px !important; line-height: 1.55 !important; margin: 0 !important; }
#ware-spc .spc-notices:empty { display: none; }
#ware-spc .spc-notices { margin-bottom: 22px; }

/* Griglia */
#ware-spc .spc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin: 0; }
#ware-spc .spc-steps { display: grid; gap: 18px; min-width: 0; }
#ware-spc .spc-card { background: var(--spc-card); border: 1px solid var(--spc-line); border-radius: 20px; padding: 26px; margin: 0; min-width: 0; }
#ware-spc fieldset.spc-card { min-inline-size: 0; }
#ware-spc .spc-legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 18px; font-size: 20px; font-weight: 650; line-height: 1.3; color: var(--spc-text); }
#ware-spc .spc-step > :not(legend) { clear: both; }
#ware-spc .spc-num { display: inline-grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: rgba(76, 133, 162, .18); border: 1px solid var(--spc-blue); color: #9fd2e6; font-size: 14px; font-weight: 700; }

/* Controllo segmentato */
#ware-spc .spc-seg, #ware-spc .spc-billing { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--spc-line); border-radius: 14px; background: var(--spc-surface); margin: 0 0 20px; max-width: 100%; }
#ware-spc .spc-seg label, #ware-spc .spc-billing label { position: relative; margin: 0; cursor: pointer; }
#ware-spc .spc-seg input, #ware-spc .spc-billing input,
#ware-spc .spc-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
#ware-spc .spc-seg span, #ware-spc .spc-billing span { display: block; padding: 9px 16px; border-radius: 10px; color: var(--spc-muted); font-size: 15px; font-weight: 650; line-height: 1.3; white-space: nowrap; transition: background .15s, color .15s; }
#ware-spc .spc-billing { margin: 0; }
#ware-spc .spc-billing span { padding: 7px 13px; font-size: 14px; }
#ware-spc .spc-seg label:hover span, #ware-spc .spc-billing label:hover span { color: var(--spc-text); }
#ware-spc .spc-seg input:checked + span, #ware-spc .spc-billing input:checked + span { background: var(--spc-blue); color: #fff; }
#ware-spc .spc-seg input:focus-visible + span, #ware-spc .spc-billing input:focus-visible + span { outline: 2px solid var(--spc-amber); outline-offset: 2px; }

/* Campi */
#ware-spc .spc-label { display: block; margin: 0 0 8px; color: var(--spc-muted); font-size: 14px; font-weight: 600; }
#ware-spc .spc-input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--spc-line-strong); border-radius: 12px; background: var(--spc-bg); color: var(--spc-text); font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none; }
#ware-spc .spc-input::placeholder { color: #66788d; }
#ware-spc .spc-input:focus { outline: none; border-color: var(--spc-blue); box-shadow: 0 0 0 3px rgba(76, 133, 162, .3); }
#ware-spc select.spc-input { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--spc-muted) 50%), linear-gradient(135deg, var(--spc-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
#ware-spc .spc-domain-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px auto; gap: 8px; }
#ware-spc .spc-hint { color: var(--spc-dim); font-size: 13px !important; line-height: 1.5 !important; margin: 9px 0 0 !important; }
#ware-spc .spc-status { margin: 12px 0 0 !important; font-size: 15px !important; line-height: 1.5 !important; color: var(--spc-muted); }
#ware-spc .spc-status:empty { display: none; }
#ware-spc .spc-status[data-state="ok"] { color: var(--spc-ok); }
#ware-spc .spc-status[data-state="ok"]::before { content: "✓ "; font-weight: 700; }
#ware-spc .spc-status[data-state="taken"], #ware-spc .spc-status[data-state="error"] { color: var(--spc-warn); }
#ware-spc .spc-status strong { color: inherit; }

/* Pulsanti */
#ware-spc .spc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 18px; border: 1px solid transparent; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 650; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
#ware-spc .spc-btn:focus-visible { outline: 2px solid var(--spc-amber); outline-offset: 3px; }
#ware-spc .spc-btn:disabled { opacity: .6; cursor: progress; }
#ware-spc .spc-btn-primary { background: var(--spc-blue); color: #fff !important; box-shadow: 0 10px 25px rgba(76, 133, 162, .18); }
#ware-spc .spc-btn-primary:hover:not(:disabled) { background: var(--spc-blue-hover); }
#ware-spc .spc-btn-quiet { background: transparent; border-color: var(--spc-line-strong); color: var(--spc-text); }
#ware-spc .spc-btn-quiet:hover:not(:disabled) { border-color: var(--spc-blue); background: rgba(76, 133, 162, .12); }

/* Opzioni (piani, email) */
#ware-spc .spc-pane-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
#ware-spc .spc-pane-intro { color: var(--spc-muted); font-size: 15px !important; line-height: 1.5 !important; margin: 0 0 16px !important; }
#ware-spc .spc-pane-head .spc-pane-intro { margin: 0 !important; flex: 1 1 260px; }
#ware-spc .spc-options { display: grid; gap: 8px; }
#ware-spc .spc-option { position: relative; display: flex; align-items: center; gap: 16px; padding: 15px 18px 15px 48px; margin: 0; border: 1px solid var(--spc-line); border-radius: 14px; background: var(--spc-surface); cursor: pointer; transition: border-color .15s, background .15s; }
#ware-spc .spc-option::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--spc-line-strong); border-radius: 50%; transition: border-color .15s, box-shadow .15s; }
#ware-spc .spc-option:hover { border-color: var(--spc-line-strong); }
#ware-spc .spc-option:has(input:checked) { border-color: var(--spc-blue); background: rgba(76, 133, 162, .1); }
#ware-spc .spc-option:has(input:checked)::before { border-color: var(--spc-blue); box-shadow: inset 0 0 0 4px var(--spc-surface), inset 0 0 0 9px #8ac6df; }
#ware-spc .spc-option:has(input:focus-visible) { outline: 2px solid var(--spc-amber); outline-offset: 2px; }
#ware-spc .spc-opt-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
#ware-spc .spc-opt-main strong { font-size: 16px; font-weight: 650; color: var(--spc-text); line-height: 1.3; }
#ware-spc .spc-opt-main em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--spc-dim); margin-left: 6px; }
#ware-spc .spc-opt-main small { color: var(--spc-muted); font-size: 13.5px; line-height: 1.45; }
#ware-spc .spc-opt-price { display: grid; justify-items: end; gap: 1px; text-align: right; white-space: nowrap; }
#ware-spc .spc-opt-price strong { font-size: 17px; font-weight: 650; color: var(--spc-text); }
#ware-spc .spc-opt-price small { font-size: 12.5px; color: var(--spc-dim); }
#ware-spc .spc-options[data-billing="year"] .spc-opt-price[data-billing="month"],
#ware-spc .spc-options[data-billing="month"] .spc-opt-price[data-billing="year"] { display: none; }
#ware-spc .spc-check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 14px 16px; border: 1px dashed var(--spc-line-strong); border-radius: 14px; cursor: pointer; color: var(--spc-muted); font-size: 14.5px; line-height: 1.5; }
#ware-spc .spc-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--spc-blue); flex: 0 0 auto; }
#ware-spc .spc-check strong { color: var(--spc-text); }
#ware-spc .spc-note { margin: 14px 0 0 !important; padding-left: 12px; border-left: 2px solid var(--spc-amber); color: var(--spc-muted); font-size: 14px !important; line-height: 1.5 !important; }
#ware-spc .spc-included { display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; color: var(--spc-muted); font-size: 15px !important; line-height: 1.55 !important; }
#ware-spc .spc-included strong { color: var(--spc-text); font-weight: 650; }
#ware-spc .spc-tick { flex: 0 0 24px; height: 24px; border-radius: 50%; background: rgba(143, 214, 174, .14); position: relative; margin-top: 1px; }
#ware-spc .spc-tick::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px; border: solid var(--spc-ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Riepilogo */
#ware-spc .spc-summary { position: sticky; top: 112px; padding: 24px; background: linear-gradient(160deg, #1c2a3b, #161f2c); border-color: #30485b; }
#ware-spc .spc-summary h2 { font-family: FigTreeRegular, Figtree, Arial, sans-serif !important; font-size: 19px !important; font-weight: 650; line-height: 1.3; margin: 0 0 14px !important; color: var(--spc-text); }
#ware-spc .spc-lines, #ware-spc .spc-renew { list-style: none; margin: 0 !important; padding: 0 !important; }
#ware-spc .spc-lines li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--spc-line); margin: 0; }
#ware-spc .spc-lines li span { display: grid; gap: 2px; min-width: 0; }
#ware-spc .spc-lines strong { font-size: 15px; font-weight: 650; color: var(--spc-text); overflow-wrap: anywhere; }
#ware-spc .spc-lines small { font-size: 12.5px; color: var(--spc-dim); line-height: 1.4; }
#ware-spc .spc-lines b { font-weight: 650; font-size: 15px; white-space: nowrap; color: var(--spc-text); }
#ware-spc .spc-lines s { color: var(--spc-dim); font-weight: 400; margin-right: 4px; }
#ware-spc .spc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 6px; }
#ware-spc .spc-total span { color: var(--spc-muted); font-size: 15px; }
#ware-spc .spc-total strong { font-size: 28px; font-weight: 650; letter-spacing: -.01em; color: var(--spc-text); }
#ware-spc .spc-renew li { color: var(--spc-dim); font-size: 13px; line-height: 1.5; margin: 0; }
#ware-spc .spc-renew .spc-renew-head { color: var(--spc-muted); font-weight: 650; margin-bottom: 2px; }
#ware-spc .spc-tax { color: var(--spc-dim); font-size: 12.5px !important; line-height: 1.5 !important; margin: 12px 0 16px !important; }
#ware-spc .spc-error { margin: 0 0 12px !important; padding: 10px 12px; border-radius: 10px; background: rgba(242, 178, 122, .12); color: var(--spc-warn); font-size: 14px !important; line-height: 1.45 !important; }
#ware-spc .spc-submit { width: 100%; font-size: 16px; min-height: 52px; }
#ware-spc .spc-after { color: var(--spc-dim); font-size: 13px !important; line-height: 1.5 !important; text-align: center; margin: 12px 0 0 !important; }

#ware-spc .spc-unavailable { max-width: 640px; }
#ware-spc .spc-unavailable h2 { font-size: 22px !important; margin: 0 0 8px !important; color: var(--spc-text); }
#ware-spc .spc-unavailable p { color: var(--spc-muted); margin: 0 0 18px !important; }

/* Barra in basso su mobile */
#ware-spc .spc-bar { display: none; }

/* La disposizione segue lo spazio disponibile, non la finestra. */
@container spc (max-width: 900px) {
	#ware-spc .spc-grid { grid-template-columns: minmax(0, 1fr); }
	#ware-spc .spc-summary { position: static; }
}
@container spc (max-width: 560px) {
	#ware-spc .spc-card { padding: 20px 16px; border-radius: 16px; }
	#ware-spc .spc-legend { font-size: 18px; }
	#ware-spc .spc-seg { display: flex; width: 100%; }
	#ware-spc .spc-seg label { flex: 1; }
	#ware-spc .spc-seg span { padding: 9px 8px; font-size: 14px; text-align: center; white-space: normal; }
	#ware-spc .spc-domain-row { grid-template-columns: minmax(0, 1fr) 96px; }
	#ware-spc .spc-domain-row .spc-btn { grid-column: 1 / -1; }
	#ware-spc .spc-option { padding: 14px 14px 14px 44px; gap: 12px; }
	#ware-spc .spc-option::before { left: 15px; }
	#ware-spc .spc-opt-price strong { font-size: 16px; }
}
@media (max-width: 640px) {
	#ware-spc { padding: 112px 0 96px; }
	#ware-spc .spc-shell { width: calc(100% - 32px); }
	#ware-spc .spc-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(16, 23, 34, .96); border-top: 1px solid var(--spc-line); backdrop-filter: blur(8px); }
	#ware-spc .spc-bar span { display: grid; line-height: 1.2; }
	#ware-spc .spc-bar small { color: var(--spc-dim); font-size: 12px; }
	#ware-spc .spc-bar strong { font-size: 20px; font-weight: 650; }
	#ware-spc .spc-bar .spc-btn { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
	#ware-spc * { transition: none !important; }
}

/* Spazio web già esistente */
#ware-spc .spc-sources { margin-bottom: 18px; }
#ware-spc .spc-sources + .spc-newspace { padding-top: 18px; border-top: 1px solid var(--spc-line); }
#ware-spc .spc-login { margin: 0 0 18px !important; padding: 12px 14px; border-radius: 12px; background: var(--spc-surface); color: var(--spc-muted); font-size: 14px !important; line-height: 1.5 !important; }
#ware-spc .spc-login a, #ware-spc .spc-note a { color: var(--spc-link); font-weight: 650; }
#ware-spc .spc-note-top { margin: 0 0 16px !important; }
