/* Card, elenchi, lingua e profili leggeri. */

@keyframes stm-doc-upload-spin {
    to {
        transform: rotate(360deg);
    }
}
.stm-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1.25rem;
}
.stm-directory__card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}
.stm-directory__photo {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    width: 100%;
    background: #f3f6fa;
}
.stm-directory__portrait {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: 50%;
}
.stm-directory__cta {
    align-self: flex-start;
}
.stm-initiative-card,
.stm-hotel-card,
.stm-leader-card {
    border: 1px solid #dde3ea;
    border-radius: 8px;
    padding: 1rem;
}
.stm-leaders-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.stm-leader-single-page {
    width: min(44rem, calc(100% - 2rem));
    margin: 2.5rem auto 4rem;
}
.stm-leader-single__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
    line-height: 1.2;
}
.stm-leader-single .stm-leader-card {
    padding: 1.25rem 1.35rem;
}
.stm-leader-single .stm-profile-card__image {
    display: block;
    width: 100%;
    max-width: 16rem;
    height: auto;
    margin: 0 0 1rem;
    border-radius: 8px;
}
.stm-leader-bio,
.stm-leader-bio p,
.stm-leader-bio a {
    color: inherit;
}
.stm-leader-role {
    display: inline-block;
    margin: 0 0 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--stm-leader-role-radius, 4px);
    font-weight: 600;
    background: #1e3a5f;
    color: #fff;
}
.stm-leader-role--lead {
    background: #1e3a5f;
    color: #fff;
}
.stm-leader-role--co-lead {
    background: #1e3a5f;
    color: #fff;
}
.stm-badge-sold-out {
    background: #dc3545;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}
.stm-badge-available {
    background: #28a745;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}
.stm-social-card--branded {
    max-width: 420px;
    margin: 1rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.25);
}
.stm-social-card--branded .stm-social-card-header {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}
.stm-social-card--branded .stm-social-card-title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}
.stm-social-card--branded .stm-social-card-km {
    font-size: 2rem;
    margin: 0.5rem 0;
}
.stm-social-card--branded .stm-social-card-percentile,
.stm-social-card--branded .stm-social-card-sub {
    margin: 0.35rem 0;
    opacity: 0.92;
}
.stm-language-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0.5rem 0;
}
.stm-language-switcher--select {
    display: block;
}
.stm-language-switcher__link {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    color: #1d2327;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}
.stm-language-switcher__link:hover,
.stm-language-switcher__link:focus {
    border-color: #2271b1;
    color: #2271b1;
}
.stm-language-switcher__link.is-active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    font-weight: 600;
}
.stm-language-switcher__select {
    min-width: 8rem;
    max-width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 0.95rem;
}
.stm-partner-card .stm-partner-content {
    margin-top: 0.75rem;
}
@keyframes stm-price-skeleton {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}
@keyframes stm-skeleton {
    to {
        background-position: -200% 0;
    }
}
