/* ══ MASTERTECH CHIETI ══ */

/* ── VARS & RESET ── */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: var(--font);
  --font-body: var(--font);

  --primary: #0071e3;
  --primary-light: #2388f0;
  --primary-dark: #0058b0;

  --dark:   #1d1d1f;
  --dark-2: #141416;
  --dark-3: #2d2d2f;

  --bg:      #ffffff;
  --bg-alt:  #f5f5f7;
  --bg-card: #ffffff;

  --text:       #1d1d1f;
  --text-light: #6e6e73;
  --text-muted: #86868b;

  --border:       #d2d2d7;
  --border-light: #e8e8ed;

  --shadow:    0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.09);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.11);

  --radius:    8px;
  --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── (scoping su #nav: NON toccare l'<nav> dell'admin) */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(200%) blur(28px);
  -webkit-backdrop-filter: saturate(200%) blur(28px);
  transition: box-shadow .35s ease, background .35s ease;
}
#nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,113,227,.35) 25%, rgba(129,140,248,.55) 60%, rgba(236,72,153,.25) 85%, transparent 100%);
}
#nav.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 32px rgba(0,0,0,.08), 0 1px 0 rgba(0,0,0,.04);
}
.nav-in { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; }
.logo-img  { height: 38px; width: auto; display: block; transition: opacity .2s; }
.logo-img:hover { opacity: .8; }
.logo-light { height: 34px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .7; }
.mob-logo { height: 44px; width: auto; margin-bottom: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  position: relative;
  color: var(--text-light);
  font-size: .875rem;
  font-weight: 500;
  padding-bottom: 3px;
  transition: color .22s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  border-radius: 1px;
  transition: width .28s cubic-bezier(.16,1,.3,1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 12px; }
/* Telefono: secondario, ghost — lascia risaltare lo Shop */
.nav-phone {
  display: flex; align-items: center; gap: 7px;
  background: transparent;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 22px;
  font-size: .84rem; font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s;
}
.nav-phone:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-alt); }
/* Shop: CTA principale, in evidenza */
.nav-shop {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #3b5bdb 100%);
  color: #fff;
  padding: 9px 22px;
  border-radius: 22px;
  font-size: .9rem; font-weight: 700;
  letter-spacing: .01em;
  border: none; cursor: pointer;
  box-shadow: 0 3px 16px rgba(0,113,227,.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.nav-shop svg { flex-shrink: 0; }
.nav-shop:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2d46c5 100%);
  box-shadow: 0 6px 24px rgba(0,113,227,.48);
  transform: translateY(-1px);
}
.nav-shop.active { box-shadow: 0 0 0 3px rgba(0,113,227,.22), 0 3px 16px rgba(0,113,227,.35); }
.ham { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.ham span { display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 1px; transition: transform .3s ease, opacity .3s ease; }
.ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mob-menu { display: none; position: fixed; inset: 0; z-index: 200; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.mob-menu.open { display: flex; }
.mob-menu a { font-size: 1.75rem; font-weight: 600; color: var(--text); transition: color .2s; }
.mob-menu a:hover { color: var(--primary); }
.mob-menu a.mob-shop {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #3b5bdb 100%);
  padding: 14px 30px; border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0,113,227,.4);
  margin-bottom: 6px;
}
.mob-menu a.mob-shop:hover { color: #fff; }
.mob-shop svg { width: 22px; height: 22px; }
.mob-close { position: absolute; top: 24px; right: 28px; background: none; border: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; line-height: 1; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 28px 90px;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.hero::before { display: none; }
.hero-orb { display: none; }
.hero-in { max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: center; position: relative; z-index: 1; }

/* Hero typography */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,113,227,.08); border: 1px solid rgba(0,113,227,.16);
  color: var(--primary); font-size: .72rem; font-weight: 600;
  padding: 5px 14px; border-radius: 20px;
  letter-spacing: .3px; text-transform: uppercase;
  margin-bottom: 24px;
}
.badge::before { content: ''; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }

h1 {
  font-family: var(--font);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  color: var(--text);
}
.hero-accent { color: var(--primary); font-style: normal; }
.hero p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 36px; max-width: 480px; line-height: 1.7; }

/* Buttons */
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-size: .875rem; font-weight: 600; cursor: pointer; border: none; transition: all .2s; font-family: var(--font); }
.btn-c { background: var(--primary); color: #fff; }
.btn-c:hover { background: var(--primary-dark); }
.btn-lg { padding: 14px 28px; font-size: .9rem; }
.btn-hero-o { background: rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.12); color: var(--text); }
.btn-hero-o:hover { background: rgba(0,0,0,.1); }
.btn-o { background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.btn-o:hover { background: var(--bg-alt); }

/* Hero stats */
.stats { display: flex; gap: 1px; margin-top: 40px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.stat { background: var(--bg-card); padding: 16px 22px; transition: background .2s; flex: 1; min-width: 100px; }
.stat:not(:last-child) { border-right: 1px solid var(--border-light); }
.stat:hover { background: var(--bg-alt); }
.stat .n { font-size: 2.2rem; font-weight: 700; color: var(--primary); line-height: 1; letter-spacing: -.02em; }
.stat-unit { font-size: .9rem; font-weight: 600; }
.stat .l { color: var(--text-muted); font-size: .72rem; margin-top: 4px; }

/* ── PHONE MOCKUP ── */
.phone-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.phone { background: #f0f0f0; border-radius: 40px; border: 2px solid #e0e0e0; box-shadow: 0 24px 72px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04); position: relative; }
.phone-screen { position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; border-radius: 32px; overflow: hidden; background: var(--bg); }
.phone-island { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #1d1d1f; border-radius: 14px; z-index: 10; }
.phone-island::after { content: ''; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: #2d2d2f; }
.ph-btn { position: absolute; background: #d0d0d0; border-radius: 2px; }
.ph-r  { right: -2px; top: 130px; width: 2px; height: 70px; }
.ph-l1 { left: -2px; top: 100px; width: 2px; height: 34px; }
.ph-l2 { left: -2px; top: 148px; width: 2px; height: 64px; }
.ph-l3 { left: -2px; top: 226px; width: 2px; height: 64px; }
.phone-wrap .phone { width: 260px; height: 530px; }
.phone-glow { display: none; }

/* Phone screen UI */
.ph-screen-ui { position: absolute; inset: 0; padding: 52px 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.ph-topbar { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; font-weight: 700; }
.ph-logo-small { font-size: .95rem; font-weight: 800; color: var(--text); }
.ph-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.ph-repair-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-light); }
.ph-repair-item:last-child { border-bottom: none; }
.ph-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(0,113,227,.07); border: 1px solid rgba(0,113,227,.1); display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.ph-info { flex: 1; }
.ph-name { font-size: .68rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.ph-status { font-size: .6rem; color: var(--primary); }
.ph-prog { height: 3px; background: var(--border); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.ph-prog-fill { height: 100%; background: var(--primary); border-radius: 2px; width: 65%; }
.ph-stat-row { display: flex; gap: 6px; margin-top: auto; }
.ph-stat-mini { flex: 1; background: rgba(0,113,227,.05); border: 1px solid rgba(0,113,227,.08); border-radius: 8px; padding: 8px; text-align: center; }
.ph-stat-mini .n { font-size: 1.05rem; font-weight: 800; color: var(--primary); line-height: 1; }
.ph-stat-mini .l { font-size: .52rem; color: var(--text-light); margin-top: 2px; }

/* ── SHOWCASE ── */
#showcase { padding: 96px 28px; background: var(--bg); border-top: 1px solid var(--border-light); }
.showcase-in { max-width: 1200px; margin: 0 auto; }
.showcase-header { text-align: center; margin-bottom: 60px; }
.phones-row { display: flex; justify-content: center; align-items: flex-end; gap: 24px; }
.ph-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; transition: transform .4s ease; }
.ph-wrap:nth-child(1) { transform: translateY(24px); }
.ph-wrap:nth-child(3) { transform: translateY(24px); }
.ph-wrap:hover { transform: translateY(8px) !important; }
.ph-label { font-size: .68rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; }

/* Screen overlays */
.sc1, .sc2, .sc3 { position: absolute; inset: 0; }
.sc1-fallback, .sc2-fallback, .sc3-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 50px 16px 16px; background: var(--bg); z-index: 2; }
.sc-video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 3; display: none; }
.icon-cycle { position: relative; width: 3.5rem; height: 3.5rem; flex-shrink: 0; }
.icon-cycle span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; opacity: 0; animation: iconFade 8s infinite; }
.icon-cycle span:nth-child(1) { animation-delay: 0s; }
.icon-cycle span:nth-child(2) { animation-delay: 2s; }
.icon-cycle span:nth-child(3) { animation-delay: 4s; }
.icon-cycle span:nth-child(4) { animation-delay: 6s; }
@keyframes iconFade { 0%,18%,100%{opacity:0}5%,15%{opacity:1} }
.repair-text { font-size: .95rem; font-weight: 700; color: var(--text); text-align: center; }
.repair-sub { font-size: .68rem; color: var(--primary); text-align: center; }
.repair-bar-wrap { width: 100%; background: var(--border); border-radius: 3px; height: 3px; overflow: hidden; }
.repair-bar { height: 100%; background: var(--primary); border-radius: 3px; animation: barLoad 2.5s ease infinite alternate; }
@keyframes barLoad { from{width:50%} to{width:90%} }
.sc2-orb { width: 72px; height: 72px; border-radius: 50%; background: rgba(0,113,227,.06); border: 1px solid rgba(0,113,227,.1); display: flex; align-items: center; justify-content: center; }
.sc2-logo { font-size: 1.2rem; font-weight: 900; color: var(--text); }
.sc2-logo span { color: var(--primary); }
.sc2-tagline { font-size: .64rem; color: var(--text-light); text-align: center; line-height: 1.55; }

.sc3-browser { width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.sc3-browser-bar { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 6px 8px; display: flex; align-items: center; gap: 6px; }
.sc3-bdots { display: flex; gap: 4px; }
.sc3-bdots span { width: 7px; height: 7px; border-radius: 50%; }
.sc3-bdots span:nth-child(1){background:#ff5f57}
.sc3-bdots span:nth-child(2){background:#ffbd2e}
.sc3-bdots span:nth-child(3){background:#28c840}
.sc3-burl { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 3px; padding: 2px 6px; font-size: .5rem; color: var(--text-muted); text-align: center; }
.sc3-bpage { padding: 8px; }
.sc3-bnav { height: 5px; background: var(--dark); border-radius: 2px; margin-bottom: 8px; }
.sc3-bhero { background: linear-gradient(135deg, var(--dark) 0%, #1a3575 100%); border-radius: 5px; padding: 10px 8px; margin-bottom: 8px; }
.sc3-bh-line { height: 6px; background: rgba(255,255,255,.65); border-radius: 2px; width: 80%; }
.sc3-bh-btn { margin-top: 8px; height: 10px; width: 48px; background: var(--primary); border-radius: 2px; }
.sc3-bcards { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-bottom: 6px; }
.sc3-bcard { height: 24px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 3px; }
.sc3-bfooter { height: 8px; background: var(--dark-2); border-radius: 2px; }
.sc3-wd-tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.sc3-wd-tags span { font-size: .55rem; font-weight: 700; color: var(--primary); background: rgba(0,113,227,.06); border: 1px solid rgba(0,113,227,.12); border-radius: 4px; padding: 2px 7px; text-transform: uppercase; letter-spacing: .5px; }

/* ── COMMON SECTIONS ── */
.sec-in { max-width: 1200px; margin: 0 auto; }

.sec-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--primary); margin-bottom: 12px;
}

.sec-title {
  font-family: var(--font);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--text);
}
.sec-sub { color: var(--text-light); font-size: .97rem; max-width: 520px; line-height: 1.7; }
.sec-header { margin-bottom: 52px; }

/* ── SERVICES ── */
#servizi { padding: 96px 28px; background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.sv-card:hover { border-color: var(--border); box-shadow: var(--shadow-md); }
.sv-content { position: relative; z-index: 1; }
.sv-icon { width: 46px; height: 46px; background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; transition: none; }
.sv-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.sv-card p { color: var(--text-light); font-size: .875rem; line-height: 1.68; }
.sv-featured {
  border-color: rgba(0,113,227,.14);
  background: rgba(0,113,227,.03);
  grid-column: span 2;
  position: relative;
  overflow: hidden;
}
.sv-featured::after { display: none; }
.sv-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--primary); color: #fff; font-size: .64rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; margin-bottom: 8px; letter-spacing: .3px; }
.d5 { transition-delay: .5s; }

/* ── DEVICES ── */
#dispositivi { padding: 80px 28px; background: var(--bg-alt); border-top: 1px solid var(--border-light); }
.dev-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 44px; }
.dev-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 28px 16px; text-align: center; transition: border-color .2s, box-shadow .2s; box-shadow: var(--shadow); cursor: default; }
.dev-card:hover { border-color: var(--border); box-shadow: var(--shadow-md); }
.dev-emoji { font-size: 2rem; margin-bottom: 10px; display: block; }
.dev-card h3 { font-size: .9rem; font-weight: 600; color: var(--text); }

/* ── BRANDS ── */
.brands-section { padding: 40px 28px; background: var(--bg); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.b-label { text-align: center; color: var(--text-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px; }
.b-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg,transparent,black 10%,black 90%,transparent); mask-image: linear-gradient(90deg,transparent,black 10%,black 90%,transparent); }
.b-slide { display: flex; gap: 56px; align-items: center; animation: bSlide 26s linear infinite; flex-shrink: 0; width: max-content; }
@keyframes bSlide { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.b-item { font-size: .88rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; transition: color .2s; cursor: default; }
.b-item:hover { color: var(--text); }

/* ── ABOUT ── */
#chi-siamo { padding: 96px 28px; background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-visual { position: relative; }
.about-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; box-shadow: var(--shadow-lg); }
.about-year { font-size: 4.8rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; letter-spacing: -.04em; font-style: normal; }
.about-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.about-card p { color: var(--text-light); margin-top: 8px; font-size: .875rem; line-height: 1.7; }
.about-float { position: absolute; right: -20px; bottom: 36px; background: var(--primary); color: #fff; border-radius: 10px; padding: 14px 18px; box-shadow: 0 8px 24px rgba(0,113,227,.22); }
.about-float .n { font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1; }
.about-float .l { font-size: .66rem; color: rgba(255,255,255,.8); margin-top: 3px; }
.about-txt p { color: var(--text-light); margin-bottom: 24px; font-size: .95rem; line-height: 1.75; }
.benefits { display: flex; flex-direction: column; gap: 8px; }
.ben { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 10px; padding: 12px 16px; transition: border-color .2s; }
.ben:hover { border-color: rgba(0,113,227,.2); }
.ben-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.ben span { font-weight: 500; font-size: .9rem; color: var(--text); }

/* ── WEB DESIGN SECTION (dark) ── */
.wd-section {
  padding: 112px 28px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.wd-section::before { display: none; }
.wd-orb { display: none; }

.sec-tag-light {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,.45); margin-bottom: 12px;
}

.sec-title-light { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; color: #fff; }
.sec-sub-light { color: rgba(255,255,255,.5); font-size: .97rem; max-width: 560px; line-height: 1.7; }
.wd-header { text-align: center; margin-bottom: 60px; }

.wd-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wd-service-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
  transition: border-color .25s, background .25s;
}
.wd-service-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}
.wd-featured { border-color: rgba(0,113,227,.3); background: rgba(0,113,227,.08); }
.wd-featured:hover { border-color: rgba(0,113,227,.5); background: rgba(0,113,227,.12); }
.wd-popular {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .62rem; font-weight: 700;
  padding: 3px 14px; border-radius: 20px; text-transform: uppercase;
  letter-spacing: .3px; white-space: nowrap;
}
.wd-sc-num { display: none; }
.wd-sc-icon { width: 46px; height: 46px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; }
.wd-service-card h3 { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 8px; line-height: 1.25; }
.wd-service-card p { color: rgba(255,255,255,.5); font-size: .875rem; line-height: 1.65; margin-bottom: 20px; }
.wd-feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.wd-feature-list li { font-size: .84rem; color: rgba(255,255,255,.52); display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.wd-feature-list li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); flex-shrink: 0; margin-top: 6px; }
.wd-sc-cta { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.52); font-size: .84rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 2px; transition: color .2s, gap .2s, border-color .2s; }
.wd-sc-cta:hover { color: #fff; border-color: rgba(255,255,255,.4); gap: 10px; }
.wd-sc-cta-feat { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.2); }
.wd-sc-cta-feat:hover { color: #fff; }

/* ── PROCESS ── */
#processo { padding: 96px 28px; background: var(--bg); border-top: 1px solid var(--border-light); }
.proc-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 56px; position: relative; }
.proc-steps::before {
  content: ''; position: absolute;
  top: 26px; left: calc(12.5% + 22px); right: calc(12.5% + 22px);
  height: 1px; background: var(--border-light);
}
.proc-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; }
.proc-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--text-muted);
  margin-bottom: 24px; position: relative; z-index: 1;
  transition: all .25s;
}
.proc-step:hover .proc-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.proc-icon { font-size: 1.6rem; margin-bottom: 10px; }
.proc-content h3 { font-size: .97rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.proc-content p { color: var(--text-light); font-size: .84rem; line-height: 1.65; }

/* ── CONTACTS ── */
#contatti { padding: 96px 28px; background: var(--bg-alt); border-top: 1px solid var(--border-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-items { display: flex; flex-direction: column; gap: 10px; }
.ci { display: flex; align-items: flex-start; gap: 14px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 18px 20px; transition: border-color .2s; box-shadow: var(--shadow); }
.ci:hover { border-color: var(--border); }
.ci-ic { width: 40px; height: 40px; border-radius: 9px; background: var(--bg-alt); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.ci-label { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 3px; }
.ci-val { font-weight: 500; font-size: .9rem; color: var(--text); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.soc { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 20px; font-size: .77rem; font-weight: 600; border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; background: var(--bg); }
.soc:hover { box-shadow: var(--shadow-md); }
.soc.fb { color: #1877f2; }
.soc.fb:hover { border-color: rgba(24,119,242,.3); }
.soc.ig { color: #e1306c; }
.soc.ig:hover { border-color: rgba(225,48,108,.3); }
.soc.wa { color: #25d366; }
.soc.wa:hover { border-color: rgba(37,211,102,.3); }
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}
.map-embed iframe { width: 100%; height: 240px; display: block; border: 0; }
.map-cta {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  font-size: .8rem; font-weight: 600; color: var(--text-light);
  transition: color .2s;
}
.map-cta:hover { color: var(--primary); }

.contact-hours { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.contact-hours h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.hour { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--bg-alt); border-radius: 8px; margin-bottom: 6px; }
.hour .day { color: var(--text-light); font-size: .85rem; }
.hour .time { color: var(--primary); font-weight: 600; font-size: .85rem; }
.addr-box { background: rgba(0,113,227,.04); border: 1px solid rgba(0,113,227,.1); border-radius: 10px; padding: 18px 20px; margin-top: 14px; }
.addr-box .l { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 5px; }
.addr-box .v { font-weight: 700; font-size: .9rem; color: var(--text); }
.addr-box .s { color: var(--text-light); font-size: .84rem; }

/* ── FOOTER ── */
footer { background: var(--dark); padding: 60px 28px 0; }
.foot-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: center; }
.foot-logo { margin-bottom: 12px; display: flex; justify-content: center; }
.foot-tagline { color: rgba(255,255,255,.35); font-size: .82rem; line-height: 1.65; max-width: 210px; margin: 0 auto; }
.foot-col { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.foot-col-title { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.3); margin-bottom: 4px; }
.foot-col a { color: rgba(255,255,255,.45); font-size: .84rem; transition: color .2s; }
.foot-col a:hover { color: rgba(255,255,255,.88); }
.foot-pay { max-width: 1200px; margin: 0 auto; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.07); text-align: center; }
.foot-pay-title { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.pay-badge { background: #fff; height: 30px; padding: 0 10px; border-radius: 7px; box-shadow: 0 1px 4px rgba(0,0,0,.2);
  display: inline-flex; align-items: center; justify-content: center; }
.pay-badge svg { height: 18px; width: auto; display: block; }
.pay-visa { color: #1434cb; }
.pay-mastercard { color: #eb001b; }
.pay-americanexpress { color: #006fcf; }
.pay-paypal { color: #003087; }
.pay-klarna { background: #ffb3c7; color: #0a0a0a; }
.pay-scalapay { background: #d4ff4a; color: #0a0a0a; }
.foot-pay-note { color: rgba(255,255,255,.5); font-size: .82rem; line-height: 1.7; max-width: 640px; margin: 0 auto; }
.foot-pay-note strong { color: rgba(255,255,255,.8); }
.foot-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 0; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.foot-bottom span { color: rgba(255,255,255,.25); font-size: .76rem; }
.foot-credit a { color: rgba(255,255,255,.35); font-size: .76rem; text-decoration: none; transition: color .2s; }
.foot-credit a:hover { color: rgba(255,255,255,.8); }

/* ── SERVICES OVERVIEW ── */
.services-overview { padding: 96px 28px; background: var(--bg-alt); border-top: 1px solid var(--border-light); }
.overview-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.ov-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 28px 22px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
}
.ov-card:hover { border-color: var(--border); box-shadow: var(--shadow-md); }
.ov-icon { font-size: 1.8rem; margin-bottom: 2px; }
.ov-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
.ov-card p { color: var(--text-light); font-size: .875rem; line-height: 1.65; flex: 1; }
.ov-link { font-size: .82rem; font-weight: 600; color: var(--primary); margin-top: 4px; }

/* ── REVIEWS ── */
.reviews-section { padding: 96px 28px; background: var(--bg); border-top: 1px solid var(--border-light); }
.reviews-aggregate {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 20px; padding: 8px 18px; margin-bottom: 40px;
}
.reviews-g-logo { display: flex; align-items: center; }
.reviews-score { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.reviews-stars { color: #f59e0b; font-size: .88rem; letter-spacing: 1px; }
.reviews-count { font-size: .78rem; color: var(--text-muted); }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.reviews-grid .review-card:last-child:nth-child(3n+2) { grid-column: 2; }
.reviews-grid .review-card:nth-last-child(2):nth-child(3n+1) { grid-column: 1 / span 1; }
.review-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s;
}
.review-card:hover { box-shadow: var(--shadow-md); border-color: var(--border); }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .92rem; flex-shrink: 0; }
.review-meta { flex: 1; }
.review-name { font-weight: 600; font-size: .88rem; color: var(--text); }
.review-date { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.review-g { margin-left: auto; opacity: .6; }
.review-stars { color: #f59e0b; font-size: .8rem; letter-spacing: 1px; margin-bottom: 8px; }
.review-text { color: var(--text-light); font-size: .875rem; line-height: 1.7; font-style: italic; }

/* ── CTA STRIP ── */
.cta-strip { padding: 80px 28px; background: var(--dark); }
.cta-strip-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-strip h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; color: #fff; margin-bottom: 8px; }
.cta-strip p { color: rgba(255,255,255,.5); font-size: .95rem; }
.cta-strip-btns { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* Dark section button overrides */
.cta-strip .btn-hero-o,
.cta-dark .btn-hero-o {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
}
.cta-strip .btn-hero-o:hover,
.cta-dark .btn-hero-o:hover {
  background: rgba(255,255,255,.15);
}

/* ── CTA DARK (inner pages) ── */
.cta-dark { background: var(--dark); padding: 80px 28px; text-align: center; }
.cta-dark h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; color: #fff; margin-bottom: 14px; }
.cta-dark p { color: rgba(255,255,255,.5); font-size: 1rem; line-height: 1.7; max-width: 520px; margin: 0 auto 32px; }
.cta-dark-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 116px 28px 78px;
  background:
    radial-gradient(1100px 460px at 50% -8%, rgba(0,113,227,.12), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
/* bagliori soffusi decorativi */
.page-hero::before {
  content: ''; display: block !important; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.16), transparent 70%);
  top: -230px; right: -120px; pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,.14), transparent 70%);
  bottom: -260px; left: -150px; pointer-events: none;
}
.page-hero-in { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
.page-hero .sec-tag-light { display: inline-block; background: rgba(0,113,227,.1); color: var(--primary);
  font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 15px; border-radius: 999px; margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.03em; color: var(--text); margin-bottom: 18px; line-height: 1.06; }
.page-hero p { color: var(--text-light); font-size: 1.08rem; line-height: 1.7; max-width: 600px; margin: 0 auto 30px; }
.page-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.page-hero .hero-accent { background: linear-gradient(120deg, var(--primary), #7c3aed); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── RESPONSIVE (1100px) ── */
@media (max-width: 1100px) {
  .overview-grid { grid-template-columns: repeat(2,1fr); }
  .reviews-grid { grid-template-columns: repeat(2,1fr); }
  .hero-in { grid-template-columns: 1fr; }
  .phone-wrap { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .ph-wrap:not(:nth-child(2)) { display: none; }
  .dev-grid { grid-template-columns: repeat(2,1fr); }
  .wd-cards-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .proc-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .proc-steps::before { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .sv-featured { grid-column: span 2; }
}
@media (max-width: 768px) {
  .nav-links, .nav-phone { display: none; }
  .nav-shop { padding: 8px 16px; font-size: .85rem; }
  .ham { display: flex; }
  .overview-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  /* reset placement 3-col: senza questo grid-column:2 crea una colonna implicita → overflow orizzontale */
  .reviews-grid .review-card { grid-column: auto !important; }
  .cta-strip-in { flex-direction: column; text-align: center; }
  .cta-strip-btns { justify-content: center; }
  .sv-featured { grid-column: span 2; }
  .proc-steps { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .sv-featured { grid-column: span 1; }
}
@media (max-width: 480px) {
  .stats { flex-direction: row; }
  .dev-grid { grid-template-columns: 1fr 1fr; }
}

/* ── WEB DESIGN GEO NOTE ── */
.wd-geo-note {
  margin-top: 20px;
  color: rgba(255,255,255,.3);
  font-size: .8rem;
  line-height: 1.7;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}
.wd-geo-note strong { color: rgba(255,255,255,.48); font-weight: 600; }

/* ── FAQ ── */
#faq { padding: 96px 28px; background: var(--bg-alt); border-top: 1px solid var(--border-light); }
.faq-list {
  max-width: 740px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-card);
  box-shadow: var(--shadow);
}
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: transparent; border: none;
  padding: 18px 24px; text-align: left;
  font-size: .93rem; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  transition: color .2s, background .2s;
  font-family: var(--font); line-height: 1.4;
}
.faq-q:hover { color: var(--primary); background: rgba(0,113,227,.02); }
.faq-q[aria-expanded="true"] { color: var(--primary); background: rgba(0,113,227,.03); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--border); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; font-weight: 300;
  color: var(--text-muted); flex-shrink: 0;
  transition: transform .3s ease, border-color .2s, color .2s;
  line-height: 1;
}
.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  border-color: var(--primary);
  color: var(--primary);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.faq-a.open { max-height: 500px; }
.faq-a p {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border-light);
  background: rgba(0,113,227,.01);
  color: var(--text-light); font-size: .88rem; line-height: 1.75; margin: 0;
}
.faq-a strong { color: var(--text); font-weight: 600; }
.faq-a a { color: var(--primary); font-weight: 500; }
.faq-a a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
  background: rgba(29,29,31,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.08);
  transform: translateY(100%);
  transition: transform .5s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-icon { font-size: 1.5rem; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 220px; }
.cookie-title { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.cookie-text p { color: rgba(255,255,255,.5); font-size: .82rem; line-height: 1.6; }
.cookie-text a { color: rgba(255,255,255,.65); text-decoration: underline; text-underline-offset: 2px; }
.cookie-text a:hover { color: #fff; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-decline {
  padding: 8px 16px; border-radius: 6px; font-size: .82rem; font-weight: 600;
  cursor: pointer; background: transparent;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.65);
  transition: all .2s; font-family: var(--font);
}
.cookie-btn-decline:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.cookie-btn-accept {
  padding: 8px 18px; border-radius: 6px; font-size: .82rem; font-weight: 600;
  cursor: pointer; background: var(--primary);
  border: none; color: #fff;
  transition: background .2s; font-family: var(--font);
}
.cookie-btn-accept:hover { background: var(--primary-dark); }

/* Cookie recall */
.cookie-recall {
  position: fixed; bottom: 28px; left: 28px; z-index: 200;
  width: 44px; height: 44px;
  background: rgba(29,29,31,.85);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
  transition: all .2s;
}
.cookie-recall.visible { display: flex; }
.cookie-recall:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── WHATSAPP FLOAT ── */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 200; width: 52px; height: 52px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,.3); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* ── REVEAL ANIMATIONS ── */
.rv   { opacity:0; transform:translateY(20px); transition:opacity .6s ease,transform .6s ease; }
.rv.in { opacity:1; transform:translateY(0); }
.rv-l  { opacity:0; transform:translateX(-20px); transition:opacity .6s ease,transform .6s ease; }
.rv-l.in { opacity:1; transform:translateX(0); }
.rv-r  { opacity:0; transform:translateX(20px); transition:opacity .6s ease,transform .6s ease; }
.rv-r.in { opacity:1; transform:translateX(0); }

/* ══ SHOP PAGE ══ */

/* Hero */
.shop-main { padding-top: 88px; }
.shop-hero {
  padding: 72px 28px 52px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}
.shop-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 12px;
}
.shop-hero p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* Filters */
.shop-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-light);
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-n { opacity: .6; font-size: .74rem; margin-left: 3px; }

/* ── Shop v2: layout 2 colonne + sidebar ── */
.shop-layout { display: flex; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 24px 28px; align-items: flex-start; }
.shop-sidebar { flex: 0 0 240px; position: sticky; top: calc(var(--announce-h, 0px) + 90px); max-height: calc(100vh - var(--announce-h, 0px) - 106px); overflow-y: auto; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; }
.shop-sidebar::-webkit-scrollbar { width: 8px; }
.shop-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.side-group { margin-bottom: 4px; }
.side-dept { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: var(--radius); font-weight: 600; color: var(--text); cursor: pointer; font-family: var(--font); font-size: .9rem; }
.side-dept:hover, .side-sub:hover { background: var(--bg-alt); }
.side-dept.active, .side-sub.active { background: var(--primary); color: #fff; }
.side-dept.active .filter-n, .side-sub.active .filter-n { opacity: .85; }
.side-subs { margin: 2px 0 8px 8px; display: flex; flex-direction: column; }
.side-sub { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 6px 12px; border: 0; background: none; border-radius: var(--radius); font-size: .84rem; color: var(--text-light); cursor: pointer; font-family: var(--font); }
/* Pannello facet (filtri attributi) */
.shop-facets { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.facet-head { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); padding: 0 12px 4px; }
.facet-group { margin-bottom: 10px; }
.facet-title { font-size: .8rem; font-weight: 700; color: var(--text); padding: 6px 12px 4px; }
.facet-opts { display: flex; flex-direction: column; }
.facet-opt { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 12px; border: 0; background: none; border-radius: var(--radius); font-size: .84rem; color: var(--text-light); cursor: pointer; font-family: var(--font); }
.facet-opt:hover { background: var(--bg-alt); }
.facet-opt.active { background: var(--primary); color: #fff; font-weight: 600; }
.facet-n { font-size: .74rem; opacity: .6; }
.facet-opt.active .facet-n { opacity: .85; }
/* Chip filtri attivi sopra la griglia */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 18px; border: 1px solid var(--primary); background: rgba(0,113,227,.08); color: var(--primary); font-size: .8rem; font-weight: 600; cursor: pointer; font-family: var(--font); }
.filter-chip:hover { background: rgba(0,113,227,.16); }
.filter-chip .chip-x { font-size: .7rem; opacity: .8; }
.filter-chip.clear-all { border-style: dashed; background: none; color: var(--text-muted); }
.filter-chip.clear-all:hover { color: #dc2626; border-color: #dc2626; }
/* Badge grado ricondizionamento */
.prod-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.prod-grade, .pd-grade { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #e0e7ff; color: #3730a3; }
.grade-A { background: #dcfce7; color: #166534; }
.grade-B { background: #fef9c3; color: #854d0e; }
.grade-C { background: #ffedd5; color: #9a3412; }
.pd-grade { font-size: .78rem; padding: 4px 12px; }
.shop-content { flex: 1; min-width: 0; }
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.shop-toolbar input[type=search] { flex: 1; min-width: 200px; padding: 11px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: .95rem; }
.shop-toolbar input[type=search]:focus { outline: none; border-color: var(--primary); }
.shop-toolbar select { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); font-family: var(--font); }
.cond-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg); color: var(--text-light); font-size: .8rem; cursor: pointer; font-family: var(--font); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.prod-cond { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 6px; font-size: .68rem; font-weight: 700; text-transform: capitalize; background: #334155; color: #fff; }
.prod-cond.cond-ricondizionato { background: #0369a1; }
.prod-cond.cond-usato { background: #b45309; }

/* ── Pagina prodotto (SEO) ── */
.pd-main { max-width: 1100px; margin: 0 auto; padding: 92px 28px 64px; }
.pd-back { display: inline-block; margin-bottom: 18px; color: var(--text-light); text-decoration: none; font-size: .9rem; }
.pd-back:hover { color: var(--primary); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd-main-img { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.pd-main-img img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb { width: 66px; height: 66px; object-fit: contain; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; padding: 4px; }
.pd-thumb.active { border-color: var(--primary); }
.pd-cat { color: var(--text-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.pd-name { font-size: 1.7rem; margin: 8px 0 14px; line-height: 1.25; }
.pd-paypal-wrap { min-height: 24px; margin: 6px 0 14px; }
.pd-paypal-ph { font-size: .84rem; color: var(--text-muted); opacity: .85; animation: ppPulse 1.4s ease-in-out infinite; }
@keyframes ppPulse { 0%,100% { opacity: .45; } 50% { opacity: .9; } }
.pd-badges { display: flex; gap: 8px; margin-bottom: 16px; }
.pd-cond { padding: 4px 12px; border-radius: 6px; font-size: .78rem; font-weight: 700; background: #334155; color: #fff; }
.pd-cond.cond-ricondizionato { background: #0369a1; }
.pd-cond.cond-usato { background: #b45309; }
.pd-stock { padding: 4px 12px; border-radius: 6px; font-size: .78rem; font-weight: 600; }
.pd-stock.ok { background: #dcfce7; color: #166534; }
.pd-stock.no { background: #fee2e2; color: #991b1b; }
.pd-price { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 18px; }
.pd-add { width: 100%; justify-content: center; margin-bottom: 16px; }
.pd-notice { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; font-size: .9rem; line-height: 1.5; color: var(--text-light); margin-bottom: 22px; }
.pd-pickup { font-size: .82rem; color: var(--text-muted); margin: 0 0 20px; line-height: 1.5; }
.pd-desc { line-height: 1.7; color: var(--text); white-space: pre-line; }
@media (max-width: 760px) {
  .pd-grid { grid-template-columns: 1fr; gap: 24px; }
  .pd-name { font-size: 1.4rem; }
}

/* FreeDOS badge + modal scelta SO */
.prod-freedos { display: inline-block; font-size: .7rem; color: #b45309; font-weight: 700; background: #fef3c7; padding: 2px 8px; border-radius: 6px; }
.os-intro { color: var(--text-light); font-size: .92rem; line-height: 1.5; margin-bottom: 14px; }
.os-options { display: flex; flex-direction: column; gap: 8px; }
.os-opt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: .9rem; }
.os-opt:hover { border-color: var(--primary); }
.os-opt span { flex: 1; }
.os-opt b { color: var(--primary); white-space: nowrap; }
.os-opt input { accent-color: var(--primary); }
.added-box { max-width: 420px; }
.added-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.added-preview { margin: 4px 0 14px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ap-head { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); padding: 8px 12px; background: var(--bg-alt); }
.ap-list { max-height: 180px; overflow-y: auto; }
.ap-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border-light); font-size: .84rem; }
.ap-img { width: 40px; height: 40px; flex-shrink: 0; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-light); background: var(--bg-alt); }
.ap-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ap-qty { color: var(--text-muted); font-size: .8rem; }
.ap-price { font-weight: 600; color: var(--text); white-space: nowrap; }
.ap-total { display: flex; justify-content: space-between; padding: 10px 12px; border-top: 1px solid var(--border); font-weight: 700; color: var(--text); background: var(--bg-alt); }
.ap-total span:last-child { color: var(--primary); }
.sidebar-toggle { display: none; }

/* ── Home categorie mobile (nascosta su desktop, mostrata solo in vista picker ≤820px) ── */
.cat-home { display: none; padding: 2px 0 20px; }
.back-to-cats { display: none; }
.cat-home-search input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: .95rem; background: var(--bg); color: var(--text); }
.cat-home-search input:focus { outline: none; border-color: var(--primary); }
.cat-home-title { font-size: 1.15rem; font-weight: 800; margin: 20px 2px 12px; color: var(--text); }
.cat-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 14px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); cursor: pointer; font-family: var(--font); text-align: left; transition: border-color .15s, transform .1s, box-shadow .15s; }
.cat-card:active { transform: scale(.98); }
.cat-card:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(0,113,227,.12); }
.cat-card-ico { font-size: 1.9rem; line-height: 1; }
.cat-card-name { font-weight: 700; font-size: .98rem; color: var(--text); }
.cat-card-n { font-size: .78rem; color: var(--text-muted); }
.cat-home-all { width: 100%; margin-top: 16px; padding: 13px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 700; font-family: var(--font); font-size: .92rem; color: var(--text); cursor: pointer; }
.cat-home-all:hover { border-color: var(--primary); color: var(--primary); }
.back-to-cats { align-self: flex-start; margin: 0 0 14px; padding: 8px 15px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; font-family: var(--font); font-weight: 600; font-size: .88rem; color: var(--text); cursor: pointer; }
.back-to-cats:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 820px) {
  /* ── Toggle viste shop mobile ── */
  body.shop-view-picker .cat-home { display: block; }
  /* In vista risultati NON si mostra "Torna alle categorie": si naviga tra reparti col drawer "☰ Categorie". */
  /* In vista picker: nascondi toolbar/griglia/filtri/drawer-toggle; mostra i banner in cima */
  body.shop-view-picker .shop-toolbar,
  body.shop-view-picker #shopFacets,
  body.shop-view-picker #activeFilters,
  body.shop-view-picker #productsGrid,
  body.shop-view-picker #shopMore,
  body.shop-view-picker .sidebar-toggle,
  body.shop-view-picker .back-to-cats { display: none; }
  /* In vista risultati: nascondi banner + hero + striscia marchi (focus prodotti, pulsante Categorie subito in alto); restano sulla home */
  body:not(.shop-view-picker) .shop-banner-wrap,
  body:not(.shop-view-picker) .shop-head { display: none; }
  body:not(.shop-view-picker) .brand-marquee { display: none !important; }

  /* align-items:stretch OBBLIGATORIO: il layout desktop usa flex-start (per la sidebar);
     in colonna senza stretch .shop-content si dimensiona al contenuto (max-content) → overflow orizzontale della pagina. */
  .shop-layout { flex-direction: column; align-items: stretch; padding: 16px; }
  .shop-banner-wrap { padding: 8px 16px 0; }
  /* Drawer categorie: parte SOTTO la navbar fissa (announce 52 + nav 64), scroll interno contenuto (non trascina la pagina). */
  .shop-sidebar { position: fixed; left: 0; top: calc(var(--announce-h, 0px) + 64px); bottom: 0; z-index: 60; width: 82%; max-width: 300px; transform: translateX(-100%); transition: transform .25s; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-radius: 0; padding-bottom: 24px; }
  .shop-sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 59; background: rgba(0,0,0,.45); }
  .sidebar-overlay.open { display: block; }
  body.cats-open { overflow: hidden; }
  /* Pill "Categorie" sempre visibile (sticky sotto la navbar): cambio reparto senza tornare su */
  .sidebar-toggle { position: sticky; top: calc(var(--announce-h, 0px) + 64px + 8px); z-index: 45;
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    padding: 9px 16px; border: 1px solid var(--border); background: var(--bg-card); border-radius: 999px;
    cursor: pointer; margin: 0 0 12px; font-family: var(--font); font-weight: 700; font-size: .9rem;
    color: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,.14); }
}

/* Search box */
.shop-search {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 28px 0;
}
.shop-search input {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: .95rem;
  font-family: var(--font);
}
.shop-search input:focus { outline: none; border-color: var(--primary); }

/* Load more */
.shop-more {
  text-align: center;
  padding: 12px 28px 48px;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 0 28px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prod-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-alt); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.product-card:hover .prod-img img { transform: scale(1.04); }
.prod-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 12px;
}
.prod-info { padding: 16px; }
.prod-cat { font-size: .72rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.prod-name { font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.35; overflow-wrap: anywhere; }
.prod-prices { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.prod-price { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.prod-orig { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.add-cart-btn {
  width: 100%; padding: 9px 0; border-radius: 6px;
  background: var(--primary); color: #fff;
  border: none; font-size: .84rem; font-weight: 600;
  cursor: pointer; font-family: var(--font);
  transition: background .2s;
}
.add-cart-btn:hover { background: var(--primary-dark); }
.empty-shop {
  grid-column: 1/-1; text-align: center;
  color: var(--text-muted); padding: 60px 20px;
  font-size: .95rem;
}

/* Cart FAB */
.cart-fab {
  position: fixed; bottom: 88px; right: 28px; z-index: 150;
  background: var(--primary); color: #fff;
  border: none; border-radius: 28px;
  padding: 12px 20px; font-size: .9rem; font-weight: 600;
  cursor: pointer; font-family: var(--font);
  box-shadow: 0 4px 18px rgba(0,113,227,.35);
  transition: transform .2s, box-shadow .2s;
  display: flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.cart-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,113,227,.45); }
.cart-count {
  background: #fff; color: var(--primary);
  font-size: .72rem; font-weight: 700;
  border-radius: 10px; padding: 1px 6px;
  min-width: 18px; text-align: center;
  display: inline-block;
}
.cart-count:empty { display: none; }

/* Cart overlay + drawer */
.cart-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.35); backdrop-filter: blur(2px);
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: -380px; bottom: 0; z-index: 310;
  width: min(380px, 100vw);
  background: var(--bg); border-left: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  transition: right .32s cubic-bezier(.16,1,.3,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
}
.cart-head h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.cart-head button { background: none; border: none; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-empty-msg { text-align: center; color: var(--text-muted); padding: 48px 20px; font-size: .95rem; line-height: 2; }
.cart-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 56px; height: 56px; flex-shrink: 0; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-light); background: var(--bg-alt); }
.cart-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cart-item-name { font-size: .9rem; font-weight: 600; color: var(--text); }
.cart-item-remove { background: none; border: none; cursor: pointer; font-size: 1rem; line-height: 1; opacity: .6; padding: 0; flex-shrink: 0; transition: opacity .15s; }
.cart-item-remove:hover { opacity: 1; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-item-max { font-size: .75rem; color: #b45309; }
.cart-item-price { font-size: .88rem; color: var(--primary); font-weight: 600; }
.qty-ctrl { display: flex; align-items: center; gap: 10px; }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-alt);
  color: var(--text); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: var(--border-light); }
.qty-ctrl span { font-size: .9rem; font-weight: 600; min-width: 18px; text-align: center; }
.cart-foot { padding: 16px 20px; border-top: 1px solid var(--border-light); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .95rem; font-weight: 600; color: var(--text); }
.cart-clear-btn { width: 100%; margin-top: 8px; background: none; border: none; color: var(--text-muted); font-size: .82rem; cursor: pointer; padding: 6px; text-decoration: underline; }
.cart-clear-btn:hover { color: #dc2626; }
/* Conferma grafica "svuota carrello" (sostituisce confirm() nativo) */
.cart-clear-confirm { margin-top: 10px; padding: 12px; border: 1px solid rgba(220,38,38,.3); background: rgba(220,38,38,.06); border-radius: var(--radius); animation: cccIn .16s ease; }
.cart-clear-confirm[hidden] { display: none; }
.ccc-text { font-size: .88rem; font-weight: 600; color: var(--text); text-align: center; margin-bottom: 10px; }
.ccc-ico { margin-right: 4px; }
.ccc-actions { display: flex; gap: 8px; }
.ccc-actions button { flex: 1; padding: 9px 10px; border-radius: var(--radius); font-family: var(--font); font-weight: 700; font-size: .85rem; cursor: pointer; }
.ccc-cancel { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.ccc-cancel:hover { border-color: var(--text-light); }
.ccc-yes { background: #dc2626; border: 1px solid #dc2626; color: #fff; }
.ccc-yes:hover { background: #b91c1c; }
@keyframes cccIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Blocco scroll pagina sotto ai popup/drawer (desktop + mobile). La scrollbar rimossa
   è compensata via padding-right in JS così il contenuto non salta di lato. */
body.modal-open { overflow: hidden; }
/* iOS Safari: overflow:hidden non ferma il touch-scroll → fissiamo il body preservando la posizione */
body.modal-lock-fixed { position: fixed; left: 0; right: 0; width: 100%; }
.prod-stock { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; }

/* Product detail modal */
.prod-modal {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.prod-modal.open { display: flex; }
.prod-modal-box {
  background: var(--bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; padding: 32px;
  position: relative;
}
.prod-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1.2rem;
  color: var(--text-muted); cursor: pointer; line-height: 1;
}
.prod-modal-box h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 20px; padding-right: 32px; }
.prod-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media(max-width: 520px) { .prod-modal-grid { grid-template-columns: 1fr; } }
.prod-modal-img img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 1; }
.prod-modal-price { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.prod-modal-desc { color: var(--text-light); font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }

/* Checkout form */
.checkout-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.field input,
.field select,
.field textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem; font-family: var(--font);
  color: var(--text); background: var(--bg);
  transition: border-color .2s;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err-msg { color: #dc2626; font-size: .82rem; display: none; }
.err-msg.show { display: block; }

@media(max-width: 640px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; padding: 0 16px 60px; }
  .shop-filters { padding: 18px 16px; }
  .cart-fab { bottom: 80px; right: 16px; }
  .field-row { grid-template-columns: 1fr; }
}
.d1{transition-delay:.1s} .d2{transition-delay:.2s} .d3{transition-delay:.3s} .d4{transition-delay:.4s} .d5{transition-delay:.5s}

/* ══ Configuratore "Trova il PC ideale" ══ */

/* Link riapri-prodotto dentro il carrello */
.cart-item-name { text-decoration: none; transition: color .15s; }
.cart-item-name:hover { color: var(--primary); text-decoration: underline; }
.cart-item-imglink { display: block; flex-shrink: 0; }
a.ap-row { text-decoration: none; transition: background .15s; }
a.ap-row:hover { background: var(--bg-alt); }
a.ap-row:hover .ap-name { color: var(--primary); }

/* Banner shop — mago + assemblato affiancati in cima */
.shop-banner-wrap { max-width: 1280px; margin: 0 auto; padding: 8px 28px 0; }
.shop-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shop-banners > a { height: 100%; margin: 0; }
@media (max-width: 900px) { .shop-banners { grid-template-columns: 1fr; } }
.pc-wizard-banner {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(120deg, #0071e3 0%, #5b5bd6 55%, #7c3aed 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 20px 26px;
  text-decoration: none; box-shadow: 0 8px 24px rgba(91,91,214,.25);
  transition: transform .2s, box-shadow .2s;
}
.pc-wizard-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(91,91,214,.35); }
.pcw-icon { font-size: 2.4rem; line-height: 1; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.2)); }
.pcw-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pcw-title { font-size: 1.05rem; font-weight: 800; }
.pcw-sub { font-size: .85rem; opacity: .9; line-height: 1.4; }
.pcw-cta { flex-shrink: 0; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.pc-wizard-banner:hover .pcw-cta { background: #fff; color: var(--primary); }

/* Banner "PC assemblato su misura" (in fondo allo shop) */
.build-banner {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(120deg, #0f172a 0%, #1e293b 60%, #334155 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 20px 26px; margin-top: 8px;
  text-decoration: none; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(15,23,42,.25); transition: transform .2s, box-shadow .2s;
}
.build-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,23,42,.35); }
.bb-icon { font-size: 2.4rem; line-height: 1; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.bb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bb-title { font-size: 1.08rem; font-weight: 800; }
.bb-sub { font-size: .85rem; color: #cbd5e1; line-height: 1.45; }
.bb-cta { flex-shrink: 0; background: linear-gradient(135deg, #f59e0b, #f97316); color: #1a1a1a;
  padding: 11px 20px; border-radius: 999px; font-weight: 800; font-size: .9rem; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(249,115,22,.35); }
.build-banner:hover .bb-cta { filter: brightness(1.06); }
@media (max-width: 560px) {
  /* compatto: niente sub, CTA inline → banner basso, non occupa mezza schermata */
  .build-banner { gap: 12px; padding: 13px 15px; align-items: center; }
  .bb-sub { display: none; }
  .bb-icon { font-size: 1.7rem; }
  .bb-title { font-size: .96rem; }
  .bb-cta { padding: 8px 13px; font-size: .76rem; }
}

/* Pagina configuratore */
.wiz-main { max-width: 900px; margin: 0 auto; padding: 96px 20px 90px; }
.wiz-hero { text-align: center; margin-bottom: 28px; }
.wiz-hero-icon { font-size: 3.2rem; line-height: 1; }
.wiz-hero-title { font-size: 2rem; font-weight: 800; margin: 8px 0 6px; }
.wiz-hero-sub { color: var(--text-light); font-size: 1.02rem; max-width: 560px; margin: 0 auto; }

.wiz-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); }
.wiz-progress { height: 6px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.wiz-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, #0071e3, #7c3aed); transition: width .35s ease; }
.wiz-qn { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }
.wiz-q { font-size: 1.4rem; font-weight: 800; margin: 6px 0 4px; }
.wiz-note { font-size: .88rem; color: var(--text-light); background: var(--bg-alt); border-radius: 8px; padding: 8px 12px; margin: 10px 0 0; }
.wiz-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.wiz-opt { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; cursor: pointer; transition: all .15s; font-family: var(--font); }
.wiz-opt:hover { border-color: var(--primary); background: var(--bg-alt); transform: translateY(-1px); }
.wiz-opt.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.wiz-opt-icon { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.wiz-opt-main { display: flex; flex-direction: column; min-width: 0; }
.wiz-opt-main b { font-size: .96rem; color: var(--text); }
.wiz-opt-hint { font-size: .8rem; color: var(--text-muted); }
.wiz-nav { margin-top: 20px; }

.wiz-loading { text-align: center; font-size: 1.1rem; color: var(--text-light); padding: 60px 20px; }

.wiz-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.wiz-results-head h2 { font-size: 1.5rem; font-weight: 800; }
.wiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.wiz-result { position: relative; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.wiz-match { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: .72rem; font-weight: 700;
  background: rgba(29,29,31,.72); color: #fff; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.wiz-match-top { background: linear-gradient(90deg, #0071e3, #7c3aed); }
.wiz-result-img { display: block; aspect-ratio: 1; background: var(--bg-alt); }
.wiz-result-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.wiz-result-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wiz-result-name { font-size: .92rem; font-weight: 700; color: var(--text); text-decoration: none; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wiz-result-name:hover { color: var(--primary); }
.wiz-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.wiz-badge { font-size: .72rem; background: var(--bg-alt); color: var(--text-light); border: 1px solid var(--border-light);
  padding: 2px 7px; border-radius: 6px; }
.wiz-result-price { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-top: auto; }
.wiz-result-actions { display: flex; flex-direction: column; gap: 8px; }
.wiz-result-actions .btn { width: 100%; justify-content: center; padding: 10px; font-size: .85rem; }
.wiz-empty { color: var(--text-light); }
.wiz-results-foot { text-align: center; margin-top: 28px; }

.wiz-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300;
  background: var(--text); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wiz-toast a { color: #7dd3fc; margin-left: 8px; text-decoration: none; font-weight: 700; }

@media (max-width: 560px) {
  .pc-wizard-banner { gap: 12px; padding: 13px 15px; align-items: center; }
  .pcw-sub { display: none; }
  .pcw-icon { font-size: 1.7rem; }
  .pcw-title { font-size: .96rem; }
  .pcw-cta { padding: 8px 13px; font-size: .76rem; }
  .wiz-opts { grid-template-columns: 1fr; }
  .wiz-hero-title { font-size: 1.6rem; }
  .wiz-card { padding: 20px; }
}

/* Filtri attributi: pulsante "Filtri" a scomparsa in cima ai prodotti */
.facets-top { margin: 0 0 14px; }
.facets-top:empty { display: none; }
.facets-toggle { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: .88rem;
  color: var(--text); cursor: pointer; font-family: var(--font); transition: border-color .15s, box-shadow .15s; }
.facets-toggle:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(0,113,227,.12); }
.facets-count { background: var(--primary); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .74rem; font-weight: 700; }
.facets-chevron { font-size: .8rem; color: var(--text-muted); transition: transform .2s; }
.facets-top.open .facets-chevron { transform: rotate(180deg); }
.facets-body { display: none; }
.facets-top.open .facets-body { display: block; margin-top: 10px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--bg-card); padding: 16px 18px; box-shadow: var(--shadow);
  max-height: 320px; overflow-y: auto; animation: facetsIn .18s ease; }
@keyframes facetsIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.facets-body .facet-group { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.facets-body .facet-group:first-child { padding-top: 0; }
.facets-body .facet-group:last-child { padding-bottom: 0; border-bottom: 0; }
.facets-body .facet-title { padding: 0; min-width: 92px; flex-shrink: 0; font-size: .82rem; color: var(--text); }
.facets-body .facet-opts { flex-direction: row; flex-wrap: wrap; gap: 6px; flex: 1; }
.facets-body .facet-opt { width: auto; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; color: var(--text-light); transition: all .12s; }
.facets-body .facet-opt:hover { border-color: var(--primary); color: var(--text); background: var(--bg-alt); }
.facets-body .facet-opt.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.facets-body .facet-n { opacity: .55; font-size: .72rem; }
.facets-body .facet-opt.active .facet-n { opacity: .85; }
/* Header/footer + overlay servono solo al bottom-sheet mobile: nascosti su desktop (dropdown inline) */
.facets-sheet-head, .facets-sheet-foot { display: none; }
.facets-overlay { display: none; }

/* ── Filtri come bottom-sheet su mobile (no layout-shift, tap-target grandi) ── */
@media (max-width: 820px) {
  .facets-overlay { position: fixed; inset: 0; z-index: 69; background: rgba(0,0,0,.45); }
  .facets-overlay.open { display: block; }
  body.facets-open { overflow: hidden; }
  /* pannello ancorato in basso, fuori dal flusso → la pagina non si sposta */
  .facets-top.open .facets-body {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; margin: 0; z-index: 70;
    max-height: 82vh; border-radius: 20px 20px 0 0; padding: 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,.28); display: flex; flex-direction: column;
    animation: facetsSheetIn .22s ease;
  }
  .facets-sheet-head { display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px 12px; border-bottom: 1px solid var(--border-light); font-weight: 800; font-size: 1.05rem; color: var(--text); }
  .facets-sheet-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--text-light); cursor: pointer; padding: 0 4px; }
  .facets-sheet-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px 18px; flex: 1; }
  .facets-sheet-foot { display: block; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-light); }
  .facets-apply { width: 100%; justify-content: center; }
  /* gruppi impilati (titolo sopra) e chip più grandi da toccare */
  .facets-body .facet-group { display: block; padding: 12px 0; }
  .facets-body .facet-title { min-width: 0; margin-bottom: 8px; font-size: .92rem; font-weight: 700; }
  .facets-body .facet-opts { gap: 8px; }
  .facets-body .facet-opt { padding: 9px 15px; font-size: .9rem; }
  /* con sheet/drawer aperto, via i pulsanti flottanti che coprirebbero i controlli */
  body.facets-open .cart-fab, body.facets-open .wa-float, body.facets-open .cookie-recall,
  body.cats-open .cart-fab, body.cats-open .wa-float, body.cats-open .cookie-recall { display: none; }
}
@keyframes facetsSheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ══ Area utente (account) ══ */
.nav-account { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 22px;
  border: 1px solid var(--border); color: var(--text); font-size: .88rem; font-weight: 600; text-decoration: none;
  transition: border-color .15s, background .15s; }
.nav-account:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-alt); }

.ok-msg { color: #16a34a; font-size: .84rem; font-weight: 600; display: none; }
.ok-msg.show { display: block; }
.btn-sm { padding: 7px 12px; font-size: .8rem; }

.account-main { max-width: 860px; margin: 0 auto; padding: 96px 20px 80px; }
.account-app { min-height: 40vh; }
.account-loading, .account-empty { text-align: center; color: var(--text-light); padding: 40px 20px; }
.account-empty a { color: var(--primary); font-weight: 600; }
.account-title { font-size: 1.7rem; font-weight: 800; }
.account-sub { color: var(--text-light); font-size: .92rem; }
.account-h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }

.account-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow); }
.account-form { display: flex; flex-direction: column; gap: 14px; }
.account-form + .account-form { margin-top: 18px; }
.account-form-actions { display: flex; gap: 10px; }

/* Auth (login/registrazione) */
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg-alt); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 9px; border: 0; background: none; border-radius: 999px; font-weight: 700; font-size: .9rem;
  color: var(--text-light); cursor: pointer; font-family: var(--font); transition: all .15s; }
.auth-tab.active { background: var(--bg-card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* Dashboard */
.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.account-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--border-light); }
.account-tab { padding: 10px 16px; border: 0; background: none; font-weight: 600; font-size: .92rem; color: var(--text-light);
  cursor: pointer; font-family: var(--font); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-tab:hover { color: var(--text); }
.account-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.account-tab-body { display: flex; flex-direction: column; gap: 14px; }

/* Ordini */
.order-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.order-date { color: var(--text-muted); font-size: .82rem; margin-left: 10px; }
.order-status { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.order-status.st-nuovo { background: #dbeafe; color: #1e40af; }
.order-status.st-preparato { background: #fef3c7; color: #92400e; }
.order-status.st-consegnato { background: #dcfce7; color: #166534; }
.order-items { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.order-item { display: flex; justify-content: space-between; font-size: .86rem; color: var(--text-light); }
.order-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: .9rem; }
.order-foot b { color: var(--text); }

/* Indirizzi */
.addr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.addr-card { position: relative; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.addr-card.is-default { border-color: var(--primary); }
.addr-badge { position: absolute; top: 12px; right: 12px; font-size: .68rem; font-weight: 700; background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 999px; }
.addr-label { font-weight: 700; margin-bottom: 6px; }
.addr-text { font-size: .84rem; color: var(--text-light); line-height: 1.5; }
.addr-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.addr-del { color: #dc2626; }
.addr-check { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; color: var(--text-light); line-height: 1.45; }
.addr-check input[type=checkbox] { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; }
.addr-check a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* Consenso registrazione: testo in colonna flessibile, i link non si spezzano a metà (nbsp nell'HTML) */
.consent-check { align-items: flex-start; padding: 2px 0; }
.consent-txt { flex: 1; min-width: 0; }
#addrFormWrap:not(:empty) { margin-top: 16px; }

@media (max-width: 560px) { .account-main { padding: 88px 16px 60px; } .account-form-actions { flex-direction: column; } }

/* ══ Pagina checkout ══ */
.checkout-main { max-width: 1100px; margin: 0 auto; padding: 90px 20px 80px; }
.checkout-h1 { font-size: 1.8rem; font-weight: 800; margin: 8px 0 20px; }
.checkout-h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.co-opt { font-weight: 500; color: var(--text-muted); font-size: .85rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.checkout-left { display: flex; flex-direction: column; gap: 16px; }
.checkout-sec { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.checkout-right { position: sticky; top: calc(var(--announce-h, 0px) + 88px); }
.checkout-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }

.co-cart { display: flex; flex-direction: column; gap: 12px; }
.co-item { display: flex; align-items: center; gap: 12px; }
.co-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-light); background: var(--bg-alt); flex-shrink: 0; }
.co-item-main { flex: 1; min-width: 0; }
.co-item-name { font-size: .9rem; font-weight: 600; }
.co-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.co-qty button { width: 26px; height: 26px; border: 1px solid var(--border); background: var(--bg); border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1; }
.co-qty .co-rm { width: auto; padding: 0 10px; color: #dc2626; font-size: .78rem; }
.co-item-price { font-weight: 700; white-space: nowrap; }

.co-me { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .92rem; }
.co-hint { color: var(--text-light); font-size: .85rem; margin-bottom: 6px; }
.co-auth-tabs { margin-bottom: 16px; }

.co-delivery, .co-saved { display: flex; flex-direction: column; gap: 10px; }
.co-radio { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: .9rem; transition: border-color .15s; }
.co-radio:hover { border-color: var(--primary); }
.co-radio input { margin-top: 3px; }
#addrBlock { margin-top: 14px; }
#addrForm { margin-top: 12px; }

.co-coupon { margin-bottom: 16px; }
.co-coupon-in { display: flex; gap: 8px; }
.co-coupon-in input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: .88rem; }
.co-coupon-ok { display: flex; align-items: center; gap: 8px; font-size: .86rem; background: #dcfce7; color: #166534; padding: 8px 12px; border-radius: var(--radius); }
.co-coupon-ok button { margin-left: auto; background: none; border: 0; color: #166534; text-decoration: underline; cursor: pointer; font-size: .82rem; }

.co-tot-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; color: var(--text-light); }
.co-disc { color: #16a34a; }
.co-tot-final { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-size: 1.15rem; font-weight: 800; color: var(--text); }
.co-note { font-size: .76rem; color: var(--text-muted); text-align: center; margin-top: 10px; }

/* Richiesta fattura da account */
.order-invoice { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.order-inv-ok { font-size: .82rem; font-weight: 600; color: #92400e; background: #fef3c7; padding: 4px 10px; border-radius: 999px; }
.inv-form { margin-top: 12px; }
.inv-form-wrap:not(:empty) { margin-top: 6px; }

@media (max-width: 820px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-right { position: static; }
}

/* Account: banner conferma, flash, link password dimenticata */
.account-flash { background: #dcfce7; color: #166534; border: 1px solid #86efac; border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 16px; font-weight: 600; font-size: .9rem; }
.account-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fffbeb; color: #92400e;
  border: 1px solid #fde68a; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-size: .9rem; }
.account-banner .btn { margin-left: auto; }
.co-forgot { display: inline-block; margin-top: 6px; font-size: .84rem; color: var(--primary); text-decoration: none; }
.co-forgot:hover { text-decoration: underline; }
.order-status.st-spedito { background: #e0e7ff; color: #3730a3; }

/* Checkout · consegna (card selezionabili + pannello indirizzo) */
.co-methods { display: flex; flex-direction: column; gap: 10px; }
.co-method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; background: var(--bg); }
.co-method:hover { border-color: var(--primary); }
.co-method input { position: absolute; opacity: 0; pointer-events: none; }
.co-method.selected { border-color: var(--primary); background: rgba(0,113,227,.05); box-shadow: 0 0 0 3px rgba(0,113,227,.10); }
.co-method-ic { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.co-method-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-method-main b { font-size: .95rem; }
.co-method-main small { color: var(--text-muted); font-size: .8rem; }
.co-method-price { flex-shrink: 0; font-weight: 700; font-size: .9rem; background: var(--bg-alt); color: var(--text);
  padding: 5px 12px; border-radius: 999px; }
.co-method-price.free { background: #dcfce7; color: #166534; }

.co-addr-block { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); animation: facetsIn .18s ease; }
.co-addr-title { font-weight: 700; font-size: .92rem; margin-bottom: 12px; }
.co-addr-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.co-addr-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.co-addr-opt:hover { border-color: var(--primary); }
.co-addr-opt input { position: absolute; opacity: 0; pointer-events: none; }
.co-addr-opt.selected { border-color: var(--primary); background: rgba(0,113,227,.05); }
.co-addr-opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-addr-opt-main b { font-size: .9rem; }
.co-addr-opt-main small { color: var(--text-muted); font-size: .8rem; }
.co-addr-check { color: var(--primary); font-weight: 800; opacity: 0; transition: opacity .15s; }
.co-addr-opt.selected .co-addr-check { opacity: 1; }
.co-addr-new { border-style: dashed; }

.co-addr-form { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 16px; }
.co-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.co-fields .co-col-2 { grid-column: 1 / -1; }
.co-fields .field label { color: var(--text-light); }
.co-fields .field input { background: var(--bg); }
@media (max-width: 560px) { .co-fields { grid-template-columns: 1fr; } }

/* ══════════ Pannello Admin ══════════ */
.admin-body { background: var(--bg-alt); }

/* Login */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.admin-login-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(20,30,60,.12); padding: 34px 30px; width: 100%; max-width: 380px; text-align: center; }
.admin-logo { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.admin-logo span { background: linear-gradient(120deg,#0071e3,#7c3aed); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.admin-login-sub { color: var(--text-light); font-size: .9rem; margin: 8px 0 20px; }
.admin-login-card input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: var(--font); margin-bottom: 12px; outline: none; }
.admin-login-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }

/* Layout: sidebar FISSA a sinistra + contenuto a destra (robusto) */
.admin-layout { min-height: 100vh; background: var(--bg-alt); }
.admin-sidebar { position: fixed; left: 0; top: 0; width: 232px; height: 100vh; overflow-y: auto; z-index: 30;
  display: flex; flex-direction: column; gap: 6px; padding: 22px 16px; background: var(--bg-card); border-right: 1px solid var(--border-light); }
.admin-sidebar .admin-logo { margin-bottom: 20px; padding: 0 8px; font-size: 1.1rem; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-tab { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 11px 14px; border: 0;
  background: none; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--text-light); cursor: pointer; font-family: var(--font); transition: all .15s; }
.admin-tab:hover { background: var(--bg-alt); color: var(--text); }
.admin-tab.active { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(0,113,227,.28); }
.admin-logout { margin-top: auto; width: 100%; justify-content: center; }
.admin-content { margin-left: 232px; padding: 26px 34px 60px; min-width: 0; max-width: 1200px; }

/* Stats */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.admin-stat { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow); }
.admin-stat-n { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.admin-stat-l { font-size: .78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* Sezioni + card */
.admin-section { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
/* Prodotti e Coupon: lista larga + form a lato (una colonna su schermi stretti) */
@media (min-width: 980px) {
  #tab-prod, #tab-coup { grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); }
}
.admin-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.admin-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-card-head h3 { margin: 0; }
.admin-search { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; font-family: var(--font); outline: none; min-width: 180px; }
.admin-search:focus { border-color: var(--primary); }

/* Form a griglia */
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* Nella colonna a lato (Prodotti/Coupon) i campi vanno impilati su 1 colonna */
#tab-prod .admin-form, #tab-coup .admin-form { grid-template-columns: 1fr; }
.admin-form .af { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.admin-form .af-2 { grid-column: 1 / -1; }
.admin-form label { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; min-width: 0; box-sizing: border-box;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; font-family: var(--font);
  color: var(--text); background: var(--bg); outline: none; transition: border-color .15s; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,.1); }
.admin-form .af-check { flex-direction: row; }
.admin-form .af-check label { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.admin-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.admin-inline-msg { font-size: .85rem; color: #16a34a; font-weight: 600; }

/* Righe (prodotti / coupon) */
.admin-list { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; }
.admin-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--bg); }
.admin-row.is-hidden { opacity: .55; }
.admin-row-main { flex: 1; min-width: 0; }
.admin-row-title { font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.admin-row-sub { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.admin-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-mini { padding: 6px 10px; border: 1px solid var(--border); background: var(--bg-card); border-radius: 8px; font-size: .78rem; cursor: pointer; font-family: var(--font); color: var(--text); }
.admin-mini:hover { border-color: var(--primary); color: var(--primary); }
.admin-mini.danger:hover { border-color: #dc2626; color: #dc2626; }
.admin-pill { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.admin-pill.green { background: #dcfce7; color: #166534; }
.admin-pill.gray { background: var(--bg-alt); color: var(--text-muted); }
.admin-empty { color: var(--text-muted); font-size: .88rem; padding: 12px; }

/* Ordini */
.admin-ord-item { border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; background: var(--bg); }
.admin-ord-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .92rem; }
.admin-ord-top b { font-size: 1rem; }
.admin-ord-top select { margin-left: auto; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font); font-size: .82rem; background: var(--bg-card); }
.admin-ord-lines { margin: 10px 0 4px; padding: 10px 0; border-top: 1px solid var(--border-light); }
.admin-ord-line { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--text-light); padding: 2px 0; }
.admin-ord-sku { background: var(--bg-alt); color: var(--text-muted); padding: 1px 8px; border-radius: 6px; font-size: .74rem; }

@media (max-width: 620px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-form .af-2 { grid-column: 1; }
}

/* Admin · sidebar responsive */
@media (max-width: 820px) {
  .admin-sidebar { position: static; width: auto; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 6px; border-right: 0; border-bottom: 1px solid var(--border-light); overflow: visible; }
  .admin-sidebar .admin-logo { margin: 0 auto 0 0; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-tab { width: auto; }
  .admin-logout { margin: 0; width: auto; }
  .admin-content { margin-left: 0; padding: 18px 16px 50px; }
}

/* Admin · filtri e categorie coupon */
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px;
  border: 1px solid var(--border-light); border-radius: var(--radius); padding: 12px 14px; background: var(--bg); }
.admin-cats label { display: flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 500; color: var(--text); cursor: pointer; }
@media (max-width: 560px) { .admin-cats { grid-template-columns: 1fr 1fr; } }

/* Admin · barra stato aggiornamento catalogo */
.admin-importbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border-light); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.admin-importbar-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-importbar-title { font-weight: 700; font-size: .9rem; }
.admin-importbar-status { font-size: .82rem; color: var(--text-muted); }

/* ══ Barra comunicazioni GLOBALE (tutte le pagine, tranne admin) ══ */
:root { --announce-h: 40px; }
body.has-announce { padding-top: var(--announce-h); }
body.has-announce #nav { top: var(--announce-h); }
.site-announce { position: fixed; top: 0; left: 0; right: 0; height: var(--announce-h); z-index: 101;
  background: linear-gradient(120deg, #0071e3, #5b5bd6 55%, #7c3aed); color: #fff;
  display: flex; align-items: center; box-shadow: 0 2px 10px rgba(20,30,60,.15); }
.site-announce-in { max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 22px; text-align: center; }
.site-announce-track { font-size: .85rem; font-weight: 600; transition: opacity .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-announce-track.is-fading { opacity: 0; }
.site-announce a { color: #fff; text-decoration: none; }
.sa-cta b { text-decoration: underline; margin-left: 4px; }
.sa-coupon { cursor: pointer; }
.sa-coupon em { font-style: normal; font-weight: 500; opacity: .85; }

/* ══ Striscia marchi (shop) — messa in risalto ══ */
.brand-marquee { max-width: 1280px; margin: 16px auto 4px; padding: 12px 0; overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.brand-marquee-track { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; animation: brandscroll 34s linear infinite; }
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }
.brand-chip { flex-shrink: 0; font-weight: 800; font-size: 1.15rem; color: var(--text-light); letter-spacing: .02em; padding: 6px 26px; opacity: .85;
  border-right: 1px solid var(--border); }
@keyframes brandscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 560px) {
  :root { --announce-h: 52px; }
  .site-announce-in { padding: 0 12px; }
  .site-announce-track { white-space: normal; font-size: .78rem; line-height: 1.2; }
  .brand-chip { font-size: 1rem; padding: 6px 18px; }
}

.admin-hint { font-size: .82rem; color: var(--text-muted); margin: -4px 0 12px; }

/* ══ Home · sezione Shop online ══ */
.shop-promo { padding: 70px 28px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.shop-promo-in { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.shop-promo-badge { display: inline-block; background: rgba(0,113,227,.1); color: var(--primary); font-weight: 700; font-size: .8rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.shop-promo-text h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px; }
.shop-promo-text > p { color: var(--text-light); font-size: 1.05rem; line-height: 1.7; max-width: 520px; margin-bottom: 22px; }
.shop-promo-feats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.spf { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--text); }
.spf-soon { color: var(--text-light); }
.spf-soon b { background: linear-gradient(120deg,#f59e0b,#f97316); color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-left: 4px; }

.shop-promo-visual { position: relative; display: flex; justify-content: center; }
.spv-card { width: 280px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(20,30,60,.15); overflow: hidden; transform: rotate(-2deg); transition: transform .3s; }
.shop-promo-visual:hover .spv-card { transform: rotate(0); }
.spv-img { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 3.6rem; background: var(--bg-alt); }
.spv-body { padding: 16px 18px 18px; }
.spv-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); font-weight: 700; }
.spv-name { font-size: .92rem; font-weight: 600; margin: 4px 0 12px; }
.spv-price { font-size: 1.5rem; font-weight: 800; }
.spv-rate { font-size: .82rem; color: var(--text-light); margin-top: 2px; }
.spv-rate b { color: var(--text); }
.spv-btn { margin-top: 14px; background: var(--primary); color: #fff; text-align: center; font-weight: 700; font-size: .85rem; padding: 10px; border-radius: var(--radius); }
.spv-badge { position: absolute; top: -14px; right: 8px; background: #fff; border: 1px solid var(--border-light);
  box-shadow: 0 8px 20px rgba(20,30,60,.12); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .82rem; transform: rotate(3deg); }

@media (max-width: 820px) {
  .shop-promo { padding: 50px 20px; }
  .shop-promo-in { grid-template-columns: 1fr; gap: 34px; }
  .shop-promo-visual { order: -1; }
}

/* ══ Shop · header compatto (coerente con le altre pagine) ══ */
.shop-head { max-width: 820px; margin: 0 auto; padding: 10px 20px 6px; text-align: center; }
.shop-head .sec-tag-light { display: inline-block; background: rgba(0,113,227,.1); color: var(--primary);
  font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }
.shop-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 10px; }
.shop-head .hero-accent { background: linear-gradient(120deg, var(--primary), #7c3aed); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.shop-head p { color: var(--text-light); font-size: 1rem; line-height: 1.6; max-width: 560px; margin: 0 auto; }
@media (max-width: 560px) { .shop-head { padding: 6px 14px 2px; } }

/* ══ Header compatto condiviso (account, checkout, trova-pc) ══ */
.page-head { max-width: 820px; margin: 0 auto; text-align: center; padding: 8px 20px 14px; }
.page-head .sec-tag-light, .wiz-hero .sec-tag-light {
  display: inline-block; background: rgba(0,113,227,.1); color: var(--primary);
  font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 10px; }
.page-head p { color: var(--text-light); font-size: 1.02rem; line-height: 1.6; max-width: 560px; margin: 0 auto; }
.page-head .hero-accent, .wiz-hero .hero-accent {
  background: linear-gradient(120deg, var(--primary), #7c3aed); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wiz-hero .sec-tag-light { margin-top: 4px; }

/* ═══════════════ Modale dettaglio ordine (account + admin) ═══════════════ */
.omodal { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s ease; padding: 0; }
.omodal.show { opacity: 1; }
@media (min-width: 640px) { .omodal { align-items: center; padding: 24px; } }
.omodal-box { background: var(--bg); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 18px 18px 0 0; box-shadow: var(--shadow-xl); transform: translateY(24px); transition: transform .26s cubic-bezier(.2,.7,.3,1); }
.omodal.show .omodal-box { transform: none; }
@media (min-width: 640px) { .omodal-box { border-radius: 18px; } }
.omodal-head { position: sticky; top: 0; background: var(--bg); z-index: 2; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--border-light); }
.omodal-head h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.omodal-head .om-date { display: block; font-size: .82rem; color: var(--text-muted); font-weight: 500; margin-top: 3px; }
.omodal-x { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; background: var(--bg-alt);
  color: var(--text); font-size: 1.1rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.omodal-x:hover { background: var(--border-light); }
.omodal-body { padding: 18px 22px 24px; }

.om-sec { padding: 16px 0; border-top: 1px solid var(--border-light); }
.om-sec:first-child { border-top: none; padding-top: 6px; }
.om-sec-t { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; }

.om-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: .92rem; }
.om-line .k { color: var(--text-light); }
.om-line .v { color: var(--text); font-weight: 600; text-align: right; }
.om-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: .92rem; border-bottom: 1px dashed var(--border-light); }
.om-item:last-child { border-bottom: none; }
.om-item a { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s, color .15s; }
.om-item a:hover { color: var(--primary); border-color: var(--primary); }
.om-item .q { color: var(--text-muted); font-weight: 500; }
.om-item .sku { display: block; font-size: .76rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.om-item .pr { white-space: nowrap; font-weight: 600; }

.om-tot { margin-top: 6px; }
.om-tot .om-line { padding: 4px 0; font-size: .9rem; color: var(--text-light); }
.om-tot .om-line.grand { font-size: 1.05rem; font-weight: 800; color: var(--text); border-top: 1px solid var(--border-light); margin-top: 8px; padding-top: 12px; }
.om-tot .om-line.disc .v { color: #16a34a; }

.om-addr { font-size: .9rem; line-height: 1.55; color: var(--text-light); }
.om-addr b { color: var(--text); font-weight: 600; }

/* Badge stato — condiviso, colori per stato */
.om-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 20px; font-size: .8rem; font-weight: 700; }
.om-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-nuovo { background: #eff6ff; color: #1d4ed8; }
.st-preparato { background: #fef9c3; color: #a16207; }
.st-pronto_ritiro { background: #dcfce7; color: #15803d; }
.st-spedito { background: #ede9fe; color: #6d28d9; }
.st-consegnato { background: #e2e8f0; color: #475569; }
@media (prefers-color-scheme: dark) {
  .st-nuovo { background: #1e293b; color: #93c5fd; } .st-preparato { background: #3a2f0b; color: #fcd34d; }
  .st-pronto_ritiro { background: #14311f; color: #86efac; } .st-spedito { background: #2e1065; color: #c4b5fd; }
  .st-consegnato { background: #1f2937; color: #cbd5e1; }
}
.om-status-lead { font-size: .9rem; color: var(--text-light); margin: 10px 0 0; line-height: 1.5; }

/* Tracking */
.om-track { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; background: var(--bg-alt); border-radius: 10px; }
.om-track code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; font-weight: 700; letter-spacing: .02em; }
.om-track-copy { margin-left: auto; border: none; background: var(--primary); color: #fff; border-radius: 7px; padding: 6px 12px; font-size: .78rem; font-weight: 600; cursor: pointer; }
.om-track-copy:hover { background: var(--primary-dark); }

/* Controllo stato admin — pillole cliccabili */
.om-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.om-step { border: 1.5px solid var(--border); background: var(--bg); color: var(--text-light); border-radius: 20px;
  padding: 8px 15px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.om-step:hover { border-color: var(--primary); color: var(--primary); }
.om-step.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.om-track-input { margin-top: 14px; }
.om-track-input label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.om-track-input input { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; font-family: var(--font); font-size: .92rem; }
.om-save { width: 100%; justify-content: center; margin-top: 16px; }
.om-clickable { cursor: pointer; }

/* Riga ordine cliccabile (lista) */
.ord-open-hint { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--primary); font-weight: 600; }

/* Lista ordini cliente — card cliccabili */
.order-list { display: grid; gap: 14px; }
.order-card.om-clickable { transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.order-card.om-clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.order-card.om-clickable:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.order-preview { color: var(--text-light); font-size: .9rem; margin: 8px 0 4px; }
.order-card .ord-open-hint { margin-top: 10px; }

/* Riga ordine admin cliccabile */
.admin-row.om-clickable { cursor: pointer; transition: background .15s, border-color .15s; }
.admin-row.om-clickable:hover { border-color: var(--primary); }
.admin-row.om-clickable:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Bottone elimina ordine (danger) nella modale admin */
.om-delete { width: 100%; padding: 11px; border: 1px solid #fca5a5; background: #fff; color: #dc2626;
  border-radius: 9px; font-family: var(--font); font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.om-delete:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
@media (prefers-color-scheme: dark) { .om-delete { background: transparent; } }

/* Blocco PayPal nel riepilogo checkout */
.co-paypal { margin-top: 14px; }
.co-pay-sep { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; color: var(--text-muted); font-size: .8rem; }
.co-pay-sep::before, .co-pay-sep::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.co-pp-message { min-height: 0; margin-bottom: 8px; }
