/* ComCom Persone — scoped archive + single styles. */
.comcom-persone-archive,
.comcom-person-single {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 72px;
    color: #151515;
}

/*
 * Keep the Persone directory on the same visual content width as Aziende.
 * Aziende uses a 1280px outer wrapper with 20px inner gutters; applying
 * those gutters here gives both archives the same 1240px desktop content
 * line without changing the Persona single template.
 */
.comcom-persone-archive {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

.comcom-persone-archive__header,
.comcom-person-single__header {
    margin-bottom: 30px;
}

.comcom-persone-archive__header h1,
.comcom-person-single__header h1 {
    margin: 0 0 13px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(34px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 700;
    color: #111;
}

.comcom-persone-rule,
.comcom-person-single__rule {
    position: relative;
    width: 100%;
    height: 1px;
    margin-bottom: 28px;
    background: #ece6df;
}

.comcom-persone-rule::after,
.comcom-person-single__rule::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 86px;
    height: 3px;
    background: #ff0000;
}

.comcom-persone-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 720px;
    margin: 0 0 20px;
}

.comcom-persone-search input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #d9dee7;
    background: #fff;
    color: #111;
    box-shadow: none;
}

.comcom-persone-search input:focus {
    border-color: #1c296a;
    outline: 2px solid transparent;
}

.comcom-persone-search button {
    min-height: 46px;
    padding: 9px 20px;
    border: 0;
    border-radius: 0;
    background: #1c296a;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.comcom-persone-search button:hover,
.comcom-persone-search button:focus-visible {
    background: #ff0000;
}

.comcom-persone-alphabet {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1040px;
    padding: 10px 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    background: #1c296a;
}

.comcom-persone-alphabet::-webkit-scrollbar { display: none; }

.comcom-persone-alphabet a,
.comcom-persone-alphabet span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
    padding: 0 9px;
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
}

.comcom-persone-alphabet a { color: #fff; }
.comcom-persone-alphabet a:hover,
.comcom-persone-alphabet a:focus { color: #ff0000; }
.comcom-persone-alphabet a.is-active { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.comcom-persone-alphabet .is-disabled { color: rgba(255,255,255,.33); cursor: default; }

.comcom-persone-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 20px;
}

.comcom-person-card {
    min-width: 0;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.comcom-person-card__media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eef1f5;
}

.comcom-person-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: none !important;
    transform: none !important;
}

.comcom-person-card__media:hover .comcom-person-card__image,
.comcom-person-card__media:focus .comcom-person-card__image {
    transform: none !important;
    filter: none !important;
}

.comcom-person-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: clamp(56px, 8vw, 88px);
    font-weight: 700;
    color: #1c296a;
    background: #eef1f5;
}

.comcom-person-card__body { padding: 14px 14px 16px; }

.comcom-person-card__name {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.18;
    font-weight: 700;
}

.comcom-person-card__name a { color: #111; text-decoration: none !important; }
.comcom-person-card__name a:hover,
.comcom-person-card__name a:focus { color: #ff0000; text-decoration: none !important; }

.comcom-person-card__meta {
    margin: 0 0 11px;
    color: #1c296a;
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 600;
}

.comcom-person-card__excerpt {
    display: -webkit-box;
    margin: 0 0 11px;
    overflow: hidden;
    color: #333;
    font-size: 12.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.comcom-person-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1c296a;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
}

.comcom-person-card__more::after { content: "→"; }
.comcom-person-card__more:hover,
.comcom-person-card__more:focus { color: #ff0000; }

.comcom-persone-pagination,
.comcom-person-single__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.comcom-persone-pagination .page-numbers,
.comcom-person-single__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 6px 10px;
    background: #f0f1f4;
    color: #111;
    text-decoration: none;
}

.comcom-persone-pagination .current,
.comcom-person-single__pagination .current,
.comcom-persone-pagination a:hover,
.comcom-person-single__pagination a:hover {
    background: #1c296a;
    color: #fff;
}

.comcom-persone-empty,
.comcom-person-publications__empty {
    padding: 24px;
    border: 1px solid #dedede;
    background: #fff;
    color: #333;
}

/* Single Persona */
.comcom-person-single__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 350px);
    gap: 40px;
    align-items: start;
}

.comcom-person-bio,
.comcom-person-publications { margin-bottom: 38px; }

.comcom-person-bio h2,
.comcom-person-publications > h2,
.comcom-person-info-box > h2 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3e3e3;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    color: #111;
}

.comcom-person-bio__content {
    font-size: 17px;
    line-height: 1.72;
    color: #292929;
}

.comcom-person-bio__content > *:first-child { margin-top: 0; }
.comcom-person-bio__content > *:last-child { margin-bottom: 0; }

.comcom-person-publications__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

.comcom-person-publication { min-width: 0; }
.comcom-person-publication__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #edf0f4;
    margin-bottom: 12px;
}
.comcom-person-publication__media:empty { display: none; }
.comcom-person-publication__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important;
    transition: none !important;
}
.comcom-person-publication__media:hover img,
.comcom-person-publication__media:focus img { transform: none !important; filter: none !important; }
.comcom-person-publication h3 {
    margin: 0 0 7px;
    font-size: 20px;
    line-height: 1.08;
    font-weight: 700;
}
.comcom-person-publication h3 a { color: #111; text-decoration: none !important; }
.comcom-person-publication h3 a:hover,
.comcom-person-publication h3 a:focus { color: #ff0000; text-decoration: none !important; }
.comcom-person-publication time { color: #929292; font-size: 13px; }

.comcom-person-info-box {
    padding: 22px;
    background: #f1f1f1;
}

.comcom-person-info-box__photo {
    margin: 0 0 20px;
    background: #fff;
}

.comcom-person-info-box__photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
}

.comcom-person-info-row {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,.09);
}
.comcom-person-info-row strong,
.comcom-person-info-row span { display: block; }
.comcom-person-info-row strong { margin-bottom: 3px; font-size: 14px; color: #111; }
.comcom-person-info-row span { color: #3b3b3b; font-size: 15px; line-height: 1.5; }

.comcom-person-linkedin {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: 18px;
    padding: 0;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
    line-height: 1;
    text-decoration: none !important;
    transition: border-color .2s ease, background-color .2s ease;
}
.comcom-person-linkedin svg {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}
.comcom-person-linkedin:hover,
.comcom-person-linkedin:focus {
    border-color: #b9b9b9;
    background: #fafafa;
    text-decoration: none !important;
}

@media (max-width: 1100px) {
    .comcom-persone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
    .comcom-persone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .comcom-person-single__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
}

@media (max-width: 767px) {
    .comcom-persone-archive,
    .comcom-person-single {
        width: calc(100% - 32px);
        padding: 32px 0 52px;
    }

    .comcom-persone-search { grid-template-columns: 1fr; }
    .comcom-persone-search button { width: 100%; }
    .comcom-persone-alphabet { padding-inline: 10px; }
    .comcom-persone-grid { grid-template-columns: 1fr; gap: 22px; }
    .comcom-person-card { display: grid; grid-template-columns: 118px minmax(0,1fr); }
    .comcom-person-card__media { aspect-ratio: 4 / 5; }
    .comcom-person-card__body { padding: 14px; }
    .comcom-person-card__name { font-size: 19px; }
    .comcom-person-card__excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }

    .comcom-person-single__grid { display: flex; flex-direction: column; gap: 28px; }
    .comcom-person-single__side { order: -1; width: 100%; }
    .comcom-person-publications__grid { grid-template-columns: 1fr; gap: 22px; }
    .comcom-person-bio h2,
    .comcom-person-publications > h2,
    .comcom-person-info-box > h2 { font-size: 23px; }
}
