/* ============================
   GRID LAYOUT PRINCIPALE
============================ */
.lr-vd-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr; /* sinistra: immagini/info, destra: CTA */
    gap: 20px;
    margin-bottom: 50px;
}

.lr-vd-left { } /* contenitore principale sinistra */

/* ============================
   IMMAGINE PRINCIPALE
============================ */
/* Limite dimensione immagine principale */
.lr-vd-main-img {
    width: 100%;
    padding: 15;
    max-width: 100%;       /* <-- limite massimo consigliato */
    overflow: hidden;        /* impedisce che l’immagine sbordi */
    display: flex;
    justify-content: center;
    align-items: center;
}

.lr-vd-main-img img {
    max-height: 100%;
    width: auto;
    object-fit: contain;     /* mantiene proporzioni perfette */
}

/* Bottone fullscreen immagine */
.lr-vd-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
/* ===========================
    FAVOURITE
=============================*/





/* ============================
    STATUS
==============================*/
.lr-vd-status-container{
    display: flex;
    flex-direction: row;
    flex: 1 1 0;
    align-content: space-between;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}
.lr-vd-status-container .status,
.lr-vd-status-container .cond{
    padding: 10px !important;
    width: fit-content !important;
    color: #fff !important;
}
.lr-vd-status-container .status{
    background: #282761;
}
.lr-vd-status-container .cond{
    background:#ffcc00 ;
}

/* ============================
    LINK TEXT
==============================*/
.lr-vd-link_text{
    width: fit-content;
    margin: 10px;
    padding: 10px;
    font-size: 16px;
    color: #fff;
    background:#282761;
}

/* ============================
   THUMBNAILS
============================ */
.lr-vd-thumbs {
    display: flex;
    gap: 12px;
    padding: 15px;
    border: 1px solid #ebebeb;
    flex-wrap: wrap;
    background: #fafafa;
}

.lr-vd-thumb {
    width: 100px;
    height: auto;
    border: 4px solid #ebebeb;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);

}

.lr-vd-thumb.active {
    border: 4px solid #ffcc00 !important; /* evidenzia thumb selezionata */
}

.lr-vd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================
   BOX CALL TO ACTION (CTA)
============================ */
.lr-vd-cta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
}

.lr-vd-cta-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
    width: 100%;
}

.lr-vd-cta-box h3 {
    margin-bottom: 5px;
    font-size: 22px;
}

.lr-vd-cta-box label {
    display: block;
    margin: 10px 0 6px;
    font-weight: 600;
}

.lr-vd-cta-box select,
.lr-vd-cta-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.lr-vd-cta-box .lr-vd-radio-group{
    margin: 15px 0px;
}

.lr-formula-group{
    background-color: #28276109;
    padding: 10px;
    border: 1px solid #ebebeb;
    margin: 10px 0px;
}

.lr-vd-price-longrent,
.lr-vd-price-shortrent,
.lr-vd-price-lease {
    background-color: white;
    border: 1px solid #ebebeb;
    padding: 10px;
    font-size: 18px;
    margin: 20px 0;
}
.lr-vd-price-longrent h4,
.lr-vd-price-shortrent h4,
.lr-vd-price-lease h4 {
    position: relative;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0px;
    color: #333333;
    margin-bottom: 10px;
    padding-bottom: 6px;
}

.lr-vd-price-longrent h4::after,
.lr-vd-price-shortrent h4:after,
.lr-vd-price-lease h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #fcb040;
}


/* ====== BOTTONE FORMULA ====== */

.lr-vd-price-longrent a,
.lr-vd-price-shortrent a,
.lr-vd-price-lease a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 16px;
    margin-top: 10px;

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    text-decoration: none !important;
    color: #ffffff !important;

    background-color: #1c1a4d; /* blu scuro base */
    border: 1px solid #1c1a4d;
    border-radius: 5px;

    transition: all 0.25s ease;
}

/* Nascondo testo originale */
/* #lr-formula-longrent-note,
#lr-formula-lease-note {
    font-size: 0;
} */

/* Testo nuovo */
.lr-vd-price-longrent a::after,
.lr-vd-price-shortrent a:after,
.lr-vd-price-lease a::after {
    content: "Servizi inclusi";
    font-size: 0.75rem;
    color: #ffffff !important;
}

/* Freccia */
.lr-vd-price-longrent a::before,
.lr-vd-price-shortrent a:before,
.lr-vd-price-lease a::before {
    content: "→";
    font-size: 0.75rem;
    color: #ffffff !important;
    transition: transform 0.25s ease;
}

/* Hover - PIÙ CHIARO */
.lr-vd-price-longrent a:hover,
.lr-vd-price-shortrent a:hover,
.lr-vd-price-lease a:hover {
    background-color: #2f2c8a; /* blu più chiaro */
    border-color: #2f2c8a;
}

/* Hover freccia */
.lr-vd-price-longrent a:hover::before,
.lr-vd-price-shortrent a:hover::before {
    transform: translateX(4px);
    color: #ffffff !important;
}


.lr-vd-price-longrent small,
.lr-vd-price-shortrent small,
.lr-vd-price-lease small {
    display: inline-block;
    font-size: 14px;
    margin-top: -5px;
    padding-left: 5px;
}
.lr-vd-price-old {
    font-weight: 700;
    text-decoration: line-through !important;
    margin-right: 5px;
}

.lr-vd-btn-yellow {
    background: #ffd400;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}
.lr-vd-btn-yellow:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    border-color: #bdbdbd !important;
}

/* ============================
   TABS
============================ */
.lr-vd-tabs {
    margin-top: 40px;
}

.lr-vd-tab-headers {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #e6e6e6;
    margin-bottom: 20px;
}

.lr-vd-tab {
    padding: 10px 0;
    cursor: pointer;
    font-weight: bold;
    position: relative;
}

.lr-vd-tab.lr-vd-active {
    color: #ffcc00;
}

.lr-vd-tab.lr-vd-active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffcc00;
}

.lr-vd-tab-content {
    display: none;
}

.lr-vd-tab-content.lr-vd-active {
    display: block;
}

/* ============================
   TITOLO E INFO VEICOLO
============================ */
.lr-vd-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lr-vd-fav-icon {
    cursor: pointer;
    transition: transform 0.2s;
}

.lr-vd-fav-icon.active {
    stroke: #e1174d;
    fill: #e1174d;
}

.lr-vd-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.lr-vd-info p {
    margin: 8px 0;
    font-size: 16px;
    color: #555;
}

.lr-vd-info strong {
    color: #000;
}
.lr-vd-info-note{
    margin-top: 10px;
    font-size: 12px;
}

/* ============================
   BLOCCO INFO VETTURA + GARAGE
============================ */
.lr-vd-info-flex {
    display: flex;           /* container flex per due colonne */
    gap: 10px;               /* spazio tra colonne */
    margin-bottom: 20px;
}

.lr-vd-info-left,
.lr-vd-info-right {
    flex: 1;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    padding: 10px;
}

.lr-vd-info-left p,
.lr-vd-info-right p {
    margin: 3px 0;
    font-size: 15px;
}
.lr-vd-info-left{
    background: #f5f5f5;
}

.lr-vd-info-right h4 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

/* ===========================
   FORMULA NOTE
=========================== */
.lr-formula {
    margin: 10px 0;
    padding: 20px;
    background: #f5f5f5;
}

.lr-formula-columns {
    display: flex;
    gap: 40px;
}

.lr-formula-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lr-formula-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
}

.chk {
    width: 22px;
    height: 22px;
    border: 2px solid #1e2254;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    font-size: 15px;
    line-height: 1;
}

.chk.empty {
    font-weight: normal;
}

.lr-formula hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 25px 0;
}

.bottom-options .lr-formula-list li {
    margin-bottom: 15px;
}
/* ============================
   STILE MODAL WPForms
============================ */
.lr-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto; /* scroll verticale se necessario */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* padding per evitare che la modal tocchi i bordi su mobile */
}

.lr-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 25px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh; /* limita l’altezza massima al 90% della viewport */
    overflow-y: auto; /* scroll interno se il contenuto è lungo */
}
.lr-modal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.lr-modal-info-item {
    flex: 1 1 45%; /* due colonne su desktop */
    background: #f5f5f5;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lr-modal-info-item strong {
    margin-right: 8px;
}

/* Bottone chiudi */
.lr-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

.wpform-field-to-hide  {
    position: relative; /* serve per riferimenti interni */
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.wpform-field-to-hide * {
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
    .lr-vd-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lr-vd-cta-box {
        position: relative;
        top: auto;
    }

    .lr-vd-thumbs {
        justify-content: center;
        flex-wrap: wrap;
    }

    .lr-vd-thumb {
        width: 70px;
        height: 50px;
    }

    .lr-vd-info-flex {
        flex-direction: column; /* sotto 768px le colonne diventano stackate */
        gap: 20px;
    }
    .lr-vd-info-left,
    .lr-vd-info-right {
        /* quando diventano stackate non vogliamo più il centering verticale */
        justify-content: flex-start;
    }
     .lr-modal-content {
        max-width: 90%;
        padding: 20px;
    }
    .wpforms-one-half,
    .wpforms-one-half.wpforms-first {
        width: 100% !important;
        display: block;
    }
     .lr-modal-info-item {
        flex: 1 1 100%;
    }

    .lr-vd-main-img{
        max-width: 100vw !important;
    }
    .lr-formula-columns{
        flex-direction: column !important;
    }
}
@media (max-width: 480px) {

    .lr-modal-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }

    .lr-vd-main-img{
        max-width: 100vw !important;
    }

    .lr-formula-columns{
        flex-direction: column !important;
    }
}
/* ============================
   RADIO BUTTON → BUTTON STYLE
   ============================ */

.lr-vd-radio-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

.lr-vd-radio-group > label:first-child {
    font-weight: 600 !important;
    font-size: 15px !important;
    margin-top: 0px !important;
    margin-bottom: 5px !important;
    color: #333 !important;
}

/* Wrapper del radio */
.lr-vd-radio {
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

/* Nascondo il radio */
.lr-vd-radio input[type="radio"] {
    display: none !important;
}

/* Stato base = leggermente “disabled” */
.lr-vd-radio span {
    display: inline-block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 6px !important;
    border: 1px solid #dcdcdc !important;
    /*background: #e5e5e5 !important;*/
    font-size: 14px !important;
    font-weight: 500 !important;
    /*color: #777 !important;*/
    opacity: 0.7 !important;   /* effetto disabled */
    transition: all .2s ease !important;
    cursor: pointer !important;
}

/* Hover solo se NON selezionato */
.lr-vd-radio span:hover {
    background: #dcdcdc !important;
}

/* Stato selezionato */
.lr-vd-radio input[type="radio"]:checked + span {
    background: #ffcc00 !important;
    border-color: #ffcc00 !important;
    color: #000 !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15) !important;
}

/* call t action */
.lr-vd-cta-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0px;
}

.lr-vd-cta-outline {
  display: inline-flex;
  align-items: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 20px;
  color: #282761;
  border: 1px solid #282761;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.lr-vd-cta-outline:hover {
  background: #282761;
  color: #ffffff;
}
.lr-vd-whatsapp {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.lr-whatsapp-btn {
    display: inline-flex;
    align-items: center;  /* centra icona e testo verticalmente */
    gap: 10px;

    padding: 9px 16px;
    border-radius: 6px;

    background: #25D366;
    border: 1px solid #25D366;

    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;

    color: #ffffff !important;
    text-decoration: none !important;

    transition: all 0.25s ease;
}

/* Corregge l’allineamento verticale dell’icona */
.lr-whatsapp-btn .lr-wa-icon {
    display: flex;
    align-items: center;  /* centra il svg all’interno dello span */
}

.lr-whatsapp-btn .lr-wa-icon svg {
    width: 22px;
    height: 22px;
    display: block;       /* rimuove eventuali spazi bianchi sotto svg */
    fill: #ffffff;
}

.lr-whatsapp-btn:hover {
    background: #ffffff;
    color: #25D366 !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25);
    transform: translateY(-2px);
}

.lr-whatsapp-btn:hover .lr-wa-icon svg {
    fill: #25D366;
}

#wpforms-1886-field_11-container input{
    visibility: hidden !important;
}


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

@media (min-width: 600px) {
    .lr-vd-radio-group {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    .lr-vd-radio-group > label:first-child {
        flex-basis: 100% !important;
    }

    .lr-vd-radio {
        flex: 1 1 calc(33% - 10px) !important;
    }

    .lr-vd-radio span {
        width: 100% !important;
    }
}

@media (min-width: 1024px) {
    .lr-vd-radio {
        flex: 1 1 calc(33% - 10px) !important;
    }
}
