 

        .pagination {
            --bs-pagination-active-color: white;
            --bs-pagination-active-bg: orangered;
            --bs-pagination-active-border-color: orangered;
            list-style-type: none;

            margin-left: 0;

            padding: 0;

            display: flex;

            justify-content: center;

            gap: 1rem;

            margin-bottom: 2rem

        }

        .pagination li {

            font-size: 1.5rem;

        }
        .page-item:first-child .page-link,
        .page-item:last-child .page-link{
            border-radius: 0;
            border: 1px solid white;
            background: transparent;

        }

        .pagination a{
            border: 1px solid white;
            background: transparent;
            color:white

        }


/* ==============================
   Case Study List - Studio Graffiti
============================== */

.case-study-list-area-sg {
    position: relative;
    padding-top: 120px;
    padding-bottom: 130px;
    background-color: #171717;
    overflow: hidden;
    z-index: 2;
}

.case-study-list-area-sg::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -180px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background-color: rgba(220, 45, 23, 0.13);
    pointer-events: none;
}

.case-study-list-area-sg::after {
    content: "";
    position: absolute;
    bottom: -220px;
    left: -220px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

/* Header */

.case-study-list-header {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
    gap: 70px;
    align-items: end;
    margin-bottom: 62px;
}

.case-study-list-header .section-subtitle {
    display: inline-flex;
    margin-bottom: 24px;
    color: #dc2d17;
    font-weight: 800;
}

.case-study-list-header .section-title {
    margin-bottom: 0;
    color: #ffffff;
}

.case-study-list-header p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 18px;
    line-height: 1.65;
}

/* Wrapper */

.case-study-list-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
}

/* Grid */

.case-study-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    max-width: 100%;
}

/* Card */

.case-study-item-card-sg {
    position: relative;
    min-width: 0;
    min-height: 100%;
    border-radius: 30px;
    background-color: #ffffff;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.case-study-item-card-sg:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.case-study-item-link-sg {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Immagine */

.case-study-item-image-sg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 260px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background-color: #000000;
}

.case-study-item-image-sg::after {
    display: none;
}

.case-study-item-image-sg img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
    transition: none;
}

.case-study-item-card-sg:hover .case-study-item-image-sg img {
    transform: none;
}

/* Content */

.case-study-item-content-sg {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 30px 28px 28px;
}

.case-study-item-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    background-color: rgba(220, 45, 23, 0.08);
    color: #dc2d17;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-study-item-content-sg h3 {
    margin-bottom: 28px;
    color: #111111;
    font-size: 32px;
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
    overflow-wrap: break-word;
}

/* CTA */

.case-study-item-cta-sg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    color: #111111;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    transition: color 0.3s ease;
}

.case-study-item-arrow-sg {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #171717;
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.case-study-item-arrow-sg svg {
    width: 17px;
    height: 18px;
}

.case-study-item-card-sg:hover .case-study-item-arrow-sg {
    background-color: #dc2d17;
    color: #ffffff;
    transform: rotate(45deg);
}

/* Pagination */

.case-study-list-pagination {
    margin-top: 70px;
}

.case-study-list-pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-study-list-pagination a,
.case-study-list-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background-color: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.case-study-list-pagination a:hover,
.case-study-list-pagination .active span {
    background-color: #dc2d17;
    color: #ffffff;
}

/* Empty state */

.case-study-list-empty {
    padding: 60px 40px;
    border-radius: 28px;
    background-color: #ffffff;
    text-align: center;
}

.case-study-list-empty h3 {
    margin-bottom: 12px;
    color: #111111;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.case-study-list-empty p {
    margin-bottom: 0;
    color: #555555;
    font-size: 17px;
    line-height: 1.5;
}

/* Responsive */

@media (max-width: 1399px) {
    .case-study-list-header {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .case-study-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .case-study-item-content-sg h3 {
        font-size: 30px;
    }

    .case-study-item-image-sg {
        height: 240px;
    }
}

@media (max-width: 991px) {
    .case-study-list-area-sg {
        padding-top: 90px;
        padding-bottom: 105px;
    }

    .case-study-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-study-item-image-sg {
        height: 230px;
        background-color: #000000;
    }
}

@media (max-width: 767px) {
    .case-study-list-area-sg {
        padding-top: 74px;
        padding-bottom: 88px;
    }

    .case-study-list-header {
        margin-bottom: 42px;
    }

    .case-study-list-header p {
        font-size: 16px;
        line-height: 1.6;
    }

    .case-study-list-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .case-study-item-card-sg {
        border-radius: 24px;
    }

    .case-study-item-card-sg:hover {
        transform: none;
    }

    .case-study-item-image-sg {
        height: 220px;
        background-color: #000000;
    }

    .case-study-item-card-sg:hover .case-study-item-image-sg img {
        transform: none;
    }

    .case-study-item-content-sg {
        padding: 26px 22px 22px;
    }

    .case-study-item-label {
        margin-bottom: 14px;
        padding: 7px 10px;
        font-size: 10px;
    }

    .case-study-item-content-sg h3 {
        margin-bottom: 22px;
        font-size: 27px;
        line-height: 1;
    }

    .case-study-item-cta-sg {
        padding-top: 20px;
        font-size: 13px;
    }

    .case-study-item-arrow-sg {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .case-study-list-pagination {
        margin-top: 46px;
    }
}

@media (max-width: 420px) {
    .case-study-item-image-sg {
        height: 200px;
        background-color: #000000;
    }

    .case-study-item-content-sg h3 {
        font-size: 25px;
    }
}
  