/* Schede condivise dalla home e dalle categorie. */
.stock-cards .sc-row {
    margin-inline: -12px;
}

.stock-cards .sc-row > [class*="col-"] {
    padding-inline: 12px;
    margin-bottom: 24px;
}

.home-car {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d5dad6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(25,35,38,.09);
}

.home-car:hover {
    border-color: #b8c1b8;
    box-shadow: 0 8px 22px rgba(25,35,38,.1);
}

.home-car__image {
    position: relative;
    display: block;
    height: 240px;
    overflow: hidden;
    background: #f1f2f0;
}

.home-car__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.home-car__condition {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border: 1px solid #eadbd8;
    border-radius: 6px;
    background: #fff;
    color: var(--brand);
    font-size: .7rem;
    font-weight: 600;
}

.home-car__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.home-car h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    line-height: 1.35;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.home-car h3 a {
    color: var(--ink);
    text-decoration: none;
}

.home-car h3 a:hover {
    color: var(--brand);
}

.home-car__model {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.home-car__price {
    margin: 0 0 18px;
    color: var(--brand);
    font-size: 1.6rem;
    letter-spacing: -.035em;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.home-car__specs {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px 16px;
    margin: 0 0 20px;
    padding: 16px 0 0;
    border-top: 1px solid #dce0d8;
    list-style: none;
}

.home-car__specs li {
    min-width: 0;
    overflow-wrap: anywhere;
}

.home-car__specs span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: .7rem;
}

.home-car__specs strong {
    color: var(--ink);
    font-size: .85rem;
    font-weight: 500;
}

.home-car__actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
}

.home-car__actions a, .home-car__actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 8px;
    border: 1px solid #d5dad6;
    border-radius: 8px;
    background: #fff;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.home-car__actions a {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.home-car__actions a:hover {
    border-color: #8e0402;
    background: #8e0402;
}

.home-car__actions button {
    color: var(--ink);
}

.home-car__actions button:hover {
    border-color: #aeb9b2;
    background: #f4f5f3;
}

@media(max-width:575px) {
    .home-car__image {
        height: 260px;
    }
}

.home-car--sold .home-car__image img {
    filter: grayscale(1);
}

.home-car--sold .home-car__condition {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
