.flotta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

/* Card AUTO */
.flotta-card.auto {
    background: linear-gradient(0deg, #ffffff 0%, #BE2828 100%);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.25s ease;
    border: 1px solid #D8D4D4;
}

.flotta-card.auto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Card FURGONI */
.flotta-card.furgone {
    background: linear-gradient(0deg, #ffffff 0%, #525252 100%);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.25s ease;
    border: 1px solid #D8D4D4;
}

.flotta-card.furgone:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}


.flotta-title {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 8px;
	color: #ffffff;
}

.flotta-title-sub {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
	color: #ffffff;
}

.flotta-sub {
    font-size: 14px;
	font-weight: 500;
    color: #606060;
}

.foto-veicolo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0 15px 0;
    object-fit: cover;
}


.prezzo-box {
    margin: 12px 0 18px 0;
}

.prezzo-valore {
    font-size: 34px;      /* grande e ben visibile */
    font-weight: 700;     /* molto marcato */
    color: #2F2D2D;       /* o un colore più acceso se vuoi */
    display: block;
    line-height: 1.0;
}

.prezzo-testo {
    font-size: 14px;      /* piccolo */
    font-weight: 500;     /* leggero */
    color: #606060;     /* leggermente trasparente */
    display: block;
    margin-top: 3px;
}


    
/* Tablet: 2 colonne */
@media(max-width: 1024px){
    .flotta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 colonna */
@media(max-width: 768px){
    .flotta-grid {
        grid-template-columns: 1fr;
    }
}



/* Desktop: allineato a destra */
#filtroForm {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* Mobile: centrato */
@media (max-width: 768px) {
    #filtroForm {
        justify-content: center;
    }
}


/* Select moderno */
#filtroForm select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 12px 40px 12px 16px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;

    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Hover */
#filtroForm select:hover {
    border-color: #888;
}

/* Focus */
#filtroForm select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}


/* PAGINA DETAILS */

/* Wrapper principale */
.details-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* Colonna sinistra (65%) */
.details-left {
    flex: 0 0 50%;
	background: #ffffff;
	padding: 20px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border-radius: 8px;
}

/* Colonna destra (35%) */
.details-right {
    flex: 0 0 50%;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
}

/* Foto grande */
.details-foto {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Titolo */
.details-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Info */
.details-info p {
    font-size: 16px;
    margin: 8px 0;
}

/* Pulsante torna indietro */
.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
}

/* MOBILE */
@media (max-width: 768px) {
    .details-wrapper {
        flex-direction: column;
    }

    .details-left,
    .details-right {
        flex: 100%;
    }
}


.details-foto-wrapper {
    position: relative;
    width: 100%;
    padding: 10px 10px;
    border-radius: 7px;
    overflow: hidden;
}

.details-foto-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* AUTO */
.details-foto-wrapper.auto::before {
background: linear-gradient(0deg, #ffffff 0%, #be2828 100%);
}

/* FURGONI */
.details-foto-wrapper.furgone::before {
background: linear-gradient(0deg, #ffffff 0%, #525252 100%);
}


.details-foto {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.thumbs-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.thumb-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid #ddd;
}

.thumb-img:hover {
    transform: scale(1.05);
}

.hidden-gallery-item {
    display: none;
}


.details-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;

}

.spec-card {
    flex: 1 1 calc(33.333% - 16px);
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    min-width: 160px;
}

.spec-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    flex-shrink: 0;
}

.spec-icon svg {
    width: 100%;
    height: 100%;
    fill: #c8102e; /* colore brand */
}

.spec-text {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #777;
}

.spec-value {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

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


/* Contenitore generale */
.details-toggles {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ogni toggle è identico a una spec-card */
.toggle-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Header cliccabile */
.toggle-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* icona sinistra + freccia destra */
    padding: 14px 16px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
	color: #333;
}

/* Icona a sinistra */
.toggle-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-left svg {
    width: 26px;
    height: 26px;
    fill: #c8102e; /* colore brand */
}

/* Freccia a destra */
.toggle-arrow {
    width: 20px;
    height: 20px;
    transition: transform .25s ease;
    fill: #444;
}

/* Ruota quando aperto */
.toggle-item.open .toggle-arrow {
    transform: rotate(180deg);
}

/* Contenuto */
.toggle-content {
    display: none;
    padding: 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}


/* Wrapper generale */
.preventivo-form {
    max-width: 800px;
    margin: 30px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Campi */
.preventivo-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preventivo-field label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.preventivo-field input {
    width: 100%;          /* 🔥 aggiunto */
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color .2s;
    box-sizing: border-box; /* 🔥 evita overflow */
}


.preventivo-field input:focus {
    border-color: #c8102e;
    outline: none;
}

/* Privacy */
.preventivo-privacy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preventivo-privacy-label {
    font-size: 15px;
    font-weight: 600;
	    color: #333;
}

.preventivo-radio-group {
    display: flex;
    gap: 20px;
    font-size: 15px;
		    color: #333;
}

.preventivo-radio-group input {
    margin-right: 6px;
}

.preventivo-privacy-link a {
    font-size: 14px;
    color: #c8102e;
    text-decoration: underline;
}

/* Pulsante */
.preventivo-submit {
    padding: 14px;
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.preventivo-submit:hover {
    background: #a00d24;
}


/* Forza la larghezza al 100% */
.preventivo-form .preventivo-field input {
    width: 100% !important;
    box-sizing: border-box;
}

/* Forza anche il bottone */
.preventivo-form .preventivo-submit {
    width: 100% !important;
    box-sizing: border-box;
}
