/*
 * Prototipo pagina squadra unificata
 * Virtus Basket Monterotondo
 *
 * Questo foglio è separato dagli stili globali per rendere il prototipo
 * completamente reversibile. Potrà diventare il modello condiviso di tutte
 * le categorie dopo l'approvazione della struttura.
 */

.virtus-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100000;
    padding: 12px 16px;
    color: #111111;
    background: #ffffff;
    border: 3px solid #111111;
    font-weight: 700;
    transform: translateY(-160%);
}

.virtus-skip-link:focus {
    color: #111111;
    transform: translateY(0);
}

.team-page {
    background: #ffffff;
    color: #252525;
}

.team-page .gdlr-core-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.team-page h1,
.team-page h2,
.team-page h3 {
    font-family: "Roboto Condensed", sans-serif;
    letter-spacing: 0;
}

.team-page a:focus-visible,
.team-page button:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 3px;
    box-shadow: 0 0 0 7px #f7b733;
}

.team-hero {
    position: relative;
    padding: 270px 0 90px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.48)),
        url("../upload/hero-virtus-original.jpg") center / cover no-repeat;
}

.team-breadcrumb {
    margin-bottom: 34px;
    color: #e4e4e4;
    font-size: 14px;
}

.team-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.team-breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #ff805f;
}

.team-breadcrumb a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.team-kicker {
    display: block;
    margin-bottom: 14px;
    color: #ff805f;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.team-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(46px, 8vw, 88px);
    line-height: 0.98;
    text-transform: uppercase;
}

.team-hero-intro {
    max-width: 700px;
    margin: 22px 0 0;
    color: #f1f1f1;
    font-size: 20px;
    line-height: 1.55;
}

.team-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.team-hero-meta li {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(17, 17, 17, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 13px;
    font-weight: 700;
}

.team-section-nav {
    background: #111111;
    border-top: 3px solid #ec4613;
}

.team-section-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    margin: 0;
    padding: 18px 0;
    list-style: none;
}

.team-section-nav a {
    color: #ffffff;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #ff805f;
    text-underline-offset: 4px;
    text-transform: uppercase;
}

.team-section {
    padding: 76px 0;
    scroll-margin-top: 90px;
}

.team-section.is-soft {
    background: #f3f3f3;
}

.team-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
    gap: 42px;
    align-items: end;
    margin-bottom: 38px;
}

.team-section-heading h2 {
    margin: 0;
    color: #111111;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
    text-transform: uppercase;
}

.team-section-heading p {
    margin: 0;
    color: #5f5f5f;
    font-size: 17px;
    line-height: 1.65;
}

.team-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.team-button,
.team-video-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
    color: #111111;
    background: #ec4613;
    border: 2px solid #ec4613;
    font: 700 13px/1 "Roboto Condensed", sans-serif;
    text-transform: uppercase;
}

.team-button:hover,
.team-video-button:hover {
    color: #111111;
    background: #ff805f;
    border-color: #ff805f;
}

.team-video-unavailable {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 16px;
    color: #5a5a5a;
    background: #ededed;
    border: 1px solid #d5d5d5;
    font-size: 13px;
    font-weight: 700;
}

.team-roster-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.team-player-card {
    position: relative;
    min-height: 170px;
    padding: 26px 22px 22px;
    background: #ffffff;
    border: 1px solid #dedede;
}

.team-player-number {
    display: block;
    margin-bottom: 22px;
    color: #7a2a11;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.team-player-card h3 {
    margin: 0 0 8px;
    color: #111111;
    font-size: 22px;
    line-height: 1.1;
    text-transform: uppercase;
}

.team-player-data {
    margin: 0;
    color: #626262;
    font-size: 14px;
    line-height: 1.55;
}

.team-match-list {
    display: grid;
    gap: 10px;
}

.team-match-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.7fr) minmax(280px, 1.5fr) 100px minmax(220px, 1fr) 150px;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #dedede;
}

.team-match-row.is-win {
    border-left: 5px solid #237a3b;
}

.team-match-row.is-loss {
    border-left: 5px solid #a82929;
}

.team-match-date,
.team-match-place {
    color: #5f5f5f;
    font-size: 13px;
    line-height: 1.45;
}

.team-match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: #111111;
    font-weight: 700;
    line-height: 1.4;
}

.team-match-team {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.team-match-team:last-child {
    flex-direction: row-reverse;
    text-align: right;
}

.team-logo-placeholder {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    color: #595959;
    background: #f0f0f0;
    border: 1px dashed #777777;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.team-logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-match-versus {
    color: #6a6a6a;
    font-weight: 400;
}

.team-match-score {
    color: #111111;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.team-match-action {
    text-align: right;
}

.team-match-action .team-video-button,
.team-match-action .team-video-unavailable {
    width: 100%;
}

.team-table-wrap {
    overflow-x: auto;
    border: 1px solid #d8d8d8;
}

.team-standings {
    width: 100%;
    min-width: 690px;
    margin: 0;
    border-collapse: collapse;
}

.team-standings th,
.team-standings td {
    padding: 15px 16px;
    color: #292929;
    border-bottom: 1px solid #dddddd;
    text-align: center;
}

.team-standings th {
    color: #ffffff;
    background: #111111;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 13px;
    text-transform: uppercase;
}

.team-standings th:nth-child(2),
.team-standings td:nth-child(2) {
    text-align: left;
}

.team-standings tbody tr:nth-child(even) {
    background: #f2f2f2;
}

.team-standings .is-virtus {
    background: #ffe4dc;
    font-weight: 700;
}

.team-standings .is-virtus:nth-child(even) {
    background: #ffe4dc;
}

.team-prototype-note {
    padding: 18px 20px;
    color: #ffffff;
    background: #111111;
    border-left: 5px solid #ec4613;
    line-height: 1.55;
}

@media only screen and (max-width: 1100px) {
    .team-roster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .team-match-row {
        grid-template-columns: 120px minmax(240px, 1fr) 90px 150px;
    }

    .team-match-place {
        display: none;
    }
}

@media only screen and (max-width: 900px) {
    .bigslam-mobile-header .bigslam-logo img {
        width: auto;
        max-height: 110px;
    }

    .team-page .gdlr-core-container {
        width: min(100% - 30px, 1180px);
    }

    .team-hero {
        padding: 88px 0 64px;
    }

    .team-hero-intro {
        font-size: 18px;
    }

    .team-section {
        padding: 58px 0;
    }

    .team-section-heading {
        grid-template-columns: 1fr;
    }

    .team-section-nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
        padding: 1px 0;
    }

    .team-section-nav a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 9px 8px;
        background: #181818;
        line-height: 1.25;
    }

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

    .team-match-row {
        grid-template-columns: 1fr auto;
        gap: 10px 16px;
        padding: 18px;
    }

    .team-match-date,
    .team-match-teams,
    .team-match-place,
    .team-match-action {
        grid-column: 1 / -1;
    }

    .team-match-place {
        display: block;
    }

    .team-match-score {
        grid-column: 2;
        grid-row: 1;
    }

    .team-match-teams {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .team-match-team:last-child {
        flex-direction: row;
        text-align: left;
    }

    .team-match-versus {
        display: none;
    }

    .team-match-action {
        text-align: left;
    }

    .team-match-action .team-video-button,
    .team-match-action .team-video-unavailable {
        width: auto;
    }
}

@media only screen and (max-width: 520px) {
    .team-roster-grid {
        grid-template-columns: 1fr;
    }

}
