/* AF Inventions - shop map (l11) */
/* AF Inventions - DEMO del marketplace: stili aggiunti alle pagine vere.
   Usa le variabili del sito (--accent-blue, --bg-gray-1, --text-dark...). */
:root { --mp-line: #e5e5ea; --mp-green: #1e8e3e; --mp-green-soft: #e6f4ea; --mp-red: #d93025; --mp-red-soft: #fdeaea; --mp-amber: #b06000; --mp-amber-soft: #fff4d6; --mp-purple: #6f42c1; --mp-soft: color-mix(in srgb, var(--accent-blue) 10%, white); }

/* ---------- testo / utilita' ---------- */
.mp-muted { color: var(--text-gray); }
.mp-small { font-size: 0.84rem; }
.mp-tiny { font-size: 0.74rem; }
.mp-nowrap { white-space: nowrap; }
.mp-red { color: var(--mp-red); }
.mp-amber { color: var(--mp-amber); }

.mp-help { font-size: 0.76rem; color: var(--text-gray); margin-top: 5px; line-height: 1.4; }
.mp-h2 { font-size: 1.1rem; font-weight: 800; margin: 20px 0 10px; }
.mp-link { background: none; border: none; padding: 0; color: var(--accent-blue); font-weight: 600; font-size: inherit; cursor: pointer; font-family: inherit; }
.mp-link.mp-red { color: var(--mp-red); }
.mp-row-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mp-row-flex > .mp-input { flex: 1; min-width: 140px; }
.mp-grid2, .mp-grid3{ display: grid; gap: 0 14px; }
.mp-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mp-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mp-acc-h1 { margin: 0 0 4px; }
.mp-acc-sub { margin: 0 0 14px; }
.mp-acc-card a:not(.mp-btn):not(.btn-primary):not(.account-library-row), .mp-page a:not(.mp-btn):not(.btn-primary):not(.design-card):not(.mp-shopline):not(.account-library-row), .sm-modal a:not(.mp-btn):not(.btn-primary) { color: var(--accent-blue); text-decoration: none; font-weight: 600; }
.mp-acc-card a:not(.mp-btn):not(.btn-primary):hover, .mp-page a:not(.mp-btn):not(.btn-primary):not(.design-card):hover { text-decoration: underline; }

body.mp-noscroll { overflow: hidden; }
.mp-acc-card h1 { font-size: 1.6rem; }
.mp-acc-card .auth-field textarea, textarea.mp-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px; border: 1px solid #d2d2d7; font-size: 0.95rem; font-family: 'Inter', sans-serif; resize: vertical; }

/* ---------- bottoni / input ---------- */
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: none; border-radius: 22px; padding: 10px 18px; font-weight: 700; font-size: 0.86rem; cursor: pointer; background: var(--bg-gray-1); color: var(--text-dark); text-decoration: none; white-space: nowrap; font-family: 'Inter', sans-serif; line-height: 1.2; transition: background 0.2s ease; }
.mp-btn:hover { background: var(--bg-gray-2); }
.mp-btn:disabled { opacity: 0.45; cursor: default; }
.mp-btn-primary { background: var(--accent-blue); color: #fff; }
.mp-btn-primary:hover { background: color-mix(in srgb, var(--accent-blue) 82%, black); }
.mp-btn-green { background: var(--mp-green); color: #fff; }
.mp-btn-green:hover { background: #17753a; }
.mp-btn-red { background: var(--mp-red-soft); color: var(--mp-red); }
.mp-btn-red:hover { background: #fbd5d2; }
.mp-btn-sm { padding: 6px 12px; font-size: 0.78rem; }
button.btn-primary, .mp-buy { border: none; cursor: pointer; font-family: 'Inter', sans-serif; }
button.btn-primary:disabled { opacity: 0.45; cursor: default; }
.mp-buy { width: 100%; justify-content: center; margin-top: 14px; }
.mp-input { font-family: 'Inter', sans-serif; font-size: 0.92rem; padding: 10px 12px; border: 1px solid #d2d2d7; border-radius: 10px; background: #fff; color: var(--text-dark); width: 100%; box-sizing: border-box; }
.mp-input:focus { outline: none; border-color: var(--accent-blue); }
.mp-chk { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; margin: 8px 0; }
.mp-chk input { width: 17px; height: 17px; accent-color: var(--accent-blue); }
.mp-fl-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--text-gray); }
.mp-fl-inline select, .mp-inline-select { width: auto; max-width: 190px; padding: 6px 10px; font-size: 0.82rem; border-radius: 10px; border: 1px solid #d2d2d7; font-family: inherit; background: #fff; color: var(--text-dark); }
.mp-search { max-width: 260px; }
.mp-seg { display: inline-flex; flex-wrap: wrap; background: var(--bg-gray-1); border-radius: 14px; padding: 3px; gap: 3px; }
.mp-seg button { border: none; background: none; padding: 7px 12px; border-radius: 11px; font-weight: 700; font-size: 0.8rem; cursor: pointer; color: var(--text-gray); font-family: inherit; }
.mp-seg button.on { background: #fff; color: var(--text-dark); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.mp-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }

/* ---------- badge / note / banner ---------- */
.mp-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; border-radius: 10px; padding: 3px 9px; background: var(--bg-gray-1); color: #555; white-space: nowrap; }
.mp-badge.green { background: var(--mp-green-soft); color: var(--mp-green); }
.mp-badge.red { background: var(--mp-red-soft); color: var(--mp-red); }
.mp-badge.amber { background: var(--mp-amber-soft); color: var(--mp-amber); }
.mp-badge.blue { background: var(--mp-soft); color: var(--accent-blue); }
.mp-badge.purple { background: #efe8fb; color: var(--mp-purple); }

.mp-note { font-size: 0.8rem; border-radius: 12px; padding: 10px 12px; background: var(--mp-amber-soft); color: #6b4a00; margin-top: 10px; line-height: 1.45; }
.mp-note.blue { background: var(--mp-soft); color: #0b4a8f; }
.mp-note.green { background: var(--mp-green-soft); color: #145c2b; }
.mp-note.red { background: var(--mp-red-soft); color: #8c1d15; }
.mp-banner { border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; font-size: 0.88rem; line-height: 1.45; }
.mp-banner > span:first-child { flex: 1 1 260px; }
.mp-banner.amber { background: var(--mp-amber-soft); color: #6b4a00; }
.mp-banner.red { background: var(--mp-red-soft); color: #8c1d15; }
.mp-banner.green { background: var(--mp-green-soft); color: #145c2b; }
.mp-banner.blue { background: var(--mp-soft); color: #0b4a8f; }
.mp-empty { text-align: center; padding: 26px 16px; color: var(--text-gray); background: var(--bg-gray-1); border-radius: 16px; font-size: 0.9rem; line-height: 1.5; }

.mp-avatar { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; flex-shrink: 0; }
.mp-thumb { width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0; }
.mp-thumb.sm { width: 44px; height: 44px; border-radius: 10px; }

/* ---------- card, KPI, tabelle ---------- */
.mp-card { background: #fff; border: 1px solid var(--mp-line); border-radius: 18px; }
.mp-pad { padding: 18px; }
.mp-card h3 { font-size: 1rem; margin: 0 0 10px; }
.mp-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.mp-kpi { background: var(--bg-gray-1); border-radius: 16px; padding: 14px 16px; }
.mp-kpi .k { font-size: 0.7rem; font-weight: 800; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.4px; }
.mp-kpi .v { font-size: 1.4rem; font-weight: 800; margin-top: 3px; }
.mp-kpi .s { font-size: 0.74rem; color: var(--text-gray); margin-top: 2px; line-height: 1.35; }
.mp-kpi .s a { color: var(--accent-blue); text-decoration: none; font-weight: 600; }
.mp-table-wrap { overflow-x: auto; border: 1px solid var(--mp-line); border-radius: 16px; background: #fff; }
.mp-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.mp-table th { text-align: left; font-size: 0.68rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.4px; padding: 9px 10px; border-bottom: 1px solid var(--mp-line); font-weight: 800; }
.mp-table td { padding: 10px; border-bottom: 1px solid var(--mp-line); vertical-align: middle; }
.mp-table tr:last-child td { border-bottom: none; }

/* ---------- My Account: schede interne ---------- */
.auth-card.mp-acc-card { padding: 30px 28px; }
.mp-subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 18px; }
.mp-subtab { border: none; padding: 8px 14px; border-radius: 20px; background: var(--bg-gray-1); color: var(--text-dark); font-weight: 700; font-size: 0.82rem; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-family: inherit; }
.mp-subtab.on { background: var(--text-dark); color: #fff; }
.mp-n { background: var(--accent-blue); color: #fff; border-radius: 10px; font-size: 0.66rem; padding: 1px 6px; }
.mp-n.red { background: var(--mp-red); }
.mp-dash-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }

.mp-mode-row { gap: 12px; flex-wrap: wrap; }
.mp-mode-switch { display: inline-flex; }
.mp-mode-switch .printer-switch-btn { padding: 7px 12px; font-size: 0.78rem; }

.mp-settings h3 { margin-top: 0; }
.mp-profile { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* prodotti del negozio */
.mp-pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mp-pm { border: 1px solid var(--mp-line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.mp-pm-img { aspect-ratio: 16/11; position: relative; }
.mp-pm.locked .mp-pm-img { filter: grayscale(1); opacity: 0.55; }
.mp-pm-flag { position: absolute; top: 8px; left: 8px; }
.mp-pm-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mp-pm-title { font-weight: 800; font-size: 0.9rem; }
.mp-pm-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }

/* editor */
.mp-opt { font-size: 0.78rem; font-weight: 800; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.4px; margin: 20px 0 8px; }

.mp-photo-slot { width: 64px; height: 64px; border-radius: 12px; border: 2px dashed #c7c7cc; background: #fff center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--text-gray); cursor: pointer; font-size: 0.68rem; text-align: center; position: relative; overflow: hidden; line-height: 1.2; flex-shrink: 0; }
.mp-photo-slot.round { border-radius: 50%; }
.mp-photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.mp-cchip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--mp-line); border-radius: 16px; padding: 3px 6px 3px 4px; font-size: 0.76rem; font-weight: 600; background: #fff; font-family: inherit; color: var(--text-dark); }
.mp-cchip button { border: none; background: var(--bg-gray-1); width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font-size: 0.8rem; line-height: 1; padding: 0; color: #555; }
.mp-cchip button:hover { background: var(--mp-red-soft); color: var(--mp-red); }

.mp-photos-edit { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mp-ph { width: 80px; height: 80px; border-radius: 12px; background: var(--bg-gray-1) center/cover no-repeat; position: relative; }
.mp-ph button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,0.6); color: #fff; cursor: pointer; font-size: 0.7rem; }
.mp-wiz-steps { margin-right: 40px; display: flex; gap: 6px; margin-bottom: 16px; }
.mp-wiz-steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--bg-gray-2); }
.mp-wiz-steps span.on { background: var(--accent-blue); }

/* ---------- modale ---------- */
.sm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 5000; display: flex; align-items: flex-start; justify-content: center; padding: 50px 16px; overflow-y: auto; box-sizing: border-box; }
.sm-modal { background: #fff; border-radius: 22px; max-width: 540px; width: 100%; padding: 26px 24px 22px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); box-sizing: border-box; text-align: left; font-family: 'Inter', sans-serif; color: var(--text-dark); }
.sm-modal h2 { font-size: 1.3rem; margin: 0 40px 10px 0; letter-spacing: -0.01em; }
.mp-modal.wide { max-width: 840px; }
.mp-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--bg-gray-1); cursor: pointer; font-size: 0.95rem; color: var(--text-dark); }
.mp-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.sm-price { font-size: 1.8rem; font-weight: 800; margin: 10px 0 16px; }
.sm-btn { display: block; width: 100%; border: none; border-radius: 22px; padding: 13px 18px; font-weight: 700; font-size: 0.95rem; cursor: pointer; background: var(--bg-gray-1); color: var(--text-dark); margin-top: 8px; font-family: inherit; }
.sm-btn-primary { background: var(--accent-blue); color: #fff; }
.mp-picklist { display: grid; gap: 6px; margin-top: 12px; }
.mp-pick { display: flex; align-items: center; gap: 12px; border: 1px solid var(--mp-line); background: #fff; border-radius: 14px; padding: 9px 12px; cursor: pointer; text-align: left; font-family: inherit; color: var(--text-dark); font-size: 0.9rem; }
.mp-pick:hover { border-color: var(--accent-blue); background: var(--mp-soft); }
.mp-login-pick { margin: 0 0 22px; text-align: left; }
.mp-guide li { margin-bottom: 8px; line-height: 1.45; }

/* ---------- toast ---------- */
#sm-toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 6000; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.sm-toast { background: #1d1d1f; color: #fff; padding: 10px 16px; border-radius: 14px; font-size: 0.85rem; box-shadow: 0 8px 30px rgba(0,0,0,0.2); font-family: 'Inter', sans-serif; line-height: 1.4; text-align: center; }

/* ---------- barra della demo (in basso a sinistra) ---------- */
.sm-muted { color: #aaa; }

/* ---------- card dei design: negozi (solo modalita' Physical product) ---------- */
.mp-card-shops { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.95); color: var(--text-dark); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; box-shadow: 0 3px 10px rgba(0,0,0,0.15); white-space: nowrap; z-index: 2; pointer-events: none; }
.mp-card-shops i { color: var(--accent-blue); }
.mp-card-shops.lower { top: 42px; }

/* ---------- design.html: pannello Physical product ---------- */
#physical-product-btn.mp-active { outline: 3px solid color-mix(in srgb, var(--accent-blue) 35%, transparent); outline-offset: 2px; }
.mp-phys { margin: 14px 0 18px; border: 1px solid var(--mp-line); border-radius: 22px; padding: 18px; background: #fff; text-align: left; }
.mp-phys h2 { font-size: 1.25rem; margin: 0 0 4px; }
.mp-phys-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.mp-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.mp-filters .mp-chk { margin: 0; }
.mp-map { height: 470px; border-radius: 16px; overflow: hidden; background: var(--bg-gray-1); z-index: 1; position: relative; }
.mp-shoplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.mp-scard { border: 1px solid var(--mp-line); border-radius: 16px; padding: 12px; display: flex; gap: 12px; align-items: center; cursor: pointer; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.mp-scard:hover, .mp-scard.hl { border-color: var(--accent-blue); box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-blue) 14%, transparent); }
.mp-scard-ph { width: 60px; height: 60px; border-radius: 12px; flex-shrink: 0; }
.mp-scard-info { flex: 1; min-width: 0; }
.mp-scard-name { font-weight: 800; font-size: 0.9rem; }
.mp-scard-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.mp-scard-price { font-weight: 800; font-size: 1.05rem; }

/* segnaposto con il prezzo sulla mappa + popup */
.leaflet-div-icon.mp-icon { background: none; border: none; }
.mp-pin { background: #fff; border: 2px solid var(--accent-blue); color: #1d1d1f; border-radius: 16px; padding: 3px 9px; font-weight: 800; font-size: 0.78rem; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,0.18); transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 5px; position: relative; font-family: 'Inter', sans-serif; }
.mp-pin::after { content: ''; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--accent-blue); border-bottom: 0; }
.mp-pin .d { width: 16px; height: 16px; border-radius: 50%; background: var(--accent-blue) center/cover no-repeat; }
.mp-me { width: 16px; height: 16px; border-radius: 50%; background: var(--accent-blue); border: 3px solid #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-blue) 22%, transparent), 0 2px 6px rgba(0,0,0,0.3); transform: translate(-50%, -50%); position: relative; }
.mp-me .lb { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-size: 0.68rem; font-weight: 800; color: var(--accent-blue); background: rgba(255,255,255,0.9); padding: 0 4px; border-radius: 6px; white-space: nowrap; }
.mp-pop { font-family: 'Inter', sans-serif; width: 256px; color: var(--text-dark); }
.mp-pop-top { display: flex; gap: 10px; align-items: center; }
.mp-pop-name { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.mp-pop-city { font-size: 0.74rem; color: var(--text-gray); }

.mp-pop-shopbtn { width: 100%; box-sizing: border-box; padding: 7px 12px; font-size: 0.78rem; }
.leaflet-popup-content .mp-pop a.mp-pop-shopbtn { color: var(--text-dark); }
.mp-pop-info { list-style: none; padding: 0; margin: 8px 0 0; font-size: 0.74rem; color: #555; }
.mp-pop-info li { display: flex; gap: 8px; align-items: baseline; padding: 1px 0; }
.mp-pop-info i { width: 14px; text-align: center; color: var(--text-gray); flex-shrink: 0; }
.mp-pop-sep { display: flex; align-items: center; gap: 8px; margin: 9px 0 6px; font-size: 0.66rem; font-weight: 800; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.5px; }
.mp-pop-sep::before, .mp-pop-sep::after { content: ''; flex: 1; height: 1px; background: var(--mp-line); }
.mp-pop-prod { display: flex; gap: 10px; align-items: center; background: var(--bg-gray-1); border-radius: 12px; padding: 8px; }
.mp-pop-im { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; }
.mp-pop-ptitle { font-weight: 800; font-size: 0.86rem; line-height: 1.2; }
.mp-pop-price { font-weight: 800; font-size: 1.02rem; margin-top: 2px; }
.mp-pop-cust { width: 100%; box-sizing: border-box; margin-top: 7px; padding: 8px 12px; }
.leaflet-popup-content .mp-pop a.mp-pop-cust, .leaflet-popup-content .mp-pop a.mp-pop-cust:hover { color: #fff; }

/* ---------- shop.html ---------- */
.mp-page { width: 100%; max-width: 1100px; text-align: left; box-sizing: border-box; }
.auth-wrapper .mp-page { align-self: stretch; margin: 0 auto; }
.mp-page h1 { font-size: 1.7rem; }
.mp-ppage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; }
.mp-gmain { aspect-ratio: 1/1; border-radius: 20px; }
.mp-gthumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mp-gthumbs button { width: 60px; height: 60px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.mp-gthumbs button.on { border-color: var(--text-dark); }
.mp-shopline { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--text-dark); text-decoration: none; }
.mp-ptitle { font-size: 1.8rem; margin: 6px 0 6px; }
.mp-pdesc { color: #444; line-height: 1.5; margin: 0 0 6px; }

.mp-shophead { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.mp-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.mp-card-img { position: absolute; inset: 0; }
.mp-card-body { padding: 10px 14px 14px; }
.mp-card-price { font-weight: 800; margin-top: 4px; }

@media (max-width: 860px) {
  .mp-ppage, .mp-profile{ grid-template-columns: 1fr; gap: 18px; }
  .mp-map { height: 430px; }
  
  
  
  .mp-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .auth-card.mp-acc-card { padding: 22px 16px; }
  .mp-grid2, .mp-grid3 { grid-template-columns: 1fr; }
  
  
  .mp-table thead { display: none; }
  .mp-table, .mp-table tbody { display: block; }
  .mp-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 12px; border-bottom: 1px solid var(--mp-line); }
  .mp-table tr:last-child { border-bottom: none; }
  .mp-table td { display: block; border: none; padding: 0; }
  .mp-table td:first-child { flex-basis: 100%; }
  .mp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-kpi .v { font-size: 1.15rem; }
  .mp-scard { flex-wrap: wrap; }
  .mp-scard-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .mp-phys { padding: 14px; }
  .mp-ptitle { font-size: 1.45rem; }
  .sm-modal { padding: 22px 16px 18px; }
  .mp-mode-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- modalita' "Physical product": si nasconde tutto cio' che riguarda abbonamenti, file e punti ---------- */
html.mp-physical #account-tab-points, html.mp-physical #account-tab-achievements, html.mp-physical.mp-nodl #account-tab-library { display: none !important; }
html.mp-physical.mp-nosub #account-plan-row, html.mp-physical.mp-nosub #account-expand-plan, html.mp-physical.mp-nosub #account-expand-plan + .account-row,
html.mp-physical.mp-nosub #account-note, html.mp-physical.mp-nosub #account-discord-row { display: none !important; }
html.mp-physical .account-notif-row:has(#notif-toggle-tutorials-site), html.mp-physical #notif-row-afpoints { display: none !important; }
html.mp-physical li:has(> .afp-pill) { display: none !important; }
html.mp-physical #nav-links li:has(> a[href$="#membership"]), html.mp-physical #nav-links li.separator:has(+ li > a[href$="#membership"]),
html.mp-physical #nav-links li:has(> #nav-tutorial-link), html.mp-physical #nav-links li.separator:has(+ li > #nav-tutorial-link),
html.mp-physical footer li:has(> a[href$="#membership"]) { display: none !important; }
html.mp-physical #membership, html.mp-physical .action-buttons a[href="#membership"], html.mp-physical #saved-recommend-card, html.mp-physical #commercial-license-row { display: none !important; }

/* campanella: avvisi importanti */
.notif-item-avatar-placeholder.mp-n-danger { background: #fdeaea !important; color: #d93025 !important; }
.notif-item-avatar-placeholder.mp-n-warn { background: #fff4d6 !important; color: #b06000 !important; }
.notif-item.mp-n-danger-row { background: #fff7f6; }
.notif-item.mp-n-danger-row b { color: #d93025; }

/* dove arrivano i soldi del negozio */

/* "cosa cerchi?" (prima volta / iscrizione) */
.mp-ask h2 { margin-right: 0 !important; }

.mp-signup-mode .printer-switch { display: flex; width: 100%; box-sizing: border-box; }
.mp-signup-mode .printer-switch-btn { flex: 1; justify-content: center; }

/* admin: chi cerca file 3D / prodotti fisici */
.mp-modes-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.mp-modes-stats > div { background: var(--bg-gray-1); border-radius: 14px; padding: 12px; text-align: center; }
.mp-modes-stats .n { display: block; font-size: 1.6rem; font-weight: 800; }
.mp-modes-stats .l { font-size: 0.74rem; color: var(--text-gray); font-weight: 600; }
.mp-modes-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg-gray-2); margin-top: 10px; gap: 2px; }
.mp-modes-bar .f { background: var(--accent-blue); }
.mp-modes-bar .p { background: var(--mp-purple); }

/* pannello dei negozi sotto i tasti del design */
#mp-phys-host .mp-map { height: 420px; }
#mp-phys-host .mp-shoplist { grid-template-columns: 1fr; }
#mp-phys-host .mp-phys h2 { font-size: 1.15rem; }

/* stelle e recensioni */
.mp-stars { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--text-dark); white-space: nowrap; }
.mp-stars-ic { color: #f5a623; letter-spacing: 1px; font-size: 0.85em; }
.mp-stars-none { font-size: 0.8rem; color: var(--text-gray); }
.mp-pop-rate { margin-top: 2px; }
.mp-pop-rate .mp-stars { font-size: 0.74rem; }

/* pagina del negozio: intestazione ordinata */
.mp-shophead { align-items: flex-start; }
.mp-shophead-main { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.mp-shophead-main h1 { margin: 0; }
.mp-shophead-rate .mp-stars { font-size: 0.95rem; }

.mp-shopinfo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.mp-shopinfo-box { background: var(--bg-gray-1); border-radius: 16px; padding: 12px 14px; }
.mp-shopinfo-box .h { font-size: 0.72rem; font-weight: 800; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.mp-shopinfo-box .h i { color: var(--accent-blue); margin-right: 4px; }

/* dazi */

/* foto nella chat e nelle segnalazioni */

/* decisione (admin) */

@media (max-width: 860px) {
  .mp-shopinfo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
  #mp-phys-host .mp-map { height: 400px; }
}
@media (max-width: 480px) { .mp-shopinfo { grid-template-columns: 1fr; } }

/* ================= Il sito in due modalita' ================= */
/* FAQ: maker = 3D files + neutro; files = solo 3D files; buyer = Physical product + neutro */
html.mp-physical .faq-category[data-aud="maker"], html.mp-physical [data-aud="files"], html.mp-neutral [data-aud="files"], html.mp-files [data-aud="buyer"] { display: none !important; }

/* Physical product: niente file, download, punti, guide di stampa */
html.mp-physical #download-btn, html.mp-physical #design-free-badge, html.mp-physical .design-card-free-badge, html.mp-physical #filter-free-btn,
html.mp-physical #design-download-note, html.mp-physical #design-bundle-note, html.mp-physical #already-downloaded-badge,
html.mp-physical #afp-redeem-box, html.mp-physical #afp-choice-btn, html.mp-physical #afp-owned-note,
html.mp-physical .design-section-tab[data-section="guides"], html.mp-physical .design-section-tab[data-section="bundle"],
html.mp-physical #design-guides-section, html.mp-physical #design-bundle-tab-panel, html.mp-physical .design-extras-box,
html.mp-physical .design-info-row:has(#downloads-popover-wrap) { display: none !important; }
html.mp-physical .design-purchase-row #physical-product-btn { flex: 1 1 100%; background-color: var(--accent-blue); color: #fff; border-color: transparent; font-size: 0.98rem; }
html.mp-physical .design-purchase-row #physical-product-btn:hover { background-color: color-mix(in srgb, var(--accent-blue) 80%, black); }
html.mp-physical .design-purchase-row #physical-product-btn.mp-soon { background-color: #fff; color: var(--accent-blue); border: 2px solid var(--accent-blue); }
html.mp-physical .design-purchase-row #physical-product-btn.mp-soon:hover { background-color: var(--mp-soft); }

/* 3D files: niente tasto Physical product (al suo posto la riga "N shops sell it printed · Sell it too") */
html.mp-files #physical-product-btn { display: none !important; }
html.mp-files .design-purchase-row .download-btn-main, html.mp-files .design-purchase-row.prefer-physical .download-btn-main { flex: 1 1 100%; background-color: var(--accent-blue); color: #fff; font-size: 0.98rem; }

/* riga sotto i tasti del design */
.mp-dline { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--bg-gray-1); font-size: 0.84rem; line-height: 1.35; }
.mp-dline > i { color: var(--accent-blue); font-size: 1rem; }
.mp-dline > span { flex: 1; min-width: 0; }
.mp-dline .mp-link { font-weight: 700; font-size: inherit; }
.mp-dline-btn { flex-shrink: 0; border: none; background: #fff; color: var(--accent-blue); font-weight: 700; font-size: 0.8rem; font-family: inherit; padding: 8px 14px; border-radius: 20px; cursor: pointer; text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,0.08); white-space: nowrap; }
.mp-dline-btn:hover { background: var(--accent-blue); color: #fff; }
.mp-dline.soon { background: var(--mp-soft); }
@media (max-width: 480px) { .mp-dline.maker { flex-wrap: wrap; } .mp-dline.maker .mp-dline-btn { margin-left: auto; } }

/* card dei prodotti che nessun negozio vende ancora */
a.design-card.mp-card-unavail .design-card-track, a.design-card.mp-card-unavail .design-card-image-wrap > img { opacity: 0.45; filter: grayscale(0.85); }
.mp-card-soon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--text-dark); font-size: 0.72rem; font-weight: 700; padding: 6px 12px; border-radius: 20px; box-shadow: 0 3px 10px rgba(0,0,0,0.15); white-space: nowrap; z-index: 3; cursor: pointer; }
.mp-card-soon i { color: var(--accent-blue); }
.mp-card-soon:hover { background: var(--accent-blue); color: #fff; }
.mp-card-soon:hover i { color: #fff; }

/* dove si cambia senza account: una riga piccola in fondo alla pagina (01/10/2026) */
.mp-mode-foot { margin-top: 10px; font-size: 0.85rem; color: #86868b; line-height: 1.5; }
.mp-mode-foot > i { margin-right: 2px; }
.mp-mode-foot .mp-link { color: #2997ff; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }

.mp-ask-all { display: block; margin: 14px auto 0; font-size: 0.86rem; }

/* scelta gentile per chi non ha ancora scelto (non blocca niente) */
.mp-mode-hint { position: fixed; right: 18px; bottom: 18px; z-index: 9000; width: 290px; max-width: calc(100vw - 32px); background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 34px rgba(0,0,0,0.18); box-sizing: border-box; animation: mpHintIn 0.35s ease; }
.mp-mode-hint .mp-x { top: 8px; right: 8px; }
.mp-hint-t { font-weight: 800; font-size: 0.95rem; margin: 0 24px 2px 0; }
.mp-hint-btns { display: flex; gap: 8px; margin-top: 10px; }
.mp-hint-btns button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d2d2d7; background: var(--bg-gray-1); border-radius: 20px; padding: 9px 6px; font-family: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; color: var(--text-dark); white-space: nowrap; }
.mp-hint-btns button:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
@keyframes mpHintIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mp-mode-hint.inline { position: relative; left: auto; right: auto; bottom: auto; width: auto; max-width: none; margin: 28px 16px -24px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); z-index: 1; }

/* come diventare negozio */

/* checkout da ospite */

/* scelta del luogo (qualsiasi citta' o indirizzo) */
.mp-place-row { display: flex; gap: 8px; }
.mp-place-row .mp-input { flex: 1; min-width: 0; }
.mp-place-row .mp-btn { flex-shrink: 0; }
.mp-place-res { display: grid; gap: 6px; margin-top: 8px; }
.mp-place-res:empty { display: none; }
.mp-place-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; border: 1px solid var(--mp-line); background: #fff; border-radius: 12px; padding: 9px 12px; cursor: pointer; font-family: inherit; font-size: 0.88rem; color: var(--text-dark); }
.mp-place-opt > i { color: var(--accent-blue); margin-top: 3px; }
.mp-place-opt:hover { border-color: var(--accent-blue); background: var(--mp-soft); }
.mp-place-sel { margin-top: 8px; font-size: 0.9rem; }
.mp-place-sel:empty { display: none; }
.mp-place-sel > i { color: var(--accent-blue); }
.mp-place-map { display: none; height: 200px; border-radius: 14px; overflow: hidden; margin-top: 8px; background: var(--bg-gray-1); }
.mp-near-btn { margin: 0; }
.mp-near-pen { font-size: 0.7em; color: var(--text-gray); }

/* popup "come vuoi usare AF Inventions?": due riquadri con icona */
.mp-ask.mp-mode-pop h2 { text-align: center; margin: 4px 44px 16px !important; }
.mp-mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mp-mode-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; padding: 22px 12px 18px; border: 2px solid var(--mp-line); background: #fff; border-radius: 18px; cursor: pointer; font-family: inherit; color: var(--text-dark); font-size: 1rem; line-height: 1.25; text-align: center; transition: border-color 0.15s ease, background 0.15s ease; }
.mp-mode-card:hover { border-color: var(--accent-blue); }
.mp-mode-card.on { border-color: var(--accent-blue); background: var(--mp-soft); }
.mp-mode-card-ic { width: 64px; height: 64px; color: var(--accent-blue); display: block; }
.mp-mode-card-ic svg { width: 100%; height: 100%; display: block; }
.mp-mode-card-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-blue); color: #fff; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; }
.mp-mode-note { text-align: center; margin: 16px 0 0; }
@media (max-width: 420px) { .mp-mode-card { padding: 18px 8px 14px; font-size: 0.92rem; } .mp-mode-card-ic { width: 52px; height: 52px; } }

/* My Shop senza negozio: come funziona / vantaggi / costi */
.mp-intro-head { text-align: center; max-width: 640px; margin: 0 auto 18px; }
.mp-intro-head h2 { margin: 0 0 6px; font-size: 1.5rem; }
.mp-intro-head p { margin: 0; }

.mp-ibox { background: var(--bg-gray-1); border-radius: 18px; padding: 16px 18px; }

.mp-ibox ol, .mp-ibox ul { margin: 0; padding-left: 20px; font-size: 0.9rem; line-height: 1.45; display: grid; gap: 6px; }
.mp-ibox.ben ul { list-style: none; padding-left: 0; }
.mp-ibox.ben li { padding-left: 24px; position: relative; }
.mp-ibox.ben li::before { content: '✓'; position: absolute; left: 4px; color: var(--mp-green); font-weight: 800; }
.mp-ibox-big { font-size: 2.2rem; font-weight: 800; line-height: 1.05; }
.mp-ibox.cost ul { margin-top: 10px; }
.mp-intro-cta { text-align: center; margin-top: 20px; display: grid; justify-items: center; gap: 8px; }
.mp-modal .mp-intro-head { margin-right: 44px; margin-left: 44px; }

/* ================= Vetrina: link dove si compra ================= */
.mp-green { color: var(--mp-green); }
.mp-linkrow .mp-input { flex: 1; min-width: 0; }
.mp-linkres { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 0.88rem; line-height: 1.4; }
.mp-linkres > i { margin-top: 2px; }
.mp-linkres.ok { background: var(--mp-green-soft); color: #14532d; }
.mp-linkres.ok > i { color: var(--mp-green); }
.mp-linkres.warn { background: var(--mp-amber-soft); color: #6b4a00; }
.mp-linkres.warn > i { color: var(--mp-amber); }
.mp-linkres.bad { background: var(--mp-red-soft); color: #7f1d1d; }
.mp-price-auto { display: flex; align-items: center; gap: 10px; }
.mp-shipchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mp-shipadd select { max-width: 220px; }
.mp-linkbox { background: var(--bg-gray-1); border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, Menlo, monospace; font-size: 0.74rem; word-break: break-all; margin: 10px 0; }
.mp-buyout { white-space: nowrap; }
.mp-buyout i { font-size: 0.8em; margin-left: 2px; }
.mp-pop-cust.mp-buyout { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
.mp-scard-right .mp-buyout { margin-top: 4px; }
.mp-pprice { font-size: 1.8rem; font-weight: 800; margin-top: 10px; }
.mp-buy.mp-buyout { width: 100%; justify-content: center; display: flex; margin: 14px 0 10px; padding: 14px; font-size: 1rem; }
.mp-shopcard .mp-buyout { margin-top: 8px; width: 100%; justify-content: center; display: flex; box-sizing: border-box; }
.mp-wz-prod td { vertical-align: top; }
/* il vecchio tab "Shop Map" (richieste dei negozi) e' sostituito da "Shop map" della vetrina */
#account-tab-shopmap { display: none !important; }

/* ===== 01/10/2026: pagina del negozio essenziale (copertina, logo, nome, dove, spedizioni, dove si compra) ===== */
.mp-shop-cover { height: 220px; border-radius: 20px; background: #1d1d1f center/cover no-repeat; }
.mp-shophead { display: flex; gap: 18px; align-items: flex-start; flex-wrap: nowrap; margin: 0 0 18px 24px; position: relative; }
/* solo il logo sale sulla copertina: nome e dati restano sotto, leggibili su qualsiasi foto */
.mp-shophead > .mp-avatar{ margin-top: -48px; box-shadow: 0 0 0 5px #fff, 0 6px 18px rgba(0,0,0,0.12); }
.mp-shophead-main { flex: 1; min-width: 0; display: grid; gap: 4px; padding-top: 12px; }
.mp-shophead-rate { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.mp-shophead-rate .mp-tiny { font-size: 0.82rem; }
.mp-shophead-main h1 { margin: 0; font-size: 1.9rem; line-height: 1.15; overflow-wrap: anywhere; }
.mp-shopinfo { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 8px; }
.mp-shopinfo-box { padding: 14px 16px; }
.mp-where { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-where-btn { text-decoration: none !important; }
.mp-where-btn i:last-child { font-size: 0.75em; }
@media (max-width: 600px) {
  .mp-shop-cover { height: 140px; border-radius: 16px; }
  .mp-shophead { margin: 0 0 14px 12px; gap: 12px; }
  .mp-shophead > .mp-avatar{ width: 76px !important; height: 76px !important; font-size: 26px !important; margin-top: -38px; }
  .mp-shophead-main { padding-top: 6px; }
  .mp-shophead-main h1 { font-size: 1.4rem; }
  .mp-shopinfo { grid-template-columns: 1fr; }
}

/* card dei prodotti: tutte uguali, prezzo e tasto sempre alla stessa altezza */
.mp-cardgrid { align-items: stretch; }
.design-card.mp-shopcard { display: flex; flex-direction: column; height: 100%; }
.mp-shopcard .mp-card-body { flex: 1; display: flex; flex-direction: column; }
.mp-shopcard .design-card-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-card-sub { font-size: 0.8rem; color: var(--text-gray); line-height: 1.35; margin-top: 2px; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-card-foot { margin-top: auto; padding-top: 8px; }

/* "Metti il tuo negozio sulla mappa": tre riquadri con una riga */
.mp-ibox p { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.mp-ibox.cost p { margin-top: 4px; }
.mp-intro-head { margin-bottom: 14px; }

/* copertina nel profilo e nella creazione del negozio */
.mp-photo-slot { position: relative; overflow: hidden; }
.mp-photo-slot.wide { width: 150px; height: 64px; text-align: center; font-size: 0.72rem; }

/* riga in fondo alla pagina per i visitatori (vedi ui-modes.js) */
footer .mp-mode-foot button.mp-link { padding: 0; }
.mp-etsy-rate { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; vertical-align: middle; }
/* la scelta gentile sta sopra il tasto arancione "?" dell'assistenza, non sopra */
.mp-mode-hint:not(.inline) { bottom: 92px; }
/* chi usa il sito per i prodotti fisici: niente "Add your shop" sulla mappa e niente nota sulla licenza dei file */
html.mp-physical #add-shop-btn, html.mp-physical .design-footer-license-note { display: none !important; }
.mp-card-soon { max-width: calc(100% - 20px); white-space: normal; text-align: center; line-height: 1.3; box-sizing: border-box; }

/* ===== Come funziona la mappa per i negozi: 3 passaggi da cliccare con un disegno ciascuno ===== */
.mp-intro { max-width: 860px; margin: 0 auto; }
.mp-intro-head { text-align: center; max-width: 640px; margin: 0 auto 18px; }
.mp-intro-head h2 { font-size: 1.55rem; line-height: 1.2; margin: 0 0 6px; text-wrap: balance; }
.mp-intro-head p { margin: 0; }

/* i disegni */

  

/* animazione: parte quando si apre un passaggio (risponde al clic), niente movimento se l'utente lo ha disattivato */

@keyframes mpSwBg { from { background: #c7c7cc; } to { background: var(--mp-green, #34a853); } }
@keyframes mpSwKnob { from { left: 2px; } to { left: 16px; } }
@keyframes mpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mpPinDrop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes mpTap { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(18); opacity: 0; } }
@keyframes mpRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* perche' conviene / cosa serve */

.mp-intro-cta { text-align: center; margin-top: 20px; display: grid; justify-items: center; gap: 8px; }
.mp-modal .mp-intro-head { margin-left: 40px; margin-right: 40px; }
@media (max-width: 700px) {
  
  
  
  
  
  
  .mp-intro-head h2 { font-size: 1.25rem; }
  .mp-modal .mp-intro-head { margin-left: 30px; margin-right: 30px; }
}

.mp-where-socs { display: flex; gap: 8px; margin-top: 10px; }
.mp-where-soc { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--text-dark) !important; text-decoration: none !important; font-size: 1rem; }
.mp-where-soc:hover { background: var(--bg-gray-2, #e5e5ea); }

/* telefono: i passaggi non attivi mostrano solo il numero, quello aperto anche il nome */

/* ===== 01/10/2026 notte: spiegazione ancora piu' corta ===== */
/* parole importanti evidenziate */

/* tutti i passaggi occupano lo stesso spazio: Back / Next non si spostano mai */

/* tre vantaggi: simbolo, titolo, una riga sotto */

/* cosa serve */

/* ===== Frasi che vanno a capo bene, su tutto il sito (niente righe con una o due parole sole) ===== */
h1, h2, h3, h4, .section-subtitle, .auth-subtitle, .mp-intro-head p, .mp-ibox-big, .faq-question, .plan-card h3, .mp-banner span, .mp-empty b { text-wrap: balance; }
p, li, .faq-answer-content, .mp-help, .mp-small, .mp-note, .mp-empty, .design-card-title, .mp-card-sub, .comment-text, .mp-dline span, .mp-mode-note, .mp-hint-t { text-wrap: pretty; }

.mp-modal .mp-intro-head { margin-left: 44px; margin-right: 44px; }

.plan-trust-item p, .plan-immediate-note{ text-wrap: balance; }

/* ===== 02/10/2026: "Metti il tuo negozio sulla mappa" come una strada da scorrere ===== */
.mp-road { position: relative; margin: 6px 0 10px; padding: 10px 0 20px;
  --road-1: #1769ff; --road-2: #0a9bdc; --road-3: #10a89b; --road-4: #34a853; --road-5: #f2a20c;
  --road-t1: #1557d6; --road-t2: #0779b0; --road-t3: #0b7f75; --road-t4: #23803f; --road-t5: #a96b00; }
.mp-road-svg { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; overflow: visible; }
.mp-road-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mp-road-svg .ahead { stroke: #d5dbe2; stroke-width: 5; stroke-dasharray: 1 12; }
.mp-road-svg .done { stroke-width: 9; transition: stroke-dashoffset 0.12s linear; }
.mp-road-hint { margin-top: 12px; color: var(--text-gray); font-size: 1rem; }
.mp-stop { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; gap: 26px; min-height: 220px; }
.mp-stop + .mp-stop { margin-top: 18px; }
.mp-stop-text { grid-row: 1; }
.mp-stop.odd .mp-stop-text { grid-column: 1; text-align: right; justify-self: end; }
.mp-stop.odd .mp-stop-art { grid-column: 3; justify-self: start; }
.mp-stop.even .mp-stop-text { grid-column: 3; text-align: left; justify-self: start; }
.mp-stop.even .mp-stop-art { grid-column: 1; justify-self: end; }
.mp-road-node { grid-column: 2; grid-row: 1; justify-self: center; width: 64px; height: 64px; border-radius: 50%; background: #c7ced6; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; box-shadow: 0 0 0 7px #fff, 0 8px 18px rgba(0,0,0,0.12); transition: background 0.35s ease, transform 0.35s ease; }
.mp-stop.odd .mp-road-node { transform: translateX(-18px); }
.mp-stop.even .mp-road-node { transform: translateX(18px); }
.mp-stop.in .mp-road-node { background: var(--c); }
.mp-stop.goal .mp-road-node { width: 78px; height: 78px; font-size: 1.7rem; }
.mp-stop-num { font-size: 0.8rem; font-weight: 800; color: #9aa3ad; transition: color 0.35s ease; margin-bottom: 2px; }
.mp-stop.in .mp-stop-num { color: var(--ct); }
.mp-stop-text h3 { margin: 0 0 6px; font-size: 1.3rem; line-height: 1.25; }
.mp-stop-text mark { background: none; color: var(--ct); font-weight: 800; }
.mp-stop-text p { margin: 0; font-size: 0.98rem; line-height: 1.5; color: #333; max-width: 30ch; }
.mp-stop.odd .mp-stop-text p { margin-left: auto; }
.mp-stop-text p b { color: var(--text-dark); }
.mp-stop-done { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.82rem; font-weight: 800; color: var(--mp-green, #34a853); background: color-mix(in srgb, var(--mp-green, #34a853) 12%, #fff); border-radius: 12px; padding: 4px 10px; }
.mp-stop-art { width: 100%; max-width: 300px; }

/* i disegni */
.mp-art { position: relative; overflow: hidden; background: color-mix(in srgb, var(--c) 10%, #fff); border-radius: 20px; min-height: 170px; padding: 16px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.8rem; }
/* 1. licenza: il timbro con il logo AF */
.mp-art-lic .paper { position: relative; width: 190px; height: 128px; background: #fff; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,0.1); transform: rotate(-3deg); padding: 14px 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; }
.mp-art-lic .paper b { font-size: 0.82rem; }
.mp-art-lic .paper span { font-size: 0.7rem; font-weight: 800; color: var(--ct); }
.mp-art-lic .paper i { display: block; height: 5px; width: 70%; border-radius: 3px; background: #e5e9ee; }
.mp-art-lic .paper i.short { width: 45%; }
.mp-art-lic .seal { position: absolute; right: 12px; bottom: 10px; width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--c); background: #fff; display: flex; align-items: center; justify-content: center; transform: rotate(-14deg); }
.mp-art-lic .seal img { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; }
.mp-art-lic .stamp { position: absolute; right: calc(50% - 95px + 12px); bottom: calc(50% - 64px + 46px); width: 58px; display: flex; flex-direction: column; align-items: center; opacity: 0; }
.mp-art-lic .stamp .knob { width: 22px; height: 22px; border-radius: 50%; background: #3a3f45; }
.mp-art-lic .stamp .neck { width: 10px; height: 16px; background: #3a3f45; }
.mp-art-lic .stamp .base { width: 54px; height: 14px; border-radius: 4px; background: #3a3f45; border-bottom: 5px solid var(--c); }
/* 2. il negozio apre */
.mp-art-shop .store { width: 176px; }
.mp-art-shop .awning { display: flex; height: 26px; transform-origin: top; border-radius: 6px 6px 0 0; overflow: hidden; }
.mp-art-shop .awning i { flex: 1; background: var(--c); border-radius: 0 0 12px 12px; }
.mp-art-shop .awning i:nth-child(even) { background: #fff; }
.mp-art-shop .front { display: flex; gap: 8px; background: #fff; padding: 10px; border-radius: 0 0 10px 10px; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.mp-art-shop .win { flex: 1; height: 62px; border-radius: 6px; background: color-mix(in srgb, var(--c) 18%, #fff); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ct); font-size: 0.74rem; text-align: center; }
.mp-art-shop .door { width: 44px; height: 70px; border-radius: 6px 6px 0 0; background: #3a3f45; position: relative; }
.mp-art-shop .sign { position: absolute; left: 3px; right: 3px; top: 10px; height: 16px; perspective: 200px; }
.mp-art-shop .sign em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 0.5rem; font-weight: 800; border-radius: 3px; backface-visibility: hidden; }
.mp-art-shop .sign .c { background: #e9ecef; color: #6b7280; }
.mp-art-shop .sign .o { background: var(--mp-green, #34a853); color: #fff; transform: rotateX(180deg); }
.mp-art-shop .spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: 0; }
.mp-art-shop .s1 { left: 18%; top: 18%; } .mp-art-shop .s2 { right: 16%; top: 24%; } .mp-art-shop .s3 { right: 22%; bottom: 16%; }
/* 3. accendi i design */
.mp-art-sw { flex-direction: column; align-items: stretch; gap: 7px; }
.mp-art-sw .row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 6px 10px 6px 6px; }
.mp-art-sw .th { width: 28px; height: 28px; border-radius: 8px; background-color: #dde3ea; flex-shrink: 0; }
.mp-art-sw .nm { flex: 1; font-weight: 800; font-size: 0.76rem; }
.mp-art-sw .sw { width: 34px; height: 20px; border-radius: 12px; background: var(--mp-green, #34a853); position: relative; flex-shrink: 0; }
.mp-art-sw .sw::after { content: ''; position: absolute; top: 2px; left: 16px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.mp-art-sw .link { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px dashed #c7c7cc; border-radius: 12px; padding: 7px 10px; color: var(--text-gray); }
.mp-art-sw .link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-art-sw .link b { color: var(--mp-green, #34a853); white-space: nowrap; }
/* 4. ti trovano sulla mappa */
.mp-art-map .video { width: 64px; height: 100px; border-radius: 12px; background: #1d1d1f; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 0.56rem; font-weight: 700; text-align: center; flex-shrink: 0; }
.mp-art-map .video i { font-size: 1.1rem; }
.mp-art-map .arr { color: var(--ct); }
.mp-art-map .map { position: relative; flex: 1; height: 120px; border-radius: 12px; background: #e9eef2; background-image: radial-gradient(circle at 22% 30%, #dfe6ec 0 20%, transparent 21%), radial-gradient(circle at 78% 70%, #dfe6ec 0 24%, transparent 25%), linear-gradient(115deg, transparent 46%, #fff 46% 49%, transparent 49%); }
.mp-art-map .pin { position: absolute; background: #fff; border: 2px solid var(--c); border-radius: 14px; padding: 2px 7px; font-weight: 800; font-size: 0.72rem; box-shadow: 0 3px 8px rgba(0,0,0,0.12); }
.mp-art-map .pin.you { background: var(--c); color: #fff; }
.mp-art-map .pin em { font-style: normal; font-size: 0.62rem; margin-left: 4px; opacity: 0.9; }
.mp-art-map .p1 { left: 8%; top: 14%; } .mp-art-map .p2 { left: 30%; top: 50%; } .mp-art-map .p3 { right: 8%; top: 12%; }
/* 5. traguardo: il cliente compra */
.mp-art-buy { flex-direction: column; gap: 10px; }
.mp-art-buy .buyer { position: absolute; left: 16px; bottom: 14px; display: flex; flex-direction: column; align-items: center; }
.mp-art-buy .head { width: 22px; height: 22px; border-radius: 50%; background: #f1c27d; }
.mp-art-buy .body { width: 34px; height: 30px; border-radius: 16px 16px 6px 6px; background: var(--road-1); margin-top: 3px; }
.mp-art-buy .btn { position: relative; overflow: hidden; background: #1769ff; color: #fff; font-weight: 800; border-radius: 20px; padding: 9px 16px; }
.mp-art-buy .btn i { font-size: 0.75em; margin-left: 4px; }
.mp-art-buy .tap { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255,255,255,0.6); transform: scale(0); }
.mp-art-buy .order { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 9px 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.1); line-height: 1.3; }
.mp-art-buy .order i { color: var(--ct); font-size: 1.1rem; }
.mp-art-buy .conf { position: absolute; width: 7px; height: 11px; border-radius: 2px; opacity: 0; top: 50%; left: 50%; }
.mp-art-buy .c1 { background: var(--road-1); } .mp-art-buy .c2 { background: var(--road-2); } .mp-art-buy .c3 { background: var(--road-3); } .mp-art-buy .c4 { background: var(--road-4); } .mp-art-buy .c5 { background: var(--road-5); }

/* animazioni: partono quando arrivi alla tappa scorrendo; niente movimento se l'utente lo ha disattivato */
@media (prefers-reduced-motion: no-preference) {
  .mp-stop.in .mp-road-node { animation: mpNodePop 0.45s ease; }
  .mp-stop .mp-art-lic .seal { opacity: 0; }
  .mp-stop.in .mp-art-lic .stamp { animation: mpStamp 1.5s ease 0.15s both; }
  .mp-stop.in .mp-art-lic .seal { animation: mpSeal 0.4s ease 0.62s both; }
  .mp-stop .mp-art-shop .awning { transform: scaleY(0); }
  .mp-stop.in .mp-art-shop .awning { animation: mpAwning 0.55s cubic-bezier(.2,1.3,.5,1) 0.2s both; }
  .mp-stop.in .mp-art-shop .sign .c { animation: mpFlipOut 0.5s ease 0.9s both; }
  .mp-stop.in .mp-art-shop .sign .o { animation: mpFlipIn 0.5s ease 0.9s both; }
  .mp-stop.in .mp-art-shop .spark { animation: mpSpark 0.7s ease both; }
  .mp-stop.in .mp-art-shop .s1 { animation-delay: 1.3s; } .mp-stop.in .mp-art-shop .s2 { animation-delay: 1.45s; } .mp-stop.in .mp-art-shop .s3 { animation-delay: 1.6s; }
  .mp-stop .mp-art-sw .sw { background: #c7c7cc; }
  .mp-stop .mp-art-sw .sw::after { left: 2px; }
  .mp-stop.in .mp-art-sw .sw { animation: mpSwBg 0.35s ease both; animation-delay: calc(0.3s + var(--i) * 0.35s); }
  .mp-stop.in .mp-art-sw .sw::after { animation: mpSwKnob 0.35s ease both; animation-delay: calc(0.3s + var(--i) * 0.35s); }
  .mp-stop .mp-art-sw .link b { opacity: 0; }
  .mp-stop.in .mp-art-sw .link b { animation: mpFadeIn 0.4s ease 1.5s both; }
  .mp-stop .mp-art-map .pin { opacity: 0; }
  .mp-stop.in .mp-art-map .pin { animation: mpPinDrop 0.45s cubic-bezier(.2,1.4,.5,1) both; }
  .mp-stop.in .mp-art-map .p1 { animation-delay: 0.5s; } .mp-stop.in .mp-art-map .p2 { animation-delay: 0.8s; } .mp-stop.in .mp-art-map .p3 { animation-delay: 1.1s; }
  .mp-stop.in .mp-art-map .video i { animation: mpPulse 0.9s ease 0.1s 2; }
  .mp-stop.in .mp-art-buy .tap { animation: mpTap 0.7s ease-out 0.4s both; }
  .mp-stop .mp-art-buy .order { opacity: 0; }
  .mp-stop.in .mp-art-buy .order { animation: mpRise 0.45s ease 0.9s both; }
  .mp-stop.in .mp-art-buy .conf { animation: mpConf 0.9s ease-out 1.1s both; }
  .mp-stop.in .mp-art-buy .c1 { --dx: -70px; --dy: -60px; } .mp-stop.in .mp-art-buy .c2 { --dx: 60px; --dy: -70px; } .mp-stop.in .mp-art-buy .c3 { --dx: -90px; --dy: 10px; } .mp-stop.in .mp-art-buy .c4 { --dx: 90px; --dy: 0px; } .mp-stop.in .mp-art-buy .c5 { --dx: 10px; --dy: -80px; }
  .mp-road-hint i { animation: mpHint 1.6s ease-in-out 3; }
}
@keyframes mpNodePop { 0% { scale: 0.7; } 70% { scale: 1.12; } 100% { scale: 1; } }
@keyframes mpStamp { 0% { opacity: 0; transform: translateY(-70px); } 30% { opacity: 1; transform: translateY(0); } 38% { transform: translateY(4px) scaleY(0.92); } 52% { transform: translateY(0); opacity: 1; } 100% { opacity: 0; transform: translateY(-80px); } }
@keyframes mpSeal { from { opacity: 0; transform: rotate(-14deg) scale(1.5); } to { opacity: 1; transform: rotate(-14deg) scale(1); } }
@keyframes mpAwning { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes mpFlipOut { from { transform: rotateX(0); } to { transform: rotateX(-180deg); } }
@keyframes mpFlipIn { from { transform: rotateX(180deg); } to { transform: rotateX(0); } }
@keyframes mpSpark { 0% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(0.6); } }
@keyframes mpPulse { 50% { transform: scale(1.3); } }
@keyframes mpConf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(220deg); } }
@keyframes mpHint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .mp-road-svg .done { transition: none; } }

/* telefono: la strada sta a sinistra, testo e disegno a destra */
@media (max-width: 700px) {
  .mp-stop { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 14px; min-height: 0; align-items: start; }
  .mp-stop + .mp-stop { margin-top: 30px; }
  .mp-stop.odd .mp-stop-text, .mp-stop.even .mp-stop-text { grid-column: 2; grid-row: 1; text-align: left; justify-self: start; }
  .mp-stop.odd .mp-stop-art, .mp-stop.even .mp-stop-art { grid-column: 2; grid-row: 2; justify-self: stretch; max-width: none; }
  .mp-stop .mp-road-node, .mp-stop.odd .mp-road-node, .mp-stop.even .mp-road-node { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 46px; height: 46px; font-size: 1.05rem; box-shadow: 0 0 0 5px #fff, 0 6px 14px rgba(0,0,0,0.12); transform: none; }
  .mp-stop.goal .mp-road-node { width: 54px; height: 54px; font-size: 1.2rem; }
  .mp-stop.odd .mp-stop-text p { margin-left: 0; }
  .mp-stop-text h3 { font-size: 1.12rem; }
  .mp-stop-text p { max-width: none; font-size: 0.94rem; }
  .mp-art { min-height: 150px; }
}
/* 02/10/2026: tappe piu' distanziate, la strada e' piu' lunga */
.mp-stop + .mp-stop { margin-top: 110px; }
.mp-road { padding-top: 30px; padding-bottom: 50px; }
@media (max-width: 700px) { .mp-stop + .mp-stop { margin-top: 80px; } }

/* 02/10/2026: i popup piccoli si aprono al centro dello schermo (quelli lunghi
   partono comunque dall'alto e scorrono: i margini "auto" diventano 0). Il
   modulo per creare il negozio e gli altri popup larghi restano in alto, cosi'
   non saltano quando cambiano passo. */
.sm-overlay > .sm-modal:not(.wide) { margin-top: auto; margin-bottom: auto; }

/* Popup "Want your shop on the AF Inventions map?" */
.mp-join { text-align: center; }
.mp-join-ic { font-size: 2.4rem; line-height: 1; margin-bottom: 6px; }
.mp-join h2 { margin: 0 34px 10px; text-wrap: balance; }
/* 3 passaggi corti al posto della frase lunga (computer: in fila con le frecce; telefono: uno sotto l'altro) */
.mp-join-steps { list-style: none; margin: 18px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.mp-join-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.95rem; line-height: 1.35; color: var(--text-dark, #1d1d1f); }
.mp-join-step .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: var(--c); background: var(--cs); }
.mp-join-step .tx { display: flex; flex-direction: column; gap: 3px; }
.mp-join-step .t { text-wrap: balance; }
.mp-join-step .t b { color: var(--c); font-weight: 700; }
.mp-join-step .sub { font-size: 0.78rem; color: #6e6e73; text-wrap: balance; }
.mp-join-step.s1 { --c: #1769ff; --cs: #e8f0ff; }
.mp-join-step.s2 { --c: #0c8f84; --cs: #e2f6f4; }
.mp-join-step.s3 { --c: #c27c00; --cs: #fdf1db; }
.mp-join-step + .mp-join-step::before { content: ''; position: absolute; left: -18px; top: 21px; width: 8px; height: 8px; border-top: 2.5px solid #c3cad5; border-right: 2.5px solid #c3cad5; transform: rotate(45deg); }
@media (max-width: 520px) {
  .mp-join-steps { grid-template-columns: 1fr; gap: 12px; margin: 14px auto 14px; max-width: 290px; }
  .mp-join-step { flex-direction: row; text-align: left; gap: 14px; }
  .mp-join-step .ic { width: 44px; height: 44px; font-size: 1.1rem; flex: 0 0 auto; }
  .mp-join-step + .mp-join-step::before { display: none; }
}
.mp-join .mp-foot { justify-content: center; }

/* sito vero */
.mp-busy { opacity: .65; cursor: progress; }
.mp-claim h3 { margin-top: 0; }
.mp-sale > * { white-space: nowrap; }
.mp-sale .mp-was { color: var(--text-gray, #86868b); font-weight: 500; font-size: .82em; margin-right: 2px; }
.mp-mode-sel { width: auto; padding: 5px 30px 5px 10px; font-size: .82rem; font-weight: 700; border-radius: 20px; }
.mp-mode-sel.files { color: #1a7f37; } .mp-mode-sel.physical { color: #6b3fd4; } .mp-mode-sel.none { color: var(--text-gray, #86868b); }
.mp-adm-ph { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.mp-adm-ph a { width: 44px; height: 44px; border-radius: 8px; background: var(--bg-gray-1, #f5f5f7) center/cover no-repeat; display: block; }
.mp-sale .mp-now { color: #c5221f; }
.mp-sale .mp-off { display: inline-block; background: #fdeaea; color: #c5221f; font-size: .68em; font-weight: 700; padding: 2px 6px; border-radius: 10px; vertical-align: middle; }
html.mp-physical #nav-links li.nav-cfg-item, html.mp-physical #nav-links li.nav-cfg-sep,
html.mp-physical footer li:has(> a[href="configurators.html"]) { display: none !important; }
html.mp-files #nav-links li:has(> a[href$="#print-store"]), html.mp-files #nav-links li.separator:has(+ li > a[href$="#print-store"]),
html.mp-neutral #nav-links li:has(> a[href$="#print-store"]), html.mp-neutral #nav-links li.separator:has(+ li > a[href$="#print-store"]) { display: none !important; }
#nav-links a.nav-active { color: var(--accent-blue); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
