/* Pagina Zanzariere su misura (catalogo Palagina). Stili spostati dalla vecchia pagina, invariati. */


/* ============================================
   ZANZARIERE - TEMA PREMIUM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-light: #1a1a1a;
    --gold: #c9a962;
    --gold-light: #e2c992;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --text-muted: #666666;
    --border: #2a2a2a;
}

/* Features Box */
.features-box {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1) 0%, rgba(201, 169, 98, 0.05) 100%);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.features-title {
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.4);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.feature-tag.highlight {
    background: var(--gold);
    color: #0a0a0a;
    border-color: var(--gold);
}

/* Specs Box */
.specs-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 13px;
    color: var(--text-white);
    font-weight: 500;
}

/* Punti di Forza Box */
.strengths-box {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(46, 125, 50, 0.05) 100%);
    border: 1px solid rgba(46, 125, 50, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.strengths-title {
    color: #66bb6a;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.strengths-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strengths-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

.strengths-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #66bb6a;
    font-weight: bold;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.5;
}

/* Header Premium */
.premium-header {
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--gold);
}

.header-nav {
    display: flex;
    gap: 30px;
}

.header-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--gold);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-cart {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cart:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.cart-count {
    background: var(--gold);
    color: var(--bg-dark);
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    padding: 0 6px;
}

.btn-cart:hover .cart-count {
    background: var(--bg-dark);
    color: var(--gold);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    padding: 60px 30px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 2px;
    color: var(--text-white);
}

.hero-section h1 span {
    color: var(--gold);
}

.hero-section p {
    color: var(--text-gray);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Filtri */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.zp-topcats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    background: transparent;
    padding: 0;
    border: none;
}

.zp-topcat {
    padding: 12px 25px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.zp-topcat:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.zp-topcat.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-dark);
}

/* Grid Prodotti */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Card Premium */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    height: auto;
    perspective: none;
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--bg-dark);
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    border: none;
    border-radius: 0;
}

/* Modelli senza prezzo - stile diverso */
.card.no-price {
    opacity: 0.85;
}

/* ============================================
   CONFIGURATORE PREMIUM
   ============================================ */
#fullConfig {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    overflow: auto;
    background: rgba(15,15,15,0.95);
}

#fullConfig.open {
    display: block;
}

.config-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

.close-btn {
    position: fixed;
    top: 25px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-white);
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Tech Side */
.tech-side {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 35px;
}

.tech-side h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--text-white);
    margin: 0 0 10px;
    font-weight: 500;
}

.tech-side > p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Config Side - REDESIGNED */
.config-side {
    background: #181818;
    border: 1px solid rgba(201,169,98,0.3);
    border-left: 3px solid var(--gold);
    padding: 30px;
    position: sticky;
    top: 30px;
    border-radius: 4px;
}

.config-side h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--gold);
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(201,169,98,0.2);
    font-weight: 500;
}

.config-side label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #e0e0e0;
    margin: 16px 0 6px;
    letter-spacing: 0.5px;
}

.config-side input,
.config-side select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #3a3a3a;
    background: #232323;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: border-color 0.3s;
    border-radius: 6px;
}

.config-side select {
    color-scheme: dark;
}

.config-side input:focus,
.config-side select:focus {
    border-color: var(--gold);
    outline: none;
    background: #282828;
    box-shadow: 0 0 0 3px rgba(201,169,98,0.15);
}

.config-side input::placeholder {
    color: #666;
    font-weight: 400;
}

.config-side select option {
    background: #1a1a1a;
    color: var(--text-white);
}

.config-side select optgroup {
    background: #11110f;
    color: #d8bd83;
    font-weight: 700;
}

.tierbox {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.tieropt {
    flex: 1;
    padding: 12px;
    border: 2px solid #3a3a3a;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    background: #232323;
    color: #999;
    letter-spacing: 0.5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tieropt.active {
    border-color: var(--gold);
    background: rgba(201, 169, 98, 0.12);
    color: var(--gold);
}

.tieropt .dot {
    display: none;
}

/* Panel Prezzi - REDESIGNED prominent */
.panel {
    background: linear-gradient(135deg, rgba(201,169,98,0.08), rgba(201,169,98,0.03));
    border: 2px solid rgba(201,169,98,0.35);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.panel .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(201,169,98,0.12);
}

.panel .row:last-of-type {
    border-bottom: none;
    padding: 14px 0 0;
    margin-top: 4px;
    border-top: 2px solid rgba(201,169,98,0.25);
}

.panel .k {
    color: #bbb;
    font-size: 13px;
    font-weight: 500;
}

.panel .v {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

.panel .v.accent {
    color: var(--gold);
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(201,169,98,0.3);
}

.hint {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
    line-height: 1.5;
    text-align: center;
}

/* Pulsante Aggiungi - REDESIGNED */
.btn {
    width: 100%;
    padding: 18px;
    margin-top: 16px;
    background: linear-gradient(135deg, #c9a962, #b8960c);
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 100;
    pointer-events: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(201,169,98,0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #e2c992, #c9a962);
    box-shadow: 0 6px 25px rgba(201,169,98,0.4);
    transform: translateY(-1px);
}

/* Hide old elements */
header { display: none !important; }
.title { display: none !important; }
.page-title { display: none !important; }

/* ============================================
   GALLERIA IMMAGINI CON ZOOM
   ============================================ */
.gallery-container {
    position: relative;
    margin-top: 20px;
}

.gallery-image-area {
    position: relative;
}

.main-image-wrap {
    position: relative;
    background: #0f0f0f;
    border: 1px solid var(--border);
    cursor: crosshair;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-wrap img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    display: block;
}

.zoom-lens {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(201, 169, 98, 0.2);
    border: 2px solid var(--gold);
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    transition: opacity 0.2s;
}

.main-image-wrap:hover .zoom-lens {
    opacity: 1;
}

.zoom-result {
    position: absolute;
    top: 0;
    left: calc(100% + 20px);
    width: 350px;
    height: 400px;
    background: #0f0f0f;
    border: 1px solid var(--border);
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: opacity 0.2s;
}

.gallery-container:hover .zoom-result {
    opacity: 1;
    visibility: visible;
}

/* Gallery Navigation Arrows */
.gallery-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    color: var(--gold);
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.gallery-nav-arrow:hover {
    background: rgba(201, 169, 98, 0.2);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-arrow.prev {
    left: 15px;
}

.gallery-nav-arrow.next {
    right: 15px;
}

.gallery-nav-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.gallery-nav-arrow:disabled:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--border);
    transform: translateY(-50%);
}

/* Gallery Dots Indicator */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-dot:hover {
    background: var(--text-gray);
}

.gallery-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}

.gallery-dot {
    position: relative;
}

/* Image counter badge */
.gallery-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.82);
    color: var(--gold);
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 15px;
    border: 1px solid var(--border);
    z-index: 15;
    font-weight: 500;
}

/* Hide old thumbnails - kept for compatibility */
.gallery-thumbs {
    display: none;
}

/* Responsive gallery */
@media (max-width: 1200px) {
    .zoom-result {
        display: none;
    }
}

@media (max-width: 1000px) {
    .main-image-wrap {
        min-height: 300px;
    }

    .main-image-wrap img {
        max-height: 300px;
    }

    /* Gallery arrows responsive */
    .gallery-nav-arrow {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .gallery-nav-arrow.prev {
        left: 10px;
    }

    .gallery-nav-arrow.next {
        right: 10px;
    }

    .gallery-counter {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 11px;
    }

    .gallery-dots {
        gap: 8px;
    }

    .gallery-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 600px) {
    .gallery-nav-arrow {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .gallery-nav-arrow.prev {
        left: 8px;
    }

    .gallery-nav-arrow.next {
        right: 8px;
    }

    .gallery-dot {
        width: 8px;
        height: 8px;
    }
}

/* Footer Premium */
.premium-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 30px;
    text-align: center;
    margin-top: 60px;
}

.premium-footer .logo-text {
    font-size: 22px;
    margin-bottom: 15px;
    display: block;
}

.premium-footer p {
    color: var(--text-muted);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1000px) {
    .config-layout {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .config-side {
        position: relative;
        top: 0;
    }

    .header-nav {
        display: none;
    }
}

@media (max-width: 700px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .config-side {
        padding: 20px;
    }

    /* Stack misure grid on very small screens */
    .config-side > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }

    .config-side > div[style*="grid-template-columns: 100px"] {
        grid-template-columns: 80px 1fr !important;
    }
}

@media (max-width: 400px) {
    #quickPriceBox div[style*="font-size: 32px"] {
        font-size: 26px !important;
    }
}

    .header-left{display:flex; align-items:center; gap:12px;}


/* === Fine CSS inline === */


  .zp-cart-fab{
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 18px;
    border-radius: 999px;
    border: 2px solid #c9a962;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #c9a962;
    cursor:pointer;
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.3);
    background: rgba(0,0,0,0.92);
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    transition: all 0.3s;
  }
  .zp-cart-fab:hover{
    border-color: #d4af37;
    box-shadow: 0 12px 40px rgba(201, 169, 98, 0.5);
    transform: translateY(-2px);
  }
  .zp-cart-badge{
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size: 13px;
    font-weight: 700;
    background: #c9a962;
    border: none;
    color: #0d0d0d;
    padding: 0 8px;
  }
  .zp-cart-fab .zp-cart-title{ font-size: 14px; font-weight: 700; letter-spacing: .02em; color: #fff; }
  .zp-cart-fab .zp-cart-total{ font-size: 12px; color: rgba(255,255,255,.7); white-space: nowrap; }

  .zp-cart-panel{
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100vh;
    z-index: 10000;
    background: rgba(255,255,255,.88);
    border-left: 1px solid rgba(148,163,184,.25);
    box-shadow: -20px 0 60px rgba(0,0,0,.10);
    transform: translateX(110%);
    transition: transform .2s ease;
    display:flex;
    flex-direction:column;
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:#111;
  }
  .zp-cart-panel.open{ transform: translateX(0); }
  .zp-cart-panel header{
    position: sticky;
    top:0;
    z-index: 1;
    padding: 14px 14px 10px;
    background: linear-gradient(to bottom, rgba(255,255,255,.88), rgba(255,255,255,.88));
    border-bottom: 1px solid rgba(148,163,184,.18);
    background: rgba(0,0,0,0.95);
  }
  .zp-cart-panel .zp-row{
    display:flex; align-items:center; justify-content:space-between; gap:10px;
  }
  .zp-cart-panel h3{ margin:0; font-size: 16px; letter-spacing:.02em; }
  .zp-cart-panel .zp-muted{ color:#9ca3af; font-size: 12px; }
  .zp-cart-close{
    width: 28px; height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.35);
    background: transparent;
    color:#9ca3af;
    cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    font-size: 16px;
  }
  .zp-cart-close:hover{ border-color: rgba(56,189,248,.7); color:#111; }

  .zp-cart-body{
    padding: 12px 14px;
    overflow:auto;
    flex:1;
  }
  .zp-item{
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 14px;
    padding: 10px 10px;
    background: rgba(255,255,255,.88);
    margin-bottom: 10px;
  }
  .zp-item .zp-name{ font-weight: 700; font-size: 13px; }
  .zp-item .zp-sub{ color:#9ca3af; font-size: 12px; margin-top: 4px; }
  .zp-item .zp-actions{ margin-top: 8px; display:flex; justify-content:flex-end; }
  .zp-btn{
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.30);
    background: transparent;
    color:#111;
    font-size: 12px;
    padding: 6px 10px;
    cursor:pointer;
  }
  .zp-btn:hover{ border-color: rgba(56,189,248,.7); }
  .zp-btn-danger{ border-color: rgba(248,113,113,.55); color:#fecaca; }
  .zp-btn-danger:hover{ border-color: rgba(248,113,113,.9); }

  .zp-cart-footer{
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(148,163,184,.18);
    background: rgba(255,255,255,.88);
  }
  .zp-cart-footer .zp-total{
    display:flex; justify-content:space-between; align-items:center;
    margin-bottom: 10px;
    font-size: 13px;
  }
  .zp-cart-footer .zp-total strong{ font-size: 14px; }
  .zp-primary{
    width:100%;
    border-radius: 14px;
    border: 1px solid rgba(34,197,94,.7);
    background:#22c55e;color:#ffffff;
    font-weight: 800;
    padding: 10px 12px;
    cursor:pointer;
  }
  .zp-primary:hover{ background:#16a34a;}
  .zp-secondary{
    width:100%;
    margin-top: 8px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,.25);
    background:#f1f5f9;
    color:#111;
    padding: 9px 12px;
    cursor:pointer;
  }
  .zp-secondary:hover{ border-color: rgba(56,189,248,.65); }
  .zp-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.10);
    z-index: 9998;
    display:none;
  }
  .zp-overlay.show{ display:block; }
/* === ZP FIX: RIMOZIONE OVERLAY/BLUR + UI CHIARA === */
body.zanzariere-page{
  background: #f7f7f7 !important;
  color: #1a1a2e !important;
}
body.zanzariere-page header{
  background: rgba(0,0,0,0.9) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body.zanzariere-page header *{
  color: #ffffff !important;
  text-shadow: none !important;
}

/* cards e box: bianchi, testo scuro */
body.zanzariere-page .card,
body.zanzariere-page .modal-img-box,
body.zanzariere-page .form-group{
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}
body.zanzariere-page .card *,
body.zanzariere-page .modal *,
body.zanzariere-page label,
body.zanzariere-page .price,
body.zanzariere-page .total,
body.zanzariere-page #totalPrice,
body.zanzariere-page #modalModelPrice{
  color: #1a1a2e !important;
  text-shadow: none !important;
}

/* input chiari con testo scuro */
body.zanzariere-page input,
body.zanzariere-page select,
body.zanzariere-page textarea{
  background: #ffffff !important;
  color: #1a1a2e !important;
  border: 1px solid #e2e8f0 !important;
}

/* pulsanti: niente glow blu */
body.zanzariere-page button{
  text-shadow: none !important;
}
}
    .header-left{display:flex; align-items:center; gap:12px;}
/* === ZP CART CONTRAST OVERRIDE === */
.zp-cart-panel, .zp-cart-panel *{ color:#111 !important; }
.zp-cart-panel .zp-muted, .zp-item .zp-sub{ color:#475569 !important; }
.zp-cart-panel .zp-cart-close{ color:#334155 !important; }
.zp-cart-panel .zp-cart-close:hover{ color:#0f172a !important; }
.zp-cart-panel .zp-primary{ background:#22c55e !important; color:#fff !important; border-color:#22c55e !important; }
.zp-cart-panel .zp-primary:hover{ background:#16a34a !important; }
.zp-cart-panel .zp-secondary{ background:#f1f5f9 !important; color:#0f172a !important; border-color:rgba(148,163,184,.55) !important; }
.zp-cart-panel .zp-btn{ color:#0f172a !important; }


/* --- Aggiunte per il configuratore Palagina --- */
body.zp-catalog-page .tierbox { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.zz-card-variants { margin: -4px 0 12px; font-size: 12px; letter-spacing: .04em; color: #c9b98e; }
#config-variant, #config-lato { margin: 0 0 18px; }
#config-variant h3, #config-lato h3 { margin: 0 0 6px; font-size: 15px; color: #e9dcb8; }
.zz-variants, .zz-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.zz-variants button, .zz-sides button { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid rgba(201,169,98,.35); border-radius: 10px; background: rgba(255,255,255,.03); color: #eee; font: inherit; text-align: left; cursor: pointer; }
.zz-variants button small, .zz-sides button small { color: #a9a48f; font-size: 12px; }
.zz-variants button[aria-pressed="true"], .zz-sides button[aria-pressed="true"] { border-color: #d6bd80; background: rgba(214,189,128,.16); box-shadow: inset 0 0 0 1px #d6bd80; }
.zz-variants button:focus-visible, .zz-sides button:focus-visible { outline: 3px solid #dbc991; outline-offset: 2px; }
#zz-lato-help { margin: 0 0 10px; font-size: 13px; color: #bdb8a6; }
.sg-room, .zz-room { display: grid; gap: 6px; margin: 14px 0; font-size: 13px; color: #cfc9b5; }
.zz-room span { color: #8f8a78; font-size: 12px; }
.zz-room input { padding: 12px; border-radius: 8px; border: 1px solid rgba(201,169,98,.3); background: rgba(255,255,255,.04); color: #fff; font: inherit; }
#inpW.zz-invalid, #inpH.zz-invalid { border-color: #ef4444 !important; box-shadow: 0 0 0 2px rgba(239,68,68,.25) !important; }
.zz-doc { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border: 1px solid rgba(201,169,98,.35); border-radius: 8px; color: #e7d7a8; text-decoration: none; font-size: 13px; }
.zz-doc:hover { background: rgba(201,169,98,.12); }
/* Fabbricante e avvertenze di sicurezza nel configuratore (js/zp-fabbricante.js) */
.zz-sicurezza { margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(201,169,98,.2); border-radius: 8px; background: rgba(201,169,98,.06); font-size: 13px; line-height: 1.5; color: #d0d2c6; }
.zz-sicurezza summary { cursor: pointer; font-weight: 600; color: #dfc991; }
/* Il colore va scritto: zp-home-theme.css colora ogni paragrafo di quasi nero. */
.zz-sicurezza p { margin: 8px 0 0; color: #d0d2c6; }
.zz-sicurezza strong { color: #e7d7a8; }
.zz-sicurezza h4 { margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: #dfc991; }
.zz-sicurezza ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.zz-sicurezza .zp-modello-nota { font-size: 12px; color: #aab19e; }
.zz-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 9000; max-width: min(92vw, 520px); padding: 14px 18px; border-radius: 12px; background: #1b1f16; color: #f1ead3; border: 1px solid rgba(214,189,128,.45); box-shadow: 0 12px 40px rgba(0,0,0,.45); transition: opacity .25s, transform .25s; pointer-events: none; font-size: 14px; }
.zz-toast.show { opacity: 1; transform: translate(-50%, 0); }
.zz-toast.error { border-color: #ef4444; }
.gallery-dots .gallery-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; margin: 0 4px; background: rgba(255,255,255,.3); cursor: pointer; }
.gallery-dots .gallery-dot.active { background: #d6bd80; }
#btnAdd[data-mode="preventivo"] { background: transparent !important; color: #e7d7a8 !important; border: 1px solid #d6bd80 !important; }

/* zp-home-theme.css colora di scuro tutti gli span: nel configuratore (fondo scuro) quelli senza classe
   prendono il colore del testo intorno (tempi di consegna, frecce dei documenti). */
#fullConfig span:not([class]){color:inherit}

/* Schede: misura massima sotto la descrizione breve. Configuratore: versione o modelli che reggono una misura che la
   versione scelta non regge, subito sotto le misure (31/10/2026, Angelo: «non consiglia il modello»). */
.zp-product-size { margin: -10px 0 14px; font: 600 11px/1.3 system-ui, sans-serif; letter-spacing: .04em; color: #c9b98e; }
/* Il riquadro sta nella sezione chiara delle misure (configurator-focus.css): testo scuro, pulsanti pieni scuri. */
#fullConfig #config-measurements .zz-alternative { margin: 14px 0 2px; padding: 12px 14px; border: 1px solid #b59a5a; border-radius: 10px; background: rgba(255,253,247,.62); color: #24271f; font: 13px/1.45 Inter, Arial, sans-serif; }
#fullConfig #config-measurements .zz-alternative[hidden] { display: none !important; }
#fullConfig #config-measurements .zz-alternative p { margin: 0 0 6px; color: #24271f !important; font: 13px/1.45 Inter, Arial, sans-serif; }
#fullConfig #config-measurements .zz-alternative strong { color: #1b1e16; font-weight: 700; }
#fullConfig #config-measurements .zz-alt-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; min-height: 44px; margin: 8px 0 0; padding: 10px 12px; border: 1px solid #25271f; border-radius: 8px; background: #2c3125; color: #f8f1df; font: 650 13px/1.3 Inter, Arial, sans-serif; text-align: left; letter-spacing: 0; text-transform: none; cursor: pointer; box-shadow: none; }
#fullConfig #config-measurements .zz-alt-btn strong { color: #f8f1df; font-weight: 650; }
#fullConfig #config-measurements .zz-alt-btn small { font-weight: 400; font-size: 12px; line-height: 1.4; color: #ddd5bf; }
#fullConfig #config-measurements .zz-alt-btn:hover, #fullConfig #config-measurements .zz-alt-btn:focus-visible { background: #3b4c32; border-color: #3b4c32; outline: 2px solid #3b4c32; outline-offset: 2px; }
