:root {
    --qb-green: #03fcb6;
    --qb-green-dark: #00bf8a;
    --qb-green-text: #009169;
    --qb-green-bg: #effcf7;
    --qb-dark: #1e1e1e;
    --qb-border: #e6e6e6;
    --qb-error: #e74c3c;
    --qb-error-bg: #fdf4f4;
}

html, body {
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #ffffff;
    font-family: "Quicksand", Arial, sans-serif;
    color: #444;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.qb-header-nav {
    flex-shrink: 0;
    width: 100%;
    background: #181818;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}
.qb-header-logo img {
    height: 38px;
    width: auto;
    display: block;
}
.qb-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #aaa;
}
.qb-header-info a {
    color: var(--qb-green);
    font-weight: 600;
}

/* Hero - Full-Page Immersive Background Stage */
.qb-hero-showcase {
    position: relative;
    background: radial-gradient(circle at 65% 45%, rgba(14,14,14,0.45) 0%, rgba(16,16,16,0.85) 75%), url('/images/SacchettoVellutato/sacchetto_vellutato_1.png') center center / cover no-repeat;
    color: #ffffff;
    min-height: 85vh;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 24px 90px 24px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}
.qb-hero-tag {
    display: inline-block;
    color: var(--qb-green);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 700;
    margin-bottom: 18px;
}
.qb-hero-title {
    font-size: 52px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 auto 18px auto;
    max-width: 860px;
    line-height: 1.15;
}
.qb-hero-subtitle {
    font-size: 17.5px;
    color: #dcdcdc;
    max-width: 720px;
    margin: 0 auto 36px auto;
    line-height: 1.65;
    font-weight: 300;
}
.qb-btn-hero {
    display: inline-block;
    background: var(--qb-green-dark);
    color: #ffffff;
    padding: 16px 44px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 191, 138, 0.4);
    cursor: pointer;
    text-decoration: none;
}
.qb-btn-hero:hover {
    background: #00aa7a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0, 191, 138, 0.55);
    text-decoration: none;
}

/* Scroll Affordance */
.qb-hero-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.65);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.qb-hero-scroll-hint:hover {
    color: var(--qb-green);
    text-decoration: none;
}
.qb-hero-scroll-hint i {
    font-size: 13px;
    animation: qbBounce 2.2s infinite ease-in-out;
}
@keyframes qbBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(5px); }
    60% { transform: translateY(2px); }
}

/* Griglia Caratteristiche */
.qb-narrative-section {
    padding: 85px 35px 65px 35px;
    background: #fdfdfd;
    max-width: 1240px;
    margin: 0 auto;
}
.qb-section-header {
    text-align: center;
    margin-bottom: 50px;
}
.qb-section-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--qb-dark);
    margin-bottom: 12px;
}
.qb-section-header p {
    font-size: 15.5px;
    color: #666;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}
.qb-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 40px;
}
@media screen and (max-width: 992px) {
    .qb-bento-grid {
        grid-template-columns: 1fr;
    }
}
.qb-bento-card {
    background: #fff;
    border: 1px solid var(--qb-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.qb-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.qb-bento-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    display: block;
}
.qb-bento-img.is-feature-1 {
    object-position: center center;
}
.qb-bento-img.is-feature-2 {
    object-position: center bottom;
}
.qb-bento-img.is-feature-3 {
    object-position: center top;
}
.qb-bento-body {
    padding: 26px;
}
.qb-bento-body h3 {
    font-size: 18.5px;
    font-weight: 700;
    color: var(--qb-dark);
    margin: 0 0 10px 0;
}
.qb-bento-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* Configuratore */
.qb-config-section {
    padding: 70px 35px 100px 35px;
    background: #f7f7f7;
    border-top: 1px solid var(--qb-border);
}
.qb-config-card {
    background: #ffffff;
    border: 1px solid var(--qb-border);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    max-width: 1200px;
    margin: 0 auto;
}

/* Galleria Anteprima Prodotto */
.qb-gallery-preview-wrap {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--qb-border);
    margin-bottom: 12px;
    background: #fafafa;
}
.qb-gallery-main-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}
.qb-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.qb-gallery-thumb {
    width: 62px;
    height: 62px;
    border-radius: 6px;
    border: 2px solid var(--qb-border);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.2s ease;
}
.qb-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.qb-gallery-thumb:hover {
    opacity: 1;
    border-color: #aaa;
}
.qb-gallery-thumb.active {
    opacity: 1;
    border-color: var(--qb-green-dark);
    box-shadow: 0 0 0 1px var(--qb-green-dark);
}

/* Micro-Barra Specifiche Dimensionali */
.qb-specs-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    border: 1px solid var(--qb-border);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    text-align: center;
}
.qb-spec-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.qb-spec-label {
    font-size: 11px;
    color: #777;
    font-weight: 600;
    line-height: 1.2;
}
.qb-spec-val {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--qb-dark);
    margin-top: 3px;
}
.qb-spec-divider {
    width: 1px;
    height: 24px;
    background: #e2e2e2;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .qb-specs-strip {
        padding: 8px 10px;
    }
    .qb-spec-label {
        font-size: 10px;
    }
    .qb-spec-val {
        font-size: 12.5px;
    }
}

/* Selettore Pacchetti (5 e 10 pezzi) */
.qb-package-picker {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--qb-border);
}
.qb-packages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}
.qb-free-shipping-tag {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--qb-green-text);
    background: #eafaf4;
    border: 1px solid #c9ebd9;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.qb-packages-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qb-package-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 2px solid var(--qb-border);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
}
.qb-package-card:hover {
    border-color: #bbb;
}
.qb-package-card.active {
    border-color: var(--qb-green-dark);
    background: var(--qb-green-bg);
    box-shadow: 0 2px 10px rgba(3, 252, 182, 0.18);
}
.qb-package-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.qb-package-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.qb-package-card.active .qb-package-radio {
    border-color: var(--qb-green-dark);
}
.qb-radio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
}
.qb-package-card.active .qb-radio-dot {
    background: var(--qb-green-dark);
}
.qb-package-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--qb-dark);
    line-height: 1.2;
}
.qb-package-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--qb-dark);
    white-space: nowrap;
}

/* Upload File */
.qb-dropzone {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.qb-dropzone:hover, .qb-dropzone.dragover {
    border-color: var(--qb-green-dark);
    background: var(--qb-green-bg);
}
.qb-dropzone.is-invalid {
    border-color: var(--qb-error) !important;
    background: var(--qb-error-bg) !important;
}
.qb-dropzone i {
    font-size: 32px;
    color: var(--qb-green-dark);
    margin-bottom: 6px;
    display: inline-block;
}
.qb-dropzone.is-invalid i {
    color: var(--qb-error) !important;
}

.qb-file-preview-card {
    display: none;
    background: #fff;
    border: 1px solid #c9ebd9;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 10px;
    align-items: center;
    justify-content: space-between;
}

.qb-progress-wrap {
    display: none;
    margin-top: 8px;
    background: #e9ecef;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}
.qb-progress-bar {
    background: var(--qb-green-dark);
    height: 100%;
    width: 0%;
    transition: width 0.2s ease;
}

/* Form Spedizione */
.qb-guest-box {
    background: #fafafa;
    border: 1px solid var(--qb-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.qb-input-wrap {
    margin-bottom: 14px;
    position: relative;
}
.qb-guest-box .form-control {
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 13.5px;
    height: 42px;
    margin-bottom: 0;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.2s ease;
}
.qb-guest-box .form-control:focus {
    border-color: var(--qb-green-dark);
    box-shadow: 0 0 0 2px rgba(3, 252, 182, 0.25);
}
.qb-guest-box .form-control.is-invalid {
    border-color: var(--qb-error) !important;
    background-color: var(--qb-error-bg) !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15) !important;
}
.qb-error-msg {
    display: none;
    color: var(--qb-error);
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 4px;
    padding-left: 2px;
}

/* Metodi di Pagamento */
.qb-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}
.qb-payment-opt {
    border: 2px solid var(--qb-border);
    border-radius: 6px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}
.qb-payment-opt.active {
    border-color: var(--qb-green-dark);
    background: var(--qb-green-bg);
    box-shadow: 0 2px 10px rgba(3, 252, 182, 0.2);
}
.qb-payment-opt img {
    max-height: 26px;
    display: block;
    margin: 0 auto 6px auto;
}
.qb-payment-opt span {
    font-size: 12px;
    font-weight: 600;
    color: #444;
}

/* Totale e Azione */
.qb-total-strip {
    background: #fafafa;
    color: var(--qb-dark);
    border: 1px solid var(--qb-border);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.qb-btn-cta {
    width: 100%;
    background: var(--qb-green-dark);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 191, 138, 0.3);
}
.qb-btn-cta:hover {
    background: #00aa7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 191, 138, 0.45);
}

/* Schede di Stato SPA */
.qb-state-card {
    background: #ffffff;
    border: 1px solid #d4ede1;
    border-radius: 12px;
    padding: 35px 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 191, 138, 0.08);
    animation: qbFadeUp 0.35s ease;
    margin-bottom: 25px;
}
.qb-state-card.is-error {
    border-color: #f5c6cb;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.08);
}
@keyframes qbFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.qb-state-icon-wrap {
    width: 68px;
    height: 68px;
    background: #effcf7;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.qb-state-icon-wrap.is-pending {
    background: #eafaf4;
    animation: qbPulse 2s infinite ease-in-out;
}
.qb-state-icon-wrap.is-error {
    background: #fdf4f4;
}
.qb-state-icon-wrap i {
    font-size: 32px;
    color: var(--qb-green-dark);
}
.qb-state-icon-wrap.is-error i {
    color: var(--qb-error);
}
@keyframes qbPulse {
    0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(0, 191, 138, 0.4); }
    70% { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(0, 191, 138, 0); }
    100% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(0, 191, 138, 0); }
}
.qb-state-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px 0;
}
.qb-state-sub {
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
    line-height: 1.5;
}
.qb-badge-pending {
    display: inline-block;
    background: #fff8e6;
    border: 1px solid #f1d382;
    color: #b78103;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}
.qb-badge-success {
    display: inline-block;
    background: #effcf7;
    border: 1px solid #a3ebd3;
    color: #009169;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}
.qb-badge-error {
    display: inline-block;
    background: #fdf4f4;
    border: 1px solid #f5c6cb;
    color: var(--qb-error);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}
.qb-state-details-box {
    background: #fbfbfb;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px 20px;
    text-align: left;
    margin-bottom: 20px;
}
.qb-state-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px dashed #e8e8e8;
    font-size: 13.5px;
    gap: 16px;
}
.qb-state-row:last-child {
    border-bottom: none;
}
.qb-state-row .label {
    color: #777;
    font-weight: 500;
    flex-shrink: 0;
}
.qb-state-row .value {
    color: #222;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 65%;
}
.qb-state-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qb-btn-action-primary {
    background: var(--qb-green-dark);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}
.qb-btn-action-primary:hover {
    background: #00aa7a;
}
.qb-btn-action-secondary {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #444;
    font-weight: 700;
    font-size: 13.5px;
    padding: 11px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}
.qb-btn-action-secondary:hover {
    background: #e2e2e2;
    color: #111;
}
.qb-sim-tools {
    background: #f8faf9;
    border: 1px dashed #a3ebd3;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    text-align: center;
}
.qb-sim-tools-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    font-weight: 700;
    margin-bottom: 8px;
}
.qb-sim-btns {
    display: flex;
    gap: 8px;
}
.qb-sim-btn-ok {
    flex: 1;
    background: #00bf8a;
    color: #fff;
    border: none;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}
.qb-sim-btn-ko {
    flex: 1;
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.qb-main-content {
    flex: 1 0 auto;
    width: 100%;
}

/* Footer */
.qb-footer-clean {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #181818;
    color: #b0b0b0;
    padding: 38px 20px;
    text-align: center;
    font-size: 14.5px;
    line-height: 1.6;
    box-sizing: border-box;
}
.qb-footer-clean p {
    margin: 0 0 6px 0 !important;
    font-size: 14.5px;
}
.qb-footer-clean small {
    font-size: 14px;
    color: #b0b0b0;
}
.qb-footer-clean a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.2s ease;
}
.qb-footer-clean a:hover {
    color: var(--qb-green);
    text-decoration: underline;
}

/* Toast Custom Soft Notifications (Zero Browser Alerts) */
.qb-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    max-width: 400px;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transform: translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    opacity: 0;
}
.qb-toast.is-show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}
.qb-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.qb-toast.is-error {
    background: #fff5f5;
    color: #9b2c2c;
    border-color: #fed7d7;
}
.qb-toast.is-error .qb-toast-icon svg {
    stroke: #e53e3e;
}
.qb-toast.is-warning {
    background: #fffdf5;
    color: #975a16;
    border-color: #feebc8;
}
.qb-toast.is-warning .qb-toast-icon svg {
    stroke: #dd6b20;
}
.qb-toast.is-success {
    background: #f0fff4;
    color: #22543d;
    border-color: #c6f6d5;
}
.qb-toast.is-success .qb-toast-icon svg {
    stroke: #38a169;
}
@media (max-width: 480px) {
    .qb-toast {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: calc(100% - 30px);
        font-size: 13px;
        padding: 11px 15px;
    }
}

/* Disabilitazione controlli configuratore durante pagamento o esito */
.qb-disabled-box {
    opacity: 0.52 !important;
    pointer-events: none !important;
    user-select: none !important;
    cursor: not-allowed !important;
    transition: opacity 0.25s ease;
}

/* ==========================================================================
   Responsive & Mobile Craft Floor (iPhone 14 / Viewports <= 768px)
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* Header */
    .qb-header-nav {
        padding: 12px 18px;
    }
    .qb-header-logo img {
        height: 30px;
    }
    .qb-header-info {
        font-size: 11.5px;
        gap: 8px;
    }

    /* Hero Showcase */
    .qb-hero-showcase {
        padding: 50px 18px 65px 18px;
        min-height: auto;
        min-height: calc(100vh - 60px);
    }
    .qb-hero-tag {
        font-size: 11px;
        letter-spacing: 0.18em;
        margin-bottom: 12px;
    }
    .qb-hero-title {
        font-size: 34px;
        line-height: 1.18;
        margin-bottom: 14px;
        letter-spacing: 0.02em;
    }
    .qb-hero-subtitle {
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 28px;
    }
    .qb-btn-hero {
        padding: 14px 34px;
        font-size: 14.5px;
    }

    /* Narrative / Bento Section */
    .qb-narrative-section {
        padding: 50px 18px 40px 18px;
    }
    .qb-section-header {
        margin-bottom: 30px;
    }
    .qb-section-header h2 {
        font-size: 24px;
    }
    .qb-section-header p {
        font-size: 14px;
    }
    .qb-bento-img {
        height: 190px;
    }
    .qb-bento-body {
        padding: 18px;
    }
    .qb-bento-body h3 {
        font-size: 17px;
    }

    /* Configuratore (Eliminazione padding cumulativo 150px) */
    .qb-config-section {
        padding: 40px 12px 60px 12px;
    }
    .qb-config-card {
        padding: 18px 14px;
        border-radius: 8px;
    }

    /* Galleria & Anteprima */
    .qb-gallery-main-img {
        height: 250px;
    }
    .qb-gallery-thumbs {
        gap: 6px;
        margin-bottom: 18px;
    }
    .qb-gallery-thumb {
        width: 54px;
        height: 54px;
    }

    /* Pacchetti */
    .qb-package-card {
        padding: 12px 14px;
    }
    .qb-package-name {
        font-size: 14px;
    }
    .qb-package-price {
        font-size: 16px;
    }

    /* Form Dati di Spedizione & Fix Auto-Zoom iOS Safari */
    .qb-guest-box {
        padding: 14px 12px;
    }
    .qb-guest-box .form-control {
        font-size: 16px !important; /* Previene auto-zoom su iOS Safari */
        height: 44px;
    }
    .qb-guest-box .form-control::placeholder {
        font-size: 13.5px;
    }
    .qb-input-wrap {
        margin-bottom: 12px;
    }

    /* Totale & Pulsante Azione */
    .qb-total-strip {
        padding: 12px 14px;
    }
    #totalPrice {
        font-size: 22px !important;
    }
    .qb-btn-cta {
        padding: 15px;
        font-size: 15px;
    }

    /* Schede di Stato SPA */
    .qb-state-card {
        padding: 24px 14px;
    }
    .qb-state-title {
        font-size: 20px;
    }
    .qb-state-sub {
        font-size: 13.5px;
    }
    .qb-state-details-box {
        padding: 12px 14px;
    }
    .qb-state-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding: 8px 0;
    }
    .qb-state-row .label {
        font-size: 12px;
    }
    .qb-state-row .value {
        max-width: 100% !important;
        text-align: left !important;
        font-size: 13.5px;
    }
}

@media screen and (max-width: 480px) {
    .qb-header-nav {
        padding: 10px 14px;
    }
    .qb-header-logo img {
        height: 26px;
    }
    .qb-header-info {
        font-size: 11px;
    }
    .qb-hero-title {
        font-size: 28px;
    }
    .qb-hero-subtitle {
        font-size: 14px;
    }
    .qb-gallery-main-img {
        height: 210px;
    }
    .qb-payment-grid {
        gap: 8px;
    }
    .qb-payment-opt {
        padding: 10px 6px;
    }
    .qb-payment-opt span {
        font-size: 11px;
    }
}

/* Color Selector */
.qb-color-picker {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.qb-color-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.qb-color-btn:hover {
    border-color: #bbb;
}
.qb-color-btn.active {
    border-color: #1e1e1e;
    background: #f8f9fa;
    color: #000;
}
.qb-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.15);
}
.qb-color-dot.beige-champagne {
    background-color: #E8DCC4;
}
.qb-color-dot.verde-tiffany {
    background-color: #81D8D0;
}
