/* Stili limitati alle nuove viste Team; il layout e le pagine attuali restano invariati. */
#team-pages {
    --team-green: #d4e39a;
}

#team-pages:has(#team-page) .footer-area {
    background-color: var(--team-green);
}

#team-pages #app.container {
    max-width: none;
    padding-inline: 0;
}

#team-pages .boxed_wrapper {
    min-width: 0;
}

.sc-team {
    --team-ink: #005677;
    --team-text: #4d5b60;
    --team-olive: #5e7435;
    --team-soft: #f4f7ee;
    margin-top: 150px;
    background: #fff;
    color: var(--team-text);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.sc-team *, .sc-team *::before, .sc-team *::after {
    box-sizing: border-box;
}

.sc-team .sc-team-wrap {
    width: min(100% - 64px, 1160px);
    margin-inline: auto;
}

.sc-team h1, .sc-team h2, .sc-team h3 {
    margin: 0;
    color: var(--team-ink);
    font-family: inherit;
    font-weight: 700;
}

.sc-team h1 {
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.18;
    letter-spacing: -.025em;
}

.sc-team h2 {
    margin-bottom: 16px;
    font-size: clamp(25px, 2.6vw, 34px);
    line-height: 1.25;
    letter-spacing: -.025em;
}

.sc-team h3 {
    font-size: 17px;
    line-height: 1.4;
}

.sc-team p {
    margin: 0 0 16px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.sc-team p:last-child {
    margin-bottom: 0;
}

.sc-team a {
    color: var(--team-ink);
}

.sc-team a:focus-visible {
    outline: 3px solid var(--team-olive);
    outline-offset: 5px;
    border-radius: 3px;
}

.sc-team .sc-team-label {
    margin-bottom: 12px;
    color: var(--team-olive);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1.5;
    text-transform: uppercase;
}

.sc-team ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sc-team li {
    list-style: none;
}

.sc-team li::before {
    content: none;
}

.sc-team-hero {
    padding: 76px 0 80px;
    background: var(--team-ink);
}

.sc-team-hero h1 {
    max-width: 720px;
    color: #fff;
}

.sc-team-hero .sc-team-label {
    color: var(--team-green);
}

.sc-team .sc-team-hero__intro {
    max-width: 730px;
    margin-top: 24px;
    color: #edf4f5;
    font-size: 18px;
}

.sc-team-project {
    padding: 80px 0;
    background: var(--team-soft);
}

.sc-team-project__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: center;
}

.sc-team-project__grid > *, .sc-team-profile > * {
    min-width: 0;
}

.sc-team-project__grid--text {
    grid-template-columns: 1fr;
    max-width: 920px;
}

.sc-team-project__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 7;
    object-fit: cover;
    border-radius: 14px;
}

.sc-team-founders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 32px;
}

.sc-team-founders h3 {
    margin-bottom: 10px;
}

.sc-team-founders p {
    font-size: 14px;
}

.sc-team-group {
    padding: 76px 0;
    scroll-margin-top: 110px;
}

.sc-team-group__header {
    max-width: 830px;
    margin-bottom: 36px;
}

.sc-team-group--specialisti {
    background: #f6f7f9;
}

.sc-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 36px 24px;
}

.sc-team-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sc-team-card__photo {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: var(--team-soft);
}

.sc-team-card__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    transition: transform .2s ease;
}

.sc-team-card__photo:hover img {
    transform: scale(1.025);
}

.sc-team-card__content {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
}

.sc-team-card h3 {
    margin-bottom: 8px;
}

.sc-team .sc-team-card__role {
    margin-bottom: 8px;
    color: var(--team-olive);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sc-team .sc-team-card__description {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.sc-team-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    margin-top: auto;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.sc-team-card__link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.sc-team-card--text {
    padding: 20px;
    border-top: 3px solid var(--team-green);
    background: #fff;
    border-radius: 0 0 10px 10px;
}

.sc-team-card--text .sc-team-card__content {
    padding-top: 0;
}

.sc-team-network {
    padding: 0 0 60px;
}

.sc-team-partners {
    display: flex;
    gap: 30px;
    align-items: baseline;
    padding-top: 32px;
    border-top: 1px solid #e7eceb;
}

.sc-team-partners .sc-team-label {
    flex-shrink: 0;
}

.sc-team-partners ul {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: start;
    gap: 14px 24px;
}

.sc-team-partners li {
    color: var(--team-ink);
    font-size: 14px;
    font-weight: 500;
}

.sc-team-training {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--team-soft);
    border-radius: 12px;
}

.sc-team-training img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}

.sc-team-training .sc-team-label {
    margin-bottom: 4px;
}

.sc-team-training p {
    font-size: 14px;
}

.sc-team-training strong {
    color: var(--team-ink);
}

.sc-team-booking {
    padding: 100px 0 125px 0;
    background: var(--team-green);
}

.sc-team-booking__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.sc-team-booking h2 {
    margin-bottom: 8px;
    font-size: 28px;
}

.sc-team-booking p {
    color: #3e5129;
    font-size: 14px;
}

.sc-team-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.sc-team .sc-team-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 30px;
    background: var(--team-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.sc-team .sc-team-button:hover {
    background: #003f58;
    transform: translateY(-2px);
}

.sc-team .sc-team-button:active {
    transform: translateY(0);
}

.sc-team .sc-team-button--light {
    background: #fff;
    color: var(--team-ink);
}

.sc-team .sc-team-button--light:hover {
    background: #f4f7ee;
}

.sc-team .sc-team-button--green {
    background: var(--team-green);
    color: var(--team-ink);
}

.sc-team .sc-team-button--green:hover {
    background: #c4d886;
}

.sc-team-member {
    padding: 42px 0 88px;
}

.sc-team-back {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.sc-team-back:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.sc-team-profile {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.sc-team-profile--text {
    display: block;
    max-width: 830px;
}

.sc-team-profile__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
}

.sc-team-profile__header {
    margin-bottom: 24px;
}

.sc-team-profile__header .sc-team-label {
    margin-bottom: 8px;
}

.sc-team-profile h1 {
    font-size: clamp(28px, 3vw, 40px);
}

.sc-team .sc-team-profile__role {
    margin-top: 10px;
    color: var(--team-olive);
    font-weight: 700;
}

.sc-team-biography p {
    margin-bottom: 20px;
}

.sc-team-note {
    margin: 24px 0;
    padding: 16px 20px;
    background: #edf5f6;
    color: var(--team-ink);
    border-radius: 10px;
}

.sc-team-note p {
    font-size: 14px;
}

.sc-team-detail {
    margin-top: 28px;
}

.sc-team-detail h2 {
    margin-bottom: 12px;
    font-size: 19px;
    letter-spacing: 0;
}

.sc-team-tags, .sc-team-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sc-team-tags li {
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--team-soft);
    color: var(--team-ink);
    font-size: 14px;
}

.sc-team ul.sc-team-education {
    padding-left: 20px;
}

.sc-team-education li {
    padding-left: 2px;
    list-style: disc;
}

.sc-team-education li + li {
    margin-top: 6px;
}

.sc-team-services a, .sc-team-services li > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 7px 14px;
    border: 1px solid #77939b;
    border-radius: 24px;
    color: var(--team-ink);
    font-size: 14px;
    line-height: 1.5;
}

.sc-team-services a:hover {
    background: #edf5f6;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sc-team-services li > span {
    border-color: #e3e9e2;
    background: var(--team-soft);
}

.sc-team-actions--profile {
    margin-top: 30px;
}

.sc-team-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1199px) {
    .sc-team {
        margin-top: 135px;
    }

    .sc-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sc-team-booking__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 991px) {
    .sc-team .sc-team-wrap {
        width: calc(100% - 48px);
    }

    .sc-team-project__grid {
        gap: 32px;
    }

    .sc-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sc-team-profile {
        grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
        gap: 32px;
    }

    .sc-team-partners {
        flex-direction: column;
        gap: 8px;
    }

    .sc-team-partners ul {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .sc-team {
        margin-top: 100px;
    }

    .sc-team-hero {
        padding: 48px 0 52px;
    }

    .sc-team-hero .sc-team-hero__intro {
        font-size: 16px;
    }

    .sc-team-project, .sc-team-group {
        padding: 48px 0;
    }

    .sc-team-project__grid {
        grid-template-columns: 1fr;
    }

    .sc-team-project__photo {
        max-height: 440px;
    }

    .sc-team-profile {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sc-team-profile__photo {
        max-width: 380px;
    }

    .sc-team-member {
        padding: 24px 0 52px;
    }

    .sc-team-network {
        padding-bottom: 40px;
    }

    .sc-team-booking {
        padding: 36px 0;
    }
}

@media (max-width: 479px) {
    .sc-team .sc-team-wrap {
        width: calc(100% - 40px);
    }

    .sc-team-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sc-team-founders {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sc-team-card h3 {
        font-size: 20px;
    }

    .sc-team .sc-team-card__role, .sc-team .sc-team-card__description {
        font-size: 14px;
    }

    .sc-team-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .sc-team .sc-team-button {
        width: 100%;
    }

    .sc-team-training {
        padding: 20px;
        align-items: flex-start;
    }

    .sc-team-training img {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sc-team *, .sc-team *::before, .sc-team *::after {
        transition: none !important;
        animation: none !important;
    }
}
