/* ===== Header Modello (unificato) ===== */
.model-header {
    padding: 18px 0;
    text-align: center;
}

#model-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: #171717;
    text-transform: none;
    /* niente all caps */
    letter-spacing: .2px;
}

#model-brand {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 2px;
    color: #6f6f6f;
    text-transform: uppercase;
    font-weight: 600;
}

.brand-chip {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #e7e7e7;
    border-radius: 999px;
    background: #fafafa;
}

.model-divider {
    width: 72px;
    height: 3px;
    background: #d7c600;
    border-radius: 3px;
    margin: 14px auto 6px;
}

/* ===== Menu categorie sinistra ===== */
.cat-sidebar {
    position: sticky;
    top: 90px;
}

#cat-list .cat-link,
.cat-link {
    display: block;
    padding: 11px 14px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    color: #222;
    text-decoration: none;
    background: #fff;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .15s ease;
}

#cat-list .cat-link:hover,
.cat-link:hover {
    background: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

#cat-list .cat-link.active,
.cat-link.active {
    border-color: #d7c600;
    box-shadow: 0 0 0 3px rgba(215, 198, 0, .12) inset;
    font-weight: 700;
}

/* ===== Sezione Modelli ===== */
.models-header {
    margin: 8px 0 6px;
    text-align: center;
}

.models-header h2,
.section-title,
h2.sec-title {
    font-size: clamp(22px, 3vw, 28px);
    letter-spacing: .5px;
    margin: 18px 0 16px;
}

/* Griglia responsive dei modelli */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-content: start;
    margin-top: 12px;
}

/* Singolo modello (link/card) */
.model-item {
    display: block;
    /* funziona bene anche se è <a> */
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    padding: 12px 14px;
    line-height: 1.3;
    color: #111;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
    transition: box-shadow .15s ease, transform .06s ease, border-color .15s ease;
    overflow-wrap: anywhere;
    /* gestisce nomi lunghi/misti */
    word-break: break-word;
    hyphens: auto;
    min-height: 44px;
    /* allineamento visivo */
}

.model-item:hover {
    border-color: #d6d6d6;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    transform: translateY(-1px);
}

/* Griglia articoli (se usi card) */
#art-grid {
    margin-top: 8px;
}

.pc-card-alt {
    background: #fff;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.pc-card-alt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .08);
}

.pc-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.pc-card-body-alt {
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    text-align: center;
}

.pc-card-title-alt {
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    color: #111;
}

/* Pager */
.pc-pager .page-link {
    border: none;
    color: #111;
}

.pc-pager .active .page-link {
    background: #d7c600;
    color: #000;
    border-radius: 6px;
}

/* Mobile fine tuning */
@media (max-width: 420px) {
    .models-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .model-item {
        padding: 11px 12px;
    }
}