/* ============================================================
   Vetrina Team per Elementor — Stili card + modal biografia
   Il layout usa classi Bootstrap 4 (row / col-md-*).
   ============================================================ */

.vt-card {
    overflow: hidden;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Immagine */
.vt-card__img-wrap {
    display: block;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    border-radius: 22px;
}

.vt-card__img {
    display: block;
    width: 100%;
    object-fit: cover;
    height: auto !important;
    transform: scale(1) rotate(0deg);
    transition: all ease 1s;
    border-radius: 22px !important;
    aspect-ratio: 1;
	
}

.vt-card:hover .vt-card__img {
    /*transform: scale(1.1) rotate(0deg) !important;*/
    border-radius: 22px !important;
}

/* Elementi che aprono la modal */
.vt-card--clickable .vt-card__img-wrap,
.vt-card__title-trigger,
.vt-card__link {
    cursor: pointer;
}
.vt-card__title-trigger:hover {
    text-decoration: underline;
}

/* Corpo della card */
.vt-card__body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

/* Titolo */
.vt-card__title {
    color: #00338D;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 42px; /* 140% */
    letter-spacing: -0.3px;
}

.vt-card__title a {
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

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

/* Ruolo / job title */
.vt-card__role {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 500;
    opacity: .9;
}

/* Link / freccia CTA */
.vt-card__link {
    display: inline-block;
    text-decoration: none;
    margin-top: auto;
    cursor: pointer;
}

.vt-card__body .btn-simple .elementor-button:hover svg circle {
    fill: #00338D !important;
    stroke: #00338D !important;
}
.vt-card__body .btn-simple .elementor-button:hover svg path {
    fill: #fff !important;
}

/* ============================================================
   Modal biografia (self-contained, look stile Bootstrap 4)
   ============================================================ */
.vt-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    z-index: 100050;
}
.vt-modal-backdrop.vt-modal--open {
    opacity: 1;
    visibility: visible;
}

.vt-modal {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    overflow-y: auto;
}
.vt-modal.vt-modal--open {
    opacity: 1;
    visibility: visible;
}

.vt-modal__dialog {
    width: 100%;
    max-width: 800px;
    margin: auto;
    transform: translateY(-20px);
    transition: transform .25s ease;
}
.vt-modal.vt-modal--open .vt-modal__dialog {
    transform: translateY(0);
}

.vt-modal__content {
    position: relative;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.vt-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #00338D;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}
.vt-modal__close:hover {
    background: #fff;
}

.vt-modal__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.vt-modal__body {
    padding: 24px 28px 30px;
}

.vt-modal__title {
    margin: 0 0 4px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #00338D;
}

.vt-modal__role {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #F8B900;
}

.vt-modal__bio {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}
.vt-modal__bio p:last-child {
    margin-bottom: 0;
}

/* Blocca lo scroll del body quando una modal e aperta */
body.vt-modal-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .vt-modal__body { padding: 20px; }
    .vt-modal__title { font-size: 24px; }
}
