
/* =========================================================
   HOME - CLICKABLE ELEMENTS FINAL
   ========================================================= */


/* NIENTE SOTTOLINEATURE */

.hero-side a,
.hero-side a:link,
.hero-side a:visited,
.hero-side a:hover,
.hero-side a:active,
.hero-side a *,
.info-strip a,
.info-strip a *,
.info-item-link,
.info-item-link *,
.quick-card,
.quick-card * {
    text-decoration: none !important;
}


/* =========================================================
   DUE CARD A DESTRA
   ========================================================= */

.hero-side .side-news {
    cursor: pointer;

    transition:
        transform .20s ease,
        box-shadow .20s ease,
        border-color .20s ease;
}

.hero-side .side-news:hover {
    transform: translateY(-5px);
}

.hero-side .side-news-light:hover {
    box-shadow:
        0 18px 45px
        rgba(0,0,0,.16);
}

.hero-side .side-news-dark:hover {
    border-color:
        rgba(53,229,138,.38);

    box-shadow:
        0 18px 45px
        rgba(0,0,0,.16);
}


/* =========================================================
   BARRA SUPERIORE
   Community / ATP WTA / OGGI / Ranking / Slam
   ========================================================= */

.info-strip .info-item-link {
    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.info-strip .info-item-link:hover {
    transform: translateY(-3px);

    background:
        rgba(53,229,138,.045);
}


/* =========================================================
   RETTANGOLI SOTTO LA PALLA
   ========================================================= */

.quick-card {
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.quick-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(53,229,138,.32);

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.12);
}


/* Nessuna sottolineatura nemmeno nei titoli */

.hero-side h2,
.hero-side p,
.hero-side span,
.hero-side strong {
    text-decoration: none !important;
}



/* =========================================================
   HOME INFO STRIP - PREMIUM
   stessa struttura, stessi testi
   ========================================================= */

.info-strip {
    background:
        linear-gradient(
            90deg,
            #04130d 0%,
            #061a12 48%,
            #04130d 100%
        );

    border-top: 1px solid rgba(53,229,138,.08);
    border-bottom: 1px solid rgba(53,229,138,.13);
}


/* BASE */

.info-strip .info-item-link {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.018),
            rgba(255,255,255,0)
        );

    border-color:
        rgba(255,255,255,.075);

    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}


/* linea colore superiore */

.info-strip .info-item-link::before {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    top: 0;

    height: 3px;

    opacity: .78;

    transition:
        height .18s ease,
        opacity .18s ease;
}


/* ---------------------------------------------------------
   1 COMMUNITY
   --------------------------------------------------------- */

.info-strip .info-item-link:nth-child(1)::before {
    background:
        linear-gradient(
            90deg,
            #20d878,
            #55f3a4
        );
}

.info-strip .info-item-link:nth-child(1) strong {
    color: #35e58a;
}


/* ---------------------------------------------------------
   2 ATP · WTA
   --------------------------------------------------------- */

.info-strip .info-item-link:nth-child(2)::before {
    background:
        linear-gradient(
            90deg,
            #69d8b0,
            #b3f5dd
        );
}

.info-strip .info-item-link:nth-child(2) strong {
    color: #dff8ee;
}


/* ---------------------------------------------------------
   3 OGGI
   --------------------------------------------------------- */

.info-strip .info-item-link:nth-child(3)::before {
    background:
        linear-gradient(
            90deg,
            #ff554b,
            #ff8a65
        );
}

.info-strip .info-item-link:nth-child(3) strong {
    color: #ff786d;
}


/* ---------------------------------------------------------
   4 RANKING
   --------------------------------------------------------- */

.info-strip .info-item-link:nth-child(4)::before {
    background:
        linear-gradient(
            90deg,
            #77e65f,
            #b1ff7b
        );
}

.info-strip .info-item-link:nth-child(4) strong {
    color: #a5f58b;
}


/* ---------------------------------------------------------
   5 GRAND SLAM
   --------------------------------------------------------- */

.info-strip .info-item-link:nth-child(5)::before {
    background:
        linear-gradient(
            90deg,
            #cbb66d,
            #f0dfa3
        );
}

.info-strip .info-item-link:nth-child(5) strong {
    color: #eadb9f;
}


/* SOTTOTITOLI */

.info-strip .info-item-link small,
.info-strip .info-item-link span:not(.ranking-live-dot) {
    color: #798d83;
}


/* HOVER */

.info-strip .info-item-link:hover {
    transform: translateY(-3px);

    background:
        linear-gradient(
            145deg,
            rgba(53,229,138,.065),
            rgba(255,255,255,.015)
        );

    border-color:
        rgba(53,229,138,.18);

    box-shadow:
        inset 0 -18px 40px rgba(53,229,138,.025),
        0 10px 30px rgba(0,0,0,.14);
}

.info-strip .info-item-link:hover::before {
    height: 4px;
    opacity: 1;
}


/* TESTO PRINCIPALE */

.info-strip .info-item-link strong {
    transition:
        color .18s ease,
        text-shadow .18s ease;
}

.info-strip .info-item-link:hover strong {
    text-shadow:
        0 0 20px rgba(53,229,138,.20);
}


/* =========================================================
   HOME HERO — COURT EDITORIAL
   ========================================================= */

.hero .hero-main-court {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;
    min-height: 570px;

    border-radius: 28px;

    background:
        linear-gradient(
            90deg,
            rgba(2, 12, 8, .96) 0%,
            rgba(2, 13, 9, .88) 34%,
            rgba(2, 13, 9, .50) 62%,
            rgba(2, 13, 9, .12) 100%
        ),
        url("images/homecampo.17b345290257.webp") center center / cover no-repeat;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, .22);
}

.hero .hero-main-court::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            0deg,
            rgba(1, 10, 7, .42) 0%,
            transparent 48%
        );
}

.hero .hero-main-court::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #168b4c 0 33.33%,
            #f2f2ed 33.33% 66.66%,
            #dc4438 66.66% 100%
        );

    opacity: .9;
}

.hero .hero-main-court .hero-content {
    position: relative;
    z-index: 2;

    width: min(650px, 58%);
    min-height: 570px;

    padding: 64px 58px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero .hero-main-court .hero-badge {
    margin: 0 0 22px;
}

.hero .hero-main-court .hero-title {
    max-width: 620px;
    margin: 0;

    color: #fff;

    font-size: clamp(54px, 5.4vw, 86px);
    line-height: .94;
    letter-spacing: -4px;
}

.hero .hero-main-court .hero-description {
    max-width: 540px;
    margin-top: 28px;

    color: rgba(255, 255, 255, .78);

    font-size: 17px;
    line-height: 1.6;
}

.hero .hero-main-court .hero-actions {
    margin-top: 30px;
}

@media (max-width: 820px) {

    .hero .hero-main-court {
        min-height: 500px !important;

        border-radius: 24px;

        background:
            linear-gradient(
                180deg,
                rgba(2, 12, 8, .30) 0%,
                rgba(2, 12, 8, .42) 27%,
                rgba(2, 12, 8, .91) 61%,
                rgba(2, 12, 8, .98) 100%
            ),
            url("images/homecampo.17b345290257.webp") 63% center / cover no-repeat !important;
    }

    .hero .hero-main-court .hero-content {
        width: 100% !important;
        min-height: 500px !important;

        padding: 190px 22px 25px !important;

        justify-content: flex-end !important;
    }

    .hero .hero-main-court .hero-badge {
        margin: 0 0 13px !important;

        font-size: 9px !important;
        letter-spacing: 1.55px !important;
    }

    .hero .hero-main-court .hero-title {
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        color: #fff !important;

        font-size: clamp(42px, 12vw, 58px) !important;
        line-height: .94 !important;
        letter-spacing: -2.8px !important;
    }

    .hero .hero-main-court .hero-title::before {
        display: none !important;
    }

    .hero .hero-main-court .hero-description {
        max-width: 100% !important;

        margin-top: 17px !important;

        color: rgba(255, 255, 255, .78) !important;

        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .hero .hero-main-court .hero-actions {
        width: 100%;

        margin-top: 20px !important;

        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {

    .hero .hero-main-court {
        min-height: 475px !important;
    }

    .hero .hero-main-court .hero-content {
        min-height: 475px !important;

        padding: 165px 20px 22px !important;
    }

    .hero .hero-main-court .hero-title {
        font-size: clamp(39px, 11.5vw, 49px) !important;
        letter-spacing: -2.3px !important;
    }
}

/* =========================================================
   HOME HERO — MOBILE COMPACT FINAL
   ========================================================= */

@media (max-width: 820px) {

    .hero {
        padding-bottom: 18px !important;
    }

    .hero .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero .hero-main-court {
        min-height: 390px !important;
        height: 390px !important;
        border-radius: 20px !important;

        background:
            linear-gradient(
                180deg,
                rgba(2, 12, 8, .08) 0%,
                rgba(2, 12, 8, .12) 30%,
                rgba(2, 12, 8, .62) 57%,
                rgba(2, 12, 8, .96) 100%
            ),
            url("images/homecampo.17b345290257.webp") 58% 58% / cover no-repeat !important;
    }

    .hero .hero-main-court .hero-content {
        width: 100% !important;
        min-height: 390px !important;
        height: 390px !important;

        padding: 145px 20px 20px !important;

        justify-content: flex-end !important;
    }

    .hero .hero-main-court .hero-badge {
        margin-bottom: 9px !important;
        font-size: 8px !important;
        letter-spacing: 1.35px !important;
    }

    .hero .hero-main-court .hero-title {
        max-width: 330px !important;

        font-size: 39px !important;
        line-height: .95 !important;
        letter-spacing: -2px !important;
    }

    .hero .hero-main-court .hero-description {
        max-width: 330px !important;

        margin-top: 11px !important;

        font-size: 13px !important;
        line-height: 1.38 !important;
    }

    .hero .hero-main-court .hero-actions {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;

        margin-top: 14px !important;
    }

    .hero .hero-main-court .hero-actions a {
        min-height: 40px !important;
        padding: 0 15px !important;

        font-size: 12px !important;
    }
}

@media (max-width: 420px) {

    .hero .hero-main-court,
    .hero .hero-main-court .hero-content {
        min-height: 390px !important;
        height: 390px !important;
    }

    .hero .hero-main-court .hero-content {
        padding: 140px 18px 18px !important;
    }

    .hero .hero-main-court .hero-title {
        font-size: 38px !important;
    }
}

/* =========================================================
   HOME — ITALIANI OGGI COMPACT
   ========================================================= */

@media (max-width: 820px) {

    #match-center.match-section {
        padding-top: 30px !important;
        padding-bottom: 38px !important;
    }

    #match-center .section-heading {
        margin-bottom: 18px !important;
    }

    #match-center .section-heading h2 {
        margin-top: 5px !important;

        font-size: 32px !important;
        line-height: 1 !important;
        letter-spacing: -1.4px !important;
    }

    #match-center .section-heading p {
        max-width: 310px;

        margin-top: 9px !important;

        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    #match-center .section-note {
        display: none !important;
    }

    #match-center .match-grid {
        gap: 10px !important;
    }

    #match-center .match-tour-heading {
        margin: 12px 0 4px !important;
        padding: 0 2px !important;
    }

    #match-center .match-card {
        border-radius: 16px !important;
        padding: 15px !important;
    }

    #match-center .match-top {
        margin-bottom: 11px !important;
    }

    #match-center .match-player {
        min-height: 35px !important;
        padding: 6px 0 !important;
    }

    #match-center .match-footer {
        margin-top: 9px !important;
        padding-top: 9px !important;
    }
}

/* =========================================================
   HOME MOBILE — HERO DENSITY
   ========================================================= */

@media (max-width: 820px) {

    .hero .hero-main-court,
    .hero .hero-main-court .hero-content {
        min-height: 355px !important;
        height: 355px !important;
    }

    .hero .hero-main-court .hero-content {
        padding: 118px 18px 16px !important;
    }

    .hero .hero-main-court .hero-title {
        max-width: 310px !important;
        font-size: 36px !important;
        line-height: .96 !important;
    }

    .hero .hero-main-court .hero-description {
        margin-top: 9px !important;
        font-size: 12.5px !important;
    }

    .hero .hero-main-court .hero-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .hero .hero-main-court .hero-actions a {
        width: 100% !important;
        min-height: 42px !important;
        padding: 0 11px !important;
        justify-content: center !important;
    }

    #match-center.match-section {
        padding-top: 25px !important;
    }

    #match-center .section-heading {
        margin-bottom: 12px !important;
    }

    #match-center .section-heading h2 {
        font-size: 29px !important;
    }

    #match-center .section-heading p {
        margin-top: 7px !important;
    }

    #match-center .match-tour-heading {
        margin-top: 8px !important;
    }
}

/* =========================================================
   HOME — NEWS + RANKING COMPACT
   ========================================================= */

.home-section-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.home-section-action a,
.home-ranking-links a {
    color: inherit;
    text-decoration: none;
    font-weight: 800;
}

.home-section-action a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.home-ranking-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.home-ranking-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 58px;
    padding: 0 18px;

    border: 1px solid rgba(14, 57, 39, .14);
    border-radius: 14px;
}

@media (max-width: 820px) {

    #news.news-section,
    #ranking-home.ranking-section {
        padding-top: 38px !important;
        padding-bottom: 42px !important;
    }

    #news .section-heading,
    #ranking-home .section-heading {
        margin-bottom: 18px !important;
    }

    #news .section-heading h2,
    #ranking-home .section-heading h2 {
        margin-top: 5px !important;

        font-size: 30px !important;
        line-height: 1 !important;
        letter-spacing: -1.2px !important;
    }

    #news .section-heading p,
    #ranking-home .section-heading p {
        margin-top: 8px !important;

        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    #news .home-news-live {
        gap: 10px !important;
    }

    #news .home-news-card {
        min-height: 0 !important;
        border-radius: 17px !important;
    }

    #news .home-news-card .news-visual {
        min-height: 90px !important;
        height: 90px !important;
    }

    #news .home-news-card.news-large .news-visual {
        min-height: 130px !important;
        height: 130px !important;
    }

    #news .news-body {
        padding: 16px !important;
    }

    #news .news-body h3 {
        margin-top: 6px !important;

        font-size: 20px !important;
        line-height: 1.08 !important;
    }

    #news .news-body p {
        margin-top: 8px !important;

        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .home-section-action {
        margin-top: 15px;
    }

    .home-section-action a {
        width: 100%;
        justify-content: space-between;

        padding: 13px 15px;

        border: 1px solid rgba(14, 57, 39, .14);
        border-radius: 13px;

        font-size: 13px;
    }

    #ranking-home .home-ranking-grid {
        gap: 12px !important;
    }

    #ranking-home .ranking-box {
        border-radius: 18px !important;
    }

    #ranking-home .ranking-header {
        padding: 17px 16px 12px !important;
    }

    #ranking-home .ranking-header h2 {
        font-size: 24px !important;
    }

    #ranking-home .ranking-row {
        min-height: 54px !important;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

    #ranking-home .ranking-player span {
        display: none !important;
    }

    .home-ranking-links {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: 14px;
    }

    .home-ranking-links a {
        min-height: 46px;
        padding: 0 14px;

        font-size: 13px;
    }
}

/* =========================================================
   HOME — EXPLORE
   ========================================================= */

.home-explore {
    padding: 54px 0;
}

.home-explore-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.home-explore-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    min-height: 94px;
    padding: 18px;

    color: inherit;
    text-decoration: none;

    border: 1px solid rgba(14, 57, 39, .14);
    border-radius: 16px;

    transition:
        transform .18s ease,
        border-color .18s ease;
}

.home-explore-grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 57, 39, .32);
}

.home-explore-grid a span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.home-explore-grid strong {
    font-size: 15px;
    line-height: 1.15;
}

.home-explore-grid small {
    font-size: 11px;
    line-height: 1.35;
    opacity: .62;
}

.home-explore-grid b {
    flex: 0 0 auto;
    font-size: 18px;
}

@media (max-width: 820px) {

    .home-explore {
        padding: 38px 0 42px;
    }

    .home-explore-heading {
        margin-bottom: 17px !important;
    }

    .home-explore-heading h2 {
        margin-top: 5px !important;

        font-size: 30px !important;
        line-height: 1 !important;
        letter-spacing: -1.2px !important;
    }

    .home-explore-heading p {
        margin-top: 8px !important;

        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .home-explore-grid {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: 0;
    }

    .home-explore-grid a {
        min-height: 58px;
        padding: 11px 14px;
        border-radius: 13px;
    }

    .home-explore-grid strong {
        font-size: 14px;
    }

    .home-explore-grid small {
        font-size: 10.5px;
    }
}

/* =========================================================
   HOME MATCH CENTER — MOBILE DENSITY
   ========================================================= */

@media (max-width: 820px) {

    #match-center.match-section {
        padding: 36px 0;
    }

    #match-center .section-heading {
        margin-bottom: 20px;
        gap: 12px;
        align-items: flex-end;
    }

    #match-center .section-heading h2 {
        margin-top: 5px;
        font-size: 34px;
        line-height: 1;
        letter-spacing: -1.7px;
    }

    #match-center .section-note {
        padding: 7px 10px;
        font-size: 10px;
    }

    #match-center .match-tour-heading {
        margin-top: 14px;
        padding-bottom: 6px;
    }

    #match-center .match-tour-heading:first-child {
        margin-top: 0;
    }

}

/* =========================================================
   HOME MOBILE — FULL WIDTH HERO + CLEAN MATCH CENTER
   ========================================================= */

@media (max-width: 820px) {

    .hero {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hero > .container {
        width: 100% !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero .hero-main-court {
        width: 100% !important;
        min-height: 355px !important;
        height: 355px !important;
        border-radius: 0 !important;

        background:
            linear-gradient(
                180deg,
                rgba(2, 12, 8, .02) 0%,
                rgba(2, 12, 8, .05) 30%,
                rgba(2, 12, 8, .22) 60%,
                rgba(2, 12, 8, .52) 100%
            ),
            url("images/homecampo.17b345290257.webp") 58% 58% / cover no-repeat !important;
    }

    .hero .hero-main-court .hero-content {
        min-height: 355px !important;
        height: 355px !important;
        padding: 115px 24px 20px !important;
    }

    .hero .hero-main-court .hero-title {
        text-shadow: 0 2px 16px rgba(0, 0, 0, .48);
    }

    .hero .hero-main-court .hero-description {
        color: rgba(255, 255, 255, .94) !important;
        text-shadow: 0 1px 9px rgba(0, 0, 0, .55);
    }

    #match-center.match-section {
        padding-top: 28px !important;
    }

    #match-center .home-matches-heading {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 17px;
    }

    #match-center .home-matches-heading h2 {
        margin: 0 !important;
        max-width: 225px;
        font-size: 27px !important;
        line-height: 1.02 !important;
        letter-spacing: -1.1px !important;
        text-align: left;
    }

    #match-center .home-results-link {
        flex: 0 0 auto;
        padding-bottom: 2px;
        color: #0b8d53;
        font-size: 11px;
        font-weight: 900;
        text-decoration: none;
        white-space: nowrap;
    }

    #match-center .match-tour-heading {
        margin-top: 0 !important;
    }

}

/* HOME NEWS — custom article backgrounds */
#news .home-news-card .news-visual {
    position: relative;
    overflow: hidden;
}

#news .home-news-card .home-news-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* IDT LOTTO 25 - CLASSIFICHE COMPLETE */

.idt-home-ranking-all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 12px 0 0;
    padding: 10px 14px;
    border: 1px solid #dce8df;
    border-radius: 9px;
    background: #f0f7f2;
    color: #176345;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.idt-home-ranking-all:hover {
    background: #176345;
    color: #ffffff;
}

.idt-home-ranking-all:focus-visible {
    outline: 2px solid #176345;
    outline-offset: 3px;
}
