/* 1. Story Stack CSS (Mobile Stacked Content) */
.story-stacked { padding: 1rem 16px; margin-top: 1rem; }
.st-block { margin-bottom: 1.5rem; }
.st-block img, .st-block video { width: 100%; height: auto; border-radius: 8px; display: block; }
.st-block h2 { font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; color: var(--color-primary); margin-bottom: 0.7rem; line-height: 1; letter-spacing: -0.5px;}
.st-block p { font-size: 0.9rem; color: var(--color-text); line-height: 1.4; }

/* 2. Setup 1234 Section */
.setup-section { padding: 0 16px; margin-bottom: 1.5rem; }
.setup-section h2 { font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; color: var(--color-primary); margin-bottom: 1.5rem; margin-top: 1rem; line-height: 1.1; letter-spacing: -0.5px; }
.step-title { font-family: var(--font-heading); font-weight: 900; font-size: 1.1rem; color: var(--color-primary); text-transform: uppercase; margin-top: 1.2rem; margin-bottom: 0.5rem; }
.step-text p { font-size: 0.9rem; margin-bottom: 0; color: var(--color-text); line-height: 1.4; }

/* 3. Whats Included Free Box */
.whats-included { margin-bottom: 1.5rem; }
.whats-included h2 { font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; color: var(--color-primary); margin-bottom: 1rem; line-height: 1; letter-spacing: -0.5px; }
.whats-included .free-text { font-family: var(--font-heading); font-weight: 900; font-size: 1.1rem; color: var(--color-accent); margin-bottom: 1rem; }
.whats-included ol { font-size: 0.9rem; color: #444; margin-bottom: 2rem; list-style: none; padding: 0; }
.whats-included ol li { margin-bottom: 0.2rem; }
.whats-included img { width: 100%; height: auto; }

/* 4. Customer Reviews Layout */
.customer-reviews { padding-top: 2rem; }
.customer-reviews h2 { font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; color: var(--color-primary); margin-bottom: 1rem; line-height: 1; letter-spacing: -0.5px; text-transform: uppercase; }
.rs-overview { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 1rem;}
.rs-top-row { display: flex; align-items: center; gap: 8px; }
.rs-top-row .stars { font-size: 1.1rem; color: var(--color-accent); }
.rs-rating-text { font-family: var(--font-body); font-size: 0.95rem; font-weight: 800; color: var(--color-primary); }
.rs-based-on { font-size: 0.85rem; color: #555; display: flex; align-items: center; gap: 4px; }
.rs-based-on .check { color: #2bc181; font-weight: bold; font-size: 0.9rem; margin-left:2px; }

.rs-bars-box { margin-bottom: 1.5rem; max-width: 320px; margin-left: auto; margin-right: auto; }
.rs-bar-row { display: grid; grid-template-columns: 80px 1fr 20px; align-items: center; gap: 10px; margin-bottom: 6px; }
.rs-stars-col { text-align: right; color: var(--color-accent); font-size: 0.75rem; letter-spacing: 1px; }
.rs-empty-star { color: #f2c98d; }
.rs-bar { height: 10px; background: #eee; width: 100%; border-radius: 0; }
.rs-fill { height: 100%; background: var(--color-primary); border-radius: 0; }
.rs-count-col { font-size: 0.7rem; color: #555; }

.btn-write-review { background: var(--color-primary); color: white; padding: 14px; font-weight: 700; width: 100%; text-align: center; font-size: 1rem; margin-bottom: 1rem; border-radius: 0; display: block; }

.review-sort { padding: 12px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; font-size: 0.8rem; color: #555; display: flex; justify-content: space-between; margin-bottom: 1.5rem; align-items: center; }

.review-item { padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.review-item .stars { font-size: 0.85rem; margin-bottom: 8px; color: var(--color-accent); letter-spacing: 0.5px; }
.reviewer-info { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.reviewer-icon { width: 24px; height: 24px; border: 1px solid #ccc; background: transparent; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--color-primary); border-radius: 2px;}
.reviewer-name { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); }
.review-text { font-size: 0.9rem; color: var(--color-text); line-height: 1.4; margin-bottom: 10px; }
.rev-photo { width: 100px; height: 100px; object-fit: cover; border: 1px solid #eee; display: block; border-radius: 6px; cursor: pointer; transition: opacity 0.2s; }
.rev-photo:hover { opacity: 0.85; }

/* 4b. Compatibility Quiz */
.compatibility-quiz { padding-top: 0.5rem; padding-bottom: 1.5rem; scroll-margin-top: 96px; }
.quiz-shell { background: linear-gradient(180deg, #fff 0%, #fbf6ed 100%); border: 1px solid #eadfce; border-radius: 10px; box-shadow: 0 18px 34px -28px rgba(44, 48, 58, 0.45); padding: 1rem; }
.quiz-header { margin-bottom: 1rem; }
.quiz-kicker { color: var(--color-primary); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; margin-bottom: 0.25rem; text-transform: uppercase; }
.quiz-header h2 { color: var(--color-text); font-family: var(--font-heading); font-size: 1.55rem; line-height: 1.05; letter-spacing: 0; margin-bottom: 0.45rem; }
.quiz-header p { color: var(--color-text-light); font-size: 0.84rem; line-height: 1.35; }
.quiz-progress-meta { align-items: center; color: var(--color-text); display: flex; font-size: 0.74rem; font-weight: 800; justify-content: space-between; margin-bottom: 0.3rem; }
#quiz-saved-label { color: var(--color-primary); font-weight: 800; }
.quiz-progress { background: #e6e0d8; border-radius: 999px; height: 5px; margin-bottom: 1rem; overflow: hidden; }
.quiz-progress-fill { background: var(--color-primary); border-radius: inherit; height: 100%; transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1); width: 12.5%; }
.quiz-card { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; box-shadow: 0 10px 26px -24px rgba(44, 48, 58, 0.6); padding: 0.85rem; }
.quiz-card h3 { color: var(--color-text); font-family: var(--font-heading); font-size: 1.08rem; font-weight: 900; line-height: 1.1; margin-bottom: 0.75rem; }
.quiz-input-wrap { display: grid; gap: 0.35rem; }
.quiz-input-wrap label { color: var(--color-primary); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.quiz-input-wrap input { background: #fff; border: 1px solid #d9d4cc; border-radius: 8px; color: var(--color-text); font: inherit; font-size: 0.92rem; min-height: 46px; outline: none; padding: 0.75rem 0.85rem; transition: border-color 0.18s ease, box-shadow 0.18s ease; width: 100%; }
.quiz-input-wrap input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(42, 111, 117, 0.12); }
.quiz-options { display: grid; gap: 0.55rem; }
.quiz-option { align-items: center; background: #fff; border: 1px solid #d9d4cc; border-radius: 8px; color: var(--color-text); display: grid; grid-template-columns: 34px 1fr 24px; min-height: 48px; padding: 0.62rem 0.65rem; text-align: left; transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease; width: 100%; }
.quiz-option:active { transform: translateY(1px); }
.quiz-option.is-selected { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.quiz-option-mark { align-items: center; border: 1px solid currentColor; border-radius: 999px; display: inline-flex; font-size: 0.7rem; font-weight: 900; height: 26px; justify-content: center; opacity: 0.75; width: 26px; }
.quiz-option-text strong { display: block; font-size: 0.88rem; line-height: 1.1; }
.quiz-option-check { align-items: center; border: 1px solid currentColor; border-radius: 999px; display: inline-flex; height: 22px; justify-content: center; margin-left: auto; opacity: 0; width: 22px; }
.quiz-option-check svg { fill: none; height: 13px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; width: 13px; }
.quiz-option.is-selected .quiz-option-check { opacity: 1; }
.quiz-nav { align-items: center; display: flex; gap: 0.6rem; justify-content: space-between; margin-top: 0.85rem; }
.quiz-back, .quiz-next { border-radius: 6px; font-size: 0.82rem; font-weight: 900; min-height: 42px; padding: 0.65rem 0.9rem; transition: transform 0.18s ease, opacity 0.18s ease; }
.quiz-back { border: 1px solid var(--color-border); color: var(--color-primary); }
.quiz-back:disabled { opacity: 0.35; pointer-events: none; }
.quiz-next { background: var(--color-primary); color: #fff; min-width: 112px; }
.quiz-next:disabled { opacity: 0.45; pointer-events: none; }
.quiz-back:active, .quiz-next:active { transform: translateY(1px); }
.quiz-summary { display: grid; gap: 0.45rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0.85rem 0; }
.quiz-chip { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text-light); min-height: 54px; padding: 0.52rem 0.45rem; }
.quiz-chip span { color: var(--color-primary); display: block; font-size: 0.62rem; font-weight: 900; line-height: 1.1; margin-bottom: 0.18rem; text-transform: uppercase; }
.quiz-chip strong { color: var(--color-text); display: block; font-size: 0.7rem; line-height: 1.15; overflow-wrap: anywhere; }
.quiz-loading { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; margin-top: 0.85rem; padding: 0.85rem; }
.quiz-loading p { color: var(--color-primary); font-size: 0.82rem; font-weight: 800; line-height: 1.35; margin-top: 0.55rem; }
.quiz-loading-bar { background: #ece5dc; border-radius: 999px; height: 7px; overflow: hidden; }
.quiz-loading-bar span { animation: quizLoad 4s cubic-bezier(0.16, 1, 0.3, 1) forwards; background: var(--color-primary); border-radius: inherit; display: block; height: 100%; transform-origin: left; }
.quiz-result { background: #f5fbf8; border: 1px solid #d5e8de; border-radius: 8px; display: grid; gap: 0.7rem; grid-template-columns: 42px 1fr; margin-top: 0.85rem; padding: 0.9rem; }
.quiz-result[hidden], .quiz-loading[hidden] { display: none; }
.quiz-result-icon { align-items: center; border: 2px solid var(--color-primary); border-radius: 999px; color: var(--color-primary); display: flex; height: 34px; justify-content: center; width: 34px; }
.quiz-result-icon svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; width: 20px; }
.quiz-result h3 { color: var(--color-text); font-family: var(--font-heading); font-size: 1.02rem; line-height: 1.12; margin-bottom: 0.35rem; }
.quiz-result p { color: var(--color-text-light); font-size: 0.8rem; line-height: 1.35; }
.quiz-benefit { align-items: center; background: #fffaf0; border: 1px solid var(--color-accent); border-radius: 6px; color: #8a5b08; display: grid; gap: 0.55rem; grid-column: 1 / -1; grid-template-columns: 32px 1fr; padding: 0.62rem; }
.quiz-benefit span { align-items: center; background: var(--color-accent); border-radius: 999px; color: #fff; display: flex; height: 28px; justify-content: center; width: 28px; }
.quiz-benefit svg { fill: currentColor; height: 17px; width: 17px; }
.quiz-benefit strong { color: var(--color-text); font-size: 0.72rem; line-height: 1.25; }
.quiz-checkout { font-size: 0.98rem; margin: 1rem 0 0.65rem; padding: 13px 12px; }
.quiz-checkout[hidden] { display: none; }
.quiz-whatsapp { align-items: center; color: var(--color-text-light); display: flex; font-size: 0.76rem; font-weight: 700; gap: 0.45rem; justify-content: center; line-height: 1.25; text-align: center; }
.quiz-whatsapp img { flex: 0 0 auto; height: 20px; width: 20px; }
.quiz-whatsapp span { border-bottom: 1px solid rgba(42, 111, 117, 0.35); }
@keyframes quizLoad {
    from { transform: scaleX(0.08); }
    to { transform: scaleX(1); }
}

/* Lightbox per foto recensioni */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; justify-content: center; align-items: center; cursor: pointer; }
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; background: rgba(255,255,255,0.15); border: none; border-radius: 50%; color: #fff; font-size: 1.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10000; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* === WhatsApp Floating Button === */
.compatibility-float { align-items: center; background: #fff; border: 1px solid rgba(42, 111, 117, 0.18); border-radius: 999px; bottom: 132px; box-shadow: 0 8px 24px rgba(42, 48, 58, 0.18); color: var(--color-text); display: flex; gap: 0.5rem; left: 14px; max-width: calc(100vw - 28px); padding: 0.48rem 0.72rem 0.48rem 0.5rem; position: fixed; text-align: left; transform: translateZ(0); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; width: 236px; z-index: 999; }
.compatibility-float:hover { border-color: rgba(42, 111, 117, 0.34); box-shadow: 0 10px 28px rgba(42, 48, 58, 0.22); transform: translateY(-1px); }
.compatibility-float:active { transform: translateY(1px); }
.compatibility-float-icon { align-items: center; background: #eef8f5; border-radius: 999px; color: var(--color-primary); display: flex; flex: 0 0 auto; height: 34px; justify-content: center; width: 34px; }
.compatibility-float-icon img { height: 27px; width: 27px; }
.compatibility-float-copy { display: grid; gap: 0.05rem; min-width: 0; }
.compatibility-float-copy strong { color: var(--color-primary); display: block; font-size: 0.74rem; font-weight: 900; line-height: 1.12; white-space: normal; }
.compatibility-float-copy small { color: var(--color-text-light); display: block; font-size: 0.64rem; font-weight: 800; line-height: 1.1; }
.whatsapp-float { position: fixed; bottom: 72px; left: 16px; width: 48px; height: 48px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(0,0,0,0.2); z-index: 999; transition: transform 0.2s, box-shadow 0.2s; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.whatsapp-float svg { width: 28px; height: 28px; }
.broken-img { width: 80px; height: 80px; border: 1px solid #eee; position:relative; }
.broken-img::after { content:""; position: absolute; top:50%; left:50%; transform: translate(-50%,-50%); width: 30px; height: 30px; border: 1px solid #ccc; border-radius: 50%; opacity: 0.6; }

.paginator { font-size: 0.9rem; margin-bottom: 2rem; margin-top:2rem;}
.paginator a { color: #666; margin: 0 4px; }
.paginator strong { margin: 0 4px; border-bottom: 2px solid #000; }

/* 5. FAQ Bottom Section */
.bottom-accords details { border-bottom: 1px solid var(--color-border); padding: 16px 0; }
.bottom-accords summary { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 0.9rem; cursor: pointer; list-style: none; color: var(--color-primary); padding: 4px 0; min-height: 44px; }
.bottom-accords summary::-webkit-details-marker { display: none; }
.bottom-accords .acc-body { padding-top: 12px; font-size: 0.9rem; color: var(--color-text); }

/* 6. Original Style Footer */
.real-footer { background-color: var(--color-primary); color: white; padding: 3rem 0; font-size: 0.85rem; overflow: hidden; }
.footer-logo { display: flex; justify-content: center; }
.footer-motto { font-size: 1rem; color: white; font-weight: 800; margin-bottom: 2rem; max-width: 300px; margin: 0 auto; line-height: 1.2;}
.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.fl-col h5 { margin-bottom: 1rem; font-family: var(--font-heading); font-size: 1rem; color: var(--color-accent); }
.fl-col a { display: block; margin-bottom: 0.5rem; color: #e8e8e8; transition: 0.2s; }
.fl-col a:hover { color: white; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; font-size: 0.8rem; color: #ccc; }

/* 7. Sticky Add to Cart (Bottom Bar) */
.sticky-cart-bar { position: fixed; bottom: -100px; left: 0; width: 100%; background: white; border-top: 1px solid var(--color-border); box-shadow: 0 -4px 15px rgba(0,0,0,0.1); padding: 8px 16px; z-index: 1000; transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.sticky-cart-bar.is-visible { bottom: 0; }
.sc-button { margin-bottom: 0; padding: 12px; font-size: 0.95rem; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sc-button #sticky-price { font-weight: 900; }

/* Mobile Optimizations Override */
@media (min-width: 768px) {
    .compatibility-float { display: none; }
    .story-stacked { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .st-block h2 { font-size: 1.2rem; }
    .footer-links-grid { grid-template-columns: repeat(4, 1fr); }
    .bundles-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .sc-content { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 360px) {
    .compatibility-float { width: 214px; }
    .compatibility-float-copy small { display: none; }
}

/* === Team Section === */
.team-section { padding: 2rem 0; }
.team-intro { font-size: 0.95rem; color: var(--color-text-light); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.team-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.team-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; }
.team-photo img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--color-accent); }
.team-info { flex: 1; }
.team-info strong { font-size: 1rem; color: var(--color-primary); display: block; }
.team-role { font-size: 0.75rem; color: var(--color-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 0.5rem; }
.team-info blockquote { font-size: 0.85rem; font-style: italic; color: var(--color-text); line-height: 1.5; margin: 0; padding: 0; border: none; }

/* === Trust Badges Grid === */
.trust-badges-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 1.2rem 0; padding: 1rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.trust-badge-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; }
.trust-badge-item svg { flex-shrink: 0; }
.trust-badge-item span { font-size: 0.65rem; color: var(--color-text-light); line-height: 1.2; }
.trust-badge-item strong { color: var(--color-text); }

/* === Product Badge (above H1) === */
.product-badge { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.3rem; opacity: 0.7; }

/* === Problem Agitation + Before/After === */
.problem-agitation { padding: 2rem 16px; margin: 1rem auto; background: var(--color-bg-gray); border-radius: 12px; }
.pa-hero-img { width: 100%; height: auto; border-radius: 10px; margin-bottom: 1.5rem; }
.pa-intro { text-align: center; margin-bottom: 1.5rem; }
.pa-intro p { font-size: 1rem; color: var(--color-text); line-height: 1.6; margin-bottom: 0.5rem; }
.before-after-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ba-col { padding: 1rem; border-radius: 8px; }
.ba-col h3 { font-family: var(--font-heading); font-weight: 900; font-size: 1rem; margin-bottom: 0.6rem; text-align: center; }
.ba-col ul { padding: 0; }
.ba-col ul li { font-size: 0.82rem; line-height: 1.4; margin-bottom: 0.5rem; padding-left: 1.2rem; position: relative; }
.ba-before { background: #fef0f0; border: 1px solid #f5d5d5; }
.ba-before h3 { color: #c0392b; }
.ba-before ul li::before { content: "✗"; position: absolute; left: 0; color: #c0392b; font-weight: 700; }
.ba-after { background: #edf7ed; border: 1px solid #c8e6c8; }
.ba-after h3 { color: #27ae60; }
.ba-after ul li::before { content: "✓"; position: absolute; left: 0; color: #27ae60; font-weight: 700; }

/* === Mini Reviews Strip (near CTA) === */
.mini-reviews-strip { margin: 1rem 0; padding: 0.8rem; background: var(--color-bg-gray); border-radius: 8px; border: 1px solid var(--color-border); }
.mini-rev { font-size: 0.78rem; color: var(--color-text); padding: 0.4rem 0; line-height: 1.4; }
.mini-rev + .mini-rev { border-top: 1px solid var(--color-border); }
.mini-stars { color: var(--color-accent); font-size: 0.7rem; margin-right: 2px; }
.mini-rev em { color: var(--color-text-light); }

/* === Mid-page CTA === */
.mid-cta-wrapper { padding: 1.5rem 16px; }
.mid-cta { width: 100%; }
.mid-cta-sub { font-size: 0.78rem; color: var(--color-text-light); margin-top: 0.5rem; }

/* === Footer bottom padding for sticky bar === */
.real-footer { padding-bottom: 5rem; }

@media (max-width: 500px) {
    .team-card { flex-direction: column; align-items: center; text-align: center; }
    .team-photo img { width: 70px; height: 70px; }
    .team-info blockquote { font-size: 0.8rem; }
    .before-after-grid { grid-template-columns: 1fr; }
}
