.team-profile-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border: 1px solid #06283a !important;
    box-sizing: border-box;
}


.mrc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}

.mrc-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mrc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.mrc-card-image {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f4f4f4;
    overflow: hidden;
}

.mrc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Evita colore link Elementor sulla foto */
.mrc-card-image,
.mrc-card-image:hover {
    text-decoration: none;
}

.mrc-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e9e9e9;
}

.mrc-card-body {
    padding: 20px;
}

.mrc-card-title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
}

.mrc-card-title a {
    color: #06283a;
    text-decoration: none;
}

.mrc-card-title a:hover {
    color: #1297a6;
}

.mrc-card-position{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:12px;
}

.mrc-card-position a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f5f7;
    color: #06283a;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: .2s ease;
}

.mrc-card-position a:hover {
    background: #1297a6;
    color: #fff;
}

.mrc-card-email {
    display: inline-block;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: .9rem;
    text-decoration: none;
}

.mrc-card-email:hover {
    color: #1297a6;
    text-decoration: none;
}

.mrc-card-bio {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.mrc-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d97706;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    opacity: .75;
    transition: .2s ease;
}

.mrc-card-link:hover {
    color: #b45309;
    text-decoration: none;
    opacity: 1;
}

.mrc-card:hover .mrc-card-link {
    opacity: 1;
}
.mrc-card-filters{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:0 0 28px;
}

.mrc-card-filter{
    border:1px solid #d9e1e7;
    background:#fff;
    color:#06283a;
    border-radius:999px;
    padding:8px 14px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:.2s ease;
}

.mrc-card-filter:hover,
.mrc-card-filter.is-active{
    background:#1297a6;
    border-color:#1297a6;
    color:#fff;
}
button.mrc-card-filter {
    padding: 5px 10px;
    font-size: small;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.mrc-card-more{
    background:#06283a;
    border:none;
}

.mrc-card-more-inner{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    height:100%;
    min-height:420px;
    padding:28px;
    color:#fff;
    text-decoration:none;
}

.mrc-card-more-inner:hover{
    color:#fff;
    text-decoration:none;
}

.mrc-card-more-icon{
    font-size:2rem;
    margin-bottom:16px;
}

.mrc-card-more .mrc-card-title{
    color:#fff;
    margin-bottom:12px;
}

.mrc-card-more .mrc-card-bio{
    color:rgba(255,255,255,.8);
}

.mrc-card-more .mrc-card-link{
    margin-top:auto;
    color:#fff;
    opacity:.9;
}
.mrc-card-search-wrap{
    margin:0 0 24px;
}

.mrc-card-search{
    width:100%;
    max-width:420px;
    padding:12px 16px;
    border:1px solid #d9dee5;
    border-radius:999px;
    font-size:15px;
    outline:none;
}

.mrc-card-search:focus{
    border-color:#1297a6;
    box-shadow:0 0 0 3px rgba(18,151,166,.12);
}
/* MRC Team profile image: fixed square crop */
.team-profile-image{
    width:100%;
    aspect-ratio:1 / 1;
    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    border:1px solid #06283a!important;
    border-radius:12px!important;
    overflow:hidden;
    box-sizing:border-box;
}

/* 1.3.18 - Team listing: photo + name on top, all details full width below */
.mrc-team-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.mrc-team-card .mrc-card-top {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.mrc-team-card .mrc-card-image {
    display: block;
    width: 100px;
    height: 100px;
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f4f4;
}

.mrc-team-card .mrc-card-image img,
.mrc-team-card .mrc-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mrc-team-card .mrc-card-title {
    margin: 0;
    min-width: 0;
}

.mrc-team-card .mrc-card-bottom {
    width: 100%;
    margin-top: 18px;
}

.mrc-team-card .mrc-card-position {
    margin-bottom: 14px;
}

.mrc-team-card .mrc-card-email {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    margin-bottom: 16px;
}

.mrc-team-card .mrc-card-bio {
    margin: 0 0 16px;
}

.mrc-team-card .mrc-card-link {
    margin-top: 0;
}

@media (max-width: 600px) {
    .mrc-team-card {
        padding: 15px;
    }

    .mrc-team-card .mrc-card-top {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 9px;
    }

    .mrc-team-card .mrc-card-image {
        width: 78px;
        height: 78px;
    }

    .mrc-team-card .mrc-card-bottom {
        margin-top: 14px;
    }
}

/* 1.3.18 - Split Team card: flush photo header + full-width CTA */
.mrc-team-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mrc-team-card .mrc-card-top {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: stretch;
    min-height: 112px;
    border-bottom: 1px solid #ececec;
}

.mrc-team-card .mrc-card-image {
    display: block;
    width: 112px;
    height: 112px;
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: #f4f4f4;
}

.mrc-team-card .mrc-card-image img,
.mrc-team-card .mrc-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mrc-team-card .mrc-card-title {
    align-self: center;
    margin: 0;
    padding: 18px 18px 18px 0;
    min-width: 0;
}

.mrc-team-card .mrc-card-bottom {
    width: 100%;
    margin: 0;
    padding: 18px;
    flex: 1 1 auto;
}

.mrc-team-card .mrc-card-position {
    margin: 0 0 14px;
}

.mrc-team-card .mrc-card-email {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    margin: 0 0 16px;
}

.mrc-team-card .mrc-card-bio {
    margin: 0;
}

.mrc-team-card .mrc-card-footer-link {
    display: block;
    width: 100%;
    margin: auto 0 0;
    padding: 14px 18px;
    background: #d86f0f;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color .2s ease;
}

.mrc-team-card .mrc-card-footer-link:hover {
    background: #bd5f08;
    color: #fff !important;
}

@media (max-width: 600px) {
    .mrc-team-card .mrc-card-top {
        grid-template-columns: 92px minmax(0, 1fr);
        min-height: 92px;
    }

    .mrc-team-card .mrc-card-image {
        width: 92px;
        height: 92px;
    }

    .mrc-team-card .mrc-card-title {
        padding: 14px 14px 14px 0;
    }

    .mrc-team-card .mrc-card-bottom {
        padding: 16px;
    }

    .mrc-team-card .mrc-card-footer-link {
        padding: 13px 16px;
    }
}


/* 1.3.18 - Long Team member names */
.mrc-team-card .mrc-card-title,
.mrc-team-card .mrc-card-title a {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.mrc-team-card .mrc-card-title a {
    display: block;
}

@media (max-width: 600px) {
    .mrc-team-card .mrc-card-title {
        font-size: 18px;
        line-height: 1.2;
    }
}


/* 1.3.18 - Team Cards typography */
.mrc-team-card,
.mrc-team-card input,
.mrc-team-card button,
.mrc-card-search,
.mrc-card-filter {
    font-family: "Fira Sans", sans-serif !important;
}

.mrc-team-card .mrc-card-title,
.mrc-team-card .mrc-card-title a,
.mrc-team-card .mrc-card-position,
.mrc-team-card .mrc-card-position a,
.mrc-team-card .mrc-card-footer-link {
    font-family: "Fira Sans Condensed", sans-serif !important;
}

/* Names: same size for everyone, one line, condensed instead of variable sizing. */
.mrc-team-card .mrc-card-title {
    font-size: 20px !important;
    line-height: 1.08 !important;
    font-weight: 600 !important;
    letter-spacing: -0.15px;
    white-space: normal !important;
    overflow: visible;
}

.mrc-team-card .mrc-card-title a {
    display: block;
    white-space: normal !important;
    overflow: visible;
    text-overflow: initial;
    font-weight: inherit !important;
}

/* Position badges: compact emphasis. */
.mrc-team-card .mrc-card-position,
.mrc-team-card .mrc-card-position a {
    font-size: 15px;
    line-height: 1.15;
    font-weight: 600 !important;
}

/* Secondary content. */
.mrc-team-card .mrc-card-email {
    font-family: "Fira Sans", sans-serif !important;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
}

.mrc-team-card .mrc-card-bio {
    font-family: "Fira Sans", sans-serif !important;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 400;
}

/* Full-width CTA: strongest typographic emphasis. */
.mrc-team-card .mrc-card-footer-link {
    font-size: 16px;
    font-weight: 700 !important;
    letter-spacing: .01em;
}

/* Filters/search follow the same family. */
.mrc-card-filter {
    font-family: "Fira Sans Condensed", sans-serif !important;
    font-weight: 600 !important;
}

.mrc-card-search {
    font-family: "Fira Sans", sans-serif !important;
    font-weight: 400;
}

@media (max-width: 600px) {
    .mrc-team-card .mrc-card-title {
        font-size: 20px !important;
    }
}

/* 1.3.18 - Team profile header: cover + overlapping avatar only */
.mrc-team-profile-header {
    width: 100%;
    margin: 0;
    font-family: "Fira Sans", sans-serif;
}

.mrc-team-profile-cover {
    width: 100%;
    height: clamp(220px, 30vw, 360px);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #eef1f3;
}

.mrc-team-profile-boxed {
    width: min(1140px, 100%);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

.mrc-team-profile-identity {
    display: grid;
    grid-template-columns: minmax(0, 27%) minmax(0, 73%);
    gap: 20px;
    margin-top: -72px;
    padding-bottom: 24px;
}

.mrc-team-profile-avatar {
    grid-column: 1;
    justify-self: start;
    width: 150px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    border: 5px solid #fff;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    box-sizing: border-box;
}

.mrc-team-profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .mrc-team-profile-cover {
        height: clamp(170px, 52vw, 240px);
        background-attachment: scroll;
    }

    .mrc-team-profile-boxed {
        width: 100%;
        padding: 0 20px;
    }

    .mrc-team-profile-identity {
        display: block;
        margin-top: -48px;
        padding-bottom: 18px;
    }

    .mrc-team-profile-avatar {
        width: 120px;
        height: 120px;
        margin: 0;
        border-width: 4px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .mrc-team-profile-boxed {
        padding: 0 16px;
    }

    .mrc-team-profile-identity {
        margin-top: -44px;
    }

}

/* 1.3.18: order within each position group follows the Team sheet row order. */

.mrc-team-profile-cover {
    position: relative;
}

.mrc-team-profile-edit-link {
    position: absolute;
    top: 18px;
    right: max(20px, calc((100% - 1140px) / 2 + 20px));
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: #06283a !important;
    font-family: "Fira Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 3px 14px rgba(0,0,0,.14);
    backdrop-filter: blur(4px);
}
.mrc-team-profile-edit-link:hover {
    background: #fff;
    transform: translateY(-1px);
}
@media (max-width: 767px) {
    .mrc-team-profile-edit-link {
        top: 12px;
        right: 12px;
        padding: 9px 13px;
        font-size: 13px;
    }
}
