/* Formability Pubblicazioni v1.4.0 */

/* ── Wrapper esterno con spazio per le frecce ──────────────────────────── */
.fp-carosello-wrap {
    position: relative;
    width: 100%;
    padding: 0 52px;
    box-sizing: border-box;
}

/* ── Frecce posizionate ai lati del wrapper ────────────────────────────── */
.fp-car__prev,
.fp-car__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: #107fc9;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 300ms ease;
    box-shadow: 0 2px 8px rgba(16,127,201,0.4);
    flex-shrink: 0;
    line-height: 1;
}

.fp-car__prev { left: 0; }
.fp-car__next { right: 0; }

.fp-car__prev:hover,
.fp-car__next:hover {
    background: #0a6aaa;
}

/* ── Carosello (solo il track) ─────────────────────────────────────────── */
.fp-carosello {
    overflow: hidden;
    width: 100%;
}

.fp-car__track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.fp-car__slide {
    min-width: calc(100% / 3);
    padding: 0 10px;
    box-sizing: border-box;
}

/* ── Card ──────────────────────────────────────────────────────────────── */
.fp-car__card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fp-car__thumb {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f0f4f8;
}

.fp-car__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-car__thumb--empty {
    display: none;
}

.fp-car__body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
}

.fp-car__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0D1B2A;
    margin: 0;
}

.fp-car__excerpt {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #666;
    margin: 0;
    flex: 1;
}

/* ── Pulsante download ─────────────────────────────────────────────────── */
.fp-download-btn {
    display: inline-block;
    margin-top: auto;
    padding: 0.55rem 1.4rem;
    background-color: #107fc9;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 33px;
    border: 2px solid #107fc9;
    transition-property: background-color, border-color, color;
    transition-duration: 300ms;
    transition-timing-function: ease;
    cursor: pointer;
    line-height: 1.4;
}

.fp-download-btn:hover {
    background-color: #0a6aaa;
    border-color: #0a6aaa;
    color: #ffffff !important;
}

/* ── Dots ──────────────────────────────────────────────────────────────── */
.fp-car__dots {
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
}

.fp-car__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 300ms ease, width 300ms ease, height 300ms ease;
}

.fp-car__dot--on {
    background: #107fc9;
    width: 11px;
    height: 11px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .fp-car__slide { min-width: calc(100% / 2); }
}

@media (max-width: 480px) {
    .fp-car__slide { min-width: 100%; }
    .fp-carosello-wrap { padding: 0 44px; }
    .fp-car__prev,
    .fp-car__next { width: 36px; height: 36px; font-size: 1rem; }
}
