/* iFixx — area rivenditori (/b2b). Usa i colori e il font di site.css. */
.b2-body { background: #ffffff; }
.b2-nav { background: #1d1d1f; position: sticky; top: 0; z-index: 20; }
.b2-nav .wrap { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.b2-nav .logo img { height: 30px; width: auto; display: block; }
.b2-brand { display: flex; align-items: center; gap: 14px; }
.b2-brand span { color: #d6d6d6; font-size: 15px; font-weight: 600; padding-left: 14px; border-left: 1px solid #4a4a4a; }
.b2-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.b2-links a, .b2-links button { color: #ffffff; background: none; border: 0; font: inherit; padding: 6px 0; cursor: pointer; }
.b2-links a:hover, .b2-links button:hover { color: #ff6b73; text-decoration: none; }

.b2-hero { background: var(--bg-alt); padding: 64px 0 56px; text-align: center; }
.b2-hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.b2-kicker { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.b2-hero h1 { margin: 0; font-size: clamp(36px, 6vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; max-width: 820px; }
.b2-hero p.lead { margin: 0; font-size: 19px; line-height: 1.5; color: var(--fg-2); max-width: 640px; }

.b2-steps { padding: 48px 0 8px; }
.b2-steps .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.b2-step { border: 1px solid #e6e6e6; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.b2-step span { font-size: 14px; font-weight: 800; color: var(--accent); }
.b2-step b { font-size: 18px; }
.b2-step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-2); }

.b2-access { padding: 40px 0 72px; scroll-margin-top: 70px; }
.b2-access .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.b2-card { border-radius: 22px; padding: 32px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }
.b2-card h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.b2-card > p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.b2-login { flex: 1 1 340px; background: #0a0a0a; color: #ffffff; }
.b2-login > p { color: #c9c9c9; }
.b2-reg { flex: 1.4 1 420px; background: #ffffff; border: 1px solid #e6e6e6; }
.b2-card .field label { font-size: 14px; font-weight: 600; color: var(--fg); }
.b2-login .field label { color: #e6e6e6; }
.b2-card .field input { font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid #d0d0d0; }
.b2-login .field input { background: #1d1d1f; border-color: #3a3a3a; color: #ffffff; }
.b2-login .field input:focus { border-color: #ff6b73; box-shadow: 0 0 0 3px rgba(255, 107, 115, .25); }
.b2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.b2-grid .wide { grid-column: span 2; }
@media (max-width: 560px) { .b2-grid { grid-template-columns: 1fr; } .b2-grid .wide { grid-column: auto; } .b2-card { padding: 24px 20px; } }
.b2-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: #3d3d3d; }
.b2-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.b2-check button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; }
.b2-btn { font: inherit; font-size: 17px; font-weight: 700; padding: 15px; border: 0; border-radius: 999px; cursor: pointer; }
.b2-btn:disabled { opacity: .55; cursor: wait; }
.b2-btn.red { background: var(--accent); color: #ffffff; }
.b2-btn.red:hover:not(:disabled) { background: var(--accent-hover); }
.b2-btn.white { background: #ffffff; color: #0a0a0a; }
.b2-btn.white:hover:not(:disabled) { background: #e9e9e9; }
.b2-btn.black { background: #0a0a0a; color: #ffffff; }
.b2-lnk { background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: #ff8a92; cursor: pointer; text-align: center; padding: 4px; }
.b2-lnk:hover { text-decoration: underline; }
.b2-err { margin: 0; min-height: 0; font-size: 14px; line-height: 1.45; color: var(--danger); }
.b2-login .b2-err { color: #ff8a92; }
.b2-err:empty { display: none; }
.b2-ok { margin: 0; padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.5; background: #eaf6ee; color: #145c2a; }
.b2-login .b2-ok { background: #16301f; color: #b9eccb; }
.b2-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.b2-done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.b2-done b { font-size: 20px; }

/* Scelta della password (link ricevuto via email) */
.b2-solo { padding: 56px 0 80px; }
.b2-solo .b2-card { max-width: 460px; margin: 0 auto; border: 1px solid #e6e6e6; }

/* Area dopo l'accesso */
.b2-dash { padding: 40px 0 80px; }
.b2-dash .wrap { display: flex; flex-direction: column; gap: 24px; }
.b2-dash h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.b2-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.b2-tile { border: 1px solid #e6e6e6; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.b2-tile b { font-size: 18px; }
.b2-tile p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.b2-soon { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a4600; background: #fff3df; padding: 4px 10px; border-radius: 999px; }
.b2-acct { background: var(--bg-alt); border-radius: 18px; padding: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.b2-acct span { display: block; font-size: 13px; color: var(--fg-2); }
.b2-acct b { font-size: 16px; overflow-wrap: anywhere; }

/* Condizioni per i rivenditori */
.b2-tm { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.b2-tm[hidden] { display: none; }
.b2-tm-bg { position: absolute; inset: 0; background: rgba(10, 10, 10, .5); }
.b2-tm-panel { position: relative; width: min(680px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: #ffffff; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.b2-tm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #e6e6e6; }
.b2-tm-head h2 { margin: 0; font-size: 21px; }
.b2-tm-body { overflow-y: auto; padding: 18px 22px; font-size: 15px; line-height: 1.6; color: #3d3d3d; }
.b2-tm-body h3 { margin: 18px 0 6px; font-size: 16px; color: #0a0a0a; }
.b2-tm-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid #e6e6e6; }
.b2-foot { border-top: 1px solid #e6e6e6; padding: 22px 0 30px; font-size: 13px; color: var(--fg-2); }

/* ---------- Hub del rivenditore (dopo l'accesso) ---------- */
.b2-dash { padding: 28px 0 70px; background: var(--bg-alt); }
.hb { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.hb-side { flex: 0 1 230px; background: #ffffff; border: 1px solid #e3e3e3; border-radius: 20px; padding: 16px 12px; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; }
.hb-who { margin: 4px 10px 10px; font-size: 13px; color: var(--fg-2); }
.hb-who b { display: block; font-size: 16px; color: var(--fg); }
.hb-new { margin-bottom: 10px; width: 100%; padding: 13px; font-size: 16px; }
.hb-nav { display: flex; flex-direction: column; gap: 2px; }
.hb-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 15px; color: var(--fg); text-align: left; cursor: pointer; }
.hb-item:hover:not(:disabled) { background: var(--bg-alt); }
.hb-item[aria-current="page"] { background: #0a0a0a; color: #ffffff; font-weight: 600; }
.hb-item:disabled { color: #8a8a8a; cursor: default; }
.hb-item .b2-soon { font-size: 10px; padding: 3px 7px; }
.hb-n { min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; background: #e6e6e6; color: #0a0a0a; font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; }
.hb-n.alert { background: #e0101f; color: #ffffff; }
.hb-item[aria-current="page"] .hb-n { background: #ffffff; color: #0a0a0a; }
.hb-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hb-h1 { margin: 0; font-size: clamp(28px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.hb-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hb-chip { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid #d0d0d0; background: #ffffff; cursor: pointer; }
.hb-chip.alert { border-color: var(--accent); color: var(--accent); }
.hb-chip[aria-pressed="true"] { background: #0a0a0a; border-color: #0a0a0a; color: #ffffff; font-weight: 700; }
.hb-search { font: inherit; font-size: 14px; padding: 9px 14px; border-radius: 999px; border: 1px solid #d0d0d0; margin-left: auto; min-width: 0; flex: 0 1 260px; background: #ffffff; }
.hb-draftnote { text-align: left; font: inherit; font-size: 15px; padding: 14px 16px; border-radius: 14px; border: 2px dashed #9a9a9a; background: #ffffff; cursor: pointer; }
.hb-empty { margin: 0; padding: 26px 20px; background: #ffffff; border-radius: 18px; border: 1px solid #e3e3e3; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.b2-lnk.dark { color: var(--accent); }
.hb-tablewrap { background: #ffffff; border: 1px solid #e3e3e3; border-radius: 18px; overflow-x: auto; }
.hb-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.hb-table th { text-align: left; padding: 12px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); font-weight: 600; }
.hb-table th:first-child, .hb-table td:first-child { padding-left: 16px; }
.hb-table td { padding: 12px 10px; border-top: 1px solid #f0f0f0; vertical-align: top; }
.hb-table .n { text-align: right; padding-right: 16px; white-space: nowrap; font-weight: 700; }
.hb-table tr.alert td { background: #fff8f8; }
.hb-code { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: #f0f0f0; color: #0a0a0a; padding: 3px 8px; border-radius: 6px; text-decoration: none; display: inline-block; }
.hb-code:hover { background: #e3e3e3; text-decoration: none; }
.hb-table small { display: block; margin-top: 4px; font-size: 12px; color: var(--fg-2); }
.hb-st { font-weight: 700; white-space: nowrap; }
.hb-st::before { content: "● "; }
.hb-st.blue { color: #1b4fa8; } .hb-st.amber { color: #8a4600; } .hb-st.red { color: var(--accent); } .hb-st.green { color: #1a7f37; } .hb-st.gray { color: #6b6b6b; }
.hb-hint { margin: 0; font-size: 13px; color: var(--fg-2); }
.hb-drafts { background: #ffffff; border: 2px solid #0a0a0a; border-radius: 20px; overflow: hidden; }
.hb-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid #eeeeee; }
.hb-draft:last-child { border-bottom: 0; }
.hb-num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.hb-dt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hb-dt b { font-size: 16px; }
.hb-dt span { font-size: 14px; color: #4d4d4d; }
.hb-dt small { font-size: 13px; color: var(--fg-2); }
.hb-price { font-size: 17px; white-space: nowrap; }
.hb-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hb-acts.end { justify-content: flex-end; }
.hb-btn { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid #d0d0d0; background: #ffffff; cursor: pointer; }
.hb-btn.x { min-width: 40px; padding: 8px 12px; }
.hb-btn.dashed { border: 1px dashed #8a8a8a; font-weight: 700; }
.hb-dfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: #ffffff; border-radius: 18px; border: 1px solid #e3e3e3; }
.hb-dfoot b { font-size: 20px; margin-left: 6px; }
.b2-btn.outline { background: #ffffff; color: #0a0a0a; border: 2px solid #0a0a0a; }
.hb-shopaddr { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 16px; }
.hb-shopaddr .field { flex: 1 1 320px; }
.hb-shopaddr .b2-btn { padding: 13px 22px; }
/* popup */
.hb-modal { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: center; align-items: flex-start; padding: 32px 16px; overflow-y: auto; }
.hb-modal[hidden] { display: none; }
.hb-mbg { position: fixed; inset: 0; background: rgba(10, 10, 10, .55); }
.hb-mpanel { position: relative; width: 100%; max-width: 980px; background: #ffffff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.hb-mpanel.sm { max-width: 520px; }
.hb-mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid #ececec; }
.hb-mhead h2 { margin: 2px 0 0; font-size: 24px; font-weight: 800; }
.hb-mk { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b6b6b; }
.hb-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d0d0d0; background: #ffffff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.hb-mbody { display: flex; flex-wrap: wrap; }
.hb-mform { flex: 999 1 500px; min-width: 0; padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; }
.hb-fl { display: flex; flex-direction: column; gap: 8px; }
.hb-fl > b, .hb-flh b { font-size: 15px; }
.hb-flh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hb-flh span { font-size: 13px; color: var(--fg-2); }
.hb-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hb-seg button { font: inherit; font-size: 15px; padding: 12px 6px; border-radius: 12px; border: 1px solid #d0d0d0; background: #ffffff; cursor: pointer; }
.hb-seg button[aria-pressed="true"] { border: 2px solid #0a0a0a; background: #0a0a0a; color: #ffffff; font-weight: 700; }
.hb-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hb-g2 .field, .hb-mform > .field, .hb-pform .field { display: flex; flex-direction: column; gap: 6px; }
.hb-mform label, .hb-pform label { font-size: 14px; font-weight: 600; color: var(--fg); }
.hb-mform select, .hb-mform input, .hb-mform textarea, .hb-pform input, .hb-shopaddr input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #d0d0d0; border-radius: 12px; background: #ffffff; width: 100%; box-sizing: border-box; }
.hb-mform select:disabled, .hb-mform input:disabled { background: #f5f5f5; }
.hb-g2 .field input + input, .hb-g2 .field select + input { margin-top: 8px; }
.hb-dmg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hb-dmg button { font: inherit; font-size: 14px; padding: 11px 10px; border-radius: 12px; border: 1px solid #d0d0d0; background: #ffffff; text-align: left; cursor: pointer; min-height: 44px; }
.hb-dmg button[aria-pressed="true"] { border: 2px solid var(--accent); background: #fff5f5; font-weight: 700; }
.hb-dmg button:disabled { opacity: .5; cursor: not-allowed; }
.hb-ph { display: flex; flex-wrap: wrap; gap: 10px; }
.hb-thumb { position: relative; width: 84px; height: 84px; }
.hb-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; display: block; background: #e6e6e6; }
.hb-thumb button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ffffff; background: #0a0a0a; color: #ffffff; font-size: 16px; line-height: 1; cursor: pointer; }
.hb-addph { width: 84px; height: 84px; border-radius: 12px; border: 2px dashed #b9b9b9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: #3d3d3d; cursor: pointer; box-sizing: border-box; }
.hb-mquote { flex: 1 1 300px; background: #f5f5f5; padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; border-left: 1px solid #ececec; }
.hb-qt { font-size: 18px; }
.hb-qd { font-size: 14px; color: #4d4d4d; }
.hb-ql { display: flex; flex-direction: column; background: #ffffff; border-radius: 14px; padding: 4px 16px; }
.hb-ql div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.hb-ql div.minus { color: #1a7f37; }
.hb-ql div.tot { border-bottom: 0; font-size: 19px; font-weight: 800; padding: 12px 0; }
.hb-qn { margin: 0; font-size: 14px; line-height: 1.5; color: #3d3d3d; background: #ffffff; border-radius: 12px; padding: 12px 14px; }
.hb-qs { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.hb-qsp { flex: 1; }
.hb-mquote .b2-btn { width: 100%; }
.hb-pform { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 760px) {
  .hb-side { flex: 1 1 100%; }
  .hb-nav { flex-direction: row; flex-wrap: wrap; }
  .hb-item { width: auto; }
  .hb-mquote { border-left: 0; border-top: 1px solid #ececec; }
  .hb-dmg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-g2 { grid-template-columns: 1fr; }
  .hb-modal { padding: 0; }
  .hb-mpanel { border-radius: 0; min-height: 100%; }
}
.hb-mbsec { background: #f7f7f9; border: 1px solid #e3e3e8; border-radius: 16px; padding: 14px; }
.hb-dmg.mb button[aria-pressed="true"] { border-color: #1b4fa8; background: #eef4ff; }
.hb-dmg button small { display: block; font-size: 12px; font-weight: 400; color: var(--fg-2); margin-top: 2px; }
.hb-ql div span:last-child { white-space: nowrap; flex: none; }
