/************ TROVA LA TUA AUTO: configuratore guidato **************/
.finder-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--body-color);
}

.finder-progress .bars {
    display: flex;
    flex: 1 1 auto;
    gap: 6px;
}

.finder-progress .bars i {
    flex: 1 1 0;
    height: 6px;
    background: var(--main-grey);
    opacity: .4;
    transition: background .3s ease, opacity .3s ease;
}

.finder-progress .bars i.on {
    background: var(--main-color);
    opacity: 1;
}

#finderForm fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.finder-step {
    display: none;
}

.finder-step.is-active {
    display: block;
    animation: finderIn .3s ease;
}

@keyframes finderIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: none; }
}

.finder-step legend {
    float: none;
    width: auto;
    margin-bottom: 10px;
    font-weight: 600;
}

/* titolo della domanda: numero in turchese, testo più grande */
.finder-title {
    margin: 0;
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: #040807;
}

.finder-num {
    color: var(--main-color);
}

/* breve testo sotto il titolo della domanda */
.finder-help {
    max-width: 62ch;
    margin: 0 0 24px !important; /* serve !important: style.css azzera il margine di tutti i p */
    padding-left: 14px;
    border-left: 3px solid var(--main-color);
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
}

.finder-step legend:focus {
    outline: none;
}

.finder-opts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;
}

.finder-opt {
    position: relative;
    display: block;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.finder-opt input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.finder-opt-body {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    min-height: 72px;
    padding: 16px 18px;
    border: 1.5px solid #E1E7F1;
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, background .2s, transform .2s;
}

.finder-opt:hover .finder-opt-body {
    border-color: #BFCBE0;
    transform: translateX(3px);
}

.finder-opt input:focus-visible + .finder-opt-body {
    outline: 3px solid var(--main-light);
    outline-offset: 2px;
}

.finder-opt input:checked + .finder-opt-body {
    border-color: var(--main-color);
    background: var(--light-color);
    box-shadow: 0 0 0 4px var(--main-color-transp);
}

.finder-key {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid #E1E7F1;
    border-radius: 8px;
    background: #F5F7FB;
    color: #5B6B85;
    font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace;
    transition: all .2s;
}

.finder-opt input:checked + .finder-opt-body .finder-key {
    border-color: var(--main-color);
    background: var(--main-color);
    color: #fff;
}

.finder-opt-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.finder-opt-main b {
    color: var(--body-color);
    font-size: 18px;
}

.finder-opt-main small {
    color: #5B6B85;
    font-size: 13px;
}

.finder-radio {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid #E1E7F1;
    border-radius: 50%;
    transition: all .2s;
}

.finder-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform .25s;
}

.finder-opt input:checked + .finder-opt-body .finder-radio {
    border-color: var(--main-color);
    background: var(--main-color);
}

.finder-opt input:checked + .finder-opt-body .finder-radio::after {
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .finder-opt-body, .finder-key, .finder-radio, .finder-radio::after {
        transition: none;
    }
}

.finder-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.finder-restart {
    padding: 0;
    border: 0;
    background: none;
    color: var(--main-color);
    text-decoration: underline;
}

.finder-empty {
    padding: 24px 0;
    text-align: center;
}

/* card dei risultati: stessa altezza (la colonna riempie la riga, il pulsante resta in fondo) e foto con proporzioni uniformi */
#finderCards > .offer-col {
    align-items: stretch;
}

#finderCards .offer_card img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.finder-loading {
    align-self: center;
    color: var(--main-color);
}

/* riepilogo delle scelte fatte */
.finder-recap:empty {
    display: none;
}

.finder-recap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.finder-recap li {
    padding: 6px 14px;
    border: 1px solid var(--main-grey);
    background: #fff;
    font-size: 14px;
}

.finder-recap li span {
    color: var(--main-grey);
}

#finderResult .finder-recap {
    justify-content: center;
    margin: 12px 0 0;
}

/* riepilogo del risultato: più evidente */
.finder-summary {
    padding: 22px 24px;
    font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
}

.finder-count {
    display: inline-block;
    padding: 0 .35em;
    border-radius: 6px;
    background: #fff;
    color: var(--main-color);
    font-weight: 800;
}

.finder-summary-sub {
    display: block;
    margin-top: 6px;
    font-size: .7em;
    font-weight: 600;
}

/* riga finale: "Vedi tutte" e preventivo, metà e metà */
.finder-cta {
    display: flex;
    gap: 16px;
}

.finder-cta-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 22px 24px;
    border: 0;
    font-size: 1.35rem;
    line-height: 1.35;
    transition: background .2s ease;
}

.finder-cta-all {
    background: var(--main-color);
}

.finder-cta-all:hover:not(:disabled) {
    background: #6c757d;
}

.finder-cta-all:disabled {
    opacity: .6;
    cursor: progress;
}

.finder-cta-btn[hidden] {
    display: none;
}

@media (max-width: 767.98px) {
    .finder-cta {
        flex-direction: column;
    }

    .finder-cta-btn {
        font-size: 1.15rem;
        padding: 18px 16px;
    }
}
