/* =============================================
   POWERKING RICERCA AUTO - VERSIONE FINALE
   Design moderno pulito con modifiche specifiche
   Colore principale: PowerKing Red (#D4231D)
   ============================================= */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: clip;
}



.boxpr {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.boxpr2 {
    max-width: 1800px;
    margin: 40px auto;
    padding: 0 30px;
}

.boxcon {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
}

/* BENEFITS SECTION - Griglia Moderna */
.benefits-section {
    margin: 40px 0;
    padding: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4231D, #e60000);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    border-color: #D4231D;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 35, 29, 0.15);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    filter: grayscale(0%);
}



/* Fix specifico per ultimo benefit - stesso layout del primo */
.benefit-card h3 {
    font-size: 15px;
    line-height: 1.3;
    padding: 0 5px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}
/* HEADER TITOLO SELEZIONE */
.thead {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #D4231D;
    position: relative;
}

.thead::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #D4231D;
}

.selspantit {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* Fix per link che avvolge section-title-wrapper */
a:has(.section-title-wrapper) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Wrapper titoli sezioni - largo come boxpr2 */
.section-title-wrapper {
    max-width: 1800px !important;
    margin: 40px auto 0 !important;
    padding: 0 0px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.section-title-wrapper .titolo_fixed {
    background: #D4231D !important;
    color: #ffffff !important;
    padding: 15px 25px !important;
    border-radius: 12px 12px 0 0 !important;
    text-align: center !important;
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* SELETTORI (Marca, Modello, Motore) */
.selettore {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 20px 30px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.selettore::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #D4231D;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

/* FRECCINA DA V2 */
.selettore::after {
    content: '→';
    position: absolute;
    right: 25px;
    font-size: 32px;
    font-weight: 700;
    color: #D4231D;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.selettore:hover {
    border-color: #D4231D;
    box-shadow: 0 8px 30px rgba(212, 35, 29, 0.15);
    transform: translateY(-2px);
}

.selettore:hover::before {
    transform: scaleY(1);
}

.selettore:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* IMMAGINI SELETTORI - DIMENSIONI FISSE, NO OMBRE */
.selettore img {
    width: 80px !important;
    height: 50px !important;
    object-fit: contain;
    /* NO OMBRE */
}

.selspantxt {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    transition: color 0.3s ease;
}

.selettore:hover .selspantxt {
    color: #D4231D;
}

a {
    text-decoration: none;
    color: inherit;
}

/* FOOTER BOX - LARGHEZZA PIENA */
.tfoot {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    width: 100%;
}

/* PULSANTE BACK */
.buttonback {
    display: block;
    margin: 30px auto 0;
    max-width: 400px;
}

.tasto_back {
    background: linear-gradient(135deg, #D4231D, #a01a16);
    color: #ffffff;
    text-align: center;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 35, 29, 0.3);
}

.tasto_back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 35, 29, 0.4);
}

/* =============================================
   PAGINA FINALE RICERCA-AUTO
   ============================================= */

/* HEADER MOTORE - SFONDO ROSSO, TESTO BIANCO */
.headmoto {
    background: linear-gradient(135deg, #D4231D, #a01a16);
    color: #ffffff;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    margin-bottom: 0;
}

.headmoto h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    color: #ffffff;
}

/* IMMAGINE HEADER - RIEMPIE TUTTO IL CONTAINER CON BORDI ARROTONDATI */
.headmoto img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    /* NO filtro bianco - mantiene colori originali */
    background: rgba(255, 255, 255, 0.2);
    padding: 0 !important;
    overflow: hidden;
}

/* FLEX CONTAINER */
.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #ffffff;
    border-radius: 0 0 20px 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.headmotor {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMMAGINE AUTO - NO OMBRE */
.headmotor img {
    width: 100% !important;
    height: auto !important;
    border-radius: 16px;
    /* NO OMBRE */
}

.headmotorc {
    flex: 1;
    min-width: 300px;
}

/* TITOLO SEZIONE */
.titoloheadmoto {
    background: linear-gradient(135deg, #D4231D, #a01a16);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* TABELLE */
.table {
    width: 100%;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.table-striped tr:nth-child(even) {
    background: #f8f9fa;
}

.table tr {
    border-bottom: 1px solid #e9ecef;
}

.table tr:last-child {
    border-bottom: none;
}

.table td {
    padding: 15px 20px;
    font-size: 18px;
}

.sxmoto {
    color: #6c757d;
    font-weight: 500;
    width: 50%;
}

.tabcmoto {
    color: #1a1a1a;
    font-weight: 600;
}

/* Grigio3 base (fuori da headmotorc) - disclaimer marchi */
.grigio3 {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 25px 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
}

/* Grigio3 dentro headmotorc - centrato con larghezza ridotta */
.headmotorc .grigio3 {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    padding: 25px 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}






.grigio3 h6 {
    margin: 0 0 15px 0;
    font-size: 26px;
    font-weight: 700;
}

.grigio3 p {
    margin: 10px 0;
    color: #495057;
}

.titolo_fixed {
    background: #D4231D;
    color: #ffffff !important;
    padding: 15px 25px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    display: block;
    margin: -25px -30px 20px -30px;
}

/* SOLUZIONI */
.soluzioni {
    margin: 10px 0;
}

.cli {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #D4231D;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cli:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 35, 29, 0.15);
}



/* =============================================
   CONTAINER PRODOTTI - Flex Responsivo Automatico
   I box si dividono EQUAMENTE lo spazio disponibile
   ============================================= */

.prodotti-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
}

/* BOX PRODOTTI - Larghezza automatica che riempie lo spazio */
.prodmotor {
    flex: 1 1 0;  /* 🔑 DIVIDE EQUAMENTE LO SPAZIO */
    min-width: 280px;  /* Minimo per leggibilità */
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.prodmotor:hover {
    border-color: #D4231D;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 35, 29, 0.15);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .prodmotor {
        flex: 1 1 100%;  /* Mobile: 1 per riga */
        min-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .prodmotor {
        flex: 1 1 calc(50% - 10px);  /* Tablet: max 2 per riga */
    }
}

.prodmotor:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* Responsive - schermi medi */
@media (max-width: 1400px) {
    .prodmotor {
        width: calc(25% - 24px); /* 4 colonne */
    }
}

/* Responsive - tablet */
@media (max-width: 1100px) {
    .prodmotor {
        width: calc(33.333% - 24px); /* 3 colonne */
    }
}

/* Responsive - tablet piccolo */
@media (max-width: 900px) {
    .prodmotor {
        width: calc(50% - 24px); /* 2 colonne */
        min-width: 260px;
    }
}

/* Responsive - mobile */
@media (max-width: 768px) {
    .prodmotor {
        width: calc(100% - 20px);
        margin: 15px auto;
        display: flex;
        max-width: 450px;
        min-width: unset;
    }
}

/* IMMAGINI PRODOTTI - PIÙ GRANDI, NO OMBRE */
.prodmotor img {
    max-width: 100%;
    height: auto !important;
    width: auto !important;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
    /* NO OMBRE */
}

.titolo_rosso {
    background: linear-gradient(135deg, #D4231D, #a01a16);
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    margin: 20px 0;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(212, 35, 29, 0.3);
}

/* PULSANTI AZIONE */
.tasto_grigio3,
.tasto_grigio1 {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #2c3e50;
    text-align: center;
    padding: 14px 25px;
    margin: 10px 0;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tasto_grigio3:hover,
.tasto_grigio1:hover {
    background: #D4231D;
    border-color: #D4231D;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 35, 29, 0.2);
}

.tasto_grigio1 {
    background: linear-gradient(135deg, #D4231D, #a01a16);
    border-color: #D4231D;
    color: #ffffff;
}

.tasto_grigio1:hover {
    background: linear-gradient(135deg, #a01a16, #7d1411);
}

/* PREZZO */
.prezzo_scheda {
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    margin-top: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.prezzo_scheda span {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.8;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .boxcon {
        padding: 25px;
    }
    
    .selspantit {
        font-size: 28px;
    }
    
    .selettore {
        padding: 15px 20px;
        gap: 15px;
    }
    
    .selettore img {
        width: 70px !important;
        height: 45px !important;
    }
    
    .selspantxt {
        font-size: 19px;
    }
    
    .headmoto h2 {
        font-size: 28px;
    }
    
    .headmoto img {
        width: 85px !important;
        height: 85px !important;
    }
    
    .flex {
        flex-direction: column;
        padding: 20px;
    }
    
    .headmotor,
    .headmotorc {
        min-width: 100%;
    }
    
    .prodmotor {
        padding: 25px;
    }
    
    .prodmotor img {
        max-height: 220px;
    }
    
    .titolo_rosso {
        font-size: 22px;
        padding: 15px;
    }
    
    .table td {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .tasto_back {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    /* Grigio3 responsive */
    .grigio3,
    .headmotorc .grigio3 {
        padding: 20px 15px;
        margin: 20px auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .boxpr,
    .boxpr2 {
        padding: 0 15px;
    }
    
    .boxcon {
        padding: 20px;
        border-radius: 15px;
    }
    
    .selspantit {
        font-size: 24px;
    }
    
    .selettore {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .selettore img {
        width: 60px !important;
        height: 38px !important;
    }
    
    .selspantxt {
        font-size: 17px;
    }
    
    .headmoto h2 {
        font-size: 24px;
    }
    
    .headmoto img {
        width: 75px !important;
        height: 75px !important;
    }
    
    .prodmotor img {
        max-height: 200px;
    }
    
    /* Grigio3 responsive piccolo */
    .grigio3,
    .headmotorc .grigio3 {
        padding: 15px 12px;
        margin: 15px auto;
        font-size: 13px;
    }
    
    .titolo_rosso {
        font-size: 20px;
    }
    
    .prezzo_scheda {
        font-size: 24px;
    }
}

/* =============================================
   ANIMAZIONI & EFFETTI
   ============================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.boxcon,
.prodmotor {
    animation: fadeIn 0.5s ease-out;
}


/* SCROLLBAR CUSTOM */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #D4231D;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a01a16;
}

/* UTILITY CLASSES */
.posts-grid {
    list-style: none;
    padding: 0;
    margin: 0;
}

.row-fluid {
    display: block;
}

.unstyled {
    list-style: none;
}

.ul-item-0 {
    padding: 0;
    margin: 0;
}

/* LINK STYLING */
a:hover {
    text-decoration: none;
}

a[href^='#openModal'] {
    display: block;
}

/* MODAL */
.modalDialog {
    position: fixed;
    font-family: inherit;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modalDialog:target {
    opacity: 1;
    pointer-events: auto;
}

.modalDialog > div {
    max-width: 600px;
    position: relative;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modalDialog .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #999;
    transition: color 0.3s;
}

.modalDialog .close:hover {
    color: #D4231D;
}


/* Fix crash iOS landscape - disabilita elementi pesanti */
@media (max-width: 926px) and (orientation: landscape) {
    .modalDialog {
        overflow: hidden !important;
        -webkit-overflow-scrolling: auto !important;
        transition: none !important;
    }
    
    .modalDialog > div {
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .prodmotor,
    .boxcon {
        animation: none !important;
        transition: none !important;
    }
}

/* =============================================
   FIX CRASH iOS - Disabilita effetti pesanti su mobile
   ============================================= */
@media (max-width: 1024px) {
    /* Rimuovi TUTTE le transizioni */
    *,
    *::before,
    *::after {
        transition: none !important;
        -webkit-transition: none !important;
        animation: none !important;
        -webkit-animation: none !important;
    }
    
    /* Rimuovi box-shadow pesanti */
    .prodmotor,
    .boxcon,
    .selettore,
    .modalDialog > div,
    .prezzo_scheda,
    .tasto_grigio1,
    .tasto_grigio3,
    .tasto_back,
    .titolo_rosso {
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
    }
    
    /* Semplifica modal nascosti */
    .modalDialog:not(:target) {
        display: none !important;
    }
    
    /* Forza GPU layer singolo */
    .modalDialog,
    .prodmotor {
        transform: none !important;
        -webkit-transform: none !important;
        will-change: auto !important;
    }
}




/* =============================================
   WORDPRESS BRIDGE - CLEAN OVERRIDES
   ============================================= */

body.pk-page,
body.pk-page .site,
body.pk-page .site-content,
body.pk-page #page {
    background: #000 !important;
}

/* stessa larghezza per step marca/modello/motore */
.boxpr,
.section-title-wrapper {
    max-width: 1720px !important;
}

.boxpr {
    margin: 28px auto !important;
    padding: 0 24px !important;
}

/* risultato: niente frame bianco attorno alla testata */
.pk-ra-result.boxpr2 {
    max-width: 1720px !important;
    margin: 16px auto 40px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.pk-ra-result .headmoto {
    margin: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    overflow: hidden;
}

.pk-ra-result .headmoto h2 {
    min-height: 92px;
}

.pk-ra-result .flex {
    margin: 0 !important;
    padding: 34px 36px !important;
    background: #fff !important;
    border-radius: 0 0 24px 24px !important;
    box-shadow: none !important;
    align-items: center !important;
    gap: 34px !important;
}

.pk-ra-result .headmotor,
.pk-ra-result .headmotorc {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pk-ra-result .headmotor:first-child {
    flex: 0 1 38%;
    min-width: 340px;
}

.pk-ra-result .headmotorc {
    flex: 1 1 40%;
    min-width: 360px;
    display: block;
}

.pk-ra-result .benefits-col {
    flex: 0 1 20%;
    min-width: 250px;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.pk-ra-result .headmotor:first-child img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

.pk-ra-result .buttonback {
    display: block;
    max-width: 340px;
    margin: 18px auto 0;
}

.pk-ra-result .tasto_back {
    margin: 0 !important;
}

/* bianco che parte sotto la prima fascia */
.pk-ra-sections {
    width: calc(100% - 20px);
    margin: 0 auto 40px;
    padding: 0 10px 32px;
    background: #fff;
    border-radius: 0 0 24px 24px;
}

.pk-ra-sections .section-title-wrapper {
    max-width: none !important;
    width: 100% !important;
    margin: 28px 0 0 !important;
    padding: 0 !important;
}

.pk-ra-sections .section-title-wrapper .titolo_fixed {
    border-radius: 14px 14px 0 0 !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    padding: 18px 26px !important;
}

.pk-ra-sections .prodotti-container {
    width: 100%;
    padding: 18px 0 0 !important;
    gap: 20px !important;
}

.pk-ra-sections .prodmotor {
    flex: 1 1 285px !important;
    min-width: 285px !important;
    width: auto !important;
    margin: 0 !important;
}

/* benefit desktop centrati e dimensioni originali */
.pk-ra-result .benefits-section {
    width: 100%;
    margin: 0;
}

.pk-ra-result .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pk-ra-result .benefit-card {
    min-height: 144px;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pk-ra-result .benefit-icon {
    font-size: 0;
    margin-bottom: 10px;
    filter: grayscale(100%);
}

.pk-ra-result .benefit-icon svg {
    display: block;
    width: 62px;
    height: 62px;
    margin: 0 auto;
}

.pk-ra-result .benefit-card:hover .benefit-icon {
    filter: grayscale(0%);
}

.pk-ra-result .benefit-card h3,
.pk-ra-result .benefit-card h3 * {
    color: #16263a !important;
}

/* testo sempre leggibile */
.pk-ra-result .sxmoto,
.pk-ra-result .sxmoto *,
.pk-ra-result .tabcmoto,
.pk-ra-result .tabcmoto *,
.pk-ra-result .table td,
.pk-ra-result .table td *,
.pk-ra-result .table p,
.pk-ra-result .table p *,
.pk-ra-result .table strong,
.pk-ra-result .table strong *,
.pk-ra-result .prodmotor .table td,
.pk-ra-result .prodmotor .table td *,
.pk-ra-result .prodmotor .table p,
.pk-ra-result .prodmotor .table p *,
.pk-ra-result .prodmotor .table strong,
.pk-ra-result .prodmotor .table strong * {
    color: #16263a !important;
}

.pk-ra-result .headmoto,
.pk-ra-result .headmoto *,
.pk-ra-result .titoloheadmoto,
.pk-ra-result .titoloheadmoto *,
.pk-ra-result .titolo_fixed,
.pk-ra-result .titolo_fixed *,
.pk-ra-result .titolo_rosso,
.pk-ra-result .titolo_rosso *,
.pk-ra-result .tasto_back,
.pk-ra-result .tasto_back *,
.pk-ra-result .tasto_grigio1,
.pk-ra-result .tasto_grigio1 *,
.pk-ra-result .prezzo_scheda,
.pk-ra-result .prezzo_scheda * {
    color: #fff !important;
}

.pk-ra-result .tasto_grigio3,
.pk-ra-result .tasto_grigio3 * {
    color: #16263a !important;
}

.pk-ra-result .tasto_grigio1:hover,
.pk-ra-result .tasto_grigio1:hover *,
.pk-ra-result .tasto_back:hover,
.pk-ra-result .tasto_back:hover *,
.pk-ra-result .tasto_grigio3:hover,
.pk-ra-result .tasto_grigio3:hover * {
    color: #fff !important;
}

/* responsive visibility helpers */
.pk-ra-result .tablet,
.pk-ra-result .mobile,
.pk-ra-result .smallmobile {
    display: none !important;
}

.pk-ra-result .desk,
.pk-ra-result .notablet,
.pk-ra-result .gigadesk,
.pk-ra-result .nosmallmobile {
    display: block !important;
}

/* modal sempre scrollabili */
.modalDialog {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.modalDialog > div {
    max-height: 90vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1239px) {
    .boxpr,
    .section-title-wrapper,
    .pk-ra-result.boxpr2 {
        max-width: 1320px !important;
    }

    .pk-ra-result .flex {
        gap: 24px !important;
    }

    .pk-ra-result .benefits-col {
        flex-basis: 24%;
        min-width: 220px;
    }
}

@media (max-width: 991px) {
    .boxpr,
    .section-title-wrapper,
    .pk-ra-result.boxpr2 {
        max-width: 760px !important;
    }

    .pk-ra-result .flex {
        padding: 24px !important;
        flex-direction: column;
    }

    .pk-ra-result .headmotor:first-child,
    .pk-ra-result .headmotorc,
    .pk-ra-result .benefits-col {
        min-width: 100%;
        flex-basis: 100%;
    }

    .pk-ra-result .benefits-col {
        display: none !important;
    }

    .pk-ra-sections {
        width: 100%;
        padding: 0 0 24px;
        border-radius: 0 0 20px 20px;
    }

    .pk-ra-sections .section-title-wrapper .titolo_fixed {
        font-size: 22px !important;
    }

    .pk-ra-result .tablet {
        display: block !important;
    }

    .pk-ra-result .notablet,
    .pk-ra-result .desk,
    .pk-ra-result .gigadesk {
        display: none !important;
    }
}

@media (max-width: 599px) {
    .boxpr,
    .section-title-wrapper,
    .pk-ra-result.boxpr2 {
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .pk-ra-result.boxpr2 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pk-ra-result .headmoto {
        border-radius: 18px 18px 0 0 !important;
    }

    .pk-ra-result .headmoto h2 {
        font-size: 26px !important;
    }

    .pk-ra-result .headmoto img {
        width: 72px !important;
        height: 72px !important;
    }

    .pk-ra-result .titoloheadmoto {
        font-size: 19px !important;
    }

    .pk-ra-result .table td {
        padding: 12px 14px !important;
        font-size: 15px !important;
    }

    .pk-ra-result .mobile,
    .pk-ra-result .smallmobile,
    .pk-ra-result .tablet {
        display: block !important;
    }

    .pk-ra-result .desk,
    .pk-ra-result .notablet,
    .pk-ra-result .gigadesk,
    .pk-ra-result .nosmallmobile {
        display: none !important;
    }
}

/* ===== V19 desktop alignment and unified white panel ===== */
.boxpr,
.section-title-wrapper,
.pk-ra-result.boxpr2 {
    max-width: 1880px !important;
}

.boxpr {
    padding-left: 18px !important;
    padding-right: 18px !important;
}

.pk-ra-result.boxpr2 {
    margin-top: 16px !important;
    margin-bottom: 40px !important;
}

/* Three-column desktop header block: car | vehicle data | benefits */
.pk-ra-result .flex {
    display: grid !important;
    grid-template-columns: minmax(380px, 1.05fr) minmax(560px, 1.05fr) 300px !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 30px 26px 0 !important;
    background: #ffffff !important;
    border-radius: 0 !important;
}

.pk-ra-result .headmotor:first-child,
.pk-ra-result .headmotorc,
.pk-ra-result .benefits-col {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.pk-ra-result .headmotor:first-child {
    grid-column: 1;
    align-self: center;
}

.pk-ra-result .headmotorc {
    grid-column: 2;
    align-self: center;
}

.pk-ra-result .benefits-col {
    grid-column: 3;
    align-self: start;
    display: block !important;
}

.pk-ra-result .benefits-section {
    margin: 0 !important;
}

.pk-ra-result .benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
}

.pk-ra-result .benefit-card {
    min-height: 146px !important;
    padding: 14px 8px !important;
}

.pk-ra-result .benefit-icon svg {
    width: 58px !important;
    height: 58px !important;
}

.pk-ra-result .benefit-card h3 {
    font-size: 12px !important;
    line-height: 1.2 !important;
}

.pk-ra-result .buttonback {
    margin-top: 18px !important;
    margin-bottom: 0 !important;
}

/* White panel continues immediately below first block */
.pk-ra-sections {
    width: calc(100% - 20px) !important;
    margin: 0 auto 40px !important;
    padding: 12px 10px 34px !important;
    background: #ffffff !important;
    border-radius: 0 0 24px 24px !important;
}

.pk-ra-sections .section-title-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.pk-ra-sections .section-title-wrapper .titolo_fixed {
    margin: 0 !important;
    font-size: 32px !important;
    line-height: 1.15 !important;
    padding: 18px 26px !important;
    border-radius: 14px 14px 0 0 !important;
}

.pk-ra-sections .prodotti-container {
    padding-top: 16px !important;
}

/* Keep cards fluid and aligned */
.pk-ra-sections .prodotti-container,
.pk-ra-result .prodotti-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 22px !important;
    align-items: stretch !important;
}

.pk-ra-sections .prodmotor,
.pk-ra-result .prodmotor {
    flex: 1 1 320px !important;
    min-width: 320px !important;
    max-width: calc(33.333% - 15px) !important;
}

@media (max-width: 1399px) {
    .boxpr,
    .section-title-wrapper,
    .pk-ra-result.boxpr2 {
        max-width: 1720px !important;
    }

    .pk-ra-result .flex {
        grid-template-columns: minmax(320px, 1fr) minmax(480px, 1fr) 270px !important;
    }

    .pk-ra-sections .prodmotor,
    .pk-ra-result .prodmotor {
        max-width: calc(50% - 11px) !important;
    }
}

@media (max-width: 991px) {
    .pk-ra-result .flex {
        display: flex !important;
        flex-direction: column !important;
        padding: 24px !important;
        border-radius: 0 0 20px 20px !important;
    }

    .pk-ra-sections {
        width: 100% !important;
        padding: 12px 0 24px !important;
        border-radius: 0 0 20px 20px !important;
    }

    .pk-ra-sections .section-title-wrapper .titolo_fixed {
        font-size: 22px !important;
    }

    .pk-ra-sections .prodmotor,
    .pk-ra-result .prodmotor {
        max-width: 100% !important;
        min-width: 100% !important;
    }
}

/* ===== V20 desktop fine tuning ===== */
.boxpr,
.section-title-wrapper,
.pk-ra-result.boxpr2 {
    max-width: 1940px !important;
}

.pk-ra-result .headmoto {
    margin: 0 !important;
    border-radius: 26px 26px 0 0 !important;
}

.pk-ra-result .flex {
    grid-template-columns: minmax(340px, 0.95fr) minmax(620px, 1.08fr) 360px !important;
    gap: 20px !important;
    padding: 30px 24px 0 !important;
    align-items: start !important;
}

.pk-ra-result .headmotor:first-child {
    align-self: center !important;
}

.pk-ra-result .headmotorc {
    align-self: center !important;
}

.pk-ra-result .benefits-col {
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    align-self: center !important;
}

.pk-ra-result .benefits-grid {
    gap: 16px !important;
}

.pk-ra-result .benefit-card {
    min-height: 158px !important;
    padding: 16px 10px !important;
}

.pk-ra-result .benefit-icon svg {
    width: 64px !important;
    height: 64px !important;
}

.pk-ra-result .benefit-card h3 {
    font-size: 13px !important;
    line-height: 1.15 !important;
}

.pk-ra-sections {
    width: 100% !important;
    margin: 0 0 40px !important;
    padding: 12px 0 34px !important;
    background: #ffffff !important;
}

.pk-ra-sections .section-title-wrapper,
.pk-ra-sections .prodotti-container {
    width: calc(100% - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pk-ra-sections .section-title-wrapper .titolo_fixed {
    border-radius: 12px 12px 0 0 !important;
}

@media (max-width: 1399px) {
    .boxpr,
    .section-title-wrapper,
    .pk-ra-result.boxpr2 {
        max-width: 1760px !important;
    }

    .pk-ra-result .flex {
        grid-template-columns: minmax(300px, 0.95fr) minmax(500px, 1.05fr) 320px !important;
    }

    .pk-ra-result .benefits-col {
        width: 320px !important;
        min-width: 320px !important;
        max-width: 320px !important;
    }
}

/* ===== V21 header balance + mobile white continuity ===== */
/* Desktop: give more room to benefits column and align lower sections almost flush with top white panel */
.boxpr,
.section-title-wrapper,
.pk-ra-result.boxpr2 {
    max-width: 1980px !important;
}

.pk-ra-result .flex {
    grid-template-columns: minmax(300px, 0.86fr) minmax(560px, 0.98fr) 430px !important;
    gap: 18px !important;
    align-items: center !important;
    padding: 28px 22px 0 !important;
}

.pk-ra-result .headmotor:first-child {
    align-self: center !important;
}

.pk-ra-result .headmotorc {
    align-self: center !important;
}

.pk-ra-result .benefits-col {
    width: 430px !important;
    min-width: 430px !important;
    max-width: 430px !important;
    align-self: center !important;
}

.pk-ra-result .benefits-grid {
    gap: 12px !important;
}

.pk-ra-result .benefit-card {
    min-height: 172px !important;
    padding: 16px 10px !important;
}

.pk-ra-result .benefit-icon svg {
    width: 62px !important;
    height: 62px !important;
}

.pk-ra-result .benefit-card h3 {
    font-size: 12px !important;
    line-height: 1.18 !important;
    letter-spacing: 0.01em !important;
}

/* Bring section content almost flush with the top white panel */
.pk-ra-sections .section-title-wrapper,
.pk-ra-sections .prodotti-container {
    width: calc(100% - 8px) !important;
}

@media (max-width: 1599px) {
    .boxpr,
    .section-title-wrapper,
    .pk-ra-result.boxpr2 {
        max-width: 1840px !important;
    }

    .pk-ra-result .flex {
        grid-template-columns: minmax(280px, 0.84fr) minmax(500px, 0.98fr) 380px !important;
    }

    .pk-ra-result .benefits-col {
        width: 380px !important;
        min-width: 380px !important;
        max-width: 380px !important;
    }
}

@media (max-width: 991px) {
    /* Keep the whole mobile results area visually white so the black page background does not show between blocks */
    .pk-ra-result.boxpr2 {
        background: #ffffff !important;
        border-radius: 22px 22px 0 0 !important;
        overflow: hidden !important;
        margin-bottom: 0 !important;
    }

    .pk-ra-result .headmoto {
        border-radius: 22px 22px 0 0 !important;
    }

    .pk-ra-result .flex {
        background: #ffffff !important;
        padding: 22px 14px 8px !important;
        gap: 16px !important;
        border-radius: 0 !important;
    }

    .pk-ra-result .benefits-col {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-top: 6px !important;
    }

    .pk-ra-sections {
        background: #ffffff !important;
        margin-top: -1px !important;
        padding-top: 0 !important;
        border-radius: 0 0 20px 20px !important;
    }

    .pk-ra-sections .section-title-wrapper,
    .pk-ra-sections .prodotti-container {
        width: calc(100% - 10px) !important;
    }
}

/* === v22 desktop header proportions tweak === */
@media (min-width: 992px) {
    /* riequilibra le 3 colonne: più spazio a immagine e benefits, meno alla tabella */
    .pk-ra-result .flex {
        display: grid !important;
        grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.95fr) minmax(290px, 0.62fr) !important;
        align-items: center !important;
        gap: 22px !important;
    }

    .pk-ra-result .headmotor:first-child,
    .pk-ra-result .headmotorc,
    .pk-ra-result .benefits-col {
        min-width: 0 !important;
        width: auto !important;
    }

    .pk-ra-result .headmotor:first-child {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .pk-ra-result .headmotor:first-child img {
        width: 100% !important;
        max-width: 640px !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .pk-ra-result .headmotorc {
        max-width: 100% !important;
    }

    .pk-ra-result .headmotorc .grigio3 {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .pk-ra-result .benefits-col {
        display: flex !important;
        align-items: center !important;
    }

    .pk-ra-result .benefits-section {
        width: 100% !important;
    }

    .pk-ra-result .benefits-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .pk-ra-result .benefit-card {
        min-height: 152px !important;
        padding: 16px 8px !important;
    }

    .pk-ra-result .benefit-icon svg {
        width: 58px !important;
        height: 58px !important;
    }

    .pk-ra-result .benefit-card h3,
    .pk-ra-result .benefit-card h3 * {
        font-size: 13px !important;
        line-height: 1.18 !important;
        letter-spacing: .02em !important;
    }
}

@media (min-width: 1200px) {
    .pk-ra-result .flex {
        grid-template-columns: minmax(0, 1.26fr) minmax(0, 0.92fr) minmax(320px, 0.66fr) !important;
        gap: 24px !important;
    }

    .pk-ra-result .benefit-card {
        min-height: 160px !important;
    }

    .pk-ra-result .benefit-card h3,
    .pk-ra-result .benefit-card h3 * {
        font-size: 13.5px !important;
    }
}

/* ===== V23 desktop header proportions: 33% / 34% / 33% ===== */
@media (min-width: 1200px) {
    .pk-ra-result .flex {
        display: grid !important;
        grid-template-columns: minmax(0, 33fr) minmax(0, 34fr) minmax(0, 33fr) !important;
        gap: 18px !important;
        align-items: center !important;
    }

    .pk-ra-result .headmotor:first-child,
    .pk-ra-result .headmotorc,
    .pk-ra-result .benefits-col {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: initial !important;
    }

    .pk-ra-result .headmotor:first-child,
    .pk-ra-result .headmotorc {
        align-self: center !important;
    }

    .pk-ra-result .benefits-col {
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
    }

    .pk-ra-result .headmotor:first-child img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .pk-ra-result .benefits-grid {
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .pk-ra-result .benefit-card {
        min-height: 176px !important;
        padding: 16px 10px !important;
    }

    .pk-ra-result .benefit-icon svg {
        width: 64px !important;
        height: 64px !important;
    }

    .pk-ra-result .benefit-card h3 {
        font-size: 12px !important;
        line-height: 1.18 !important;
    }
}

/* ===== V24 selection pages width aligned to results shell ===== */
/* Marca / modello / motore must visually match the final results page width */
body.page-template-templates-page-ricerca-auto .boxpr:not(.pk-ra-result) {
    max-width: 1880px !important;
    width: min(1880px, calc(100vw - 170px)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.page-template-templates-page-ricerca-auto .boxpr:not(.pk-ra-result) .boxcon,
body.page-template-templates-page-ricerca-auto .boxpr:not(.pk-ra-result) .tfoot {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.page-template-templates-page-ricerca-auto .boxpr:not(.pk-ra-result) .boxcon {
    padding-left: 38px !important;
    padding-right: 38px !important;
}

@media (max-width: 1399px) {
    body.page-template-templates-page-ricerca-auto .boxpr:not(.pk-ra-result) {
        width: min(1760px, calc(100vw - 80px)) !important;
        max-width: 1760px !important;
    }
}

@media (max-width: 991px) {
    body.page-template-templates-page-ricerca-auto .boxpr:not(.pk-ra-result) {
        width: calc(100vw - 20px) !important;
        max-width: none !important;
    }

    body.page-template-templates-page-ricerca-auto .boxpr:not(.pk-ra-result) .boxcon {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ===== V25 selection pages width parity - body-class independent ===== */
/* Force marca / modello / motore wrapper to use the same visual shell width as the results page */
.boxpr:not(.pk-ra-result) {
    max-width: 1880px !important;
    width: min(1880px, calc(100vw - 170px)) !important;
    margin: 40px auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.boxpr:not(.pk-ra-result) .boxcon,
.boxpr:not(.pk-ra-result) .tfoot {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.boxpr:not(.pk-ra-result) .boxcon {
    padding-left: 32px !important;
    padding-right: 32px !important;
}

@media (max-width: 1399px) {
    .boxpr:not(.pk-ra-result) {
        max-width: 1760px !important;
        width: min(1760px, calc(100vw - 90px)) !important;
    }
}

@media (max-width: 991px) {
    .boxpr:not(.pk-ra-result) {
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .boxpr:not(.pk-ra-result) .boxcon {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* v28 - mobile: meno spazio vuoto attorno a dati veicolo e bottone; icone nascoste */
@media (max-width: 991px) {
    .pk-ra-result .flex {
        padding: 20px !important;
        gap: 14px !important;
    }

    .pk-ra-result .headmotorc {
        width: calc(100% - 40px) !important;
        max-width: calc(100% - 40px) !important;
        min-width: 0 !important;
        margin: 0 auto !important;
    }

    .pk-ra-result .titoloheadmoto,
    .pk-ra-result .headmotorc .table,
    .pk-ra-result .buttonback {
        width: 100% !important;
        max-width: 100% !important;
    }

    .pk-ra-result .buttonback {
        margin-top: 14px !important;
    }

    .pk-ra-result .benefits-col,
    .pk-ra-result .benefits-section,
    .pk-ra-result .benefits-grid,
    .pk-ra-result .benefit-card {
        display: none !important;
    }
}

@media (max-width: 599px) {
    .pk-ra-result.boxpr2 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pk-ra-result .flex {
        padding: 20px !important;
        gap: 12px !important;
    }

    .pk-ra-result .headmotorc {
        width: calc(100% - 40px) !important;
        max-width: calc(100% - 40px) !important;
        margin: 0 auto !important;
    }

    .pk-ra-result .titoloheadmoto {
        margin-bottom: 0 !important;
    }

    .pk-ra-result .headmotorc .table td {
        padding: 12px 12px !important;
        font-size: 15px !important;
    }

    .pk-ra-result .buttonback {
        max-width: 100% !important;
        margin: 14px auto 0 !important;
    }

    .pk-ra-result .benefits-col,
    .pk-ra-result .benefits-section,
    .pk-ra-result .benefits-grid,
    .pk-ra-result .benefit-card,
    .pk-ra-result .desk {
        display: none !important;
    }
}

/* v32 - desktop modal width 70vw + only modal scrolls when open */
@media (min-width: 1024px) {
    html:has(.modalDialog:target),
    body:has(.modalDialog:target) {
        overflow: hidden !important;
        height: 100% !important;
    }

    .modalDialog {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding: 32px 0 !important;
    }

    .modalDialog > div {
        width: 70vw !important;
        max-width: 70vw !important;
        min-width: 70vw !important;
        margin: 0 auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* v39 - Desktop benefit titles bigger */
@media (min-width: 992px) {
    .pk-ra-result .benefits-grid .benefit-card > h3,
    .pk-ra-result .benefits-grid .benefit-card h3,
    .pk-ra-result .benefits-grid .benefit-card h3 * {
        font-size: 18px !important;
        line-height: 1.15 !important;
    }
}


/* === v44 modal feature list readable width === */
@media (min-width: 1024px) {
  .modalDialog .modal-feature-list {
    width: 100% !important;
    max-width: 450px !important;
    margin: 0 auto !important;
  }

  .modalDialog .modal-feature-item {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 10px !important;
    text-align: left !important;
  }

  .modalDialog .modal-feature-item > span:last-child {
    flex: 1 1 auto !important;
    display: block !important;
    text-align: left !important;
    line-height: 1.55 !important;
  }
}

/* v60 - mobile graph modal close always visible */
.modalDialog .close {
    z-index: 100001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, 0.78) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28) !important;
    line-height: 1 !important;
}

.modalDialog .close:hover {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.9) !important;
}

@media (max-width: 1023px) {
    .modalDialog {
        padding: 18px 10px !important;
    }

    .modalDialog > div {
        padding-top: 68px !important;
    }

    .modalDialog .close {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
        font-size: 26px !important;
    }

    .modalDialog > div img {
        display: block;
        max-width: 100%;
        height: auto;
    }
}

/* v63 - desktop graph modals keep max size and remove white inner panel */
@media (min-width: 1024px) {
    .modalDialog[id^="openModalDyno"] > div {
        width: 70vw !important;
        max-width: 70vw !important;
        min-width: 70vw !important;
    }

    .modalDialog[id^="openModalDyno"] > div > div {
        background: #111 !important;
        color: #fff !important;
    }

    .modalDialog[id^="openModalDyno"] > div > div > div {
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box;
    }

    .modalDialog[id^="openModalDyno"] > div > div > div img,
    .modalDialog[id^="openModalDyno"] img {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 72vh !important;
        margin: 0 auto !important;
    }
}


/* v64 - inline note box inside ricerca auto product cards */
.pk-ra-note-box {
    margin: 16px 0 10px !important;
    padding: 16px 18px !important;
    border: 1px solid #ead9b8 !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #fbf4e7 0%, #f6ecd8 100%) !important;
    color: #8a5a15 !important;
    font-size: 1.55rem !important;
    line-height: 1.65 !important;
    text-align: left !important;
}

.pk-ra-note-label {
    color: #8a5a15 !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
}

.pk-ra-note-text {
    color: #8a5a15 !important;
    font-weight: 600 !important;
}

.pk-ra-note-text br {
    content: "" !important;
}

@media (max-width: 768px) {
    .pk-ra-note-box {
        padding: 14px 15px !important;
        font-size: 1.35rem !important;
        line-height: 1.55 !important;
    }
}

/* ============================================================
   CAROSELLO NOVITÀ — schermata iniziale scelta marca
   ============================================================ */
.pk-news-carousel {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1800px;
    margin: 32px auto 0;
    overflow: hidden;
    background: #050505;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
}

.pk-news-carousel__viewport {
    width: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.pk-news-carousel__track {
    display: flex;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.pk-news-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
    background: #050505;
}

.pk-news-carousel__slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 767;
    object-fit: contain;
    background: #050505;
}

.pk-news-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(5px);
}

.pk-news-carousel__arrow:hover,
.pk-news-carousel__arrow:focus-visible {
    background: #D4231D;
    border-color: #D4231D;
    transform: translateY(-50%) scale(1.06);
    outline: none;
}

.pk-news-carousel__arrow--prev {
    left: 18px;
}

.pk-news-carousel__arrow--next {
    right: 18px;
}

.pk-news-carousel__dots {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 9px;
    pointer-events: none;
}

.pk-news-carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    pointer-events: auto;
    transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.pk-news-carousel__dot.is-active {
    width: 28px;
    border-color: #D4231D;
    border-radius: 10px;
    background: #D4231D;
}

.pk-news-carousel.is-single .pk-news-carousel__track {
    transition: none;
}

/* Desktop: banner più compatto in altezza senza modificare il mobile */
@media (min-width: 769px) {
    .pk-news-carousel__slide img {
        aspect-ratio: 1920 / 600;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 768px) {
    .pk-news-carousel {
        width: calc(100% - 24px);
        margin-top: 18px;
        border-radius: 12px;
    }

    .pk-news-carousel__arrow {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .pk-news-carousel__arrow--prev {
        left: 9px;
    }

    .pk-news-carousel__arrow--next {
        right: 9px;
    }

    .pk-news-carousel__dots {
        bottom: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pk-news-carousel__track,
    .pk-news-carousel__arrow,
    .pk-news-carousel__dot {
        transition: none;
    }
}
