/**
 * bo-v2.css · Broker Online v2 · Layer 6 toolbar/filters shared
 *
 * v3 (apr 2026): toolbar + modal filtri rimossi e sostituiti da
 *  classi shared CC/CD v2 (.qba-v2-filter-bar, .v2-filtri-overlay,
 *  .v2-filtri-modal, .v2-chip, .v2-promo-check, .v2-btn-reset/-apply,
 *  .v2-active-filters). Tutte le regole vivono nel CSS base 109 KB.
 *
 * v2 (apr 2026): allineamento totale a CC/CD v2.
 * - Stelle ★/☆ unicode color #EC651D (.bov2-stars + .empty + .half)
 * - Compare label sotto bonus card (col-right wrapper)
 * - Review link grigio #94a3b8 hover #EC651D
 * - Rank dentro card top:14px grigio #e5e7eb su #6b7280
 * - Featured rimossa (tutti i box uguali)
 * - Hero con paragrafo intro
 * - Author #author-section Helix3 fuori da .v2-scope
 * - Risk disclaimer dentro bonus card (testo bianco semi-trasparente)
 *
 * v1 (apr 2026): refactor iniziale Layer 4 (riuso classi shared CC/CD v2).
 *
 * Niente line-clamp, niente display:contents, niente flex-order.
 * Niente position+z-index sul wrapper di pagina (no stacking context).
 */

/* ===========================
   PAGE WRAPPER
   =========================== */
.v2-scope.bov2-page,
.v2-scope.bov2-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #0a0a0a !important;
    line-height: 1.5 !important;
}
.v2-scope.bov2-page * { box-sizing: border-box !important; }
.v2-scope.bov2-page [hidden] { display: none !important; }

/* ===========================
   HERO
   =========================== */
.v2-scope .bov2-hero {
    padding: 28px 16px 16px !important;
    text-align: left !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}
.v2-scope .bov2-hero-title {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(22px, 4vw, 32px) !important;
    font-weight: 800 !important;
    color: #0a0a0a !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}
.v2-scope .bov2-hero-sub {
    color: #64748b !important;
    margin-top: 8px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: 760px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ===========================
   TOOLBAR + FILTERS — Layer 6 ⇒ ora gestiti dalle classi shared:
   .qba-v2-filter-bar / .qba-v2-filter-trigger / .v2-active-filters
   .v2-filtri-overlay / .v2-filtri-modal / .v2-filtri-section / .v2-chip / .v2-promo-check
   .v2-btn-reset / .v2-btn-apply
   Tutte le regole vivono in /templates/finion/css/dev/migliori-conti-correnti-v2.css
   =========================== */

/* ===========================
   LIST CONTAINER (no stacking context)
   =========================== */
.v2-scope .bov2-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 1180px !important;
    margin: 0 auto 32px !important;
    padding: 0 16px !important;
}

/* ===========================
   CARD
   =========================== */
.v2-scope article.bov2-card {
    position: relative !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04) !important;
    cursor: pointer !important;
    transition: box-shadow 0.15s ease, transform 0.15s ease !important;
}
.v2-scope article.bov2-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 12px 28px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px) !important;
}

/* RANK BADGE 32px (dentro card, grigio) */
.v2-scope .bov2-rank {
    position: absolute !important;
    top: 14px !important;
    left: 16px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #e5e7eb !important;
    color: #6b7280 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    z-index: 5 !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
}

/* CARD INNER GRID — mobile stack, desktop 3-col */
.v2-scope .bov2-card-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    align-items: start !important;
}

/* ===========================
   COL LEFT (logo + rating + review)
   =========================== */
.v2-scope .bov2-col-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    text-align: center !important;
    padding-top: 56px !important;
}
.v2-scope .bov2-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 230px !important;
    max-width: 100% !important;
    height: 100px !important;
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
}
.v2-scope .bov2-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}
.v2-scope .bov2-rating {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
}

/* STARS (FIX 1) ★/☆ unicode */
.v2-scope .bov2-stars {
    color: #EC651D !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
}
.v2-scope .bov2-stars .empty { color: #e5e7eb !important; }
.v2-scope .bov2-stars .half {
    background: linear-gradient(90deg, #EC651D 50%, #e5e7eb 50%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.v2-scope .bov2-rating-num {
    font-weight: 700 !important;
    color: #0a0a0a !important;
}

/* REVIEW LINK (FIX 3) grigio, hover arancione */
.v2-scope .bov2-review-link {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    text-align: center !important;
    display: block !important;
    font-family: 'Inter', sans-serif !important;
}
.v2-scope .bov2-review-link:hover {
    color: #EC651D !important;
}

/* ===========================
   COL CENTER (name + tagline + bullets + promo)
   =========================== */
.v2-scope .bov2-col-center {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-width: 0 !important;
    align-self: stretch !important;
    align-self: stretch !important;
}
.v2-scope .bov2-name {
    font-family: 'Inter', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0a0a0a !important;
    line-height: 1.25 !important;
    margin: 0 !important;
}
.v2-scope .bov2-tagline {
    font-size: 13px !important;
    color: #475569 !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

/* BULLETS — check verde su #ecfdf5 */
.v2-scope .bov2-features {
    display: grid !important;
    gap: 8px !important;
    margin: 4px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.v2-scope .bov2-feat {
    position: relative !important;
    padding-left: 28px !important;
    line-height: 1.45 !important;
    font-size: 14px !important;
    color: #0a0a0a !important;
    list-style: none !important;
}
.v2-scope .bov2-feat::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 1px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background-color: #ecfdf5 !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10l3 3 7-7' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* PROMO BANNER LIVE */
.v2-scope .bov2-promo-banner {
    position: relative !important;
    border: 2px solid #EC651D !important;
    border-radius: 12px !important;
    padding: 12px 14px 12px 38px !important;
    background: #fff !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #0a0a0a !important;
    margin: 4px 0 !important;
}
.v2-scope .bov2-promo-banner::before {
    content: "" !important;
    position: absolute !important;
    left: 14px !important;
    top: 18px !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #EC651D !important;
    box-shadow: 0 0 0 0 rgba(236, 101, 29, 0.6) !important;
    animation: bov2-pulse 1.8s ease-out infinite !important;
}
.v2-scope .bov2-promo-tag {
    display: inline-block !important;
    background: #EC651D !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
}
.v2-scope .bov2-promo-banner a {
    color: #EC651D !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.v2-scope .bov2-promo-banner a:hover {
    text-decoration: underline !important;
}

@keyframes bov2-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(236, 101, 29, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(236, 101, 29, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 101, 29, 0); }
}

/* ===========================
   COL RIGHT — wrapper bonus card + compare label
   =========================== */
.v2-scope .bov2-col-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
}

/* Bonus card: larghezza+altezza fisse, alta specificità per vincere shared (override locale BO) */
.v2-scope.bov2-page article.bov2-card .v2-bonus-card,
.v2-scope.bov2-page .bov2-col-right .v2-bonus-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-self: stretch !important;
    height: 240px !important;
    max-height: 240px !important;
    overflow: hidden !important;
    padding: 16px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}
.v2-scope.bov2-page .v2-bonus-label {
    font-size: 10px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}
/* Bonus value: cap font-size così "1 anno" e "0,5 pip" hanno stessa size */
.v2-scope.bov2-page .v2-bonus-value {
    font-size: clamp(28px, 5vw, 42px) !important;
    line-height: 1.1 !important;
}
.v2-scope.bov2-page .v2-bonus-desc {
    font-size: 12px !important;
    line-height: 1.3 !important;
}

/* DISCLAIMER (FIX 8) dentro bonus card su fondo nero */
.v2-scope .bov2-disclaimer {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.4 !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    text-align: center !important;
}

/* ===========================
   NO RESULT
   =========================== */
.v2-scope .bov2-noresult {
    padding: 48px 20px !important;
    text-align: center !important;
    color: #64748b !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

/* ===========================
   DESKTOP — grid 3-cols (logo | content | numerone)
   =========================== */
@media (min-width: 1024px) {
    .v2-scope .bov2-card-inner {
        grid-template-columns: 260px 1fr 280px !important;
        gap: 24px !important;
    }
    .v2-scope .bov2-toolbar {
        padding: 18px 0 !important;
    }
    .v2-scope .bov2-list {
        gap: 20px !important;
    }
}

/* ===========================
   MOBILE — stack
   =========================== */
@media (max-width: 1023px) {
    .v2-scope .bov2-card-inner {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .v2-scope article.bov2-card {
        padding: 20px 16px !important;
    }
    .v2-scope .bov2-name {
        font-size: 19px !important;
    }
}

/* ===========================
   REDUCED MOTION
   =========================== */
@media (prefers-reduced-motion: reduce) {
    .v2-scope article.bov2-card,
    .v2-scope .bov2-filters {
        transition: none !important;
    }
    .v2-scope .bov2-promo-banner::before {
        animation: none !important;
    }
}
