/*
Theme Name: G&G Distribuzione
Theme URI: https://www.gegsrl.biz/
Author: G&G SRL
Description: Tema su misura per G&G SRL, distribuzione informatica B2B. Testi, contatti e marchi si modificano da Aspetto → Personalizza → G&G Homepage.
Version: 1.6.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: geg
*/

/* Layout: listino/bolla di spedizione — griglia a 12 colonne, etichette mono per codici e stati */
:root {
  /* Colori dal logo G&G: blu reale, azzurro delle macchie, giallo, quadrifoglio verde */
  --ink: #0d1530;
  --ink-2: #3f4a66;
  --paper: #f1f4fa;
  --card: #ffffff;
  --line: #d3dbea;
  --signal: #8ec8ff;       /* azzurro chiaro: accenti su fondo blu */
  --signal-hover: #e8f2ff;
  --btn: #ffffff;          /* pulsante principale: bianco con testo blu */
  --btn-text: #0033a0;
  --signal-dark: #0033a0;
  --ok: #00963f;
  --steel: #0033a0;
  --blob: #336699;
  --navy: #001a52;
  --on-dark: #d6e0f5;
  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Roboto", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--steel); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--blob); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: 0.005em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--font-mono); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-dark); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--card); padding: 8px 12px; z-index: 1000; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: var(--r); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--steel); color: #fff; border-color: var(--steel); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); }
.hero .btn-primary, .process .btn-primary, .reg-note .btn-primary { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.hero .btn-primary:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Header */
.site-header { background: var(--steel); color: #fff; position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.brand-mark span { color: var(--signal); }
.brand-logo { height: 54px; width: auto; display: block; }
.site-footer .brand-logo { height: 64px; }
.brand-sub { white-space: nowrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); }
.brand img { max-height: 48px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.main-nav a { color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.main-nav a:hover { color: #fff; }
.header-cta { padding: 10px 18px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: #fff; border-radius: var(--r); padding: 8px 12px; font: 600 14px var(--font-body); cursor: pointer; }
@media (max-width: 1120px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--steel); border-top: 1px solid rgba(255,255,255,.15); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .main-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .header-cta { display: none; }
}

/* Hero */
.hero { background: var(--steel); color: #fff; padding-block: 72px 150px; position: relative; overflow: hidden; isolation: isolate; }
.hero-blob { position: absolute; z-index: -1; fill: var(--blob); pointer-events: none; }
.hero-blob-1 { width: 640px; left: -220px; top: -160px; opacity: .9; }
.hero-blob-2 { width: 520px; right: -160px; bottom: -40px; opacity: .55; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 0; fill: var(--card); display: block; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 700; text-transform: uppercase; line-height: 1.04; margin-top: 18px; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero-lead { color: var(--on-dark); font-size: 19px; max-width: 34em; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .eyebrow { color: var(--signal); }
.hero .btn-ghost { color: #fff; }

/* Bolla d'ordine (illustrativa) */
.slip { background: var(--card); color: var(--ink); border-radius: var(--r); padding: 26px 26px 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); transform: rotate(1.5deg); }
.slip-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 2px dashed var(--line); }
.slip-head strong { font-family: var(--font-display); font-size: 20px; display: block; }
.slip-tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.slip-rows { list-style: none; margin: 0; padding: 0; }
.slip-rows li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.slip-rows .sku { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.slip-rows .qty { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.stock { font-family: var(--font-mono); font-size: 12px; color: var(--ok); text-align: right; }
.stock::before { content: "● "; }
.slip-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.slip-stamp { border: 2px solid var(--ok); color: var(--ok); padding: 3px 10px; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; transform: rotate(-4deg); }

/* Fascia vantaggi */
.facts { background: var(--card); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 26px 22px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--steel); }
.facts span { color: var(--ink-2); font-size: 15px; }

/* Sezioni */
.section { padding-block: 96px; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 3.8vw, 50px); font-weight: 600; margin-top: 12px; }
.section-head p { color: var(--ink-2); max-width: 32em; }

/* Catalogo */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cat { background: var(--card); padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 12px; transition: background .15s; }
.cat:hover { background: #f4f7fd; }
.cat-code { font-family: var(--font-mono); font-size: 12px; color: var(--blob); letter-spacing: .06em; }
.cat h3 { font-size: 23px; }
.cat p { color: var(--ink-2); font-size: 15.5px; }
.cat ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cat li { font-family: var(--font-mono); font-size: 12px; background: var(--paper); border: 1px solid var(--line); padding: 3px 8px; border-radius: 3px; color: var(--ink-2); }

/* Marchi */
.brands { background: var(--card); border-block: 1px solid var(--line); padding-block: 44px; }
.brands .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.brands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.brands li { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: #6d7a99; letter-spacing: -0.01em; }

/* Come lavoriamo */
.process { background: var(--steel); color: #fff; }
.process .section-head p { color: var(--on-dark); }
.process .eyebrow { color: var(--signal); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { border-top: 3px solid var(--signal); padding-top: 22px; counter-increment: step; }
.steps li::before { content: "FASE 0" counter(step); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--signal); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { color: var(--on-dark); font-size: 15.5px; }

/* Servizi */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.service svg { width: 40px; height: 40px; color: var(--steel); }
.service h3 { font-size: 21px; margin-bottom: 8px; }
.service p { color: var(--ink-2); font-size: 15.5px; }

/* Rivenditori / contatti */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(32px, 3.8vw, 50px); font-weight: 600; margin: 12px 0 18px; }
.contact-info > p { color: var(--ink-2); max-width: 30em; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); padding-top: 3px; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--blob); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 34px; }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }
div.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: 16px var(--font-body); padding: 12px 14px; border: 1px solid #b9c4ca; border-radius: var(--r); background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: var(--r); margin-bottom: 20px; font-weight: 600; }
.notice.ok { background: #e7f5ec; color: #145c33; }
.notice.err { background: #fdecea; color: #8a1f11; }

/* Footer */
.site-footer { background: var(--navy); color: #a9b8d9; padding-block: 56px 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 14px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; }

/* Pagine interne */
.page-hero { background: var(--steel); color: #fff; padding-block: 56px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; text-transform: uppercase; }
.entry { background: var(--card); }
.entry-content { max-width: 760px; margin: 0 auto; padding-block: 56px 80px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 30px; margin-top: 1.6em; }
.entry-content h3 { font-size: 23px; margin-top: 1.4em; }
.post-list { display: grid; gap: 20px; padding-block: 56px 80px; }
.post-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.post-item h2 { font-size: 26px; margin: 6px 0 10px; }
.post-item h2 a { color: var(--ink); text-decoration: none; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .contact-grid, .section-head { grid-template-columns: 1fr; }
  .slip { max-width: 440px; transform: none; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li { border-top: 1px solid var(--line); }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  .hero { padding-block: 48px 72px; }
  .catalog, .steps, .services, div.form-row, .footer-grid { grid-template-columns: 1fr; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .facts li:first-child { border-top: 0; }
  .brands .wrap { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .form-card { padding: 24px 20px; }
  .service { grid-template-columns: 1fr; }
}

/* Header: accesso */
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-login { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 500; }
.header-login svg { width: 20px; height: 20px; }
.header-login:hover { color: #fff; }
@media (max-width: 1120px) { .header-actions { margin-left: auto; } }
@media (max-width: 640px) { .header-login span, .brand-sub { display: none; } }

/* Icone catalogo */
.cat-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--paper); color: var(--steel); margin-bottom: 4px; transition: background .15s, color .15s; }
.cat-icon svg { width: 44px; height: 44px; }
.cat:hover .cat-icon { background: var(--steel); color: #fff; }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.eyebrow-on-dark { color: var(--signal); }

/* Area riservata */
.area-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.area-user { display: flex; align-items: center; gap: 16px; color: var(--on-dark); font-size: 14px; flex-wrap: wrap; }
.area-user .btn { padding: 8px 16px; font-size: 14px; color: #fff; }
.area-tabs { display: flex; gap: 4px; margin-top: 36px; margin-bottom: -56px; overflow-x: auto; }
.area-tabs a { padding: 14px 22px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: var(--r) var(--r) 0 0; white-space: nowrap; }
.area-tabs a:hover { color: #fff; }
.area-tabs a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.area-body { padding-block: 48px 88px; display: grid; gap: 28px; }
.area-intro { max-width: 760px; color: var(--ink-2); }
.area-intro > * + * { margin-top: 1em; }
.area-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.area-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; color: var(--ink); text-decoration: none; display: grid; gap: 10px; transition: border-color .15s; }
.area-card:hover { border-color: var(--steel); }
.area-card svg { width: 40px; height: 40px; color: var(--steel); }
.area-card h3 { font-size: 22px; }
.area-card p { color: var(--ink-2); }
.docs-empty { background: var(--card); border: 2px dashed var(--line); border-radius: var(--r); padding: 36px; text-align: center; color: var(--ink-2); display: grid; gap: 8px; }

/* Login */
.login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 56px 88px; align-items: start; }
.login-card form p { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.login-card label { font-size: 14px; font-weight: 600; }
.login-card input[type="text"], .login-card input[type="password"] { font: 16px var(--font-body); padding: 12px 14px; border: 1px solid #b9c4ca; border-radius: var(--r); width: 100%; }
.login-card .login-remember label { flex-direction: row; display: flex; gap: 8px; font-weight: 400; color: var(--ink-2); }
.login-card .button-primary { font: 600 16px var(--font-body); background: var(--steel); color: #fff; border: 2px solid var(--steel); padding: 13px 22px; border-radius: var(--r); cursor: pointer; }
.login-card .button-primary:hover { background: var(--navy); }
.login-lost { font-size: 14px; }
.login-side { display: grid; gap: 14px; padding-top: 10px; }
.login-side h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; }
.login-side p { color: var(--ink-2); }

/* Registrazione */
.reg-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 40px; align-items: start; }
.reg-layout[data-tipo="privato"] .only-rivenditore, .reg-layout[data-tipo="rivenditore"] .only-privato { display: none; }
.reg-switch { border: 0; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reg-switch legend { font-weight: 600; font-size: 14px; margin-bottom: 10px; padding: 0; }
.reg-switch label { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: var(--r); padding: 16px; cursor: pointer; }
.reg-switch label:has(input:checked) { border-color: var(--steel); background: #eef3fc; }
.reg-switch input { margin-top: 4px; accent-color: var(--steel); }
.reg-switch small { display: block; color: var(--ink-2); font-size: 13.5px; }
.form-sub { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin: 24px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 500; }
div.form-row-3 { grid-template-columns: 1fr 2fr 0.7fr; }
.field small { font-weight: 400; color: var(--ink-2); }
.reg-aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.reg-note { background: var(--steel); color: var(--on-dark); border-radius: var(--r); padding: 28px; display: grid; gap: 12px; }
.reg-note .eyebrow { color: var(--signal); }
.reg-note h3 { font-size: 22px; color: #fff; }
.reg-note ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.reg-login { color: var(--ink-2); }

@media (max-width: 900px) {
  .login-grid, .reg-layout, .area-cards { grid-template-columns: 1fr; }
  .reg-aside { position: static; }
}
@media (max-width: 640px) {
  .reg-switch, div.form-row-3 { grid-template-columns: 1fr; }
  .area-tabs { margin-bottom: -48px; }
}

/* Documenti riservati */
.docs { display: grid; gap: 40px; }
.doc-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 3px solid var(--steel); padding-bottom: 12px; margin-bottom: 4px; }
.doc-group-head h2 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; color: var(--steel); }
.doc-group-head .mono { font-size: 13px; color: var(--ink-2); }
.doc-group-head .btn { padding: 10px 18px; font-size: 15px; }
.doc-none { color: var(--ink-2); padding: 18px 0; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.doc-ext { width: 56px; height: 64px; border: 2px solid var(--ink-2); border-radius: 4px 14px 4px 4px; display: grid; place-items: end center; padding-bottom: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.doc-ext[data-ext="pdf"] { border-color: #c4361b; color: #c4361b; }
.doc-ext[data-ext="xlsx"], .doc-ext[data-ext="xls"], .doc-ext[data-ext="csv"] { border-color: var(--ok); color: var(--ok); }
.doc-body { min-width: 0; display: grid; gap: 4px; }
.doc-body h3 { font-size: 19px; }
.doc-body p { color: var(--ink-2); font-size: 15px; }
.doc-meta { font-size: 12.5px; }
.doc-dl { padding: 10px 20px; font-size: 15px; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; background: var(--paper); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.pill-new { background: var(--steel); color: #fff; }
.pill-ricevuta { background: #e8eef2; color: #2b4a5c; }
.pill-autorizzata { background: #e6f7ec; color: #0b6b32; }
.pill-in_lavorazione { background: #e9effd; color: #2348a8; }
.pill-chiusa { background: #e7f5ec; color: #145c33; }
.pill-rifiutata { background: #fdecea; color: #8a1f11; }
.staff-hint { font-size: 13px; color: var(--ink-2); }

/* RMA */
.rma { display: grid; gap: 40px; }
.table-scroll { overflow-x: auto; }
.rma-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); }
.rma-table th { text-align: left; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rma-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rma-form h3 { font-size: 26px; }
.rma-rows { display: grid; gap: 12px; margin-bottom: 14px; }
.rma-row { display: grid; grid-template-columns: 2fr 1.2fr 1.5fr 80px 36px; gap: 12px; align-items: end; padding: 14px; background: var(--paper); border-radius: var(--r); }
.rma-row .field { margin-bottom: 0; }
.rma-remove { width: 36px; height: 46px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r); font-size: 22px; cursor: pointer; color: var(--ink-2); }
.rma-remove:hover { color: #8a1f11; border-color: #8a1f11; }
.rma-add { margin-bottom: 8px; padding: 10px 16px; font-size: 15px; }
.footer-links a { margin: 0; }
.geg-bozza { background: #fff4d6; padding: 12px 16px; border-radius: var(--r); }

@media (max-width: 900px) {
  .rma-row { grid-template-columns: 1fr 1fr; }
  .rma-row .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .doc { grid-template-columns: 48px 1fr; }
  .doc-ext { width: 44px; height: 52px; }
  .doc-dl { grid-column: 1 / -1; justify-content: center; }
}

/* Hero: foto prodotti */
.hero-visual { position: relative; padding-bottom: 40px; min-width: 0; }
.hero-photo { display: block; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1168 / 880; object-fit: cover; border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0, 8, 40, .75), 0 0 0 1px rgba(142, 200, 255, .25); }
.hero-pc { position: absolute; right: -24px; bottom: 10px; width: 46%; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 8, 40, .55)); }
.hero-visual .slip { position: absolute; left: -36px; bottom: -6px; width: min(310px, 72%); padding: 16px 18px 10px; transform: rotate(-2deg); }
.hero-visual .slip-head { padding-bottom: 10px; align-items: center; }
.hero-visual .slip-head strong { font-size: 17px; }
.hero-visual .slip-rows li { padding: 8px 0; font-size: 13.5px; }
.hero-visual .slip-rows li:last-child { border-bottom: 0; }
.hero-visual .slip-stamp { font-size: 11px; }

/* Catalogo: illustrazioni */
.cat-art-wrap { background: linear-gradient(160deg, #eef3fc 0%, #dce6f7 100%); border-radius: 10px; padding: 14px 10px 6px; margin-bottom: 6px; overflow: hidden; }
.cat-art { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.cat:hover .cat-art { transform: translateY(-4px) scale(1.02); }

@media (max-width: 1000px) {
  .hero-visual { max-width: 620px; }
  .hero-visual .slip { left: 12px; }
}
@media (max-width: 640px) {
  .hero-visual { padding-bottom: 0; }
  .hero-visual .slip { position: static; transform: none; width: auto; margin-top: -30px; margin-inline: 12px; }
  .hero-pc { width: 44%; right: -6px; bottom: 60px; }
}

/* =========================================================
   Negozio WooCommerce
   ========================================================= */
.header-cart { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; color: #fff; border-radius: 50%; }
.header-cart:hover { background: rgba(255,255,255,.1); }
.header-cart svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--signal); color: var(--navy); font: 700 11px/18px var(--font-body); text-align: center; }
.cat-link h3 a { color: inherit; text-decoration: none; }
.cat-link h3 a::after { content: ""; position: absolute; inset: 0; }
.cat-link { position: relative; cursor: pointer; }
.cat-link h3 a:focus-visible { outline: none; }
.cat-link:focus-within { outline: 3px solid var(--blob); outline-offset: -3px; }
.section-tight { padding-block: 72px 24px; }

.shop-hero { padding-block: 40px 44px; }
.shop-hero h1 { font-size: clamp(30px, 4vw, 48px); }
.shop-crumbs { font-size: 12.5px; color: var(--on-dark); margin-bottom: 10px; }
.shop-crumbs a { color: #fff; }
.shop-hero-desc { color: var(--on-dark); max-width: 60ch; margin-top: 10px; }
.shop-cats { background: var(--card); border-bottom: 1px solid var(--line); }
.shop-cats .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; }
.shop-cats a { white-space: nowrap; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.shop-cats a:hover { border-color: var(--steel); color: var(--steel); }
.shop-cats a[aria-current="page"] { background: var(--steel); border-color: var(--steel); color: #fff; }
.shop-wrap { padding-block: 36px 88px; }
.shop-hint { background: #eaf2ff; border-left: 4px solid var(--steel); padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 15px; }

.woocommerce .woocommerce-result-count { color: var(--ink-2); font-size: 14px; margin: 6px 0 20px; }
.woocommerce .woocommerce-ordering select { font: 15px var(--font-body); padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 18px; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.woocommerce ul.products li.product:hover { border-color: var(--steel); box-shadow: 0 16px 30px -22px rgba(0, 26, 82, .5); }
.woocommerce ul.products li.product a img { border-radius: 6px; background: var(--paper); aspect-ratio: 1; object-fit: contain; margin-bottom: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-body); font-weight: 600; font-size: 15.5px; line-height: 1.35; padding: 0; color: var(--ink); }
.woocommerce ul.products li.product .price { color: var(--steel); font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: auto; padding-top: 8px; }
.woocommerce ul.products li.product .price del { color: var(--ink-2); font-size: 15px; opacity: .8; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.price-vat { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--ink-2); letter-spacing: .02em; }
.woocommerce ul.products li.product .button { margin-top: 12px; }
.woocommerce span.onsale { background: var(--steel); color: #fff; border-radius: 99px; min-height: 0; min-width: 0; padding: 4px 10px; line-height: 1.4; font-size: 12px; font-weight: 600; top: 10px; left: 10px; right: auto; margin: 0; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.wc-block-components-button:not(.is-link), .wp-element-button.wc-block-components-button {
  background: var(--steel); color: #fff; border-radius: 6px; font: 600 15px var(--font-body); padding: 11px 18px; border: 2px solid var(--steel); text-align: center;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .wc-block-components-button:not(.is-link):hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.woocommerce a.added_to_cart { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; }

.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; margin: 0; }
.woocommerce div.product div.images img { border-radius: 10px; background: var(--card); }
.woocommerce div.product .product_title { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--steel); font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 20px 0; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty { width: 80px; height: 100%; min-height: 46px; border: 1px solid #b9c4da; border-radius: 6px; font-size: 16px; }
.woocommerce div.product form.cart .button { float: none; min-height: 46px; padding-inline: 26px; font-size: 16px; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 20px; border-bottom: 2px solid var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0 18px -2px 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 0; font-weight: 600; color: var(--ink-2); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 3px solid var(--steel); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--steel); }
.woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { font-size: 28px; margin-bottom: 18px; }
.woocommerce .product_meta { font-size: 14px; color: var(--ink-2); }
.woocommerce .stock.in-stock { color: var(--ok); font-weight: 600; }

.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--steel); background: #fff; border-radius: 6px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--steel); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid #b9c4da; border-radius: 6px; padding: 10px 12px; font-size: 16px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--steel); color: #fff; }

@media (max-width: 1000px) {
  .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .woocommerce ul.products li.product { padding: 10px 10px 14px; }
  .woocommerce ul.products li.product .price { font-size: 19px; }
}

/* WooCommerce: moduli dell'account (accesso, password dimenticata, nuova password) */
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password, .woocommerce form.woocommerce-ResetPassword {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px; margin: 0 0 24px; max-width: 520px;
}
.woocommerce form .form-row { display: block; padding: 0; margin: 0 0 16px; }
.woocommerce form .form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; line-height: 1.4; }
.woocommerce form .form-row .input-text { width: 100%; min-height: 46px; }
.woocommerce form.lost_reset_password .form-row-first, .woocommerce form.lost_reset_password .form-row-last,
.woocommerce form.woocommerce-ResetPassword .form-row-first, .woocommerce form.woocommerce-ResetPassword .form-row-last { float: none; width: 100%; }
.woocommerce form.lost_reset_password .button, .woocommerce form.woocommerce-ResetPassword .button, .woocommerce form.login .button { width: 100%; min-height: 46px; }
.woocommerce form.lost_reset_password > p:first-child { color: var(--ink-2); margin-bottom: 18px; }
@media (max-width: 640px) {
  .woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password { padding: 20px; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { float: none; width: 100%; }
}

/* Le sezioni non finiscono sotto l'intestazione fissa quando ci si arriva da un link */
section[id], #rma, #nuova-rma, #registrazione { scroll-margin-top: 90px; }

/* Fascia marchi sotto la testata */
.brand-strip { background: var(--card); padding-block: 8px 34px; overflow: hidden; }
.brand-strip-head { margin-bottom: 14px; }
.brand-strip-head .eyebrow { color: var(--ink-2); text-align: center; }
.brand-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.brand-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-around; gap: 56px; padding-right: 56px; min-width: 100%; flex-shrink: 0; animation: geg-marquee 45s linear infinite; }
.brand-marquee:hover .brand-track, .brand-marquee:focus-within .brand-track { animation-play-state: paused; }
.brand-track li { flex: 0 0 auto; display: flex; align-items: center; height: 56px; }
.brand-track a { display: flex; align-items: center; height: 100%; }
.brand-img { height: auto; max-height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.brand-track li:hover .brand-img, .brand-track a:focus-visible .brand-img { filter: none; opacity: 1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: #7d889f; white-space: nowrap; transition: color .2s; }
.brand-track li:hover .brand-name { color: var(--steel); }
@keyframes geg-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.brand-marquee.is-static { justify-content: center; -webkit-mask-image: none; mask-image: none; }
.brand-marquee.is-static .brand-track { animation: none; min-width: 0; flex-wrap: wrap; justify-content: center; padding-right: 0; }
.brand-marquee.is-static .brand-track[aria-hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .brand-marquee { -webkit-mask-image: none; mask-image: none; justify-content: center; }
  .brand-track { animation: none; flex-wrap: wrap; justify-content: center; min-width: 0; padding-right: 0; row-gap: 18px; }
  .brand-track[aria-hidden] { display: none; }
}
@media (max-width: 640px) {
  .brand-track { gap: 36px; padding-right: 36px; animation-duration: 30s; }
  .brand-img { max-height: 34px; max-width: 110px; }
  .brand-name { font-size: 21px; }
}

/* Avvisi WooCommerce: testo a sinistra, pulsante a destra, niente icona */
.woocommerce .woocommerce-info, .woocommerce .woocommerce-message, .woocommerce .woocommerce-error,
.woocommerce-info, .woocommerce-message, .woocommerce-error {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin: 0 0 20px; padding: 18px 22px; list-style: none;
  background: var(--card); color: var(--ink); font-size: 15.5px; line-height: 1.5;
  border: 1px solid var(--line); border-left: 4px solid var(--steel); border-radius: 8px;
}
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before,
.woocommerce-info::after, .woocommerce-message::after, .woocommerce-error::after { display: none; content: none; }
.woocommerce-message { border-left-color: var(--ok); }
.woocommerce-error { border-left-color: #c4361b; }
.woocommerce-error li { margin: 0; }
.woocommerce-info .button, .woocommerce-message .button, .woocommerce-error .button,
.woocommerce .woocommerce-info .button, .woocommerce .woocommerce-message .button {
  float: none; order: 2; margin: 0 0 0 auto; flex: 0 0 auto; white-space: nowrap;
}
@media (max-width: 640px) {
  .woocommerce-info .button, .woocommerce-message .button, .woocommerce-error .button { margin-left: 0; width: 100%; }
}

/* RMA nell'account: riepilogo e spiegazione degli stati */
.pill-desc { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); max-width: 26ch; }
.account-rma { margin-top: 32px; display: grid; gap: 14px; }
.account-rma-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 3px solid var(--steel); padding-bottom: 10px; }
.account-rma-head h2 { font-size: 24px; color: var(--steel); }

/* Servizi e assistenza remota */
.services-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.service-card h3 { font-size: 24px; color: var(--steel); }
.link-more { font-weight: 600; color: var(--steel); margin-top: auto; }
.remote-banner { background: var(--steel); color: #fff; padding-block: 44px; margin-bottom: 96px; position: relative; overflow: hidden; isolation: isolate; }
.remote-banner::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 46% 54% 60% 40%; background: var(--blob); opacity: .7; }
.remote-banner-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.remote-banner h2 { font-size: clamp(30px, 3.6vw, 44px); text-transform: uppercase; margin: 8px 0 10px; }
.remote-banner p:not(.eyebrow) { color: var(--on-dark); max-width: 56ch; }
.remote-banner .btn-primary, .entry-content .btn-white { background: #fff; color: var(--steel); border-color: #fff; }
.remote-banner .btn-primary:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
.booking { margin-top: 12px; display: grid; gap: 16px; }
.booking-form h3 { font-size: 26px; }
.booking-hint { font-size: 14px; color: var(--ink-2); margin: -4px 0 4px; }
.booking-form select:disabled { background: var(--paper); color: var(--ink-2); }
.price-box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--steel); border-radius: 8px; padding: 22px 24px; }
.price-box .price-main { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); color: var(--steel); line-height: 1.2; margin: 0 0 8px; }
.price-box table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.price-box th, .price-box td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.price-box th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 500; }
.price-box td:last-child { font-weight: 600; color: var(--steel); white-space: nowrap; }
.download-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.download-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 8px; }
.download-card h3 { font-size: 22px; margin: 0; }
.download-card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.download-card .btn { justify-self: start; margin-top: 6px; text-decoration: none; }
.security-note { background: #eaf2ff; border-radius: 8px; padding: 14px 18px; font-size: 15px; }
.steps-list { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps-list li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--steel); color: #fff; font-weight: 700; font-size: 15px; }
@media (max-width: 640px) {
  .download-cards { grid-template-columns: 1fr; }
  .remote-banner { margin-bottom: 64px; }
}

/* Footer: etichette Sede / Filiale */
.footer-k { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #a9b8d9; margin-bottom: 2px; }
.site-footer li + li { margin-top: 6px; }

/* Pagina Politica di reso */
.btn-white { background: #fff; color: var(--steel); border-color: #fff; }
.btn-white:hover { background: var(--signal-hover); border-color: var(--signal-hover); color: var(--steel); }
.resi-hero { background: var(--steel); color: #fff; padding-block: 64px 72px; position: relative; overflow: hidden; isolation: isolate; }
.resi-hero::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: -260px; bottom: -380px; border-radius: 46% 54% 60% 40%; background: var(--blob); opacity: .6; }
.resi-hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.resi-hero h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 600; text-transform: uppercase; line-height: 1.02; margin: 12px 0 18px; }
.resi-lead { color: var(--on-dark); font-size: 18px; max-width: 34em; }
.resi-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.resi-hero-cta .btn { text-decoration: none; }
.resi-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 10, 40, .35); }
.resi-facts { background: var(--navy); color: #fff; }
.resi-facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.resi-fact { padding: 28px 24px; border-left: 1px solid rgba(255,255,255,.14); display: grid; gap: 4px; }
.resi-fact:first-child { border-left: 0; padding-left: 0; }
.resi-fact strong { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--signal); line-height: 1.1; }
.resi-fact span { color: var(--on-dark); font-size: 15px; line-height: 1.45; }
.resi-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.resi-steps li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 26px 22px; position: relative; }
.resi-steps li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -21px; width: 22px; border-top: 2px dashed var(--line); }
.resi-step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--steel); color: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.resi-steps h3 { font-size: 22px; margin: 0 0 8px; }
.resi-steps p { color: var(--ink-2); font-size: 15px; margin: 0; }
.resi-steps-sec, .resi-faq { background: var(--paper); }
.resi-split { background: var(--card); padding-block: 88px; }
.resi-split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.resi-split-rev .resi-split-photo { order: 2; }
.resi-split-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.resi-split h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; margin: 12px 0 16px; }
.resi-split-text > p:not(.eyebrow) { color: var(--ink-2); }
.resi-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.resi-checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.resi-checks svg { color: var(--ok); width: 24px; height: 24px; padding: 2px; border-radius: 50%; background: #e3f4ea; }
.resi-checks li.no svg { color: #c0392b; background: #fbe7e5; }
.resi-address { margin-top: 26px; padding: 16px 18px; background: var(--paper); border-left: 4px solid var(--steel); border-radius: 6px; font-weight: 600; }
.resi-address .footer-k { color: var(--ink-2); }
.resi-garanzia { background: var(--card); padding-bottom: 0; }
.resi-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.resi-card { background: var(--paper); border-radius: 12px; padding: 32px; border-top: 4px solid var(--steel); }
.resi-card-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--steel); color: #fff; }
.resi-card-ico svg { width: 30px; height: 30px; }
.resi-card h3 { font-size: 26px; margin: 16px 0 12px; }
.resi-card ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--ink-2); }
.resi-card strong { color: var(--ink); }
.resi-faq-inner { display: grid; grid-template-columns: 1fr 1.8fr; gap: 56px; align-items: start; }
.resi-faq-head { position: sticky; top: 110px; }
.resi-faq-head h2 { font-size: clamp(32px, 3.8vw, 50px); font-weight: 600; margin: 12px 0 14px; }
.resi-faq-head p:not(.eyebrow) { color: var(--ink-2); }
.resi-faq-head a { color: var(--steel); font-weight: 600; }
.resi-faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--steel); box-shadow: 0 8px 24px rgba(0, 51, 160, .08); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 17px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%230033a0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; border-radius: 10px; }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); }
.faq-a p { margin: 0; }
.faq-a a { color: var(--steel); font-weight: 600; }
.resi-cta { margin-bottom: 0; }
.resi-cta .btn-ghost { color: #fff; }
@media (max-width: 960px) {
  .resi-hero-inner, .resi-split-inner, .resi-faq-inner, .resi-cards { grid-template-columns: 1fr; gap: 36px; }
  .resi-split-rev .resi-split-photo { order: 0; }
  .resi-facts-grid, .resi-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resi-fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .resi-fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .resi-steps li::after { display: none; }
  .resi-faq-head { position: static; }
  .resi-split { padding-block: 64px; }
}
@media (max-width: 560px) {
  .resi-facts-grid, .resi-steps { grid-template-columns: 1fr; }
  .resi-fact, .resi-fact:nth-child(3) { border-left: 0; padding-left: 0; padding-right: 0; }
  .resi-fact + .resi-fact { border-top: 1px solid rgba(255,255,255,.14); }
  .resi-hero { padding-block: 44px 52px; }
  .resi-card { padding: 24px; }
}

/* Catalogo: foto reali (Libreria media, titolo cat-pc, cat-monitor...). Se manca la foto resta l'illustrazione. */
.cat-art-wrap.has-photo { padding: 0; background: var(--navy); }
.cat-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.cat:hover .cat-photo { transform: scale(1.04); }

/* Indirizzi cliccabili verso Google Maps */
.maps-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(142, 200, 255, .45); text-underline-offset: 3px; }
.maps-link:hover { text-decoration-color: currentColor; }

/* Pagina Termini e condizioni */
.termini-chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.termini-chips li { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; }
.termini-canali { background: var(--navy); color: #fff; }
.termini-canali-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.termini-canale { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 28px 22px; border-left: 1px solid rgba(255,255,255,.14); }
.termini-canale:first-child { border-left: 0; padding-left: 0; }
.termini-canale .resi-card-ico { background: rgba(142, 200, 255, .16); color: var(--signal); }
.termini-canale h2 { font-size: 22px; margin: 2px 0 6px; color: #fff; }
.termini-canale p { color: var(--on-dark); font-size: 14.5px; line-height: 1.5; margin: 0; }
.termini-body { background: var(--paper); }
.termini-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.termini-toc { position: sticky; top: 100px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px; max-height: calc(100vh - 130px); overflow: auto; }
.termini-toc ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 7px; font-size: 14.5px; }
.termini-toc li::marker { color: var(--ink-2); font-family: var(--font-mono); font-size: 12px; }
.termini-toc a { color: var(--ink); text-decoration: none; }
.termini-toc a:hover { color: var(--steel); text-decoration: underline; }
.termini-upd { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.termini-articoli { display: grid; gap: 16px; }
.termini-art { display: grid; grid-template-columns: 56px 1fr; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px 30px; scroll-margin-top: 100px; }
.termini-n { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--steel); line-height: 1; padding-top: 3px; }
.termini-art h2 { font-size: 26px; margin: 0 0 12px; }
.termini-art p, .termini-art li { color: var(--ink-2); line-height: 1.65; }
.termini-art p + p, .termini-art ul + p, .termini-art p + ul { margin-top: 12px; }
.termini-art ul { padding-left: 20px; display: grid; gap: 8px; margin: 0; }
.termini-art strong { color: var(--ink); }
.termini-art a { color: var(--steel); font-weight: 600; }
.resi-cta .maps-link { color: #fff; }
@media (max-width: 960px) {
  .termini-canali-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .termini-canale:nth-child(3) { border-left: 0; padding-left: 0; }
  .termini-canale:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .termini-layout { grid-template-columns: 1fr; gap: 24px; }
  .termini-toc { position: static; max-height: none; }
}
@media (max-width: 560px) {
  .termini-canali-grid { grid-template-columns: 1fr; }
  .termini-canale, .termini-canale:nth-child(3) { border-left: 0; padding-left: 0; padding-right: 0; }
  .termini-canale + .termini-canale { border-top: 1px solid rgba(255,255,255,.14); }
  .termini-art { grid-template-columns: 1fr; gap: 6px; padding: 22px 20px; }
}

/* Termini: illustrazione hero */
.termini-illu { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 10, 40, .35); }

/* Telefoni sotto gli indirizzi */
.tel-link { color: inherit; font-weight: 600; white-space: nowrap; }

/* Pagina FAQ */
.faq-search { display: flex; align-items: center; gap: 10px; margin-top: 26px; background: #fff; color: var(--ink-2); border-radius: 10px; padding: 0 16px; max-width: 460px; box-shadow: 0 10px 30px rgba(0, 10, 40, .25); }
.faq-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; padding: 15px 0; color: var(--ink); min-width: 0; }
.faq-search:focus-within { outline: 3px solid var(--signal); outline-offset: 2px; }
.faq-cats { background: var(--navy); }
.faq-cats-inner { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 20px; }
.faq-cat { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid rgba(255,255,255,.14); }
.faq-cat:hover { background: rgba(255,255,255,.16); }
.faq-cat-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; color: var(--signal); }
.faq-cat-ico svg { width: 22px; height: 22px; }
.faq-cat small { font-family: var(--font-mono); font-size: 12px; color: var(--signal); background: rgba(142,200,255,.15); border-radius: 999px; padding: 1px 7px; }
.faq-body { background: var(--paper); }
.faq-wrap { max-width: 900px; display: grid; gap: 48px; }
.faq-group { scroll-margin-top: 100px; }
.faq-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.faq-group-head .resi-card-ico { width: 44px; height: 44px; border-radius: 10px; }
.faq-group-head .resi-card-ico svg { width: 26px; height: 26px; }
.faq-group-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; margin: 0; }
.faq-empty { background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 20px; }
.faq-empty a { color: var(--steel); font-weight: 600; }

/* Blog */
.post-hero { background: var(--steel); color: #fff; padding-block: 64px 72px; position: relative; overflow: hidden; isolation: isolate; }
.post-hero::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -180px; top: -260px; border-radius: 46% 54% 60% 40%; background: var(--blob); opacity: .6; }
.post-hero-inner { max-width: 900px; }
.post-hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 600; line-height: 1.08; margin: 14px 0 16px; }
.blog-hero h1 { text-transform: uppercase; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 8px; }
.blog-meta.on-dark, .blog-meta.on-dark a { color: var(--signal); text-decoration: none; }
.blog-meta.on-dark a:hover { text-decoration: underline; }
.blog-cat { color: var(--steel); font-weight: 600; }
.blog-chips a { color: #fff; text-decoration: none; }
.blog-chips li:has(a[aria-current]) { background: #fff; }
.blog-chips li:has(a[aria-current]) a { color: var(--steel); }
.blog-list, .blog-related { background: var(--paper); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.blog-card:hover { box-shadow: 0 14px 34px rgba(0, 51, 160, .12); transform: translateY(-3px); }
.blog-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-ph { display: grid; place-items: center; height: 100%; color: var(--signal); }
.blog-card-ph svg { width: 80px; }
.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card h2 { font-size: 24px; line-height: 1.2; margin: 0; }
.blog-card h2 a { color: var(--ink); text-decoration: none; }
.blog-card h2 a:hover { color: var(--steel); }
.blog-card-body > p:not(.blog-meta) { color: var(--ink-2); margin: 0 0 6px; }
.blog-pager { margin-top: 40px; }
.blog-pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-pager .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); text-decoration: none; }
.blog-pager .page-numbers.current { background: var(--steel); border-color: var(--steel); color: #fff; }
.post-single { background: var(--card); padding-bottom: 80px; }
.post-cover { max-width: 1000px; margin: -40px auto 0; position: relative; }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 10, 40, .18); }
.post-content { font-size: 18px; line-height: 1.75; padding-top: 48px; }
.post-content h2 { font-size: 32px; margin-top: 1.8em; }
.post-content h3 { font-size: 24px; }
.post-content p, .post-content li { color: #2a3552; }
.post-content ul, .post-content ol { padding-left: 1.3em; }
.post-content li + li { margin-top: .4em; }
.post-content a { color: var(--steel); font-weight: 600; }
.post-content blockquote, .post-content .post-tip { margin: 1.6em 0; padding: 18px 22px; background: #eaf2ff; border-left: 4px solid var(--steel); border-radius: 8px; }
.post-content blockquote p { margin: 0; }
.post-cta { margin-top: 56px; background: var(--steel); color: #fff; border-radius: 14px; padding: 32px; display: grid; gap: 8px; position: relative; overflow: hidden; isolation: isolate; }
.post-cta::before { content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; right: -110px; top: -150px; border-radius: 46% 54% 60% 40%; background: var(--blob); opacity: .7; }
.post-cta h2 { color: #fff; margin: 4px 0 6px; font-size: 30px; }
.post-cta p:not(.eyebrow) { color: var(--on-dark); margin: 0; font-size: 17px; }
.post-cta .resi-hero-cta { margin-top: 16px; }
.post-cta .btn-ghost { color: #fff; }
.blog-related-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; margin: 0 0 24px; }
@media (max-width: 640px) {
  .post-hero { padding-block: 44px 60px; }
  .post-cover { margin-top: -28px; }
  .post-content { font-size: 17px; }
  .post-cta { padding: 24px; }
}

/* Blog: condivisione */
.post-share { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-share-title { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 12px; }
.post-share-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.post-content .share-btn, .share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; border: 0; cursor: pointer; line-height: 1.2; }
.share-facebook { background: #1877f2; }
.share-whatsapp { background: #1f9e55; }
.share-email { background: var(--steel); }
.share-copy { background: var(--paper); color: var(--ink) !important; border: 1px solid var(--line) !important; }
.share-btn:hover { filter: brightness(1.08); }

/* Blog: etichetta leggibile nel riquadro blu */
.post-content .post-cta .eyebrow { color: var(--signal); }

/* Intestazione sobria delle pagine interne */
.page-head { background: var(--steel); color: #fff; padding-block: 34px 42px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--signal); margin-bottom: 12px; }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 600; line-height: 1.1; margin: 0 0 10px; text-transform: none; color: #fff; }
.page-head-lead { color: var(--on-dark); font-size: 17px; max-width: 64ch; margin: 0; }
.page-head-meta { margin: 12px 0 0; font-size: 14px; color: var(--signal); }
.page-head .faq-search { margin-top: 22px; box-shadow: none; }
.page-hero h1 { text-transform: none; }
.post-hero::before { display: none; }
.post-hero { padding-block: 40px 56px; }
.blog-hero h1 { text-transform: none; }

/* Footer a 4 colonne */
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.15fr; gap: 36px; }
.footer-hours { margin-top: 18px; max-width: 30em; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mega menu Negozio */
.main-nav .has-mega { padding-block: 26px; margin-block: -26px; }
.main-nav .has-mega > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .8; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--ink); border-top: 3px solid var(--signal); box-shadow: 0 24px 48px rgba(0, 20, 60, .18); visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; z-index: 60; }
.main-nav .has-mega:hover .mega, .main-nav .has-mega:focus-within .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega-inner { max-width: var(--wrap); margin: 0 auto; padding: 28px 20px 22px; }
.mega-cols { columns: 4 200px; column-gap: 36px; }
.mega-group { break-inside: avoid; margin-bottom: 22px; }
.main-nav .mega a { color: var(--ink); white-space: normal; font-weight: 400; font-size: 14.5px; }
.main-nav .mega a:hover { color: var(--steel); text-decoration: underline; }
.main-nav .mega .mega-title { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--steel); margin-bottom: 8px; }
.main-nav .mega ul { display: block; padding: 0; margin: 0; list-style: none; }
.main-nav .mega li { margin: 0; }
.main-nav .mega li a { display: block; padding: 4px 0; border: 0; }
.main-nav .mega .mega-all { display: inline-block; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--steel); }
@media (max-width: 1120px) {
  .mega { display: none; }
  .main-nav .has-mega { padding-block: 0; margin-block: 0; }
  .main-nav .has-mega > a::after { display: none; }
}

/* Catalogo con filtri a sinistra */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.shop-filters { position: sticky; top: 96px; }
.shop-filters-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.shop-filters-box > summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line); }
.shop-filters-box > summary::-webkit-details-marker { display: none; }
.filter-block { padding: 16px 18px; }
.filter-block + .filter-block { border-top: 1px solid var(--line); }
.filter-block h3 { font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 10px; }
.filter-block h3:not(:first-child) { margin-top: 18px; }
.filter-cats, .filter-cats ul { list-style: none; margin: 0; padding: 0; }
.filter-cats > li { border-bottom: 1px solid #edf1f8; }
.filter-cats > li:last-child { border-bottom: 0; }
.filter-cats a { display: inline-block; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.filter-cats > li > a { font-weight: 600; }
.filter-cats ul { padding: 0 0 8px 12px; border-left: 2px solid var(--line); margin-left: 2px; }
.filter-cats ul a { padding: 4px 0; font-size: 14.5px; color: var(--ink-2); }
.filter-cats a:hover { color: var(--steel); }
.filter-cats a[aria-current="page"] { color: var(--steel); font-weight: 700; }
.filter-n { font-size: 12px; color: var(--ink-2); background: var(--paper); border-radius: 99px; padding: 1px 7px; }
.filter-price { display: flex; align-items: center; gap: 8px; }
.filter-price input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; }
.filter-check { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.filter-apply { width: 100%; margin-top: 18px; justify-content: center; }
.filter-reset { display: block; text-align: center; margin-top: 10px; font-size: 14px; color: var(--steel); }
.shop-main { min-width: 0; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 20px; }
  .shop-filters { position: static; }
  .shop-filters-box > summary::after { content: " +"; color: var(--steel); }
  .shop-filters-box[open] > summary::after { content: " –"; }
}

/* Pagina Spedizioni (GLS) */
.sped-gls { background: var(--card); border-bottom: 1px solid var(--line); }
.sped-gls-inner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; padding-block: 32px; }
.sped-gls-logo img { display: block; width: 100%; height: auto; max-width: 220px; }
.sped-gls h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; margin: 0 0 8px; }
.sped-gls p { color: var(--ink-2); margin: 0; max-width: 70ch; }
.sped-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.sped-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.sped-box p { margin: 0; }
.sped-box-k { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.sped-box-v { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--steel); margin: 6px 0 6px !important; line-height: 1.15; }
.sped-box-t { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.sped-articoli { max-width: 900px; }
.sped-note { margin: 28px 0 0; color: var(--ink-2); }
.sped-note a { color: var(--steel); font-weight: 600; }
@media (max-width: 960px) { .sped-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .sped-gls-inner { grid-template-columns: 1fr; gap: 16px; }
  .sped-gls-logo img { max-width: 160px; }
  .sped-boxes { grid-template-columns: 1fr; }
}

/* Pagine generiche: stessa intestazione sobria delle altre */
.page-hero { padding-block: 34px 42px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; }

/* Tracciamento ordini nell'account */
.geg-track { background: #eaf2ff; border-left: 4px solid var(--steel); border-radius: 8px; padding: 18px 20px; margin: 0 0 28px; }
.geg-track h2 { font-size: 22px; margin: 0 0 6px; }
.geg-track p { margin: 0; }
.geg-track p + p { margin-top: 12px; }
.geg-track .btn { text-decoration: none; }
.geg-track-num { font-family: var(--font-mono); letter-spacing: .03em; }
.geg-track-wait { background: var(--paper); border-left-color: var(--line); }
.geg-track-link { font-weight: 600; color: var(--steel); }
.geg-track-none { color: var(--ink-2); }

/* FAQ: un colore per argomento (sfondo tenue + icona colorata) */
.faq-group .resi-card-ico { background: var(--c-bg, #e6edfb); color: var(--c, var(--steel)); }
#faq-ordini { --c: #0033a0; --c-bg: #e6edfb; }
#faq-pagamenti { --c: #00873a; --c-bg: #e3f4ea; }
#faq-spedizioni { --c: #0b7285; --c-bg: #e0f3f6; }
#faq-resi { --c: #b42318; --c-bg: #fdeceb; }
#faq-rivenditori { --c: #1d2b64; --c-bg: #e4e7f2; }
#faq-assistenza { --c: #6941c6; --c-bg: #efeafb; }
#faq-account { --c: #336699; --c-bg: #e5eef6; }
.faq-cat[href="#faq-ordini"] .faq-cat-ico { color: #8ec8ff; }
.faq-cat[href="#faq-pagamenti"] .faq-cat-ico { color: #6fd39a; }
.faq-cat[href="#faq-spedizioni"] .faq-cat-ico { color: #66d4e0; }
.faq-cat[href="#faq-resi"] .faq-cat-ico { color: #ff9b91; }
.faq-cat[href="#faq-rivenditori"] .faq-cat-ico { color: #c3cdf5; }
.faq-cat[href="#faq-assistenza"] .faq-cat-ico { color: #c2adf5; }
.faq-cat[href="#faq-account"] .faq-cat-ico { color: #a9cbe8; }

/* Tabella specifiche nella scheda prodotto */
.geg-specs { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.geg-specs th, .geg-specs td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.geg-specs tr:last-child th, .geg-specs tr:last-child td { border-bottom: 0; }
.geg-specs th { width: 36%; font-weight: 600; color: var(--ink); background: #f1f4fa; }
.geg-specs td { color: var(--ink-2); }
@media (max-width: 560px) { .geg-specs th, .geg-specs td { display: block; width: auto; } .geg-specs th { border-bottom: 0; padding-bottom: 2px; } }

/* Catalogo a righe orizzontali (negozio e categorie) */
.shop-main ul.products, .woocommerce .shop-main ul.products { grid-template-columns: 1fr; gap: 14px; }
.woocommerce .shop-main ul.products li.product { display: grid; grid-template-columns: 190px minmax(0, 1fr) 200px; grid-template-rows: auto 1fr; grid-template-areas: "img title buy" "img info buy"; column-gap: 24px; padding: 16px 20px; position: relative; }
.woocommerce .shop-main ul.products li.product > a.woocommerce-LoopProduct-link { display: contents; }
.woocommerce .shop-main ul.products li.product a img { grid-area: img; width: 190px; margin: 0; align-self: center; }
.woocommerce .shop-main ul.products li.product .woocommerce-loop-product__title { grid-area: title; font-size: 17px; margin: 4px 0 6px; }
.woocommerce .shop-main ul.products li.product .geg-loop-info { grid-area: info; color: var(--ink-2); font-size: 14.5px; }
.geg-loop-sku { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; }
.geg-loop-desc ul { margin: 0; padding-left: 18px; }
.geg-loop-desc li { margin: 2px 0; }
.geg-loop-desc p { margin: 0; }
.woocommerce .shop-main ul.products li.product .price { grid-area: buy; align-self: start; margin: 4px 0 0; padding: 0; text-align: right; }
.woocommerce .shop-main ul.products li.product .button,
.woocommerce .shop-main ul.products li.product .added_to_cart { grid-area: buy; align-self: end; margin: 0; text-align: center; }
.woocommerce .shop-main ul.products li.product .added_to_cart { align-self: center; }
@media (max-width: 760px) {
  .woocommerce .shop-main ul.products li.product { grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: auto auto auto auto; grid-template-areas: "img title" "img info" "img price" "btn btn"; column-gap: 14px; padding: 12px 14px 14px; }
  .woocommerce .shop-main ul.products li.product a img { width: 110px; align-self: start; }
  .woocommerce .shop-main ul.products li.product .woocommerce-loop-product__title { font-size: 15.5px; }
  .woocommerce .shop-main ul.products li.product .geg-loop-desc { display: none; }
  .woocommerce .shop-main ul.products li.product .price { grid-area: price; text-align: left; font-size: 19px; }
  .woocommerce .shop-main ul.products li.product .button { grid-area: btn; margin-top: 12px; }
}
.woocommerce .shop-main ul.products[class*="columns-"] li.product, .woocommerce-page .shop-main ul.products[class*="columns-"] li.product { width: auto; float: none; margin: 0; }

/* Sito più ampio (stile distributore): contenitore 1440px con margini fluidi */
:root { --wrap: 1440px; --gutter: clamp(16px, 3vw, 40px); }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.mega-inner { padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 1360px) {
  .shop-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 640px) {
  .site-header .wrap { gap: 10px; }
  .site-header .brand { min-width: 0; flex-shrink: 1; }
  .site-header .brand-logo { height: 40px; width: auto; max-width: 100%; }
  .header-actions { gap: 8px; }
  .nav-toggle { padding: 6px 10px; }
}

/* Galleria prodotto: foto principale + miniature standard piccole e nitide */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 10px; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 84px !important; float: none; margin: 0; padding: 0; }
.woocommerce div.product div.images .flex-control-thumbs li img { width: 84px; height: 84px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; box-sizing: border-box; opacity: 1; cursor: pointer; transition: border-color .15s; }
.woocommerce div.product div.images .flex-control-thumbs li img:hover { border-color: var(--steel); }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { border: 2px solid var(--steel); padding: 3px; }
@media (max-width: 560px) {
  .woocommerce div.product div.images .flex-control-thumbs li { width: 64px !important; }
  .woocommerce div.product div.images .flex-control-thumbs li img { width: 64px; height: 64px; }
}
.woocommerce div.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.woocommerce div.product div.images, .woocommerce div.product div.summary { min-width: 0; width: auto; float: none; }
@media (max-width: 1000px) { .woocommerce div.product { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .woocommerce div.product div.images { max-width: 560px; width: 100%; margin-inline: auto; } }

/* Home "Ultimi arrivi": su smartphone righe orizzontali compatte */
@media (max-width: 640px) {
  #novita .woocommerce ul.products, #novita ul.products { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #novita ul.products li.product { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "img title" "img price" "img btn"; grid-template-rows: auto auto 1fr; column-gap: 14px; align-items: start; padding: 12px; width: auto; float: none; margin: 0; }
  #novita ul.products li.product > a.woocommerce-LoopProduct-link { display: contents; }
  #novita ul.products li.product a img { grid-area: img; width: 96px; height: 96px; margin: 0; align-self: center; }
  #novita ul.products li.product .woocommerce-loop-product__title { grid-area: title; font-size: 14.5px; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  #novita ul.products li.product .price { grid-area: price; margin: 0; padding: 0; font-size: 18px; }
  #novita ul.products li.product .button { grid-area: btn; align-self: end; justify-self: start; margin: 8px 0 0; padding: 8px 14px; font-size: 14px; }
  #novita ul.products li.product .added_to_cart { grid-area: btn; align-self: end; }
}

/* Checkout: spedizione per conto del rivenditore */
.geg-wl { margin: 8px 0 24px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--steel); border-radius: 10px; }
.geg-wl h3 { margin: 0 0 10px; font-size: 20px; }
.geg-wl .geg-wl-check label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.geg-wl .geg-wl-check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.geg-wl-note { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.geg-wl-badge { margin: 16px 0; padding: 12px 14px; background: #f1f4fa; border-left: 4px solid var(--steel); border-radius: 6px; }

/* Registrazione: vantaggi dell'account */
.reg-perks { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; }
.reg-perks h3 { font-size: 22px; margin: 0 0 14px; }
.reg-perks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.reg-perks li { position: relative; padding-left: 30px; color: var(--ink-2); line-height: 1.5; }
.reg-perks li b { color: var(--ink); font-weight: 600; }
.reg-perks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #e3f4ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2300873a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
@media (max-width: 900px) { .reg-aside { order: -1; } }

/* Laboratorio: pagina cliente */
.lab-cerca { max-width: 640px; }
.lab-cerca h2, .lab-list h2 { font-size: 26px; margin: 0 0 8px; }
.lab-list { margin-bottom: 32px; }
.lab-login { margin: 16px 0 0; color: var(--ink-2); }
.lab-ticket { display: grid; gap: 20px; }
.lab-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.lab-k { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.lab-num { margin: 2px 0 6px; font-size: clamp(26px, 4vw, 34px); }
.lab-dev { margin: 0; color: var(--ink-2); }
.lab-stato { max-width: 340px; }
.lab-stato p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.lab-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; background: #e6edfb; color: #0033a0; }
.lab-diagnosi, .lab-lavorazione { background: #efeafb; color: #5b34b3; }
.lab-preventivo, .lab-ricambi { background: #fff4e0; color: #8a5300; }
.lab-pronto { background: #e3f4ea; color: #00873a; }
.lab-non_riparabile { background: #fdeceb; color: #b42318; }
.lab-consegnato { background: #eef0f3; color: #50575e; }
.lab-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; counter-reset: passo; }
.lab-steps li { counter-increment: passo; position: relative; padding: 34px 4px 0; text-align: center; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.lab-steps li::before { content: counter(passo); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 700; font-size: 13px; z-index: 1; }
.lab-steps li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.lab-steps li:first-child::after { display: none; }
.lab-steps li.done::before { content: "✓"; background: #00873a; border-color: #00873a; color: #fff; }
.lab-steps li.done::after, .lab-steps li.now::after { background: #00873a; }
.lab-steps li.now::before { background: var(--steel); border-color: var(--steel); color: #fff; }
.lab-steps li.now { color: var(--ink); font-weight: 600; }
.lab-prev { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--steel); border-radius: 12px; padding: 20px 24px; }
.lab-prev.attesa { border-left-color: #d98e04; background: #fffaf0; }
.lab-prev h3 { margin: 0 0 8px; font-size: 22px; }
.lab-importo { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--steel); margin: 6px 0 14px; }
.lab-importo small { font-family: var(--font-body); font-size: 14px; color: var(--ink-2); font-weight: 400; }
.lab-prev-btn { display: flex; gap: 10px; flex-wrap: wrap; }
.lab-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.lab-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.lab-box h3 { font-size: 20px; margin: 0 0 12px; }
.lab-box h3:not(:first-child) { margin-top: 22px; }
.lab-box dl { margin: 0; }
.lab-box dt { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-top: 10px; }
.lab-box dd { margin: 2px 0 0; }
.lab-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.lab-log .mono { color: var(--ink); margin-right: 6px; }
.lab-msgs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow: auto; }
.lab-msgs li { max-width: 88%; padding: 10px 14px; border-radius: 12px; line-height: 1.5; }
.lab-msgs li small { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 2px; }
.lab-msgs li.noi { background: #eef3fc; align-self: flex-start; }
.lab-msgs li.tu { background: #e3f4ea; align-self: flex-end; }
.lab-msgs li.lab-empty { background: none; color: var(--ink-2); padding: 0; }
.lab-chat textarea { width: 100%; }
.lab-back { margin: 0; }
.lab-pw { max-width: 640px; }
@media (max-width: 860px) { .lab-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .lab-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .lab-steps li:nth-child(4)::after { display: none; }
  .lab-head, .lab-box, .lab-prev { padding: 16px; }
}
.lab-head .lab-num { margin: 2px 0 6px; } .lab-head .lab-k { margin: 0; }
