/* ==========================================================
   STILI GENERALI & BANNER
   ========================================================== */
.page-header-inner {
    background: rgba(0, 0, 0, .3) !important;
}

.banner {
    padding-top: 100px;
    padding-bottom: 100px;
}

.team-item {
    border: 1px solid #9E9E9E;
    border-bottom: 5px solid #000;
}

.team-item small {
    color: #596277;
}

.team-item img {
    transition: all .5s ease-out 0s;
}

.box_veicoli:hover > .team-item > div > img {
    transform: scale(1.15);
}

.box_veicoli:hover > .team-item {
    border-bottom: 5px solid #D81324;
}

.box_veicoli:hover > .team-item h5 {
    color: #D81324;
}

.init_div_page {
    margin-top: 0px !important;
}

/* ==========================================================
   LAYOUT STRUTTURALE DETTAGLIO VEICOLO
   ========================================================== */
.content-veicolo {
    width: 100%;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box;
}

.detail-element {
    flex: 1 1 74%;
    min-width: 0;
    box-sizing: border-box;
}

.other-photo {
    flex: 0 0 23%;
    min-width: 210px;
    box-sizing: border-box;
}

/* ==========================================================
   TITOLO VEICOLO E BADGE LOGO
   ========================================================== */
.content-title-car {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #fff;
}

.text-title-car {
    width: 100%;
}

h1.nomeveicolo {
    font-size: 22px;
    text-align: left;
    padding: 10px 14px;
    margin-bottom: 0;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #333;
}

h1.nomeveicolo img.logo-marchio {
    max-height: 28px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================
   BLOCCO SUPERIORE: FOTO PRINCIPALE E DATI CHIAVE
   ========================================================== */
.content-photo-detail-top {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 25px;
}

.main-photo-col {
    flex: 1 1 54%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.main-photo-car {
    width: 100%;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    background-color: #000;
    line-height: 0;
}

.main-photo-car a.zoom_main_photo {
    display: block;
    width: 100%;
    cursor: pointer;
    line-height: 0;
}

.main-photo-car img.photo-veicolo-box {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

/* Badge disponibilit&#65533; veicolo */
span.disponibility {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 14px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 0 0 8px 0;
    z-index: 5;
    line-height: normal;
}

span.disponibility.si { background-color: #21ba45; }
span.disponibility.no { background-color: #f51818; }
span.disponibility.ni { background-color: #ffb101; }

/* Contatore foto: ancorato sopra la foto in basso a sinistra */
.numberphotocar {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-family: "Ubuntu", sans-serif;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    z-index: 5;
    line-height: normal;
    border: 1px solid rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

/* Frecce di navigazione foto: eliminate */
.arrow-photo-box,
.prev-photo-box,
.next-photo-box,
[id^="a_left_img_"],
[id^="a_right_img_"] {
    display: none !important;
}

/* ==========================================================
   PULSANTI SOCIAL SOTTO LA FOTO PRINCIPALE
   ========================================================== */
.car-social-share {
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.car-social-share .share-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.car-social-share .share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.car-social-share .btn-social-share {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.car-social-share .btn-social-share:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.car-social-share .btn-social-share.share-wa { background-color: #25D366; }
.car-social-share .btn-social-share.share-fb { background-color: #1877F2; }
.car-social-share .btn-social-share.share-x  { background-color: #000000; }
.car-social-share .btn-social-share.share-tg { background-color: #229ED9; }
.car-social-share .btn-social-share.share-cp { background-color: #5a6268; cursor: pointer; border: none; }

/* ==========================================================
   COLONNA PREZZO E LISTA SPECIFICHE
   ========================================================== */
.list-data-car {
    flex: 1 1 38%;
    min-width: 280px;
}

.content-price {
    margin-bottom: 14px;
    text-align: right;
}

p.main-price {
    font-size: 32px;
    font-weight: 700;
    color: #2c3038;
    margin-bottom: 2px;
    line-height: 1.1;
    text-align: right;
}

p.main-price span.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 20px;
    margin-right: 8px;
}

p.main-price span.elab_price {
    font-size: 20px;
    color: #666;
}

p.no-iva-price {
    font-size: 13px;
    font-style: italic;
    color: #6c757d;
    margin: 0;
    text-align: right;
    display: none;
}

.content-other-data {
    width: 100%;
    margin-bottom: 18px;
}

ul.list-data-car {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0;
    margin: 0;
    background-color: #fff;
    list-style: none;
    overflow: hidden;
}

.car-data-row {
    display: flex;
    border-bottom: 1px solid #eee;
    min-height: 34px;
    list-style: none;
}

.car-data-row:last-child {
    border-bottom: none;
}

.car-data-row.bg-gray {
    background-color: #f9fafb;
}

.car-data-row .li-label {
    flex: 0 0 45%;
    padding: 8px 12px;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #eee;
}

.car-data-row .li-value {
    flex: 1 1 55%;
    padding: 8px 12px;
    color: #555;
    text-align: right;
}

/* Box Contatti Telefonici */
.content-phone {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.box-telefoni-veicolo {
    display: flex;
    flex-direction: column;
}

.telefono-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background .2s ease;
}

.telefono-item:last-child {
    border-bottom: none;
}

.telefono-item:hover {
    background-color: #f8f9fa;
    color: #d81324;
}

.telefono-item .icon-tel {
    padding: 10px 14px;
    background-color: #21ba45;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.telefono-item .num-tel {
    font-size: 15px;
    font-weight: 700;
}

/* ==========================================================
   MINIATURE LATERALI (.other-photo)
   ========================================================== */
.other-photo .demo-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.other-photo .demo-gallery a {
    display: block;
    width: 100% !important;
    height: 130px !important;
    float: none !important;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.other-photo .demo-gallery a:hover {
    transform: translateY(-2px);
    border-color: #d81324;
}

.other-photo .demo-gallery a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* ==========================================================
   GALLERIA COMPLETA INFERIORE (#gallery-row)
   ========================================================== */
#gallery-row {
    width: 100%;
    margin-bottom: 25px;
    clear: both;
}

#gallery-row .demo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

#gallery-row .demo-gallery a {
    flex: 0 0 calc(33.333% - 7px);
    height: 180px;
    background-color: #000;
    border: 2px solid #fff;
    border-radius: 4px;
    overflow: hidden;
    float: none;
}

#gallery-row .demo-gallery a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================
   SCHEDE, FISARMONICHE E TOGGLE
   ========================================================== */
.descrizione-veicolo, 
.caratteristiche, 
.optional, 
.desc-contact {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 25px;
    background-color: #fff;
    overflow: hidden;
    clear: both;
}

.descrizione-veicolo h3, 
.caratteristiche h3, 
.equipaggiamento-veicolo h3, 
.desc-contact h3 {
    font-size: 18px;
    padding: 10px 15px;
    margin: 0;
    background-color: #f9fafb;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
}

.caratteristiche h3,
.equipaggiamento-veicolo h3 {
    cursor: pointer;
    user-select: none;
}

.btn-toggle-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #444;
    transition: background 0.2s ease;
}

.btn-toggle-box:hover {
    background: #e9ecef;
}

/* Descrizione veicolo */
.content-real-descr {
    width: 100%;
    padding: 18px 20px;
    box-sizing: border-box;
}

.content-real-descr p {
    font-weight: normal;
    color: #444;
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================
   DATI MOTORE E STATO VEICOLO
   ========================================================== */
.hide-show-cara {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box;
}

.motore-veicolo, 
.stato-veicolo {
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
    box-sizing: border-box;
}

.hide-show-cara ul {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hide-show-cara ul li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.hide-show-cara ul li:last-child {
    border-bottom: none;
}

.hide-show-cara ul li.title-box {
    background-color: #f9fafb;
    border-bottom: 1px solid #ddd;
}

.hide-show-cara ul li.title-box h4 {
    margin: 0;
    font-size: 15px;
    text-transform: uppercase;
    color: #333;
}

.hide-show-cara ul li span strong {
    color: #111;
}

/* ==========================================================
   EQUIPAGGIAMENTO
   ========================================================== */
.hide-show-equi {
    padding: 15px;
    box-sizing: border-box;
}

.hide-show-equi ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hide-show-equi ul li {
    flex: 0 0 calc(50% - 12px);
    margin: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #444;
    box-sizing: border-box;
}

/* ==========================================================
   MODULO CONTATTI E PRIVACY
   ========================================================== */
.content-form-car {
    padding: 20px;
}

#modulo {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

#modulo .form-field {
    flex: 1 1 calc(50% - 14px);
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #333;
    margin: 0;
    box-sizing: border-box;
}

#modulo .form-field-full {
    flex: 1 1 100%;
}

#modulo input[type="text"], 
#modulo textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-top: 4px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #f5f5f5;
}

#modulo textarea {
    resize: vertical;
}

#modulo input#oggetto {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.content-privacy {
    width: 100%;
    max-height: 90px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9fafb;
    font-size: 13px;
    color: #666;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Checkbox consenso allineata a sinistra */
.consenso-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.consenso-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.content-btn {
    width: 100%;
    margin-top: 4px;
}

#modulo input#invio2 {
    background: #d81324;
    border: 1px solid #d81324;
    color: #fff;
    padding: 10px 32px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background .2s ease;
}

#modulo input#invio2:hover {
    background: #b8101f;
    border-color: #b8101f;
}

/* ==========================================================
   MEDIA QUERIES (TABLET & SMARTPHONE)
   ========================================================== */
@media (max-width: 1200px) {
    .other-photo {
        display: none !important;
    }
    .detail-element {
        flex: 1 1 100%;
        width: 100%;
        float: none;
    }
}

@media (max-width: 991px) {
    .main-photo-col, 
    .list-data-car {
        flex: 1 1 100%;
        min-width: 100%;
    }
    #gallery-row .demo-gallery a {
        flex: 0 0 calc(50% - 5px);
        height: 150px;
    }
}

@media (max-width: 767px) {
    .page-header {
        display: none;
    }
    .hide-show-cara > div {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .hide-show-equi ul li {
        flex: 1 1 100%;
        margin: 0 0 6px 0;
    }
    #modulo .form-field {
        flex: 1 1 100%;
    }
    p.main-price {
        font-size: 26px;
    }
    .car-social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    #gallery-row .demo-gallery a {
        flex: 0 0 100%;
        height: 180px;
    }
    h1.nomeveicolo {
        font-size: 19px;
    }
}

