/* Solo index: copertina, ricerca e card compatte. */
.home-page {
    background: #fff;
}

.home-page .site-heading, .home-page .stock-cards {
    max-width: 1240px;
}

.home-page .site-heading {
    padding: 56px 24px 24px;
}

.home-page .site-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem,3.2vw,2.5rem);
}

.home-page .site-heading p {
    margin: 12px 0 0;
}

/* Copertina: foto a tutta larghezza e testo su una sfumatura scura. */
.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;
    margin-top: 80px;
    background: #182421;
    color: #fff;
}

.home-hero__picture {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

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

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(8,20,18,.92),rgba(8,20,18,.7) 42%,rgba(8,20,18,.12));
}

.home-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 24px;
}

.home-hero .site-kicker {
    color: #fff;
    margin-bottom: 22px;
}

.home-hero h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2.5rem,5vw,4.5rem);
    line-height: 1.07;
    letter-spacing: -.045em;
    font-weight: 750;
}

.home-hero p {
    max-width: 400px;
    margin: 22px 0 32px;
    color: #f0f3f1;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.home-hero__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid var(--brand);
    border-radius: 4px;
    background: var(--brand);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.home-hero__actions a + a {
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: rgba(255,255,255,.55);
}

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

.home-hero__actions a + a:hover {
    background: transparent;
    color: #fff;
    text-decoration-color: #fff;
}

.home-catalog-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #d9aaa6;
    border-radius: 6px;
    background: #fff;
    color: var(--brand);
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.home-catalog-link:hover {
    border-color: var(--brand);
    background: #fff5f3;
    color: var(--brand);
    text-decoration: none;
}

/* Ricerca: usa il blocco esistente dentro una superficie unica. */
.home-search {
    max-width: 1192px;
    margin: 24px auto 0;
    background: var(--surface);
    border-radius: 12px;
    padding: 16px 20px;
}

.home-search .site-heading {
    padding: 0 0 10px;
}

.home-search .site-kicker {
    margin-bottom: 5px;
    font-size: .65rem;
}

.home-search .site-heading h2 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.home-search .searchbar {
    background: transparent;
    padding: 0;
}

.home-search .sb-wrap {
    max-width: none;
    padding: 0;
}

/* Configuratore: l'immagine mantiene sempre le proporzioni originali. */
.local-models {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    align-items: center;
    gap: 32px;
    max-width: 1192px;
    margin: 32px auto;
    padding: 24px;
    background: transparent;
}

.local-models img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.local-models h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem,2.8vw,2.1rem);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.local-models p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
}

@media(max-width:1240px) {
    .local-models {
        margin-inline: 24px;
    }
}

@media(max-width:700px) {
    .local-models {
        grid-template-columns: minmax(0,1fr);
        gap: 22px;
        margin: 32px 16px;
        padding: 20px;
    }
}

/* Card home: foto intera, contenuti essenziali, azioni allineate. */
.home-page .stock-cards {
    padding: 0 24px;
}

@media(max-width:900px) {
    .home-search {
        margin-inline: 24px;
    }
}

@media(max-width:575px) {
    .home-hero__content {
        padding: 44px 20px;
    }
    .home-hero__picture img {
        object-position: 60% center;
    }
    .home-hero::after {
        background: linear-gradient(90deg,rgba(8,20,18,.93),rgba(8,20,18,.62));
    }
    .home-hero .site-kicker {
        font-size: .65rem;
        letter-spacing: .1em;
    }
    .home-search {
        margin: 20px 16px 0;
        padding: 14px 12px;
    }
    .home-page .site-heading {
        padding: 40px 16px 20px;
    }
    .home-page .stock-cards {
        padding: 0 16px;
    }
}
