/* =====================================================================================================
   ZanzarPro sul telefono (31/10/2026). Angelo: «ottimizza molto bene anche per mobile, ottimizza bene gli spazi
   e l'utilità deve essere più semplice per mobile, ma sempre bello graficamente, di impatto».
   Ultimo foglio delle pagine pubbliche. Quasi tutto vale fino a 760 px (come Simy e brand-motion): sopra, il sito
   resta com'era. I fogli precedenti usano molti !important: qui i selettori partono da «html body» e usano
   !important dove devono vincere. Gli elementi .zpm-* li crea js/zp-mobile.js.
   ===================================================================================================== */

:root {
  --zpm-ink: #070706;
  --zpm-panel: #11110f;
  --zpm-raised: #181814;
  --zpm-ivory: #f3eee4;
  --zpm-soft: #d8d0c2;
  --zpm-muted: #a39d92;
  --zpm-gold: #d8bd83;
  --zpm-gold-hi: #f0d79e;
  --zpm-line: rgba(216, 189, 131, .24);
  --zpm-line-soft: rgba(243, 238, 228, .1);
  --zpm-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --zpm-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --zpm-bar: 60px;
  --zpm-trust: 30px;
  --zpm-ease: cubic-bezier(.22, .61, .36, 1);
}

/* Fuori dal telefono gli elementi aggiunti non si vedono. */
html body .zpm-menu-btn, html body .zpm-search-btn, html body .zpm-cart,
html body .zpm-menu, html body .zpm-cfg-bar, html body .zpm-pay-bar { display: none !important; }

/* Tutte le larghezze: nella pagina Zanzariere «header { display: none }» di zanzariere.css nascondeva anche la testata
   del carrello, cioè titolo e pulsante per chiuderlo (anche sul computer). */
html body .zp-cart-panel > header { display: block !important; }
/* Carrello: la foto della zanzariera la mostra solo il telefono; il totale della riga sta a sinistra di «Rimuovi». */
html body .zp-cart-panel .zp-item .zp-thumb { display: none; }
html body .zp-cart-panel .zp-item .zp-actions { align-items: center; gap: 10px; }
html body .zp-cart-panel .zp-item .zp-line-total { margin-right: auto; }

@media (max-width: 760px) {

  /* ---------- Basi ---------- */
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--zpm-bar) + 14px); }
  html body { -webkit-tap-highlight-color: rgba(216, 189, 131, .16); }
  html body a, html body button, html body [role="button"] { touch-action: manipulation; }
  html body :focus-visible { outline: 2px solid var(--zpm-gold) !important; outline-offset: 2px; }

  /* Campi a 16 px: sotto, iPhone ingrandisce la pagina appena il cliente tocca il campo. */
  html body #searchInput, html body .search-category, html body #catalogSearch, html body #catalogSort,
  html body.zp-checkout-page .form-input, html body #inpQty, html body #selColor, html body #config-room,
  html body.customer-page input, html body.customer-page select, html body.customer-page textarea { font-size: 16px !important; }

  /* ---------- Testata unica: menu · logo · cerca · carrello ---------- */
  html body .zpm-menu-btn, html body .zpm-search-btn, html body .zpm-cart, html body .zpm-menu-close {
    position: relative;
    display: inline-grid !important;
    place-items: center;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--zpm-ivory) !important;
    cursor: pointer;
    text-decoration: none !important;
  }
  .zpm-menu-btn svg, .zpm-search-btn svg, .zpm-cart svg {
    width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round;
  }
  html body .zpm-menu-btn:active, html body .zpm-search-btn:active, html body .zpm-cart:active, html body .zpm-menu-close:active { background: rgba(216, 189, 131, .14) !important; }
  .zpm-count {
    position: absolute; top: 3px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
    background: var(--zpm-gold); color: var(--zpm-ink); font: 700 12px/19px var(--zpm-sans); letter-spacing: 0; text-align: center;
    box-shadow: 0 0 0 2px var(--zpm-ink);
  }
  .zpm-count[data-n="0"] { display: none; }

  /* Contenitori delle testate: restano in alto mentre si scorre; la striscia dorata scorre via, la barra resta. */
  html body.zp-home-page.zp-branded header.header,
  html body.zp-catalog-page.zp-branded .premium-header,
  html body.zp-checkout-page.zp-branded header.checkout-header {
    position: sticky !important;
    top: calc(-1 * var(--zpm-trust)) !important;
    z-index: 950 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--zpm-line-soft) !important;
    background: rgba(7, 7, 6, .9) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3) !important;
    -webkit-backdrop-filter: saturate(1.2) blur(16px);
    backdrop-filter: saturate(1.2) blur(16px);
  }
  html body.customer-page header.customer-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 950 !important;
    background: rgba(9, 10, 8, .9) !important;
    -webkit-backdrop-filter: saturate(1.2) blur(16px);
    backdrop-filter: saturate(1.2) blur(16px);
  }

  /* Striscia dorata: alta 30 px, un messaggio alla volta (js/zp-mobile.js li fa girare). */
  html body.zp-home-page header.header > div:first-child,
  html body.zp-catalog-page .premium-header > div:first-child,
  html body.zp-checkout-page .zp-trustbar {
    box-sizing: border-box !important;
    height: var(--zpm-trust) !important;
    min-height: 0 !important;
    padding: 7px 16px !important;
    overflow: hidden !important;
    background: linear-gradient(100deg, #b8975a, #e6cf98 48%, #b8975a) !important;
  }
  html body #hp-trustbar-container.zpm-ticker,
  html body .zp-trustbar-inner.zpm-ticker {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 16px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    animation: none !important;
  }
  html body #hp-trustbar-container.zpm-ticker > *,
  html body .zp-trustbar-inner.zpm-ticker > * {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    overflow: hidden;
    color: #14130f !important;
    font: 700 12px/16px var(--zpm-sans) !important;
    letter-spacing: .12em !important;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap !important;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .5s var(--zpm-ease), transform .5s var(--zpm-ease);
  }
  html body #hp-trustbar-container.zpm-ticker > *::before,
  html body #hp-trustbar-container.zpm-ticker > *::after,
  html body .zp-trustbar-inner.zpm-ticker > *::before,
  html body .zp-trustbar-inner.zpm-ticker > *::after { content: none !important; }
  html body #hp-trustbar-container.zpm-ticker > .zpm-on,
  html body .zp-trustbar-inner.zpm-ticker > .zpm-on { opacity: 1; transform: none; }

  /* Righe della testata: griglia simmetrica con il logo al centro. */
  html body.zp-home-page.zp-branded .header-top,
  html body.zp-catalog-page.zp-branded .premium-header .header-inner {
    display: grid !important;
    grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px !important;
    grid-template-areas: "menu . logo cerca carrello" "trova trova trova trova trova" !important;
    box-sizing: border-box !important;
    align-items: center !important;
    gap: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: var(--zpm-bar) !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    border: 0 !important;
    background: transparent !important;
  }
  html body.customer-page header.customer-header {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    grid-template-areas: "menu logo carrello" !important;
    box-sizing: border-box !important;
    align-items: center !important;
    gap: 0 !important;
    min-height: var(--zpm-bar) !important;
    padding: 4px 8px !important;
  }
  html body .zpm-menu-btn { grid-area: menu; }
  html body .zpm-search-btn { grid-area: cerca; }
  html body .zpm-cart { grid-area: carrello; }

  html body.zp-home-page.zp-branded .header-top > .logo-link,
  html body.zp-catalog-page.zp-branded .premium-header .header-inner > .logo,
  html body.customer-page header.customer-header > .logo-link {
    grid-area: logo !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body.zp-branded .header-top > .logo-link::before,
  html body.zp-branded .premium-header .header-inner > .logo::before { content: none !important; display: none !important; }
  html body.zp-branded .header-top > .logo-link .zp-brand-image,
  html body.zp-branded .premium-header .header-inner > .logo .zp-brand-image,
  html body.customer-page header.customer-header > .logo-link img {
    display: block !important;
    width: auto !important;
    height: 52px !important;
    max-width: 160px !important;
    margin: 0 !important;
    object-fit: contain !important;
  }

  /* Quello che c'era nelle testate passa nel menu (sezioni, area riservata) o nell'icona del carrello. */
  html body.zp-home-page .header-top > .header-icons,
  html body.zp-home-page header.header > .nav-bar,
  html body.zp-catalog-page .premium-header .header-inner > .header-nav,
  html body.zp-catalog-page .premium-header .header-inner > .header-actions,
  html body.customer-page header.customer-header > nav { display: none !important; }

  /* Ricerca della home: si apre sotto la testata con la lente. */
  html body.zp-home-page .header-top > .search-bar {
    grid-area: trova !important;
    display: none !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 6px 0 4px !important;
  }
  html body.zp-home-page.zpm-search-open .header-top > .search-bar { display: flex !important; }
  html body.zp-home-page .header-top > .search-bar .search-category { display: none !important; }
  html body.zp-home-page .header-top > .search-bar #searchInput { min-width: 0 !important; padding: 0 14px !important; }

  /* ---------- Menu ---------- */
  html body .zpm-menu {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: block !important;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear .4s;
  }
  .zpm-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 3, .66);
    opacity: 0;
    transition: opacity .35s var(--zpm-ease);
  }
  .zpm-menu.open { visibility: visible; pointer-events: auto; transition: none; }
  .zpm-menu.open::before { opacity: 1; }
  .zpm-menu-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: min(88vw, 390px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 0 calc(18px + env(safe-area-inset-bottom, 0px));
    border-right: 1px solid var(--zpm-line);
    background:
      radial-gradient(circle at 0 0, rgba(216, 189, 131, .13), transparent 58%),
      radial-gradient(circle at 100% 100%, rgba(216, 189, 131, .07), transparent 50%),
      #0a0a08;
    box-shadow: 30px 0 80px rgba(0, 0, 0, .5);
    color: var(--zpm-ivory);
    font-family: var(--zpm-sans);
    transform: translateX(-102%);
    transition: transform .4s var(--zpm-ease);
  }
  .zpm-menu.open .zpm-menu-panel { transform: none; }
  .zpm-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--zpm-bar);
    padding: 6px 8px 6px 18px;
    border-bottom: 1px solid var(--zpm-line-soft);
  }
  .zpm-menu-logo img { display: block; width: auto; height: 46px; }
  .zpm-menu-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; }
  .zpm-menu-nav { display: grid; padding: 8px 0 0; }
  .zpm-menu-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    padding: 0 22px;
    border-bottom: 1px solid var(--zpm-line-soft);
    color: var(--zpm-ivory) !important;
    font: 500 23px/1.15 var(--zpm-display);
    letter-spacing: -.01em;
    text-decoration: none !important;
  }
  .zpm-menu-nav a svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--zpm-gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .zpm-menu-nav a[aria-current="page"] { color: var(--zpm-gold) !important; }
  .zpm-menu-kicker {
    margin: 24px 22px 12px;
    color: var(--zpm-gold);
    font: 600 12px/1.3 var(--zpm-sans);
    letter-spacing: .18em;
    text-transform: uppercase;
  }
  .zpm-menu-tipi { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px; }
  .zpm-menu-tipi a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--zpm-line);
    border-radius: 999px;
    color: var(--zpm-soft) !important;
    font: 500 14px/1 var(--zpm-sans);
    text-decoration: none !important;
  }
  .zpm-menu-tipi a:active { background: rgba(216, 189, 131, .14); }
  .zpm-menu-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 18px 22px 0; }
  .zpm-menu-info a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--zpm-muted) !important;
    font: 400 14px/1.3 var(--zpm-sans);
    text-decoration: none !important;
  }
  .zpm-menu-foot { display: grid; gap: 6px; margin-top: auto; padding: 26px 22px 4px; }
  .zpm-menu-contatti {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    background: linear-gradient(120deg, #f0dda9, #c7a765);
    color: #14130f !important;
    font: 700 13px/1 var(--zpm-sans);
    letter-spacing: .14em;
    text-decoration: none !important;
    text-transform: uppercase;
  }
  .zpm-menu-area {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--zpm-muted) !important;
    font: 500 13px/1 var(--zpm-sans);
    text-decoration: none !important;
  }
  html body.zpm-menu-open { overflow: hidden !important; }
  html body.zpm-menu-open #simy-robot { opacity: 0 !important; pointer-events: none !important; }

  /* ---------- Simy più piccola: resta, ma non copre testi e pulsanti ---------- */
  html body.zp-simy-playful #simy-robot { width: 72px !important; height: 90px !important; }
  html body #simy-callout { max-width: 190px !important; padding: 9px 11px !important; font-size: 13px !important; }

  /* ---------- Home ---------- */
  html body.zp-home-page .hero {
    height: clamp(560px, calc(100svh - var(--zpm-bar) - var(--zpm-trust)), 700px) !important;
    margin-bottom: 0 !important;
  }
  html body.zp-home-page .hero-slideshow { height: 50% !important; }
  html body.zp-home-page .hero::after { bottom: 51% !important; }
  html body.zp-home-page .hero-content {
    right: 14px !important;
    bottom: 14px !important;
    left: 14px !important;
    padding: 22px 20px 20px !important;
  }
  html body.zp-home-page .hero-signature { margin-bottom: 12px !important; }
  html body.zp-home-page .hero-signature > span { font-size: 12px !important; letter-spacing: .16em !important; }
  html body.zp-home-page .hero h1 {
    margin-bottom: 12px !important;
    font-size: clamp(33px, 9.4vw, 40px) !important;
    line-height: 1 !important;
    letter-spacing: -.035em !important;
  }
  html body.zp-home-page .hero p { margin-bottom: 18px !important; font-size: 14px !important; line-height: 1.5 !important; }
  html body.zp-home-page .hero-cta {
    min-height: 52px !important;
    font-size: 13px !important;
    letter-spacing: .14em !important;
  }

  html body.zp-home-page .zp-manifesto { margin: 18px auto 40px !important; }
  html body.zp-home-page .zp-manifesto-intro { padding: 18px 18px !important; font-size: 20px !important; }
  html body.zp-home-page .zp-manifesto-item { min-height: 0 !important; padding: 16px 6px !important; }
  html body.zp-home-page .zp-manifesto-item strong { font-size: 24px !important; }

  html body.zp-home-page > .container { padding: 0 16px !important; }
  html body.zp-home-page .section { margin-bottom: 46px !important; }
  html body.zp-home-page .section-header { margin-bottom: 18px !important; padding-bottom: 14px !important; }
  html body.zp-home-page .section-title { font-size: clamp(28px, 8.4vw, 34px) !important; line-height: 1.05 !important; }
  html body.zp-home-page #hp-best-sub, html body.zp-home-page .section-header > p { font-size: 14px !important; }

  /* La selezione: carosello a scorrimento, una scheda e mezza in vista. */
  html body.zp-home-page #hp-bestseller-grid {
    display: flex !important;
    gap: 12px !important;
    width: auto !important;
    margin: 0 -16px !important;
    padding: 2px 16px 16px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  html body.zp-home-page #hp-bestseller-grid::-webkit-scrollbar { display: none; }
  html body.zp-home-page #hp-bestseller-grid > .product-card,
  html body.zp-home-page #hp-bestseller-grid > .product-card:last-child {
    flex: 0 0 78% !important;
    width: auto !important;
    min-height: 0 !important;
    padding-bottom: 16px !important;
    scroll-snap-align: start;
    transform: none !important;
  }
  html body.zp-home-page #hp-bestseller-grid .product-image {
    height: 220px !important;
    margin-bottom: 14px !important;
    padding: 16px !important;
  }
  html body.zp-home-page #hp-bestseller-grid .product-card > div:not(.product-image):not(.product-rating):not(.product-price),
  html body.zp-home-page #hp-bestseller-grid .product-card > h3,
  html body.zp-home-page #hp-bestseller-grid .product-card > .product-price,
  html body.zp-home-page #hp-bestseller-grid .product-card > a { margin-right: 16px !important; margin-left: 16px !important; }
  html body.zp-home-page #hp-bestseller-grid .product-card > div[style*="position:absolute"],
  html body.zp-home-page #hp-bestseller-grid .product-card > div[style*="position: absolute"] { display: none !important; }
  html body.zp-home-page #hp-bestseller-grid .product-title {
    margin-bottom: 10px !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
  }
  /* Prezzo tutto sulla stessa riga: «da 97,00 € /m²». */
  html body.zp-home-page #hp-bestseller-grid .product-price { display: flex !important; flex-wrap: wrap; align-items: baseline !important; gap: 4px !important; padding-top: 10px !important; }
  html body.zp-home-page #hp-bestseller-grid .product-price .price { display: inline-flex !important; align-items: baseline !important; gap: 0 !important; }
  html body.zp-home-page #hp-bestseller-grid .product-price .price > * {
    position: static !important;
    top: auto !important;
    margin: 0 !important;
    vertical-align: baseline !important;
    line-height: 1 !important;
  }
  html body.zp-home-page #hp-bestseller-grid .product-price .price-symbol { order: 3; margin-left: 4px !important; font-size: 18px !important; }
  html body.zp-home-page #hp-bestseller-grid .product-price .price-whole { order: 1; font-size: 30px !important; }
  html body.zp-home-page #hp-bestseller-grid .product-price .price-fraction { order: 2; font-size: 18px !important; }
  html body.zp-home-page #hp-bestseller-grid .add-to-cart { min-height: 48px !important; margin-top: 12px !important; font-size: 12px !important; letter-spacing: .12em !important; }

  /* Perché sceglierci: quattro riquadri due per due invece di schede da far scorrere. */
  html body.zp-home-page #perche { padding-right: 16px !important; }
  html body.zp-home-page #hp-usp-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  html body.zp-home-page #hp-usp-grid > div {
    flex: none !important;
    min-height: 0 !important;
    padding: 16px 14px !important;
    border: 1px solid var(--zpm-line-soft) !important;
    text-align: left !important;
  }
  html body.zp-home-page #hp-usp-grid > div > div:first-child { margin-bottom: 10px !important; font-size: 22px !important; }
  html body.zp-home-page #hp-usp-grid h3 { margin-bottom: 6px !important; font-size: 16px !important; line-height: 1.2 !important; }
  html body.zp-home-page #hp-usp-grid p { font-size: 13px !important; line-height: 1.45 !important; }

  html body.zp-home-page .review-home {
    padding: 22px 20px !important;
    border-color: var(--zpm-line) !important;
    border-radius: 0 !important;
    background: linear-gradient(160deg, #141410, #0d0d0b) !important;
  }
  html body.zp-home-page .review-home h2 { margin: 0 0 10px !important; font: 500 26px/1.1 var(--zpm-display) !important; color: var(--zpm-ivory) !important; }
  html body.zp-home-page .review-home p { font-size: 15px !important; line-height: 1.55 !important; }
  html body.zp-home-page .review-home a { display: inline-flex; align-items: center; min-height: 44px; color: var(--zpm-gold) !important; }

  /* Piè di pagina: due colonne e voci comode da toccare. */
  html body.zp-home-page .footer-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 16px !important;
    padding: 34px 20px 22px !important;
  }
  html body.zp-home-page .footer-column:last-child { grid-column: 1 / -1; }
  html body.zp-home-page .footer-column:last-child ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  html body.zp-home-page .footer-column h3 { margin-bottom: 8px !important; }
  html body.zp-home-page .footer-column li { margin: 0 !important; }
  html body.zp-home-page .footer-column li a { display: flex; align-items: center; min-height: 40px; font-size: 14px !important; }

  /* ---------- Pagina Zanzariere ---------- */
  html body.zp-catalog-page .hero-section {
    display: block !important;
    min-height: 0 !important;
    padding: 26px 18px 18px !important;
    background:
      radial-gradient(circle at 92% 0, rgba(216, 189, 131, .16), transparent 55%),
      transparent !important;
  }
  html body.zp-catalog-page .zp-hero-visual { display: none !important; }
  html body.zp-catalog-page .hero-section .zp-hero-kicker { margin-bottom: 10px !important; font-size: 12px !important; }
  html body.zp-catalog-page .hero-section h1 { margin-bottom: 10px !important; font-size: clamp(32px, 9.5vw, 38px) !important; line-height: 1.02 !important; }
  html body.zp-catalog-page .hero-section .zp-hero-description { margin-bottom: 12px !important; font-size: 14px !important; line-height: 1.55 !important; }
  html body.zp-catalog-page .hero-section .zp-hero-link { display: none !important; }
  html body.zp-catalog-page .hero-section .zp-hero-details { gap: 6px 14px !important; margin: 0 !important; }

  html body.zp-catalog-page > .container { padding: 0 14px 56px !important; }
  /* Tipologie: una riga sola che scorre, ferma sotto la testata. */
  html body.zp-catalog-page .zp-topcats {
    position: sticky !important;
    top: var(--zpm-bar) !important;
    z-index: 900 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 -14px 14px !important;
    padding: 10px 14px !important;
    overflow-x: auto !important;
    border-bottom: 1px solid var(--zpm-line-soft) !important;
    background: rgba(7, 7, 6, .92) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
    /* Portandoci la pagina (link «?cat=» del menu) la riga si ferma attaccata alla testata, come quando resta ferma:
       scroll-padding-top è la barra + 14 px. */
    scroll-margin-top: -14px !important;
  }
  html body.zp-catalog-page .zp-topcats::-webkit-scrollbar { display: none; }
  html body.zp-catalog-page .zp-topcat {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    border-radius: 999px !important;
    font: 500 14px/1 var(--zpm-sans) !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }
  html body.zp-catalog-page .zp-catalog-tools {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border-top: 0 !important;
  }
  html body.zp-catalog-page .zp-catalog-tools .zp-search { grid-column: 1 / -1 !important; max-width: none !important; min-height: 48px !important; }
  html body.zp-catalog-page .zp-catalog-tools .zp-search input { min-height: 48px !important; }
  html body.zp-catalog-page .zp-catalog-count { font-size: 13px !important; }
  html body.zp-catalog-page .zp-sort-label > span { display: none !important; }
  html body.zp-catalog-page #catalogSort { min-height: 42px !important; padding: 0 34px 0 12px !important; }

  /* Catalogo a due colonne: foto, nome, prezzo, pulsante. La descrizione completa è nella scheda del modello. */
  html body.zp-catalog-page #productGrid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  html body.zp-catalog-page .zp-product {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }
  html body.zp-catalog-page .zp-product-photo {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    padding: 10px !important;
  }
  html body.zp-catalog-page .zp-product-photo img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
  html body.zp-catalog-page .zp-photo-label { display: none !important; }
  html body.zp-catalog-page .zp-photo-arrow { top: 8px !important; right: 8px !important; width: 30px !important; height: 30px !important; font-size: 13px !important; }
  html body.zp-catalog-page .zp-product-body {
    display: flex !important;
    flex: 1 !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 12px 12px 12px !important;
  }
  html body.zp-catalog-page .zp-product-category { margin: 0 0 4px !important; font-size: 12px !important; letter-spacing: .1em !important; }
  html body.zp-catalog-page .zp-product h2 {
    margin: 0 0 8px !important;
    font-family: var(--zpm-display) !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }
  /* La descrizione breve resta anche sul telefono: è ciò che fa capire la differenza fra un modello e l'altro (31/10/2026). */
  html body.zp-catalog-page .zp-product-summary { display: block !important; min-height: 0 !important; margin: 0 0 6px !important; font-size: 12px !important; line-height: 1.4 !important; color: #bcbfb4 !important; }
  html body.zp-catalog-page .zp-product-size { margin: 0 0 8px !important; font-size: 11px !important; }
  html body.zp-catalog-page .zz-card-variants,
  html body.zp-catalog-page .zp-product-price small { display: none !important; }
  html body.zp-catalog-page .zp-product-price { margin: auto 0 0 !important; padding: 0 !important; font-size: 12px !important; line-height: 1.3 !important; }
  html body.zp-catalog-page .zp-product-price > span { display: block; white-space: nowrap; }
  html body.zp-catalog-page .zp-product-price strong { font-size: 17px !important; line-height: 1.25 !important; }
  html body.zp-catalog-page .zp-product-actions { margin: 10px 0 0 !important; padding: 0 !important; }
  html body.zp-catalog-page .zp-configure {
    justify-content: center !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
  }
  html body.zp-catalog-page .zp-configure span { display: none !important; }

  /* ---------- Configuratore ---------- */
  html body.zp-catalog-page #fullConfig .config-layout { padding-bottom: 92px !important; }
  html body.zp-catalog-page .tech-side { padding: 14px 14px 8px !important; }
  html body.zp-catalog-page .tech-side h1 { margin-bottom: 10px !important; padding-right: 50px !important; font-size: 30px !important; line-height: 1.05 !important; }
  html body.zp-catalog-page .gallery-container { min-height: 0 !important; }
  html body.zp-catalog-page .config-side { padding: 16px 14px 20px !important; }
  html body.zp-catalog-page .config-side h2 { margin-bottom: 12px !important; font-size: 24px !important; }
  html body.zp-catalog-page #quickPriceBox {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    text-align: left !important;
  }
  html body.zp-catalog-page #quickPriceBox > div:last-child { display: none !important; }
  html body.zp-catalog-page #uiPriceLabel { margin: 0 !important; font-size: 12px !important; }
  html body.zp-catalog-page #uiQuickPrice { font-size: 24px !important; white-space: nowrap; }
  html body.zp-catalog-page #inpQty, html body.zp-catalog-page #selColor, html body.zp-catalog-page #config-room { min-height: 48px !important; }
  html body.zp-catalog-page #catalogSort { min-height: 46px !important; }
  /* Riferimento della stanza: nome in chiaro e spiegazione sotto (in maiuscolo le due frasi si leggevano come una sola). */
  html body.zp-catalog-page #fullConfig .zz-room { gap: 3px !important; color: var(--zpm-ivory) !important; font: 600 15px/1.35 var(--zpm-sans) !important; letter-spacing: 0 !important; text-transform: none !important; }
  html body.zp-catalog-page #fullConfig .zz-room span { display: block; color: var(--zpm-muted) !important; font: 400 13px/1.4 var(--zpm-sans) !important; letter-spacing: 0 !important; text-transform: none !important; }
  html body.zp-catalog-page #fullConfig .zz-room input { margin-top: 5px; }

  html body .zpm-cfg-bar, html body .zpm-pay-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5100;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--zpm-line);
    background: rgba(10, 10, 8, .95);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: saturate(1.2) blur(16px);
    backdrop-filter: saturate(1.2) blur(16px);
    font-family: var(--zpm-sans);
  }
  html body.zpm-config-open .zpm-cfg-bar { display: flex !important; }
  html body .zpm-pay-bar { display: flex !important; z-index: 940; transform: translateY(110%); transition: transform .32s var(--zpm-ease); }
  html body .zpm-pay-bar.zpm-show { transform: none; }
  .zpm-bar-price { display: grid; flex: 1; min-width: 0; }
  .zpm-bar-label {
    overflow: hidden;
    color: var(--zpm-muted);
    font: 600 12px/1.3 var(--zpm-sans);
    letter-spacing: .1em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .zpm-bar-value {
    overflow: hidden;
    color: var(--zpm-gold-hi);
    font: 500 23px/1.15 var(--zpm-display);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .zpm-bar-btn {
    flex: none;
    min-height: 50px;
    max-width: 58%;
    padding: 0 18px;
    border: 0;
    border-radius: 2px;
    background: linear-gradient(120deg, #f0dda9, #c7a765);
    box-shadow: 0 10px 26px rgba(199, 167, 101, .22);
    color: #14130f;
    font: 700 13px/1.15 var(--zpm-sans);
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .zpm-bar-btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
  .zpm-bar-btn:active:not(:disabled) { filter: brightness(.94); }
  html body.zpm-config-open #zz-toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; }

  /* ---------- Carrello laterale: a tutto schermo, leggibile ---------- */
  html body .zp-cart-panel {
    width: 100vw !important;
    max-width: none !important;
    height: 100% !important;
    border-left: 0 !important;
    font-family: var(--zpm-sans) !important;
  }
  html body .zp-cart-panel > header { padding: 12px 10px 12px 18px !important; border-bottom: 1px solid var(--zpm-line-soft) !important; }
  html body .zp-cart-panel > header h3 { font: 500 24px/1.1 var(--zpm-display) !important; color: var(--zpm-ivory) !important; }
  html body .zp-cart-panel > header .zp-muted { margin-top: 2px; font-size: 13px !important; color: var(--zpm-muted) !important; }
  html body .zp-cart-panel .zp-cart-close {
    width: 44px !important;
    height: 44px !important;
    border-color: var(--zpm-line) !important;
    color: var(--zpm-ivory) !important;
    font-size: 22px !important;
  }
  html body .zp-cart-panel .zp-cart-body { padding: 14px !important; }
  html body .zp-cart-panel .zp-item {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    padding: 14px !important;
    border-radius: 0 !important;
  }
  html body .zp-cart-panel .zp-item > * { grid-column: 1 / -1; }
  html body .zp-cart-panel .zp-item .zp-thumb {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 78px;
    height: 78px;
    padding: 6px;
    object-fit: contain;
    background: radial-gradient(circle at 50% 42%, #fff, #e6e0d3);
  }
  html body .zp-cart-panel .zp-item .zp-thumb ~ * { grid-column: 2; }
  html body .zp-cart-panel .zp-item .zp-line-total { color: var(--zpm-gold-hi) !important; font: 500 20px/1.1 var(--zpm-display) !important; }
  html body .zp-cart-panel .zp-item .zp-name { font: 500 19px/1.2 var(--zpm-display) !important; color: var(--zpm-ivory) !important; }
  html body .zp-cart-panel .zp-item .zp-sub { margin-top: 6px !important; font-size: 14px !important; line-height: 1.5 !important; }
  html body .zp-cart-panel .zp-btn { min-height: 40px !important; padding: 0 14px !important; font-size: 14px !important; }
  html body .zp-cart-panel .zp-cart-footer { padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important; }
  html body .zp-cart-panel .zp-total span { font-size: 14px !important; }
  html body .zp-cart-panel .zp-total strong { font: 500 24px/1.1 var(--zpm-display) !important; color: var(--zpm-gold-hi) !important; }
  html body .zp-cart-panel .zp-primary,
  html body .zp-cart-panel .zp-secondary {
    min-height: 52px !important;
    border-radius: 2px !important;
    font: 700 14px/1 var(--zpm-sans) !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
  }

  /* ---------- Checkout ---------- */
  html body.zp-checkout-page #watermark { display: none !important; }
  html body.zp-checkout-page.zp-branded .checkout-header .header-inner {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    grid-template-areas: "indietro logo ." "passi passi passi" !important;
    align-items: center !important;
    gap: 0 !important;
    height: auto !important;
    min-height: var(--zpm-bar) !important;
    padding: 7px 8px 0 !important;
  }
  html body.zp-checkout-page .checkout-header .header-inner > .logo {
    grid-area: logo !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    height: 44px !important;
    margin: 0 !important;
  }
  html body.zp-checkout-page .checkout-header .header-inner > .logo::before { content: none !important; display: none !important; }
  html body.zp-checkout-page .checkout-header .header-inner > .logo .zp-brand-image { width: auto !important; height: 46px !important; max-width: 150px !important; }
  html body.zp-checkout-page .checkout-header .back-link {
    grid-area: indietro !important;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
  }
  html body.zp-checkout-page .checkout-header .back-link::before {
    content: "←" !important;
    color: var(--zpm-ivory) !important;
    font: 400 24px/1 var(--zpm-sans) !important;
    letter-spacing: 0 !important;
  }
  /* Passi del checkout in una riga sottile: Carrello · Dati · Conferma. */
  html body.zp-checkout-page .checkout-steps {
    grid-area: passi !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 4px 0 9px !important;
  }
  html body.zp-checkout-page .checkout-steps .step { display: flex !important; align-items: center !important; gap: 6px !important; font-size: 12px !important; }
  html body.zp-checkout-page .checkout-steps .step-num { width: 22px !important; height: 22px !important; min-width: 22px !important; font-size: 12px !important; line-height: 22px !important; }
  html body.zp-checkout-page .checkout-steps .step-line { display: block !important; flex: 0 0 22px !important; width: 22px !important; }

  html body.zp-checkout-page .checkout-intro { padding: 20px 16px 2px !important; }
  html body.zp-checkout-page .checkout-intro h1 { margin: 6px 0 8px !important; font-size: clamp(28px, 8.4vw, 33px) !important; line-height: 1.05 !important; }
  html body.zp-checkout-page .checkout-intro p { font-size: 14px !important; line-height: 1.5 !important; }
  html body.zp-checkout-page .checkout-container { gap: 14px !important; padding: 14px 12px 104px !important; }
  html body.zp-checkout-page .card { margin-bottom: 0 !important; padding: 18px 16px !important; }
  html body.zp-checkout-page .card-title { margin-bottom: 14px !important; padding-bottom: 12px !important; font-size: 22px !important; }
  html body.zp-checkout-page .form-row { gap: 0 12px !important; margin-bottom: 0 !important; }
  html body.zp-checkout-page .form-group { margin-bottom: 14px !important; }
  html body.zp-checkout-page .form-label { margin-bottom: 6px !important; font-size: 12px !important; }
  html body.zp-checkout-page .form-input { min-height: 48px !important; }
  /* Città e CAP, provincia e paese: due per riga, come su ogni modulo d'indirizzo. */
  html body.zp-checkout-page .form-row:has(#cap) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) !important; }
  html body.zp-checkout-page .form-row:has(#prov) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  html body.zp-checkout-page .summary-card { padding: 20px 16px !important; }
  html body.zp-checkout-page.zpm-has-bar .checkout-footer { padding-bottom: 96px !important; }
  /* Il codice sconto a 16 px come gli altri campi (sotto, iPhone ingrandisce la pagina). */
  html body.zp-checkout-page #codiceInput { font-size: 16px !important; }

  /* ---------- Mentre si scrive (13/11/2026, Angelo: «quando si apre la tastiera toglie troppa visuale») ----------
     js/chat-viewport.js mette «zp-scrive» su <html> finché il cliente scrive in un campo e porta il campo in alto con la
     sua etichetta. Qui si toglie di mezzo ciò che è fisso: con la tastiera aperta resta mezzo schermo, ed è del campo.
     La testata resta se il campo è dentro di lei (la ricerca della home). */
  html body.zp-home-page.zp-branded header.header,
  html body.zp-catalog-page.zp-branded .premium-header,
  html body.zp-checkout-page.zp-branded header.checkout-header,
  html body.customer-page header.customer-header { transition: transform .22s var(--zpm-ease); }
  html.zp-scrive body.zp-home-page.zp-branded header.header:not(:focus-within),
  html.zp-scrive body.zp-catalog-page.zp-branded .premium-header:not(:focus-within),
  html.zp-scrive body.zp-checkout-page.zp-branded header.checkout-header:not(:focus-within),
  html.zp-scrive body.customer-page header.customer-header:not(:focus-within) { transform: translateY(-110%) !important; pointer-events: none !important; }
  html.zp-scrive body .zpm-cfg-bar, html.zp-scrive body .zpm-pay-bar { display: none !important; }
  /* Simy chiusa e il riquadro dei cookie tornano quando la tastiera si chiude. */
  html.zp-scrive body #simy-container:not(.is-chat-open) #simy-robot,
  html.zp-scrive body #simy-container:not(.is-chat-open) #simy-callout { opacity: 0 !important; pointer-events: none !important; }
  html.zp-scrive body #zpc-banner { display: none !important; }
  /* Spazio sotto, così anche l'ultimo campo della pagina può salire in cima. */
  html.zp-scrive body { padding-bottom: 46vh !important; }
  html.zp-scrive body.zp-catalog-page #fullConfig .config-layout { padding-bottom: 52vh !important; }
  html.zp-scrive { scroll-padding-top: 14px; }

  /* ---------- Pagine dei clienti (istruzioni, offerte, recensioni, informazioni, 404) ---------- */
  html body.customer-page .customer-main { padding: 22px 16px 44px !important; }
  html body.customer-page .customer-hero { margin-bottom: 22px !important; }
  html body.customer-page .customer-kicker { font-size: 12px !important; }
  html body.customer-page .customer-hero h1 { margin: 8px 0 12px !important; font: 500 clamp(30px, 8.8vw, 36px)/1.06 var(--zpm-display) !important; letter-spacing: -.02em; }
  html body.customer-page .customer-hero p { font-size: 15px !important; line-height: 1.55 !important; }
  html body.customer-page .customer-filters { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; padding: 14px !important; border-radius: 0 !important; }
  html body.customer-page .customer-filters label { min-width: 0 !important; }
  html body.customer-page .customer-filters input, html body.customer-page .customer-filters select { width: 100% !important; }
  html body.customer-page .customer-filters input,
  html body.customer-page .customer-filters select { min-height: 48px !important; }
  html body.customer-page .customer-grid { gap: 12px !important; }
  /* Istruzioni: righe compatte con la foto a sinistra invece di schede alte mezzo schermo. */
  html body.customer-page .customer-card { display: grid !important; grid-template-columns: 92px minmax(0, 1fr) !important; border-radius: 0 !important; }
  html body.customer-page .customer-card > img { width: 92px !important; height: 100% !important; min-height: 116px !important; padding: 8px !important; }
  html body.customer-page .customer-card-content { padding: 14px 14px 12px !important; }
  html body.customer-page .customer-card h2 { margin: 4px 0 10px !important; font: 500 19px/1.2 var(--zpm-display) !important; }
  html body.customer-page .customer-docs { gap: 8px !important; }
  html body.customer-page .customer-docs .customer-action { padding: 10px 12px !important; font-size: 14px !important; line-height: 1.3 !important; }
  html body.customer-page .customer-docs p, html body.customer-page .customer-unavailable { font-size: 13px !important; }
  html body.customer-page .customer-model-link { display: inline-flex; align-items: center; min-height: 40px; padding-top: 6px !important; font-size: 14px; }
  html body.customer-page .customer-info section,
  html body.customer-page .customer-review-form { margin: 14px 0 !important; padding: 20px 18px !important; border-radius: 0 !important; }
  html body.customer-page .customer-info h2 { font: 500 26px/1.15 var(--zpm-display) !important; }
  html body.customer-page .customer-review-form h2 { font: 500 26px/1.15 var(--zpm-display) !important; }
  html body.customer-page .customer-footer { padding: 26px 16px !important; }
  html body.customer-page .customer-footer nav { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 12px !important; }
  html body.customer-page .customer-footer nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; }
}

/* Telefoni stretti: «Configura su misura» resta su una riga. */
@media (max-width: 380px) {
  html body.zp-catalog-page .zp-configure { padding: 0 4px !important; font-size: 12px !important; letter-spacing: 0 !important; }
}

/* Telefoni stretti (fino a 360 px): un po' d'aria in più nel catalogo e nelle barre. */
@media (max-width: 360px) {
  html body.zp-catalog-page #productGrid { gap: 8px !important; }
  html body.zp-catalog-page .zp-product-body { padding: 10px !important; }
  html body.zp-catalog-page .zp-product h2 { font-size: 16px !important; }
  .zpm-bar-btn { padding: 0 12px; font-size: 12px; }
  .zpm-bar-value { font-size: 20px; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .zpm-menu-panel, .zpm-menu::before, .zpm-pay-bar,
  html body #hp-trustbar-container.zpm-ticker > *, html body .zp-trustbar-inner.zpm-ticker > * { transition: none !important; }
}
