/* guida.css - Stili specifici guida acquisto */

/* ===== EMERALD COLOR VARIABLES ===== */
:root {
    --page-accent: #10b981;
    --page-accent-dark: #059669;
    --page-accent-darker: #047857;
    --page-accent-bg: #ecfdf5;
    --page-accent-bg2: #d1fae5;
    --page-accent-shadow: rgba(16, 185, 129, 0.28);
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --hero-guide: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(16,185,129,0.10) 0%, transparent 50%),
                  radial-gradient(ellipse 60% 80% at 20% 50%, rgba(5,150,105,0.06) 0%, transparent 50%),
                  linear-gradient(to bottom, #f0fdf8, #ecfdf5, #e6f9f0);
}

/* ===== READING PROGRESS COLOR OVERRIDE ===== */
.reading-progress {
    background: var(--emerald-500);
}

/* ===== NEWSLETTER COLOR OVERRIDES ===== */
.nl-banner::before {
    background: var(--emerald-500);
}

.nl-icon {
    color: var(--emerald-500);
}

.nl-btn {
    background: var(--emerald-500);
}

.nl-btn:hover {
    background: var(--emerald-600);
}

.nl-input:focus {
    border-color: var(--emerald-500);
}

/* ===== PAGE LAYOUT ===== */
.main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* ===== HERO ===== */
.hero {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-visual {
    background: var(--hero-guide);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 60% at 50% -10%, rgba(255,255,255,0.85) 0%, transparent 60%);
    pointer-events: none;
}

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}

.article-type-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
}

.t-gui {
    background: #dcfce7;
    color: var(--emerald-700);
}

.hero-content {
    padding: 28px 40px 36px;
}

.hero-category {
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    margin-top: 8px;
    margin-bottom: 10px;
}

.hero-excerpt {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 560px;
}

/* Riga trust: tipografia allineata alla hero-meta di famiglia (reperto 9-meta, 11 giu) */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.hero-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald-500);
    flex-shrink: 0;
}

/* hero-meta: tipografia/gap/icone arrivano dalla famiglia (layouts/article.css);
   qui resta solo la spaziatura dalla riga trust (reperto 9-meta, 11 giu) */
.hero-meta {
    margin-top: 12px;
}

.affiliate-disclaimer {
    font-size: 0.6875rem;
    color: var(--gray-400);
    text-align: center;
    line-height: 1.5;
    padding: 0 16px;
}

.affiliate-disclaimer a {
    color: var(--gray-500);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.affiliate-disclaimer a:hover {
    color: var(--gray-700);
}

/* ===== CARD BASE ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.prose {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--gray-600);
}

.prose p {
    margin-bottom: 16px;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose strong {
    color: var(--gray-800);
    font-weight: 600;
}

/* ===== 3 DOMANDE — "Prima di scegliere" ===== */
.question-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.question-card {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--gray-100);
}

.question-card:hover {
    background: var(--emerald-50);
    border-color: rgba(16,185,129,0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.question-card-icon {
    margin-bottom: 14px;
}

.question-card-q {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.35;
}

.question-card-a {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.55;
}

.question-card-a strong {
    color: var(--emerald-600);
    font-weight: 600;
}

/* ===== FASCIA PREZZO HEADER ===== */
.tier-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.tier-badge {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.tier-badge.low {
    background: var(--gray-100);
    color: var(--gray-600);
}

.tier-badge.mid {
    background: var(--emerald-50);
    color: var(--emerald-700);
}

.tier-badge.high {
    background: #fef3c7;
    color: #92400e;
}

.tier-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* ===== PRODUCT CARD ===== */
.product-grid {
    display: grid;
    gap: 16px;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--gray-300);
}

.product-card.pick {
    border-color: var(--emerald-500);
    border-width: 2px;
    background: linear-gradient(135deg, rgba(16,185,129,0.03), rgba(5,150,105,0.06));
}

.product-card.pick:hover {
    border-color: var(--emerald-600);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-pick-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--emerald-600);
    background: var(--emerald-50);
    padding: 4px 10px;
    border-radius: 5px;
    width: fit-content;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
}

.product-card:hover .product-pick-label {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(16,185,129,0.12);
}

.product-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.product-name-row .product-ring {
    display: none;
}

.product-card > .product-ring-desktop {
    position: absolute;
    top: 50px;
    right: 24px;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:not(.pick) > .product-ring-desktop {
    top: 18px;
}

.product-card:hover > .product-ring-desktop {
    transform: translateY(-2px);
}

.product-card > .product-ring-desktop svg {
    width: 48px;
    height: 48px;
    display: block;
}

.product-card > .product-ring-desktop .product-ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

.product-ring {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.product-ring svg {
    width: 40px;
    height: 40px;
    display: block;
}

.product-ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

.product-emotion {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-style: italic;
    line-height: 1.4;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-feat {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 3px 8px;
    background: var(--gray-50);
    border-radius: 4px;
    color: var(--gray-600);
}

.product-card.pick .product-feat {
    background: var(--emerald-50);
    color: var(--emerald-700);
}

.product-links {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.product-links a {
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.product-links a svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.product-links a.link-review {
    color: var(--blue-500);
}

.product-links a.link-review:hover {
    color: var(--blue-600);
}

.product-links a.link-spec {
    color: #14b8a6;
}

.product-links a.link-spec:hover {
    color: #0d9488;
}

.product-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
}

.product-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--emerald-600);
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 6px;
    transition: background 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-cta .cta-price {
    font-weight: 700;
    opacity: 0.85;
}

.product-cta .cta-sep {
    opacity: 0.4;
}

.product-cta:hover {
    background: var(--emerald-500);
    color: var(--white);
    border-color: var(--emerald-500);
    box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}

.product-card.pick .product-cta {
    background: var(--emerald-500);
    color: var(--white);
    border-color: var(--emerald-500);
}

.product-card.pick .product-cta:hover {
    background: var(--emerald-600);
}

/* ===== TIER COMPARE TABLE ===== */
.tier-table-wrap {
    margin-top: 20px;
    padding-top: 12px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    table-layout: fixed;
}

.tier-table thead th {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 0 10px;
    text-align: left;
}

.tier-table thead th.col-has {
    color: var(--gray-500);
}

.tier-table thead th.col-gains {
    color: var(--emerald-600);
}

.tier-table tbody td {
    padding: 8px 0;
    line-height: 1.5;
    vertical-align: top;
    border-top: 1px solid var(--gray-50);
    text-align: left;
}

.tier-table tbody td.td-has {
    color: var(--gray-500);
}

.tier-table tbody td.td-gains {
    color: var(--gray-700);
    font-weight: 500;
}

.tier-table .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.tier-table .dot-gray {
    background: var(--gray-300);
}

.tier-table .dot-green {
    background: var(--emerald-500);
}

.tier-table-note {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-top: 12px;
    padding: 0 16px;
}

.tier-table-note strong {
    color: var(--amber-500);
    font-weight: 600;
}

/* ===== IL NOSTRO CONSIGLIO — the money shot ===== */
.verdict-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 2px solid var(--emerald-500);
}

.verdict-banner {
    background: var(--emerald-500);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verdict-banner-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
}

.verdict-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.verdict-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.verdict-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
}

.verdict-ring {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.verdict-ring svg {
    width: 48px;
    height: 48px;
    display: block;
}

.verdict-ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

.verdict-why {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.65;
}

.verdict-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--emerald-500);
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-top: 6px;
    width: fit-content;
}

.verdict-cta .cta-sep {
    opacity: 0.5;
}

.verdict-cta .cta-price {
    font-weight: 700;
}

.verdict-cta:hover {
    background: var(--emerald-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

/* ===== CONFRONTI DIRETTI ===== */
.compare-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compare-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid var(--gray-100);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.compare-item:hover {
    background: var(--emerald-50);
    border-color: rgba(16,185,129,0.2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.compare-vs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

.compare-badge {
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--emerald-600);
    background: var(--emerald-50);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.compare-item:hover .compare-name {
    color: var(--emerald-700);
}

.compare-meta {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.compare-section {
    display: none;
}

/* ===== QUICK PICK ===== */
.quick-pick {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--emerald-500);
}

.quick-pick-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.quick-pick-icon {
    color: var(--emerald-500);
    flex-shrink: 0;
}

.quick-pick-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-pick-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

.quick-pick-product {
    font-size: 0.9375rem;
    color: var(--gray-900);
}

.quick-pick-product strong {
    font-weight: 700;
}

.quick-pick-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--emerald-600);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.quick-pick-link:hover {
    color: var(--emerald-700);
}

/* ===== TOC PILLS ===== */
.toc {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toc-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.toc-link {
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
    background: var(--gray-50);
}

.toc-link:hover {
    background: var(--emerald-100);
    color: var(--emerald-700);
    box-shadow: 0 0 0 1px rgba(16,185,129,0.25);
}

.toc-link.active {
    background: var(--emerald-50);
    color: var(--emerald-600);
    font-weight: 600;
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--gray-100);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    transition: color 0.15s;
}

.faq-question:hover {
    color: var(--emerald-600);
}

.faq-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-50);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background-color 0.25s;
}

.faq-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s;
}

.faq-item.open .faq-toggle {
    background: var(--emerald-50);
}

.faq-item.open .faq-toggle svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    will-change: max-height;
    contain: content;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 0 20px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* ===== SIDEBAR SPECIFICS ===== */
.related-item:hover .related-title {
    color: var(--emerald-600);
}

.sidebar-see-all {
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.sidebar-see-all.see-all-review {
    color: var(--blue-500);
}

.sidebar-see-all.see-all-review:hover {
    color: var(--blue-600);
}

.sidebar-see-all.see-all-compare {
    color: #6366f1;
}

.sidebar-see-all.see-all-compare:hover {
    color: #4f46e5;
}

/* ===== FLOATING TOC — solo colori hover (base in float-toc.css) ===== */
.float-toc-btn:hover {
    border-color: var(--emerald-500);
}

.float-toc-btn:hover svg {
    stroke: var(--emerald-600);
}

.float-toc-panel a.active {
    color: var(--emerald-600);
}

.float-toc-panel a .toc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-200);
    flex-shrink: 0;
    transition: background 0.15s;
}

.float-toc-panel a.active .toc-dot {
    background: var(--emerald-500);
}

/* ===== QUIZ MEMORIA ===== */
.quiz-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 2px solid var(--emerald-500);
}

.quiz-teaser {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    cursor: pointer;
    transition: background-color 0.2s;
    background: linear-gradient(135deg, rgba(16,185,129,0.04), rgba(13,148,136,0.06));
}

.quiz-teaser:hover {
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(13,148,136,0.10));
}

.quiz-card.expanded .quiz-teaser {
    display: none;
}

.quiz-teaser-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--emerald-500), #0d9488);
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.quiz-teaser-text {
    flex: 1;
    min-width: 0;
}

.quiz-teaser-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.quiz-teaser-sub {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.quiz-teaser-cta {
    padding: 8px 18px;
    background: var(--emerald-500);
    color: var(--white);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.quiz-teaser:hover .quiz-teaser-cta {
    background: var(--emerald-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}

.quiz-expanded {
    display: none;
}

.quiz-card.expanded .quiz-expanded {
    display: block;
    animation: quizExpandIn 0.4s cubic-bezier(0.16,1,0.3,1);
}

.quiz-header {
    background: linear-gradient(135deg, var(--emerald-500), #0d9488);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.quiz-header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.quiz-header-text {
    color: var(--white);
}

.quiz-header-title {
    font-size: 1.0625rem;
    font-weight: 700;
}

.quiz-header-sub {
    font-size: 0.8125rem;
    opacity: 0.85;
    margin-top: 2px;
}

.quiz-body {
    padding: 32px;
    position: relative;
    min-height: 260px;
}

.quiz-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
}

.quiz-progress-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-100);
    transition: background 0.3s;
}

.quiz-progress-dot.done {
    background: var(--emerald-500);
}

.quiz-progress-dot.active {
    background: var(--emerald-300);
}

.quiz-step {
    display: none;
    animation: quizFadeIn 0.35s cubic-bezier(0.16,1,0.3,1);
}

.quiz-step.active {
    display: block;
}

.quiz-question {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.35;
}

.quiz-hint {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.quiz-opt:hover {
    background: var(--emerald-50);
    border-color: rgba(16,185,129,0.25);
    transform: translateY(-1px);
}

.quiz-opt.selected {
    background: var(--emerald-50);
    border-color: var(--emerald-500);
}

.quiz-opt-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.quiz-opt.selected .quiz-opt-radio {
    border-color: var(--emerald-500);
    background: var(--emerald-500);
}

.quiz-opt.selected .quiz-opt-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
}

.quiz-opt-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.4;
}

.quiz-opt-desc {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 2px;
}

.quiz-opt.selected .quiz-opt-label {
    color: var(--emerald-700);
    font-weight: 600;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.quiz-back {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.15s;
    font-family: inherit;
}

.quiz-back:hover {
    color: var(--gray-600);
}

.quiz-back.hidden {
    visibility: hidden;
}

.quiz-counter {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* Quiz result */
.quiz-result {
    text-align: center;
    animation: quizFadeIn 0.5s cubic-bezier(0.16,1,0.3,1);
}

.quiz-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--emerald-50);
    border-radius: 12px;
    margin-bottom: 20px;
}

.quiz-result-size {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--emerald-600);
    letter-spacing: -0.03em;
}

.quiz-result-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--emerald-700);
    text-align: left;
    line-height: 1.3;
}

.quiz-result-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.quiz-result-desc {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto 20px;
}

.quiz-result-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto 24px;
    text-align: left;
}

.quiz-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-bar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    width: 56px;
    flex-shrink: 0;
    text-align: right;
}

.quiz-bar-track {
    flex: 1;
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.quiz-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}

.quiz-bar-fill.match {
    background: var(--emerald-500);
}

.quiz-bar-fill.no-match {
    background: var(--gray-200);
}

.quiz-restart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-family: inherit;
}

.quiz-restart:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

/* ===== RESPONSIVE ===== */
/* .float-toc-btn/.float-toc-panel posizionamento mobile gestito da float-toc.css */

@media (max-width: 1100px) {
    .sidebar-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 20px;
        gap: 16px;
    }

    .sidebar {
        display: none;
    }

    .compare-section {
        display: block;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.75rem;
    }

    .question-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-name-row {
        justify-content: space-between;
    }

    .product-name-row .product-ring {
        display: block;
    }

    .product-card > .product-ring-desktop {
        display: none;
    }

    .product-right {
        align-items: stretch;
    }

    .product-cta {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .tier-table {
        font-size: 0.6875rem;
    }

    .tier-table thead th {
        font-size: 0.5625rem;
        padding: 0 0 6px;
    }

    .tier-table tbody td {
        padding: 5px 6px 5px 0;
        font-size: 0.6875rem;
    }

    .tier-table .dot {
        vertical-align: top;
        margin-top: 5px;
    }

    .card {
        padding: 24px;
    }

    /* .btt posizionamento gestito da back-to-top.css */

    .quick-pick-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .quick-pick-link {
        align-self: flex-start;
        margin-left: 30px;
    }

    .quiz-teaser {
        padding: 16px 20px;
        gap: 12px;
    }

    .quiz-teaser-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .quiz-teaser-title {
        font-size: 0.9375rem;
    }

    .quiz-teaser-cta {
        padding: 7px 14px;
        font-size: 0.75rem;
    }

    .quiz-body {
        padding: 24px;
        min-height: 220px;
    }

    .quiz-header {
        padding: 20px 24px;
    }

    .quiz-result-size {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.3125rem;
    }

    .card-title {
        font-size: 1.0625rem;
    }
}

/* ── Errors Section ── */
.errors-list {
    display: flex;
    flex-direction: column;
}

.error-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.error-item:last-child {
    border-bottom: none;
}

.error-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.error-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.error-desc {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Nasconde lo score ring nelle card correlate (non pertinente nella guida) */
.mobile-related .card-score { display: none; }
