/* ============================================================
   gods3dplan — «Come nasce» (quattro passaggi) e «Su misura»
   (email oppure richiesta dal sito). Classi cn-* e sm-*.
   ============================================================ */

/* ---------------- COME NASCE ---------------- */
.cn { --cn-gap: clamp(26px, 3.4vw, 48px); }

.cn-map {
  position: sticky; top: 84px; z-index: 5; margin: 0 0 clamp(20px, 2.6vw, 34px);
}
.cn-map ol {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 6px; list-style: none;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .74); border: 1px solid var(--line-2); box-shadow: var(--sh-sm);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
}
.cn-map a {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.15;
  transition: background .4s var(--ease), color .4s, box-shadow .4s;
}
.cn-map a b { font-size: 12px; letter-spacing: .06em; color: var(--muted); transition: color .4s; }
.cn-map a:hover { background: rgba(21, 20, 15, .05); }
.cn-map a[aria-current] { background: var(--ink); color: #fff; box-shadow: var(--sh-sm); }
.cn-map a[aria-current] b { color: color-mix(in srgb, var(--cat) 55%, #fff); }

.cn-steps { display: grid; gap: var(--cn-gap); margin: 0; padding: 0; list-style: none; }
.cn-step {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: center;
  gap: clamp(18px, 3vw, 48px); padding: 14px; border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: var(--sh-md); scroll-margin-top: 160px;
}
.cn-step:nth-child(even) .cn-media { order: 2; }
/* filo che lega un passaggio al successivo */
.cn-step + .cn-step::before {
  content: ""; position: absolute; left: 50%; top: calc(-1 * var(--cn-gap)); width: 2px; height: var(--cn-gap); margin-left: -1px;
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--cat) 70%, transparent) 0 5px, transparent 5px 10px);
}

.cn-media {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: #E9E1D2 center / cover;
}
.cn-step:not(.is-playing) .cn-media { cursor: pointer; }
.cn-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cn-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(21, 20, 15, .32) 0%, rgba(21, 20, 15, 0) 36%); }
.cn-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; line-height: 1; color: var(--ink);
}
.cn-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--cat); transition: background .6s; }
.cn-step.is-playing .cn-badge i { animation: ping 2.4s var(--ease) infinite; }
.cn-play {
  position: absolute; right: 14px; bottom: 14px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .82); color: var(--ink); box-shadow: var(--sh-sm);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .5s var(--ease), background .3s;
}
.cn-play:hover { transform: scale(1.08); background: #fff; }
.cn-play svg { width: 14px; height: 14px; }
.cn-play .ic-play, .cn-play[aria-pressed="true"] .ic-pause { display: none; }
.cn-play[aria-pressed="true"] .ic-play { display: block; }
.cn-step:not(.is-playing) .cn-play { width: 56px; height: 56px; }
.cn-step:not(.is-playing) .cn-play svg { width: 17px; height: 17px; }

.cn-body { padding: clamp(6px, 2.6vw, 40px); min-width: 0; }
.cn-num {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 6.4vw, 6rem); line-height: .86; letter-spacing: -.06em;
  background: linear-gradient(180deg, var(--cat) 0%, color-mix(in srgb, var(--cat) 12%, #fff) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cn-title { margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.55rem, 2.5vw, 2.3rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.cn-text { margin-top: 12px; max-width: 29em; font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.55; color: var(--ink-2); }
.cn-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cn-facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: var(--r-pill);
  background: var(--bg); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.cn-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cat); transition: background .6s; }
.cn-more { display: inline-flex; gap: 6px; margin-top: 20px; font-weight: 600; font-size: 15px; border-bottom: 1.5px solid var(--line); padding-bottom: 2px; transition: border-color .3s; }
.cn-more:hover { border-color: var(--ink); }
.cn-more span { transition: transform .5s var(--ease); }
.cn-more:hover span { transform: translateX(4px); }

@media (max-width: 900px) {
  .cn-map { position: static; }
  .cn-map ol { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-lg); }
  .cn-map a { justify-content: flex-start; border-radius: var(--r-md); font-size: 13.5px; text-align: left; }
  .cn-step { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px; border-radius: var(--r-lg); scroll-margin-top: 90px; }
  .cn-step:nth-child(even) .cn-media { order: 0; }
  .cn-media { border-radius: var(--r-md); }
  .cn-body { padding: 14px 10px 14px; }
  .cn-num { font-size: 3rem; }
  .cn-title { margin-top: 8px; }
}

/* ---------------- SU MISURA ---------------- */
.sm { max-width: var(--max); margin: clamp(64px, 8vw, 124px) auto 0; padding: 0 var(--pad); }
.sm-in {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(22px, 4.6vw, 72px);
  border-radius: var(--r-xl); background: var(--ink); color: #fff;
}
.sm-in::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 50% at 100% 100%, color-mix(in srgb, var(--cat) 26%, transparent), transparent 70%),
    radial-gradient(40% 50% at 0% 70%, rgba(255, 255, 255, .06), transparent 70%);
}
.sm-photo {
  position: absolute; top: 0; right: 0; z-index: -1; width: 100%; height: min(78%, 640px); max-width: none; object-fit: cover; object-position: right top; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 70%), linear-gradient(0deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 22%, #000 70%), linear-gradient(0deg, transparent 0%, #000 40%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.sm-head { max-width: 40rem; }
.sm .sec-kicker { color: rgba(255, 255, 255, .6); }
.sm .sec-title { margin-top: 14px; }
.sm .sec-title em { display: block; color: rgba(255, 255, 255, .42); }
/* sottotitolo: stesso carattere del titolo, peso leggero, due toni */
.sm-lead {
  margin-top: 22px; max-width: 31em; font-family: var(--font-display); font-optical-sizing: auto; font-weight: 450;
  font-size: clamp(1.1rem, 1.42vw, 1.3rem); line-height: 1.5; letter-spacing: -.014em; color: #fff; text-wrap: pretty;
}
.sm-lead span { color: rgba(255, 255, 255, .58); }

/* tre garanzie: un'unica barra in vetro, tre voci identiche */
.sm-promise {
  display: grid; grid-template-columns: repeat(3, auto); width: max-content; margin-top: 32px; padding: 6px;
  border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--sh-lg);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.sm-promise li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; }
.sm-promise li + li::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: rgba(255, 255, 255, .12);
}
.sm-promise li + li { padding-left: 20px; }
.sm-pr-ic {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--cat) 20%, rgba(255, 255, 255, .04)); color: color-mix(in srgb, var(--cat) 45%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat) 40%, transparent); transition: background .6s, color .6s;
}
.sm-pr-tx { display: grid; gap: 2px; min-width: 0; }
.sm-pr-tx b { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -.012em; color: #fff; white-space: nowrap; }
.sm-pr-tx small { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 400; font-size: 12.5px; line-height: 1.3; letter-spacing: .005em; color: rgba(255, 255, 255, .52); }

.sm-ways {
  display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.2fr); align-items: stretch; gap: clamp(14px, 1.8vw, 26px);
  margin-top: clamp(34px, 4.4vw, 64px);
}
.sm-card { min-width: 0; padding: clamp(22px, 2.6vw, 38px); border-radius: var(--r-lg); }
.sm-way { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-optical-sizing: auto; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.sm-way b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; font-size: 12px; letter-spacing: 0; }
.sm-card h3 { margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; letter-spacing: -.03em; }
.sm-text { margin-top: 12px; font-family: var(--font-display); font-optical-sizing: auto; font-weight: 400; font-size: 15.5px; line-height: 1.55; letter-spacing: -.004em; text-wrap: pretty; }

/* strada A: email */
.sm-mail {
  display: flex; flex-direction: column; align-self: start; position: sticky; top: 100px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
}
.sm-mail .sm-text { color: rgba(255, 255, 255, .66); }

/* l'indirizzo in evidenza, con i due pulsanti gemelli */
.sm-addr {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 26px; padding: 22px 22px 20px; border-radius: var(--r-lg);
  background: linear-gradient(155deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03) 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), var(--sh-lg);
}
.sm-addr::before {
  content: ""; position: absolute; z-index: -1; top: -60%; right: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cat) 30%, transparent), transparent); opacity: .7; transition: background .6s;
}
.sm-addr-k {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-optical-sizing: auto;
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.sm-addr-k i { width: 7px; height: 7px; border-radius: 50%; background: #5BD48C; box-shadow: 0 0 0 4px rgba(91, 212, 140, .16); }
.sm-addr-v {
  display: block; width: fit-content; max-width: 100%; margin-top: 10px; font-family: var(--font-display); font-weight: 650;
  font-size: clamp(1.4rem, 2.05vw, 1.85rem); line-height: 1.1; letter-spacing: -.035em; color: #fff; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 3px; transition: background-size .6s var(--ease);
}
.sm-addr-v:hover { background-size: 100% 1.5px; }
.sm-addr-act { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.sm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; height: 52px; padding: 0 16px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-optical-sizing: auto; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .6s var(--ease), background .35s, color .35s, box-shadow .5s var(--ease);
}
.sm-btn svg { flex: none; }
.sm-btn-solid { background: #fff; color: var(--ink); box-shadow: var(--sh-md); }
.sm-btn-solid svg { color: var(--cat); transition: color .6s; }
.sm-btn-solid:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.sm-btn-glass { background: rgba(255, 255, 255, .07); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.sm-btn-glass svg { color: rgba(255, 255, 255, .7); }
.sm-btn-glass:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .13); }
.sm-copy.is-done { color: #7BE3A8; box-shadow: inset 0 0 0 1px rgba(123, 227, 168, .5); }
.sm-copy.is-done svg { color: #7BE3A8; }
.sm-btn:focus-visible, .sm-addr-v:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* cosa scriverci: tre righe numerate */
.sm-tips { margin-top: 30px; }
.sm-tips-t { font-family: var(--font-display); font-optical-sizing: auto; font-size: 15.5px; font-weight: 600; letter-spacing: -.012em; color: #fff; }
.sm-tips ol { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .1); }
.sm-tips li {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--font-display); font-optical-sizing: auto; font-size: 14.5px; line-height: 1.4; letter-spacing: -.004em; color: rgba(255, 255, 255, .56);
}
.sm-tips li b { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--cat) 55%, #fff); transition: color .6s; }
.sm-tips li strong { font-weight: 600; color: #fff; }
.sm-tips-f { margin-top: 14px; font-family: var(--font-display); font-optical-sizing: auto; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .46); }

/* separatore «oppure»: filo sottile e medaglione al centro */
.sm-or { position: relative; display: grid; place-items: center; width: 64px; }
.sm-or::before {
  content: ""; position: absolute; top: 4%; bottom: 4%; left: 50%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .2) 30%, color-mix(in srgb, var(--cat) 55%, transparent) 50%, rgba(255, 255, 255, .2) 70%, transparent);
}
.sm-or span {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2A2822, #15140F 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 0 0 8px var(--ink);
  font-family: var(--font-display); font-optical-sizing: auto; font-size: 13.5px; font-weight: 500; letter-spacing: -.005em; color: rgba(255, 255, 255, .82);
}

/* strada B: richiesta dal sito */
.sm-form { background: var(--surface); color: var(--ink); box-shadow: var(--sh-lg); }
.sm-form .sm-way { color: var(--cat); opacity: 1; transition: color .6s; }
.sm-form .sm-text { color: var(--ink-2); }
.sm-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 20px; min-width: 0; }
.sm-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; font-family: var(--font-display); font-optical-sizing: auto; font-size: 14.5px; font-weight: 600; letter-spacing: -.008em; }
.sm-label small { font-size: 12.5px; font-weight: 400; letter-spacing: .005em; color: var(--muted); }
.sm-form input:not([type="file"]), .sm-form textarea {
  display: block; width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #FBF8F2;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .3s, box-shadow .3s, background .3s;
}
.sm-form textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.sm-form input::placeholder, .sm-form textarea::placeholder { color: #A39D8F; }
.sm-form input:not([type="file"]):focus, .sm-form textarea:focus {
  outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat) 18%, transparent);
}
.sm-form [aria-invalid="true"] { border-color: #C8341C !important; box-shadow: 0 0 0 4px rgba(200, 52, 28, .12) !important; }
.sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sm-grid .sm-wide { grid-column: 1 / -1; }

.sm-drop {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 18px; border-radius: var(--r-md); text-align: center;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 22%, transparent); background: #FBF8F2;
  transition: border-color .3s, background .3s, transform .5s var(--ease);
}
.sm-drop:hover { border-color: color-mix(in srgb, var(--cat) 70%, transparent); background: color-mix(in srgb, var(--cat) 4%, #FBF8F2); }
.sm-drop.is-over { border-color: var(--cat); border-style: solid; background: color-mix(in srgb, var(--cat) 9%, #fff); transform: scale(1.01); }
.sm-drop:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.sm-drop.has-files { padding: 16px 18px; }
.sm-drop.has-files .sm-drop-ic { display: none; }
.sm-file { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.sm-file::-webkit-file-upload-button { cursor: pointer; }
.sm-drop-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: var(--r-md); background: #fff; color: var(--cat); box-shadow: var(--sh-sm); transition: color .6s; }
.sm-drop-txt { font-family: var(--font-display); font-optical-sizing: auto; font-size: 15px; letter-spacing: -.006em; color: var(--ink-2); }
.sm-drop-txt strong { font-weight: 600; }
.sm-drop-txt strong { color: var(--ink); }
.sm-drop-txt u { text-decoration-color: color-mix(in srgb, var(--cat) 60%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.sm-drop-hint { font-family: var(--font-display); font-optical-sizing: auto; font-size: 12px; letter-spacing: .01em; color: var(--muted); }

.sm-files { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sm-files:empty { display: none; }
.sm-fileitem { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: var(--r-md); background: #FBF8F2; border: 1px solid var(--line-2); animation: smIn .5s var(--ease) backwards; }
@keyframes smIn { from { opacity: 0; transform: translateY(6px); } }
.sm-thumb { flex: none; display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border-radius: var(--r-sm); background: #fff; }
.sm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sm-ext { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.sm-ext.is-3d { color: var(--cat); }
.sm-fileinfo { flex: 1; min-width: 0; }
.sm-fileinfo strong { display: block; overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.sm-fileinfo small { font-size: 12.5px; color: var(--muted); }
.sm-remove { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--muted); transition: background .3s, color .3s; }
.sm-remove:hover { background: rgba(21, 20, 15, .07); color: var(--ink); }

.sm-err { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: #FCEDE8; color: #9A2A14; font-size: 14px; line-height: 1.45; }
.sm-send { width: 100%; justify-content: space-between; margin-top: 22px; }
.sm-fine { display: flex; gap: 8px; margin-top: 14px; font-family: var(--font-display); font-optical-sizing: auto; font-size: 13px; line-height: 1.45; color: var(--muted); }
.sm-fine svg { flex: none; margin-top: 1px; color: var(--cat); }
.sm-fine b { color: var(--ink); font-weight: 600; }
.sm-fine a { text-decoration: underline; text-underline-offset: 2px; }

/* conferma */
.sm-done { display: grid; justify-items: start; outline: none; animation: smIn .7s var(--ease) backwards; }
.sm-done[hidden] { display: none; }
.sm-done-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-md); background: #E3F6EA; color: #1C9A55; animation: smPop .8s var(--ease) .1s backwards; }
@keyframes smPop { 0% { transform: scale(.5) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.08) rotate(3deg); } 100% { transform: none; } }
.sm-done h3 { margin-top: 20px; }
.sm-done .sm-text b { color: var(--ink); }
.sm-recap { display: grid; gap: 0; width: 100%; margin: 20px 0 0; padding: 4px 16px; border-radius: var(--r-md); background: #FBF8F2; border: 1px solid var(--line-2); }
.sm-recap div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.sm-recap div:first-child { border-top: 0; }
.sm-recap dt { color: var(--muted); }
.sm-recap dd { margin: 0; overflow-wrap: anywhere; }
.sm-preview { margin-top: 16px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.sm-done-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.sm-again { padding: 12px 6px; font-size: 15px; font-weight: 600; border-bottom: 1.5px solid var(--line); }
.sm-again:hover { border-color: var(--ink); }
.sm-attach { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 1080px) {
  .sm-ways { grid-template-columns: minmax(0, 1fr); }
  .sm-or { width: auto; height: 48px; }
  .sm-or::before { top: 50%; bottom: auto; left: 4%; right: 4%; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2) 30%, color-mix(in srgb, var(--cat) 55%, transparent) 50%, rgba(255, 255, 255, .2) 70%, transparent); }
  .sm-or span { width: auto; height: 40px; padding: 0 20px; border-radius: var(--r-pill); }
  .sm-form { order: 0; }
  .sm-mail { position: static; }
}
@media (max-width: 900px) {
  .sm-in { border-radius: var(--r-lg); }
  .sm-photo { height: 360px; object-position: 80% top; opacity: .42; }
}
@media (max-width: 900px) {
  .sm-promise { grid-template-columns: minmax(0, 1fr); width: 100%; border-radius: var(--r-md); }
  .sm-promise li, .sm-promise li + li { padding: 10px; }
  .sm-promise li + li::before { left: 12px; right: 12px; top: 0; bottom: auto; width: auto; height: 1px; }
}
@media (max-width: 520px) {
  .sm-in { padding: 24px 16px 16px; }
  .sm-card { padding: 20px 16px; border-radius: var(--r-lg); }
  .sm-grid { grid-template-columns: minmax(0, 1fr); }
  .sm-addr { padding: 18px 16px 16px; border-radius: var(--r-md); }
  .sm-addr-v { font-size: 1.32rem; }
  .sm-btn { height: 48px; padding: 0 12px; font-size: 14.5px; gap: 7px; }
  .sm-addr-act { grid-template-columns: minmax(0, 1fr); }
  .sm-done-act .btn { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-fileitem, .sm-done, .sm-done-ic { animation: none; }
  .cn-step.is-playing .cn-badge i { animation: none; }
}

/* ============================================================
   SU MISURA, due strade alla pari: email oppure foto + descrizione.
   Stessa larghezza, stesso peso; testi in Instrument Sans,
   etichette in IBM Plex Mono.
   ============================================================ */
.sm { --sm-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; }
.sm-lead, .sm-text, .sm-tips li, .sm-tips-f, .sm-fine, .sm-drop-txt, .sm-drop-hint, .sm-pr-tx small { font-family: var(--font-body); letter-spacing: 0; }
.sm-ways-k {
  margin-top: clamp(34px, 4.4vw, 60px); font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(255, 255, 255, .6); text-align: center;
}
.sm-ways-k b { font-weight: 600; color: #fff; }
.sm-ways { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); margin-top: 22px; }

/* le due schede: stessa superficie, stessa testata */
.sm-card { display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 0; box-shadow: var(--sh-lg); }
.sm-form > .sm-form-in { display: flex; flex-direction: column; flex: 1; }
.sm-mail { position: static; align-self: stretch; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sm-badge {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--cat) 88%, #fff), var(--cat)); box-shadow: 0 14px 26px -14px var(--cat); transition: background .6s;
}
.sm-card .sm-way, .sm-form .sm-way { order: 2; opacity: 1; color: var(--muted); font-family: var(--sm-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; }
.sm-card .sm-way b { width: 24px; height: 24px; border: 0; background: var(--ink); color: #fff; font-family: var(--sm-mono); font-size: 11.5px; }
.sm-card h3 { margin-top: 22px; }
.sm-mail .sm-text, .sm-form .sm-text { color: var(--ink-2); }

/* l'indirizzo: una tessera scura dentro la scheda chiara */
.sm-addr { background: var(--ink); box-shadow: var(--sh-md); color: #fff; }
.sm-addr-k { font-family: var(--sm-mono); font-weight: 500; letter-spacing: .1em; }
.sm-tips-t { color: var(--ink); font-family: var(--font-body); font-weight: 650; letter-spacing: -.005em; }
.sm-tips ol { border-top-color: var(--line); }
.sm-tips li { border-bottom-color: var(--line); color: var(--muted); }
.sm-tips li b { font-family: var(--sm-mono); color: var(--cat); }
.sm-tips li strong { color: var(--ink); }
.sm-tips-f { color: var(--muted); }
.sm-mail .sm-tips { margin: 28px 0 30px; }
/* esempio di email: mostra cosa scriverci */
.sm-mailprev {
  position: relative; margin-top: auto; padding: 16px 18px 18px; border-radius: var(--r-md); background: #FBF8F2; box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
.sm-mp-row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.sm-mp-row span { width: 62px; flex: none; font-family: var(--sm-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.sm-mp-body { margin-top: 10px; }
.sm-mp-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sm-mp-files i { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-sm); background: #fff; box-shadow: var(--sh-sm); font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.sm-mp-files svg { color: var(--cat); }
.sm-mp-tag { position: absolute; top: -10px; right: 16px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-family: var(--sm-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }

/* «oppure» tra le due */
.sm-or span { font-family: var(--sm-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* cosa succede dopo: tre passi su una riga */
.sm-next {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: clamp(22px, 2.6vw, 34px) 0 0; padding: 8px; list-style: none;
  border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.sm-next li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; }
.sm-next li + li { border-left: 1px solid rgba(255, 255, 255, .1); }
.sm-next b { flex: none; font-family: var(--sm-mono); font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--cat) 60%, #fff); padding-top: 2px; }
.sm-next span { font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .58); }
.sm-next strong { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 650; letter-spacing: -.015em; color: #fff; }

@media (max-width: 1080px) {
  .sm-ways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sm-next { grid-template-columns: minmax(0, 1fr); }
  .sm-next li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 520px) {
  .sm-ways-k { text-align: left; }
  .sm-badge { width: 46px; height: 46px; border-radius: 15px; }
  .sm-next li { padding: 12px 10px; }
}
/* sui telefoni le due strade sono una sotto l'altra: due scorciatoie gemelle in cima */
.sm-pick { display: none; }
@media (max-width: 1080px) {
  .sm-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .sm-pick a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 8px 12px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: #fff; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2;
  }
  .sm-pick b { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ink); font-family: var(--sm-mono); font-size: 11.5px; }
  #smMailCard, #smForm { scroll-margin-top: 90px; }
}

/* focus da tastiera sul fondo scuro della sezione: anello chiaro (quello scuro di base qui non si vede) */
.sm .sm-pick a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sm .sm-pick a { transition: background .3s, box-shadow .3s; }
@media (hover: hover) {
  .sm .sm-pick a:hover { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
}

/* ---------- riga d'informazione sopra le due strade: preventivo e buono del Club ----------
   prima erano due frasi grigie sciolte sul fondo scuro; ora una sola fascia leggibile (testo ≥ 7:1) */
.sm { --ring: #fff; }
.sm-info {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: clamp(34px, 4.4vw, 60px) auto 0; max-width: 1040px;
  border-radius: var(--r-md); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.sm-info p {
  display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 16px 22px 17px;
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .86); text-wrap: pretty;
}
.sm-info p + p { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .12); }
.sm-info b { font-weight: 600; color: #fff; }
.sm-info-ic {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin-top: -4px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .1); color: #fff;
}
.sm-info a {
  font-weight: 600; color: #fff; white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4);
  text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .3s;
}
.sm-info a:hover { text-decoration-color: #fff; }
.sm-info a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 760px) {
  .sm-info { grid-template-columns: minmax(0, 1fr); border-radius: var(--r-md); }
  .sm-info p { padding: 14px 16px 15px; font-size: 14px; }
  .sm-info p + p { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
}

/* a capo puliti: titoli e frasi brevi non lasciano una parola sola sull'ultima riga */
.sm .sec-title, .sm-card h3, .sm-info p, .sm-pr-tx b, .sm-next strong, .sm-tips-t, .sm-done h3 { text-wrap: balance; }
.sm-lead, .sm-text, .sm-fine span { text-wrap: pretty; }

/* (dettagli) la fascia d'informazione segue la colonna: parte dove partono titolo e testo e finisce con le schede sotto */
.sm-info { margin-left: 0; margin-right: 0; max-width: none; }
/* (dettagli 4) il link «dal modulo qui sotto» porta al modulo senza finire sotto la testata */
#smForm { scroll-margin-top: 100px; }
@media (max-width: 1080px) { #smForm { scroll-margin-top: 90px; } }

/* (giro 9) risposta al tocco sui comandi del su misura */
@media (prefers-reduced-motion: no-preference) {
  .sm-btn:active, .sm-again:active, .sm-pick a:active { scale: .97; }
}
