/* ShoppingTech — foglio di stile unico */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --red: #C32328;
  --red-dark: #9E1A1F;
  --navy: #3A3482;
  --navy-deep: #1E1A52;
  --ink: #17153A;
  --muted: #5B5A72;
  --line: #E3E2EE;
  --ground: #F6F6FA;
  --card: #FFFFFF;
  --lilac: #ECEBFA;
  --ok: #1F7A4D;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 21, 58, .06), 0 8px 24px rgba(23, 21, 58, .06);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy-deep); }
.btn-light:hover { background: var(--lilac); color: var(--navy-deep); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { margin-right: auto; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { padding: 10px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; }
.main-nav a:hover { background: var(--lilac); color: var(--navy); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 15px var(--body); color: var(--ink); cursor: pointer; }
.cart-btn:hover { border-color: var(--navy); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.cart-count[data-zero="true"] { background: var(--line); color: var(--muted); }
@media (max-width: 860px) {
  .main-nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .brand img { height: 38px; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--navy); }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.trust { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; max-width: 560px; }
.trust li { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; }
.trust svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.hero-art { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 36px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-art img { width: 70%; max-width: 280px; }
.hero-art p { text-align: center; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .trust { grid-template-columns: 1fr; }
}

/* ---------- Banner Windows + trasferimento ---------- */
.promo { padding: 24px 0 8px; }
.promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.promo-card { border-radius: 22px; padding: 34px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; position: relative; }
.promo-win { background: var(--navy-deep); color: #fff; }
.promo-move { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.promo-card h2 { font-size: clamp(24px, 2.8vw, 32px); }
.promo-card p { font-size: 16px; }
.promo-win p { color: #D6D4F2; }
.promo-move p { color: var(--muted); }
.promo-tag { align-self: flex-start; font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.promo-win .promo-tag { background: rgba(255, 255, 255, .12); color: #fff; }
.promo-move .promo-tag { background: #FBE9EA; color: var(--red-dark); }
.promo-list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.promo-list li { display: flex; gap: 10px; align-items: flex-start; }
.promo-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.promo-win .promo-list svg { color: #9C97E8; }
.promo-move .promo-list svg { color: var(--red); }
.win-logo { display: grid; grid-template-columns: repeat(2, 26px); gap: 4px; margin-bottom: 4px; }
.win-logo span { width: 26px; height: 26px; background: #fff; border-radius: 3px; }
.win-logo span:nth-child(1) { background: #fff; }
.win-logo span:nth-child(2) { background: #D6D4F2; }
.win-logo span:nth-child(3) { background: #D6D4F2; }
.win-logo span:nth-child(4) { background: #9C97E8; }

/* schema trasferimento vecchio PC → nuovo PC */
.move-diagram { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
.move-pc { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 12px var(--body); color: var(--muted); }
.move-pc .screen { width: 92px; height: 62px; border-radius: 8px; border: 3px solid var(--navy); display: flex; align-items: center; justify-content: center; background: var(--lilac); }
.move-pc.new .screen { border-color: var(--red); background: #FBE9EA; }
.move-pc .screen svg { width: 28px; height: 28px; color: var(--navy); }
.move-pc.new .screen svg { color: var(--red); }
.move-pc .stand { width: 28px; height: 8px; background: var(--navy); border-radius: 0 0 4px 4px; margin-top: -6px; }
.move-pc.new .stand { background: var(--red); }
.move-line { flex: 1; min-width: 60px; height: 30px; position: relative; display: flex; align-items: center; }
.move-line::before { content: ""; position: absolute; left: 0; right: 10px; top: 50%; border-top: 3px dashed #C9C6E6; }
.move-line::after { content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--red); border-right: 3px solid var(--red); transform: translateY(-50%) rotate(45deg); }
.move-line .packet { position: absolute; top: 50%; width: 22px; height: 16px; margin-top: -8px; border-radius: 4px; background: var(--navy); animation: move 2.4s ease-in-out infinite; }
.move-line .packet:nth-child(2) { animation-delay: .8s; background: var(--red); }
.move-line .packet:nth-child(3) { animation-delay: 1.6s; background: #9C97E8; }
@keyframes move { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 34px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .move-line .packet { animation: none; left: 40%; } .move-line .packet:nth-child(2), .move-line .packet:nth-child(3) { display: none; } }
@media (max-width: 860px) { .promo-grid { grid-template-columns: 1fr; } .promo-card { padding: 26px; } }

/* ---------- Sezioni catalogo ---------- */
.section { padding: 56px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.section-head p { color: var(--muted); margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px; border-bottom: 1px solid var(--line); position: relative; }
.card-media img { max-height: 100%; object-fit: contain; }
.card-media .ph { width: 64px; height: 64px; color: #C9C6E6; }
.badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--body); padding: 5px 10px; border-radius: 999px; background: var(--navy-deep); color: #fff; }
.badge .wl { display: grid; grid-template-columns: repeat(2, 5px); gap: 1px; }
.badge .wl i { width: 5px; height: 5px; background: #fff; }
.fascia { position: absolute; top: 12px; right: 12px; font: 600 12px var(--body); padding: 5px 10px; border-radius: 999px; background: #FBE9EA; color: var(--red-dark); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 18px; }
.card-body h3 button { all: unset; cursor: pointer; }
.card-body h3 button:hover { color: var(--navy); text-decoration: underline; }
.card-body ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.card-body ul li::before { content: "•"; color: var(--red); margin-right: 8px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { font: 700 24px var(--display); letter-spacing: -.02em; }
.price small { display: block; font: 500 12px var(--body); color: var(--muted); letter-spacing: 0; }
.card-foot .btn { min-height: 44px; padding: 0 16px; }

/* usati in arrivo */
.gen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gen-card { background: var(--card); border: 1px dashed #C9C6E6; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.gen-card .gen { font: 700 30px var(--display); color: var(--navy); }
.gen-card p { color: var(--muted); font-size: 14px; }
.gen-card a { font-weight: 600; font-size: 14px; }
@media (max-width: 860px) { .gen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Come funziona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: s; content: counter(s); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--lilac); color: var(--navy); font: 700 16px var(--display); align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.pay-logos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pay-logos span { font: 600 12px var(--body); padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; background: var(--navy-deep); color: #D6D4F2; padding: 48px 0 28px; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #9C97E8; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.foot-grid img { height: 40px; width: auto; margin-bottom: 14px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Dialog (scheda prodotto e carrello) ---------- */
dialog { border: 0; padding: 0; border-radius: 20px; box-shadow: 0 24px 64px rgba(23, 21, 58, .3); color: var(--ink); max-width: min(880px, calc(100vw - 32px)); width: 100%; }
dialog::backdrop { background: rgba(23, 21, 58, .45); }
.dlg-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ground); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dlg-close svg { width: 20px; height: 20px; }
.product-dlg .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.product-dlg .media { background: #fff; padding: 32px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); min-height: 320px; }
.product-dlg .media img { max-height: 360px; object-fit: contain; }
.product-dlg .info { padding: 40px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.product-dlg h2 { font-size: 26px; }
.product-dlg ul { padding-left: 18px; margin: 0; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.product-dlg .price { font-size: 32px; }
.product-dlg .note { font-size: 14px; color: var(--muted); background: var(--ground); border-radius: 10px; padding: 12px 14px; }
@media (max-width: 720px) { .product-dlg .inner { grid-template-columns: 1fr; } .product-dlg .media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 220px; } }

.cart-dlg { margin: 0 0 0 auto; height: 100%; max-height: 100%; max-width: 440px; border-radius: 20px 0 0 20px; }
.cart-dlg .inner { display: flex; flex-direction: column; height: 100%; }
.cart-dlg header { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-dlg header h2 { font-size: 22px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.cart-line h3 { font: 600 15px/1.3 var(--body); letter-spacing: 0; }
.cart-line .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 44px; height: 40px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--navy); border-radius: 999px; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; }
.link-btn { border: 0; background: none; color: var(--muted); font: 500 13px var(--body); text-decoration: underline; cursor: pointer; padding: 8px 0; min-height: 44px; }
.link-btn:hover { color: var(--red); }
.cart-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: var(--ground); }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; }
.sum-row.total { font: 700 20px var(--display); }
.sum-note { font-size: 13px; color: var(--muted); }

/* ---------- Checkout e pagine interne ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); }
.page-head p { color: var(--muted); margin-top: 8px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 20px; margin-bottom: 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select { min-height: 46px; padding: 10px 14px; border: 1px solid #CFCDE0; border-radius: 10px; font: 16px var(--body); color: var(--ink); background: #fff; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--lilac); border-color: var(--navy); }
.field .hint { font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; padding: 4px; background: var(--ground); border-radius: 999px; margin-bottom: 18px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(23, 21, 58, .15); }
.seg input:focus-visible + span { outline: 3px solid var(--navy); }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice + .choice { margin-top: 10px; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.choice strong { display: block; }
.choice span.d { font-size: 14px; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--navy); background: #FAFAFF; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.summary { position: sticky; top: 96px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary .line span:first-child { color: var(--muted); }
.form-error { background: #FBE9EA; color: var(--red-dark); border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 500; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } .fields { grid-template-columns: 1fr; } }

.prose { max-width: 780px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { color: #34334F; }
.prose p + p { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 22px; }
.draft { background: #FFF6DB; border: 1px solid #F0D98A; color: #5C4A00; border-radius: 12px; padding: 14px 16px; font-size: 14px; margin: 16px 0; }

.thanks { text-align: center; max-width: 620px; margin: 0 auto; padding: 64px 0 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.thanks .ok { width: 72px; height: 72px; border-radius: 50%; background: #E3F3EA; color: var(--ok); display: flex; align-items: center; justify-content: center; }
.thanks .ok svg { width: 36px; height: 36px; }
.bank { text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.bank dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; word-break: break-word; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 50; transition: transform .25s; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Menu: voce attiva + hamburger mobile ---------- */
.main-nav a[aria-current="page"] { background: var(--lilac); color: var(--navy); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; flex: none; }
.menu-btn:hover { border-color: var(--navy); }
.menu-btn .bars { position: relative; width: 20px; height: 14px; display: block; }
.menu-btn .bars span { position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s, top .2s; }
.menu-btn .bars span:nth-child(1) { top: 0; }
.menu-btn .bars span:nth-child(2) { top: 6px; }
.menu-btn .bars span:nth-child(3) { top: 12px; }
.menu-btn.open .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn.open .bars span:nth-child(2) { opacity: 0; }
.menu-btn.open .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); background: #fff; box-shadow: 0 16px 32px rgba(23, 21, 58, .12); max-height: calc(100vh - 72px); overflow-y: auto; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.mobile-nav li a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); font: 600 18px var(--display); color: var(--ink); text-decoration: none; }
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav li a[aria-current="page"] { color: var(--red); }
.mobile-nav li a::after { content: "→"; margin-left: auto; color: var(--muted); font-weight: 400; }
.mobile-contacts { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 20px; border-top: 1px solid var(--line); font-size: 15px; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .site-header .wrap { gap: 10px; }
  .cart-btn { padding: 0 12px; }
}
@media (min-width: 861px) { .mobile-nav { display: none !important; } }

/* ---------- Riquadri categoria ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cat-tile { display: flex; align-items: center; gap: 16px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s, border-color .15s; min-height: 44px; }
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #CFCDE0; color: var(--ink); }
.cat-ico { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--lilac); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.cat-ico svg { width: 30px; height: 30px; }
.cat-tile:nth-child(2n) .cat-ico { background: #FBE9EA; color: var(--red); }
.cat-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cat-name { font: 700 19px var(--display); letter-spacing: -.01em; }
.cat-sub { font-size: 14px; color: var(--muted); }
.cat-info { font-size: 14px; color: var(--ink); }
.cat-info strong { color: var(--red); }
.cat-arrow { margin-left: auto; font-size: 20px; color: var(--navy); flex: none; }
.cat-grid-sm .cat-tile { padding: 14px 18px; }
.cat-grid-sm .cat-ico { width: 44px; height: 44px; }
.cat-grid-sm .cat-ico svg { width: 24px; height: 24px; }

/* ---------- Pagina categoria ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 24px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.cat-head { padding-top: 12px; padding-bottom: 20px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 14px var(--body); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip span { font-weight: 500; color: var(--muted); }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-pressed="true"] span { color: #D6D4F2; }
.count { font-size: 15px; color: var(--muted); }
.sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { min-height: 42px; padding: 0 12px; border: 1px solid #CFCDE0; border-radius: 10px; font: 15px var(--body); color: var(--ink); background: #fff; }
.more { display: flex; justify-content: center; margin-top: 24px; }
.empty-note { padding: 32px; background: var(--card); border: 1px dashed #C9C6E6; border-radius: var(--radius); color: var(--muted); }
@media (max-width: 560px) { .sort { margin-left: 0; width: 100%; } .sort select { flex: 1; } }
.site-header .mobile-nav .wrap { display: block; min-height: 0; }
#home-categorie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { #home-categorie { grid-template-columns: 1fr; } }

/* ---------- Il mio ordine ---------- */
.ordine-page { max-width: 820px; }
.stato-form .fields { margin-bottom: 16px; }
.stato-form .form-error { margin-bottom: 14px; }
#stato-esito { margin-top: 24px; }
.stato-card { display: flex; flex-direction: column; gap: 18px; }
.stato-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.stato-top h2 { font-size: 22px; margin: 0 0 4px; }
.stato-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; font: 600 14px var(--body); }
.st-in-attesa-di-pagamento { background: #FFF6DB; color: #6B5200; }
.st-pagato { background: var(--lilac); color: var(--navy); }
.st-spedito { background: #E1EFFA; color: #134B75; }
.st-consegnato { background: #E3F3EA; color: #14583A; }
.st-annullato { background: var(--ground); color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; color: var(--muted); font-weight: 500; }
.timeline li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline .pallino { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.timeline li.fatto, .timeline li.attuale { color: var(--ink); }
.timeline li.fatto::before, .timeline li.attuale::before { background: var(--navy); }
.timeline li.fatto .pallino { background: var(--navy); border-color: var(--navy); }
.timeline li.attuale .pallino { background: var(--red); border-color: #F5C9CB; box-shadow: 0 0 0 4px #FBE9EA; }
.timeline li.attuale { font-weight: 700; }
.stato-msg { font-size: 16px; }
.stato-annullato { background: var(--ground); border-radius: 12px; padding: 14px 16px; }
.tracking { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; background: #E1EFFA; color: #134B75; border-radius: 12px; padding: 12px 16px; }
.tracking span { font-size: 14px; }
.tracking strong { word-break: break-word; }
.line-row { padding: 10px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.line-row span { color: var(--muted); }
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline li { flex-direction: row; text-align: left; }
  .timeline li::before { display: none; }
}

/* icona hamburger in SVG (visibile anche su Safari iOS) */
.menu-btn { color: var(--ink); padding: 0; -webkit-appearance: none; appearance: none; }
.menu-btn .ico-menu { display: block; width: 22px; height: 22px; }
.menu-btn .l-close { display: none; }
.menu-btn.open .l-open { display: none; }
.menu-btn.open .l-close { display: inline; }

/* ---------- Foto nella home ---------- */
.hero-photo { margin: 0; position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; max-height: 560px; background: var(--lilac); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255, 255, 255, .94); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.hero-photo figcaption strong { font: 700 16px var(--display); color: var(--ink); }
@media (max-width: 860px) {
  .hero .wrap { gap: 28px; }
  .hero-photo { aspect-ratio: auto; height: 300px; max-height: none; }
  .hero-photo img { object-position: 50% 25%; }
}
@media (max-width: 860px) {
  .hero-photo { height: auto; background: var(--card); border: 1px solid var(--line); }
  .hero-photo img { height: 320px; object-position: 50% 8%; }
  .hero-photo figcaption { position: static; border-radius: 0; background: var(--card); padding: 14px 16px 16px; }
}
.hero-photo img { object-position: 50% 30%; }
@media (max-width: 860px) { .hero-photo img { object-position: 50% 22%; } }

/* ---------- banner promozione di lancio ---------- */
.lancio { padding: 24px 0 0; }
.lancio-box { position: relative; max-width: 1280px; margin: 0 auto; width: calc(100% - 32px); border-radius: 28px; overflow: hidden; background: #F3F3F5; box-shadow: var(--shadow); }
.lancio-img img { display: block; width: 100%; height: auto; aspect-ratio: 2688 / 1152; object-fit: cover; }
.lancio-testo { position: absolute; inset: 0 auto 0 0; width: 46%; padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
  background: linear-gradient(90deg, rgba(246,246,248,.92) 0%, rgba(246,246,248,.75) 70%, rgba(246,246,248,0) 100%); }
.lancio-tag { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; padding: 7px 14px; border-radius: 999px; }
.lancio h1 { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; margin: 0; color: var(--ink); }
.lancio h1 em { font-style: normal; color: var(--red); }
.lancio-punti { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 8px; font-size: clamp(15px, 1.3vw, 18px); color: var(--ink); }
.lancio-punti li { position: relative; padding-left: 28px; }
.lancio-punti li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lancio-punti strong { color: var(--red); }
.hero-h { font-size: clamp(30px, 4vw, 48px); margin: 14px 0 18px; }
.hero-h em { font-style: normal; color: var(--navy); }
@media (max-width: 900px) {
  .lancio-testo { width: 58%; }
}
@media (max-width: 700px) {
  .lancio-box { display: flex; flex-direction: column-reverse; border-radius: 20px; }
  .lancio-img img { aspect-ratio: 4 / 3; object-position: 78% 50%; }
  .lancio-testo { position: static; width: auto; background: #F6F6F8; padding: 24px 20px 26px; }
}
.lancio-nota { margin: 0; font-size: 13px; color: var(--muted); }
.promo-ok { color: var(--ok); font-weight: 700; }
.promo-hint { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #FFF4E5; color: #6B3F00; font-size: 14px; line-height: 1.4; }
/* banner: l'altezza segue il testo, l'immagine copre lo sfondo */
.lancio-img { position: absolute; inset: 0; }
.lancio-img img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 70% 50%; }
.lancio-testo { position: relative; inset: auto; min-height: calc(min(1280px, 100vw - 32px) * 1152 / 2688); width: 48%; }
@media (max-width: 1100px) { .lancio-testo { width: 56%; } }
@media (max-width: 700px) {
  .lancio-img { position: static; }
  .lancio-img img { height: auto; aspect-ratio: 4 / 3; object-position: 78% 50%; }
  .lancio-testo { min-height: 0; width: auto; }
}
@media (max-width: 900px) {
  .lancio-box { display: flex; flex-direction: column-reverse; border-radius: 20px; }
  .lancio-img { position: static; }
  .lancio-img img { height: auto; aspect-ratio: 16 / 9; object-position: 72% 50%; }
  .lancio-testo { position: static; min-height: 0; width: auto; background: #F6F6F8; padding: 26px 22px 28px; }
}
@media (max-width: 700px) { .lancio-img img { aspect-ratio: 4 / 3; object-position: 78% 50%; } }
/* foto prodotto nelle schede: riempie il riquadro e resta centrata anche su Safari/iPhone */
.card-media img { position: absolute; top: 16px; left: 16px; width: calc(100% - 32px); height: calc(100% - 32px); max-height: none; max-width: none; object-fit: contain; object-position: center; }
#trasf-regalo:not([hidden]) { display: block; margin-top: 4px; color: var(--ok); }

/* ---------- pagine servizi (HIVE01, MiniNasHive) ---------- */
.nav-serv { color: var(--navy) !important; }
.svc-hero { padding: 48px 0 24px; }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.svc-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 14px 0 18px; }
.svc-hero h1 em { font-style: normal; color: var(--red); }
.svc-ill-box { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 20px; }
.svc-ill { display: block; width: 100%; height: auto; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-feat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-feat li { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.svc-feat svg { width: 22px; height: 22px; flex: none; color: #fff; background: var(--navy); border-radius: 50%; padding: 4px; }
.svc-feat strong { display: block; font-size: 17px; margin-bottom: 4px; }
.svc-feat span { color: var(--muted); font-size: 15px; }
.svc-price { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.svc-plan { background: var(--navy-deep); color: #fff; border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.svc-plan .promo-tag { background: rgba(255,255,255,.14); color: #fff; }
.svc-plan .promo-list svg { color: #8FE3B5; }
.svc-amount { font-size: 18px; margin: 0; }
.svc-amount strong { font: 700 52px/1 var(--display); }
.svc-sub, .svc-note { font-size: 14px; color: #CFCDF0; margin: 0; }
.svc-plan .btn { align-self: flex-start; }
.svc-compare { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.svc-compare h3 { font-size: 21px; margin-bottom: 8px; }
.svc-compare p { color: var(--muted); margin-bottom: 16px; }
.svc-compare table, .svc-spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.svc-compare th, .svc-compare td, .svc-spec th, .svc-spec td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.svc-compare thead th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.svc-compare td:last-child { font-weight: 700; color: var(--ok); }
.svc-spec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.svc-spec th { width: 34%; color: var(--muted); font-weight: 600; padding-left: 20px; }
.svc-spec tr:last-child th, .svc-spec tr:last-child td { border-bottom: 0; }
.svc-321 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--lilac); border-radius: 22px; padding: 32px; }
.svc-321 h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.svc-321 p { color: #34334F; }
.svc-321-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.svc-321-list li { background: #fff; border-radius: 14px; padding: 12px 18px; font-weight: 600; display: flex; align-items: center; gap: 14px; }
.svc-321-list strong { font: 700 34px/1 var(--display); color: var(--red); min-width: 28px; }
.svc-form { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.svc-form h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 10px; }
.svc-lead { color: var(--muted); margin-bottom: 10px; }
.opt { font-weight: 400; color: var(--muted); }
.form-ok { background: #E7F5EE; color: #14532F; border-radius: 12px; padding: 16px; outline: none; }
@media (max-width: 960px) {
  .svc-hero-grid, .svc-price, .svc-321, .svc-form { grid-template-columns: 1fr; }
  .svc-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .svc-feat, .steps-4 { grid-template-columns: 1fr; }
  .svc-amount strong { font-size: 44px; }
  .svc-compare { padding: 20px 16px; }
  .svc-compare th, .svc-compare td { padding: 8px 4px; font-size: 14px; }
}

/* ---------- modulo di consenso ---------- */
.cons { max-width: 780px; display: flex; flex-direction: column; gap: 18px; padding: 16px 0 40px; }
.cons .panel + .panel { margin-top: 0; }
.cons-list { padding-left: 20px; margin: 0; display: grid; gap: 8px; color: #34334F; }
.cons-dpa { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.cons-dpa summary { font-weight: 600; cursor: pointer; }
.cons-dpa ul { margin-top: 10px; font-size: 14px; }
.cons-ok { max-width: 780px; margin: 16px 0 40px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cons-ok h2 { font-size: 24px; }
.cons .choice span { font-size: 15px; }
.foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }
.serv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.serv-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.serv-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.serv-card .promo-tag { background: var(--lilac); color: var(--navy); }
.serv-card h3 { font-size: 26px; }
.serv-card p { color: var(--muted); }
.serv-more { margin-top: auto; font-weight: 700; color: var(--red); }
@media (max-width: 700px) { .serv-grid { grid-template-columns: 1fr; } }
.lancio[hidden] { display: none; }
.lancio-h { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; margin: 0; color: var(--ink); }
.lancio-h em { font-style: normal; color: var(--red); }
.lancio-box.no-img { background: var(--lilac); }
.lancio-box.no-img .lancio-testo { position: static; width: auto; min-height: 0; background: none; }
@media (min-width: 861px) {
  .main-nav { gap: 0; flex-wrap: nowrap; }
  .main-nav a { padding: 10px 8px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 1180px) and (min-width: 861px) { .main-nav .nav-serv { display: none; } }
.section.wrap { padding-left: 20px; padding-right: 20px; }
.serv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .serv-grid { grid-template-columns: 1fr; } }
/* ---------- assistenza ---------- */
.assist-quick { padding: 28px; }
.assist-q-t { font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.assist-quick dl { margin: 0 0 12px; display: grid; gap: 10px; }
.assist-quick dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.assist-quick dt { color: var(--muted); }
.assist-quick dd { margin: 0; font-size: 17px; }
.assist-quick dd strong { font: 700 28px var(--display); color: var(--ink); }
.assist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.assist-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.assist-card .promo-tag { background: var(--lilac); color: var(--navy); }
.assist-card .btn { margin-top: auto; align-self: flex-start; }
.assist-card .promo-list { margin-bottom: 8px; }
.assist-card .promo-list svg { color: var(--ok); }
.assist-price { margin: 0; font-size: 17px; }
.assist-price strong { font: 700 40px/1 var(--display); }
.assist-best { border: 2px solid var(--red); box-shadow: var(--shadow); }
.assist-best .promo-tag { background: #FBE9EA; color: var(--red-dark); }
.assist-nas { background: #FFF4E5; color: #6B3F00; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 8px; }
@media (max-width: 960px) { .assist-grid { grid-template-columns: 1fr; } }
/* ---------- popup di benvenuto ---------- */
.welcome-dlg { max-width: min(520px, calc(100vw - 32px)); }
.welcome-dlg .inner { padding: 34px 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.welcome-logo { height: 34px; width: auto; align-self: flex-start; }
.welcome-dlg h2 { font-size: clamp(24px, 4vw, 30px); line-height: 1.15; padding-right: 40px; }
.welcome-dlg p { color: var(--muted); }
.welcome-dlg .promo-list svg { color: var(--ok); }
.welcome-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.foot-cookie { display: inline; }
.foot-cookie svg { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: #8FE3B5; }
.foot-cookie a { color: inherit; }
.foot-bottom { flex-wrap: wrap; gap: 8px 18px; }
