/*
 * Post Carousel — CSS
 * File: css/swiper-carousel.css
 */

.pc-wrapper {
    --pc-accent: #343475;
    --pc-accent-hover: #1D4ED8;
    --pc-radius: 8px;
    --pc-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.pc-wrapper {
    padding-bottom: 8px;
}

.pc-owl.owl-carousel {
    overflow: hidden;
}

/* Griglia (meno di 4 articoli) */
.pc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1023px) {
    .pc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .pc-grid {
        grid-template-columns: 1fr;
    }
}

/* Owl: altezza uniforme */
.pc-owl.owl-carousel .owl-stage {
    display: flex;
}

.pc-owl.owl-carousel .owl-item {
    display: flex;
}

/* Dots */
.pc-owl.owl-carousel .owl-dots {
    margin-top: 16px;
    text-align: center;
}

.pc-owl.owl-carousel .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #888;
    margin: 0 5px;
    transition: background .2s ease;
}

.pc-owl.owl-carousel .owl-dot.active span {
    background: #111;
}

/* Card */
.pc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--pc-radius);
    overflow: hidden;
    box-shadow: var(--pc-shadow);
    height: 100%;
    width: 100%;
}

.pc-card__img-wrap {
    display: block;
    aspect-ratio: auto !important;
    overflow: hidden;
}

.pc-card__img-wrap img {
    width: 100%;
    height: auto;
    object-fit: none;
    display: block;
    /*transition: transform .4s ease;*/
}

/*
.pc-card:hover .pc-card__img-wrap img {
    transform: scale(1.05);
}
    */

.pc-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.pc-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    flex: 1;
}

.pc-card__title {
    font-size: 1.4rem !important;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
}

.pc-card__title a {
    color: inherit;
    text-decoration: none;
}

.pc-card__title a:hover {
    text-decoration: underline;
}

.pc-card__excerpt {
    font-size: .9rem;
    color: #555;
    margin: 0;
    flex: 1;
    line-height: 1.6;
}

.pc-card__btn {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 18px;
    background: var(--pc-accent);
    color: #fff !important;
    border-radius: 4px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none !important;
    align-self: flex-start;
    transition: background .2s ease;
}

.pc-card__btn:hover {
    background: var(--pc-accent-hover);
}