/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

 /* ══════════════════════════════════════════════
   PROFESSIONISTI SLIDER
   Aggiungi in: Appearance > Customize > Additional CSS
   oppure nel file style.css del Blocksy Child Theme
   ══════════════════════════════════════════════ */

/* Wrapper generale */
.prof-slider-wrap {
    width: 100%;
    overflow: hidden;
}

/* ── Card ── */
.prof-card {
    background: #ffffff;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ── Foto ── */
.prof-card__img-wrap {
    position: relative;
    flex-shrink: 0;
    border-radius: 20px !important;
    overflow: hidden;
}

.prof-card__img {
    display: block;
    width: 100%;
    height: 230px!important;
    object-fit: cover;
    object-position: center;
    border-radius: 20px!important;
}

/* ── Icona sovrapposta (top-left sulla foto) ── */
.prof-card__icon-badge {
    position: absolute;
    top: -35px;
    left: -43px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: end;
    justify-content: end;
    padding: 0 15px 22px 0;
    /* il background-color viene settato inline dal PHP */
}

.prof-card__icon-badge img {
    width: 50px;
    height: 50px;
    display: block;
}

/* ── Body ── */
.prof-card__body {
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

/* ── Badge specializzazione ── */
.prof-card__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 4px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}

/* ── Nome ── */
.prof-card__name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 10px;
    color: #121519;
}

/* ── Bio ── */
.prof-card__bio {
    font-size: 14px;
    line-height: 1.4;
    color: #121519;
    margin: 0 0 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* numero di righe */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Link profilo ── */
.prof-card__link {
    font-size: 16px;
    font-weight: 400;
    color: #33779D;
    display: inline-block;
    margin-top: auto;
    text-decoration: underline !important;
}

.prof-card__link:hover {
    text-decoration: underline;
}

/* ── Navigazione (frecce + CTA) ── */
.prof-slider-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 12px;
}

.prof-slider-arrows {
    display: flex;
    gap: 8px;
}

.prof-btn-prev,
.prof-btn-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #000;
    background: #fff;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
    padding: 0;
}

.prof-btn-prev:hover,
.prof-btn-next:hover {
    background: #0798e7;
    border-color: #0798e7;
    color: #fff;
}

/* Stato disabilitato (primo / ultimo slide) */
.prof-btn-prev.swiper-button-disabled,
.prof-btn-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ── CTA "Scopri tutti" ── */
.prof-cta-all {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid #000;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.prof-cta-all:hover {
    background: #0798E7;
    border-color: #0798E7;
    color: #fff;
}

/* ── Responsive: nasconde frecce su schermi molto piccoli ── */
@media (max-width: 400px) {
    .prof-slider-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}
