/* ============================================================
   PrezzoTop — Pagine generate, liste e blocchi condivisi
   Versione: 5.0.0

   Sostituisce gli stili inline che erano duplicati (spesso in
   quattro copie leggermente diverse) in:
     ptop-category-pages.php, ptop-brand-pages.php,
     ptop-price-ranges.php, ptop-spec-pages.php,
     ptop-auto-ranges.php, ptop-internal-links.php
     e nei due shortcode di prezzootp-ci.php.
   ============================================================ */

:root {
    --ptop-brand: #6C4176;
    --ptop-brand-soft: #f3eaf7;
    --ptop-brand-line: #e8d5f0;
}

/* ────────────────────────────────────────────
   LAYOUT PAGINA
──────────────────────────────────────────── */

.ptop-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ptop-crumbs {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 20px;
}

.ptop-crumbs a { color: var(--ptop-brand); text-decoration: none; }
.ptop-crumbs span { margin: 0 6px; }
.ptop-crumbs a + span, .ptop-crumbs span:last-child { margin: 0 0 0 6px; }

.ptop-page-title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.2;
}

.ptop-page-desc {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 8px;
    line-height: 1.6;
}

.ptop-page-updated {
    color: #9ca3af;
    font-size: 12px;
    margin: 0 0 28px;
}

.ptop-empty {
    padding: 40px;
    text-align: center;
    background: #f9fafb;
    border-radius: 12px;
    color: #6b7280;
}

/* ────────────────────────────────────────────
   PILL / FILTRI
──────────────────────────────────────────── */

.ptop-filters,
.ptop-pills,
.ptop-ar-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.ptop-filters-label {
    width: 100%;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 8px 0 4px;
}

.ptop-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
    background: var(--ptop-brand-soft);
    color: var(--ptop-brand);
    border: 1.5px solid var(--ptop-brand-line);
}

.ptop-pill:hover { background: var(--ptop-brand-line); color: var(--ptop-brand); }

.ptop-pill--score {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.ptop-pill--score:hover { background: #a7f3d0; color: #065f46; }

.ptop-pill.is-active {
    background: var(--ptop-brand);
    color: #fff;
    border-color: var(--ptop-brand);
}

.ptop-pill--score.is-active {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.ptop-pill-count {
    margin-left: 5px;
    font-size: 10px;
    opacity: .65;
}

/* ────────────────────────────────────────────
   LISTA PRODOTTI (classifiche)
──────────────────────────────────────────── */

/* Override deliberati su ptop-cards.css: quel foglio stila il vecchio
   markup a card (.ptop-pc), la v5 usa righe orizzontali (.ptop-pc-row).
   I selettori omonimi (.ptop-pc-list, .ptop-pc-rank, .ptop-pc-img,
   .ptop-pc-price, .ptop-pc-date) sono ridefiniti qui e questo file è
   accodato dopo cards.css, quindi vincono a parità di specificità. */
.ptop-pc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ptop-pc-row {
    --ptop-c: var(--ptop-brand);
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--ptop-c);
    border-radius: 0 12px 12px 0;
    padding: 12px 16px;
    text-decoration: none;
    transition: box-shadow .2s;
    min-width: 0;
    overflow: hidden;
}

.ptop-pc-row:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .09); }

.ptop-pc-rank {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.ptop-pc-row.is-podium .ptop-pc-rank { background: var(--ptop-brand); color: #fff; }

.ptop-pc-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.ptop-pc-info { flex: 1; min-width: 0; display: block; }

.ptop-pc-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ptop-pc-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ptop-pc-price { font-size: 14px; font-weight: 800; color: var(--ptop-brand); }
.ptop-pc-date  { font-size: 11px; color: #9ca3af; }

.ptop-pc-gauge {
    flex-shrink: 0;
    text-align: center;
    min-width: 52px;
    display: block;
}

.ptop-pc-label {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ────────────────────────────────────────────
   BLOCCHI SEO E NAVIGAZIONE
──────────────────────────────────────────── */

/* I blocchi .ptop-seo-block e .ptop-seo-correlate sono definiti in
   ptop-cards.css, che è il foglio storico condiviso da tutte le pagine
   classifica. Qui NON vengono ridichiarati: due definizioni dello stesso
   selettore in due file diversi sono esattamente il tipo di divergenza
   che questa riscrittura elimina. Restano solo le varianti nuove. */

.ptop-seo-block--spec {
    background: var(--ptop-brand-soft);
    border-color: var(--ptop-brand-line);
}

.ptop-related-fasce,
.ptop-cat-footer,
.ptop-see-also {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.ptop-related-fasce h3,
.ptop-cat-footer h2 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.ptop-see-also-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 10px;
}

/* ────────────────────────────────────────────
   INDICE CATEGORIE / BRAND
──────────────────────────────────────────── */

.ptop-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.ptop-cat-card {
    display: block;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.ptop-cat-card:hover { border-color: var(--ptop-brand); background: #fdfaff; }

.ptop-cat-name  { display: block; font-size: 14px; font-weight: 700; color: #111827; }
.ptop-cat-count { display: block; font-size: 11px; color: #9ca3af; margin-top: 4px; }

/* ────────────────────────────────────────────
   NAVIGAZIONE FASCE SU ARCHIVI WOOCOMMERCE
──────────────────────────────────────────── */

.ptop-ar-nav {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #f3eff9;
    border-radius: 12px;
    border: 1.5px solid #e9e1f4;
    font-family: system-ui, sans-serif;
}

.ptop-ar-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7141B7;
    margin-bottom: 10px;
}

.ptop-ar-toggle { display: none; }

.ptop-brand-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ptop-brand);
    text-decoration: none;
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .ptop-ar-heading { display: none; }

    .ptop-ar-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: transparent;
        border: none;
        padding: 0 0 10px;
        font-size: 13px;
        font-weight: 700;
        color: #7141B7;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
        gap: 8px;
        -webkit-tap-highlight-color: transparent;
    }

    .ptop-ar-chevron { transition: transform .2s; }
    .ptop-ar-toggle[aria-expanded="true"] .ptop-ar-chevron { transform: rotate(180deg); }

    .ptop-ar-pills { display: none; }
    .ptop-ar-pills.is-open {
        display: flex;
        animation: ptop-ar-in .2s ease;
    }
}

@keyframes ptop-ar-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────────────
   PRODOTTI CORRELATI (scheda prodotto)
──────────────────────────────────────────── */

.ptop-related-products {
    margin: 28px 0;
    font-family: system-ui, sans-serif;
}

.ptop-rel-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.ptop-rel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.ptop-rel-card {
    --ptop-c: var(--ptop-brand);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .15s;
}

.ptop-rel-card:hover { border-color: var(--ptop-c); }

.ptop-rel-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    background: #f9fafb;
}

.ptop-rel-info { flex: 1; min-width: 0; }

.ptop-rel-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ptop-rel-price { font-size: 11px; color: #6b7280; margin-top: 2px; }
.ptop-rel-gauge { flex-shrink: 0; }

.ptop-brand-link { margin: 16px 0 0; font-size: 13px; color: #6b7280; }
.ptop-brand-link a { color: var(--ptop-brand); font-weight: 700; text-decoration: none; }

/* ────────────────────────────────────────────
   FAQ
──────────────────────────────────────────── */

.prezzotop-faq-visual {
    margin: 48px 0;
    font-family: system-ui, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.ptop-faq-outer {
    background: #fff;
    border-radius: 20px;
    border: 1.5px solid var(--ptop-brand-line);
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(108, 65, 118, .06);
    width: 100%;
    box-sizing: border-box;
}

.ptop-faq-top {
    background: radial-gradient(ellipse at 10% -20%, #ff2b2b 0%, #ff2b2b 55%, #d13939 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ptop-faq-top-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }

.ptop-faq-top-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -.01em;
}

.ptop-faq-top-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, .65);
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ptop-faq-list { padding: 12px 16px 16px; }

.ptop-faq-item { border-radius: 12px; overflow: hidden; margin-bottom: 6px; }
.ptop-faq-item:last-child { margin-bottom: 0; }

.ptop-faq-btn {
    width: 100%;
    background: #f9fafb;
    border: 1.5px solid #f3f4f6;
    border-radius: 12px;
    padding: 13px 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background .2s, border-color .2s;
}

.ptop-faq-btn:hover { background: var(--ptop-brand-soft); border-color: var(--ptop-brand-line); }

.ptop-faq-item.ptop-open .ptop-faq-btn {
    background: var(--ptop-brand-soft);
    border-color: var(--ptop-brand);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ptop-faq-btn-text {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    line-height: 1.4;
    flex: 1;
}

.ptop-faq-item.ptop-open .ptop-faq-btn-text { color: var(--ptop-brand); }

.ptop-faq-arrow {
    flex-shrink: 0;
    font-size: 11px;
    color: #9ca3af;
    transition: transform .25s;
    display: inline-block;
}

.ptop-faq-item.ptop-open .ptop-faq-arrow { transform: rotate(180deg); color: var(--ptop-brand); }

.ptop-faq-body {
    background: #fdf8ff;
    border: 1.5px solid var(--ptop-brand);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 14px 16px 16px;
}

.ptop-faq-body[hidden] { display: none; }

.ptop-faq-body p {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.8;
}

.ptop-faq-body a { color: var(--ptop-brand); font-weight: 600; }

/* ────────────────────────────────────────────
   ACCORDION SPECIFICHE
──────────────────────────────────────────── */

.ptop-spec-accordion {
    margin: 16px 0 20px;
    background: #fdfafc;
    border: 1px solid #f0e6f3;
    border-radius: 12px;
    clear: both;
    overflow: hidden;
}

.ptop-spec-accordion > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    outline: none;
}

.ptop-spec-accordion > summary::-webkit-details-marker { display: none; }

.ptop-spec-sum {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ptop-brand);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ptop-spec-count { font-size: 11px; font-weight: 600; color: #9ca3af; margin-left: 4px; }

.ptop-spec-accordion[open] .ptop-acc-arrow { transform: rotate(180deg); }
.ptop-acc-arrow { transition: transform .2s; color: var(--ptop-brand); }

.ptop-spec-groups {
    padding: 4px 16px 16px;
    border-top: 1px solid #f5ecf8;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ptop-spec-group { display: flex; flex-direction: column; gap: 4px; }

.ptop-spec-group-name {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.ptop-spec-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.ptop-spec-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ptop-brand);
    background: #fff;
    border: 1px solid var(--ptop-brand-line);
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
    transition: all .15s ease-in-out;
}

.ptop-spec-chip:hover {
    background: var(--ptop-brand);
    color: #fff;
    border-color: var(--ptop-brand);
}

/* ────────────────────────────────────────────
   GRIGLIE HOME (shortcode)
──────────────────────────────────────────── */

.ptop-home-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) { .ptop-home-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
    .ptop-home-col-4 { grid-template-columns: repeat(4, 1fr); }
    .ptop-home-col-5 { grid-template-columns: repeat(5, 1fr); }
    .ptop-home-col-6 { grid-template-columns: repeat(6, 1fr); }
}

.ptop-home-card__link { display: block; text-decoration: none; color: inherit; }

.ptop-home-card__img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
}

.ptop-home-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

.ptop-home-card__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    border-radius: 6px;
    padding: 3px 6px;
    display: flex;
    align-items: baseline;
    gap: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

.ptop-home-card__badge-score { color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.ptop-home-card__badge-label { color: rgba(255, 255, 255, .8); font-size: 9px; font-weight: 600; }

.ptop-home-card__body { padding: 6px 2px 0; }

.ptop-home-card__name {
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #111;
}

.ptop-home-card__price { font-size: 13px; font-weight: 700; color: #111; margin-top: 4px; }

.ptop-reviews-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px)  { .ptop-reviews-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ptop-reviews-grid { grid-template-columns: repeat(4, 1fr); } }

.ptop-review-mini__link {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.ptop-review-mini img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    background: #f3f4f6;
    flex-shrink: 0;
}

.ptop-review-mini__name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ptop-review-mini__stars { font-size: 13px; margin-top: 3px; color: #d1d5db; }
.ptop-review-mini__stars .is-on { color: #f59e0b; }
.ptop-review-mini__stars span:last-child { font-size: 11px; color: #6b7280; }
.ptop-review-mini__summary { font-size: 11px; color: #6b7280; margin-top: 3px; line-height: 1.4; }

/* ────────────────────────────────────────────
   POPUP
──────────────────────────────────────────── */

.ptop-popup-overlay[hidden],
.ptop-popup[hidden],
.ptop-embed-overlay[hidden] { display: none; }

.ptop-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 9998;
}

.ptop-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 24px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
    z-index: 9999;
    max-width: 90%;
    width: 400px;
    border-radius: 12px;
}

.ptop-close-popup,
.ptop-embed-close {
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 16px;
    font-weight: bold;
    font-size: 24px;
    color: #999;
    background: none;
    border: none;
    line-height: 1;
}

.ptop-embed-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptop-embed-box {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .25);
    position: relative;
    font-family: system-ui, sans-serif;
}

.ptop-embed-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ptop-brand);
    margin-bottom: 8px;
}

.ptop-embed-title { font-size: 18px; font-weight: 800; color: #111827; margin-bottom: 6px; }
.ptop-embed-desc  { font-size: 13px; color: #6b7280; margin-bottom: 20px; line-height: 1.6; }

.ptop-embed-code {
    background: #0f0a1a;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 14px;
    font-family: "Courier New", monospace;
    font-size: 11px;
    color: #c084fc;
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.6;
}

.ptop-embed-copy {
    width: 100%;
    padding: 12px;
    background: var(--ptop-brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
}

.ptop-embed-actions { display: flex; gap: 10px; }

.ptop-embed-link,
.ptop-embed-select {
    flex: 1;
    padding: 10px;
    border: 1.5px solid rgba(108, 65, 118, .2);
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ptop-brand);
    text-decoration: none;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
}

/* ────────────────────────────────────────────
   GAUGE SVG — colori ora dal CSS, non inline
   Il PHP emette solo le classi: la traccia e il
   numero centrale sono ridipingibili dalla skin
   senza toccare il markup.
──────────────────────────────────────────── */

.ptop-gauge-track { stroke: #f3f4f6; }
.ptop-gauge-num   { fill: #111827; }

/* ────────────────────────────────────────────
   PAGINAZIONE
──────────────────────────────────────────── */

.ptop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 8px;
}

.ptop-pagination-current {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9ca3af;
}

/* ────────────────────────────────────────────
   PAGINE CONFRONTO
──────────────────────────────────────────── */

.ptop-cmp-verdict {
    background: var(--ptop-brand-soft);
    border: 1px solid var(--ptop-brand-line);
    border-radius: 16px;
    padding: 20px 22px;
    margin: 20px 0 28px;
}

.ptop-cmp-verdict-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ptop-brand);
    margin-bottom: 6px;
}

.ptop-cmp-verdict-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #111827;
    margin-bottom: 8px;
}

.ptop-cmp-verdict-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

.ptop-cmp-cols {
    display: grid;
    /* minmax(0,1fr) e non 1fr: con 1fr la colonna eredita min-width
       auto e un titolo prodotto lungo la fa sfondare oltre il
       contenitore invece di andare a capo. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
    align-items: start;
}

.ptop-cmp-col {
    --ptop-c: var(--ptop-brand);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}

.ptop-cmp-img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 14px;
    display: block;
    background: #fafafc;
    border-radius: 10px;
    padding: 8px;
    box-sizing: border-box;
}

.ptop-cmp-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    /* Titoli lunghi: al massimo tre righe, così le due colonne
       restano alte uguali e i prezzi rimangono allineati. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 58px;
}

.ptop-cmp-name a { color: #111827; text-decoration: none; }

.ptop-cmp-price {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.035em;
    color: #111827;
    white-space: nowrap;
}

.ptop-cmp-score { margin: 10px 0 4px; }
.ptop-cmp-score-num { font-size: 34px; font-weight: 800; letter-spacing: -.05em; color: var(--ptop-c); }
.ptop-cmp-score-max { font-size: 13px; font-weight: 600; color: #9ca3af; }

.ptop-cmp-fascia {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ptop-c);
    margin-bottom: 14px;
}

.ptop-cmp-cta {
    display: inline-block;
    padding: 9px 18px;
    background: #111827;
    color: #fff;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ptop-cmp-cta:hover { background: var(--ptop-brand); color: #fff; }

.ptop-cmp-h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #111827;
    margin: 28px 0 12px;
}

.ptop-cmp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 13px;
}

.ptop-cmp-table th,
.ptop-cmp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    vertical-align: top;
}

.ptop-cmp-table thead th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9ca3af;
    border-bottom: 1px solid #e5e7eb;
}

.ptop-cmp-table tbody th {
    font-weight: 600;
    color: #6b7280;
    width: 34%;
}

.ptop-cmp-table tbody td { font-weight: 700; color: #111827; }

.ptop-cmp-same { font-size: 12px; color: #9ca3af; margin: -8px 0 20px; }

.ptop-cmp-links {
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.ptop-cmp-links h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

@media (max-width: 640px) {
    .ptop-cmp-cols { grid-template-columns: 1fr; }
    .ptop-cmp-table { font-size: 12px; }
    .ptop-cmp-table th, .ptop-cmp-table td { padding: 8px; }
}

/* Marcatore delle righe con dato estratto automaticamente */
.ptop-cmp-ai {
    color: #9ca3af;
    font-weight: 400;
    margin-left: 3px;
    cursor: help;
}
