html,
body {
    scroll-behavior: auto;
}

.cataloghi-page {
    padding-bottom: 60px;
    background: #f5f5f5;
}

.cataloghi-hero {
    padding-top: calc(var(--header-open-height, 110px) + 18px);
    padding-bottom: 32px;
    background:
        linear-gradient(135deg, rgba(55, 55, 55, 0.92), rgba(90, 90, 90, 0.88)),
        url('../img/placeholder-cataloghi.jpg') center/cover no-repeat;
    color: #fff;
    transition: none;
}

.cataloghi-hero__content {
    max-width: 760px;
}

.cataloghi-hero__content h1,
.cataloghi-hero__content p,
.cataloghi-eyebrow {
    position: relative;
    z-index: 1;
}

.cataloghi-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(243, 124, 32, 0.16);
    border: 1px solid rgba(243, 124, 32, 0.35);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffb06b;
}

.cataloghi-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cataloghi-hero p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.92);
}

.cataloghi-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 30px;
    margin-top: 36px;
}

.cataloghi-sidebar {
    align-self: start;
}

.cataloghi-filter-box {
    position: sticky;
    top: calc(var(--header-height, 110px) + 24px);
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e4e4e4;
}

.cataloghi-filter-box h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #444;
}

.cataloghi-filter-group {
    margin-top: 24px;
}

.cataloghi-filter-group h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #555;
}

.cataloghi-search .form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    border: 1px solid #d6d6d6;
    background: #fff;
    color: #4c4c4c;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.92rem;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-pill:hover {
    border-color: #f37c20;
    color: #f37c20;
    transform: translateY(-1px);
}

.filter-pill.active {
    background: #f37c20;
    border-color: #f37c20;
    color: #fff;
}

.cataloghi-filter-actions {
    margin-top: 28px;
}

.cataloghi-main {
    min-width: 0;
}

.cataloghi-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.cataloghi-toolbar h2 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    color: #444;
}

.cataloghi-results-count {
    color: #777;
    font-size: 0.95rem;
    margin-top: 6px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff1e5;
    color: #c86112;
    border: 1px solid #ffd0ab;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cataloghi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.catalogo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalogo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.catalogo-card__cover {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #ededed, #d9d9d9);
    overflow: hidden;
}

.catalogo-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalogo-card__body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-grow: 1;
}

.catalogo-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.catalogo-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f2f2f2;
    color: #666;
    border: 1px solid #e1e1e1;
}

.catalogo-card h3 {
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 10px;
    color: #3f3f3f;
}

.catalogo-card p {
    color: #6c6c6c;
    line-height: 1.65;
    margin-bottom: 18px;
    flex-grow: 1;
}

.catalogo-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.catalogo-card__actions .btn {
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
}

.btn-primary {
    background-color: #f37c20;
    border-color: #f37c20;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #d96711;
    border-color: #d96711;
}

.btn-outline-primary {
    color: #f37c20;
    border-color: #f37c20;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #f37c20;
    border-color: #f37c20;
    color: #fff;
}

.cataloghi-empty {
    background: #fff;
    border-radius: 20px;
    padding: 50px 20px;
    text-align: center;
    border: 1px dashed #d7d7d7;
    color: #777;
}

.cataloghi-empty i {
    font-size: 2.2rem;
    display: inline-block;
    margin-bottom: 12px;
    color: #f37c20;
}

.cataloghi-empty h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 10px;
}

@media (max-width: 991.98px) {
    .cataloghi-layout {
        grid-template-columns: 1fr;
    }

    .cataloghi-filter-box {
        position: static;
        top: auto;
    }

    .cataloghi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cataloghi-hero {
        padding-top: calc(var(--header-open-height, 110px) + 14px);
        padding-bottom: 26px;
    }
}

@media (max-width: 767.98px) {
    .cataloghi-hero {
        padding-top: calc(var(--header-open-height, 110px) + 10px);
        padding-bottom: 22px;
    }

    .cataloghi-toolbar {
        flex-direction: column;
        align-items: start;
    }

    .cataloghi-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cataloghi-filter-box {
        padding: 20px;
        border-radius: 18px;
    }

    .catalogo-card__body {
        padding: 18px;
    }

    .filter-pill {
        font-size: 0.88rem;
        padding: 8px 12px;
    }
}