

/* --- extracted from calendario.php --- */
/* Desktop: stesso identico linguaggio delle card Live, senza stemmi. */
    @media(min-width:801px){
      .page-calendario .next-calendar-matches{
        display:grid!important;
        grid-template-columns:repeat(5,minmax(0,1fr))!important;
        gap:.75rem!important;
        align-items:stretch!important;
      }
      .page-calendario .calendar-match-history-card{
        position:relative!important;
        display:block!important;
        min-width:0!important;
      }
      .page-calendario .calendar-match-history-card>a{
        position:relative!important;
        display:grid!important;
        grid-template-columns:minmax(0,1fr) 44px!important;
        grid-template-rows:repeat(2,minmax(0,1fr))!important;
        grid-template-areas:'home score' 'away score'!important;
        align-items:center!important;
        column-gap:.55rem!important;
        row-gap:.2rem!important;
        min-height:100px!important;
        padding:1.55rem .62rem .55rem!important;
        border:1px solid #2b6d93!important;
        border-radius:10px!important;
        background:linear-gradient(145deg,#fff 0%,#f1f5f8 100%)!important;
        color:#1f2435!important;
        box-shadow:0 3px 9px rgba(1,28,45,.16)!important;
        text-align:left!important;
        text-decoration:none!important;
        transition:transform .22s ease-out,background .2s ease,border-color .2s ease,box-shadow .2s ease!important;
      }
      .page-calendario .calendar-match-history-card>a>small{
        position:absolute!important;
        top:.5rem!important;
        left:.62rem!important;
        color:#686b76!important;
        font-size:.55rem!important;
        font-weight:700!important;
        letter-spacing:.1em!important;
      }
      .page-calendario .calendar-match-history-card>a>span{
        display:flex!important;
        min-width:0!important;
        align-items:center!important;
        justify-content:flex-start!important;
        color:#1f2435!important;
        font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif!important;
        font-size:.72rem!important;
        font-weight:600!important;
        line-height:1!important;
        text-align:left!important;
        white-space:nowrap!important;
        overflow:hidden!important;
      }
      .page-calendario .calendar-match-history-card>a>span:first-of-type{grid-area:home!important}
      .page-calendario .calendar-match-history-card>a>span:last-of-type{grid-area:away!important}
      .page-calendario .calendar-match-history-card .calendar-team-name{
        display:block!important;
        min-width:0!important;
        overflow:hidden!important;
        color:#1f2435!important;
        font-size:inherit!important;
        font-weight:600!important;
        line-height:inherit!important;
        text-overflow:ellipsis!important;
        white-space:nowrap!important;
      }
      .page-calendario .calendar-match-history-card img{display:none!important}
      .page-calendario .calendar-match-history-card>a>b{
        display:grid!important;
        grid-area:score!important;
        place-items:center!important;
        align-self:center!important;
        width:auto!important;
        min-width:44px!important;
        height:32px!important;
        padding:0 .3rem!important;
        border-radius:7px!important;
        background:#2d334c!important;
        color:#fff!important;
        font-size:.76rem!important;
        font-weight:600!important;
      }
      .page-calendario .calendar-history-footer{
        position:absolute!important;
        top:.42rem!important;
        right:.5rem!important;
        z-index:3!important;
        display:block!important;
        padding:0!important;
        border:0!important;
        background:transparent!important;
      }
      .page-calendario .calendar-history-trigger{
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        padding:.08rem .32rem!important;
        border:0!important;
        border-radius:5px!important;
        background:transparent!important;
        color:#6b7280!important;
        font-size:.52rem!important;
        font-weight:700!important;
        letter-spacing:.04em!important;
        text-transform:uppercase!important;
        cursor:pointer!important;
      }
      .page-calendario .calendar-history-trigger:hover{color:#1f2435!important;background:#e8eef2!important}
      .page-calendario .calendar-match-history-card>a:hover{
        border-color:#3c789a!important;
        background:linear-gradient(145deg,#f8fafb,#e9eff3)!important;
        box-shadow:0 7px 15px rgba(1,28,45,.2)!important;
        transform:translateY(-3px)!important;
      }
    }
    .calendar-history-modal[hidden]{display:none!important}.calendar-history-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:2rem;background:rgba(1,12,22,.78);backdrop-filter:blur(4px)}
    .calendar-history-dialog{width:min(760px,92vw);max-height:82vh;overflow:auto;border:1px solid rgba(116,190,235,.45);border-radius:16px;background:#082f4c;box-shadow:0 24px 70px rgba(0,0,0,.5);color:#fff}
    .calendar-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.15rem;border-bottom:1px solid rgba(116,190,235,.28);background:#0a3c60}
    .calendar-history-head small{display:block;margin-bottom:.2rem;color:#9fc4dc;font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.calendar-history-head h3{margin:0;color:#fff;font-size:1.05rem}
    .calendar-history-close{width:34px;height:34px;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.07);color:#fff;font-size:1.25rem;line-height:1;cursor:pointer}
    .calendar-history-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:.55rem;padding:.9rem 1.15rem;border-bottom:1px solid rgba(116,190,235,.2)}
    .calendar-history-summary span{padding:.55rem .35rem;border-radius:9px;background:#0b4268;text-align:center}.calendar-history-summary b{display:block;font-size:1rem}.calendar-history-summary small{color:#a9c8dc;font-size:.62rem;font-weight:700;text-transform:uppercase}
    .calendar-history-list{padding:.45rem 1.15rem 1rem}.calendar-history-row{display:grid;grid-template-columns:118px minmax(0,1fr) 58px minmax(0,1fr);align-items:center;gap:.65rem;padding:.62rem .25rem;border-bottom:1px solid rgba(116,190,235,.18);font-size:.78rem}.calendar-history-row:last-child{border-bottom:0}.calendar-history-row small{color:#9fc4dc}.calendar-history-row .home{text-align:right}.calendar-history-row b{display:grid;place-items:center;min-height:30px;border-radius:7px;background:#dff1ff;color:#0a2235;font-size:.78rem}.calendar-history-empty{padding:1.2rem;text-align:center;color:#bad0df}
    @media(max-width:800px){.calendar-match-history-card,.calendar-history-modal{display:none!important}}

/* v154b desktop: SOLO le singole giornate usano la card "Ultimi risultati" della Home.
   Il blocco Prossimo turno sopra resta con la grafica Live/Risultati. */
@media (min-width:801px){
  body.page-calendario .old-calendar-grid{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;align-items:start!important;
  }
  body.page-calendario .old-calendar-card{
    overflow:hidden!important;margin:0!important;border:1px solid #d9e5ef!important;
    border-radius:15px!important;background:#fff!important;box-shadow:none!important;
  }
  body.page-calendario .old-calendar-card>header{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    min-height:46px!important;margin:0!important;padding:0 14px!important;border:0!important;
    border-bottom:1px solid #dde8f2!important;background:#eef3f6!important;color:#102846!important;
  }
  body.page-calendario .old-calendar-card>header strong{
    display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;
    color:#102846!important;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    font-size:15px!important;line-height:1.1!important;font-weight:800!important;text-transform:uppercase!important;
  }
  body.page-calendario .old-calendar-card>header .calendar-round-ball{font-size:12px!important;line-height:1!important;}
  body.page-calendario .old-calendar-card>header .calendar-round-serie{
    color:#536d89!important;font-size:10px!important;line-height:1!important;font-weight:800!important;
    text-transform:uppercase!important;white-space:nowrap!important;
  }
  body.page-calendario .old-calendar-card>.old-calendar-date{display:none!important;}
  body.page-calendario .old-calendar-games{display:block!important;margin:0!important;padding:0!important;background:#fff!important;}
  body.page-calendario .old-calendar-games>a.lofe-match-row{
    display:grid!important;grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr)!important;
    align-items:center!important;column-gap:8px!important;min-height:38px!important;margin:0!important;
    padding:0 10px!important;border:0!important;border-top:1px solid #dce6ee!important;border-radius:0!important;
    background:#fff!important;box-shadow:none!important;color:#102846!important;text-decoration:none!important;
  }
  body.page-calendario .old-calendar-games>a.lofe-match-row:first-child{border-top:0!important;}
  body.page-calendario .old-calendar-games>a.lofe-match-row:hover{background:#f7fafc!important;transform:none!important;}
  body.page-calendario .old-calendar-games .lofe-match-team{
    display:block!important;min-width:0!important;padding:0!important;color:#102846!important;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    font-size:11px!important;line-height:1.1!important;font-weight:700!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
  }
  body.page-calendario .old-calendar-games .lofe-match-team--home{text-align:right!important;}
  body.page-calendario .old-calendar-games .lofe-match-team--away{text-align:left!important;padding-left:0!important;}
  body.page-calendario .old-calendar-games .lofe-match-score{
    display:flex!important;align-items:center!important;justify-content:center!important;width:52px!important;
    min-width:52px!important;max-width:52px!important;height:auto!important;min-height:0!important;margin:0!important;
    padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
    color:#123f6b!important;font-size:14px!important;line-height:1!important;font-weight:800!important;white-space:nowrap!important;
  }
  body.page-calendario .old-calendar-card.current-round{border-color:#b9d6eb!important;}
}
@media (min-width:801px) and (max-width:1180px){body.page-calendario .old-calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}

/* v159: PROSSIMO TURNO usa la stessa card-selettore della pagina Risultati. */
@media (min-width:801px){
  html body.page-calendario #lofe-main .calendar-next-results-style{
    overflow:hidden!important;
    margin:0 0 14px!important;
    padding:0!important;
    border:1px solid #dce3eb!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 3px 12px rgba(20,45,72,.05)!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style>.calendar-next-results-heading{
    display:flex!important;
    align-items:center!important;
    gap:.8rem!important;
    min-height:44px!important;
    margin:0!important;
    padding:10px 14px!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
    background:#082c47!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style>.calendar-next-results-heading h2{
    display:flex!important;
    align-items:center!important;
    margin:0!important;
    color:#fff!important;
    font-size:1rem!important;
    line-height:1!important;
    font-weight:650!important;
    white-space:nowrap!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style>.calendar-next-results-heading>span{
    margin-left:auto!important;
    color:#f0a52b!important;
    font-size:.75rem!important;
    line-height:1.1!important;
    font-weight:600!important;
    white-space:nowrap!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style .calendar-next-results-matches{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
    background:#fff!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style .calendar-match-history-card{
    position:relative!important;
    display:block!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-right:1px solid #e5eaf0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style .calendar-match-history-card:last-child{border-right:0!important;}
  html body.page-calendario #lofe-main .calendar-next-results-style .calendar-match-history-card>a{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:1fr 1fr!important;
    grid-template-areas:none!important;
    align-items:center!important;
    gap:0 8px!important;
    width:100%!important;
    min-height:86px!important;
    margin:0!important;
    padding:9px 10px!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    color:#17283b!important;
    text-align:left!important;
    text-decoration:none!important;
    transform:none!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style .calendar-match-history-card>a:hover{
    background:#f8fbfd!important;
    border:0!important;
    box-shadow:none!important;
    transform:none!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style .calendar-match-history-card>a>span{
    display:block!important;
    min-width:0!important;
    grid-column:1!important;
    margin:0!important;
    padding:0!important;
    color:#17283b!important;
    overflow:hidden!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style .calendar-match-history-card>a>span:first-child{
    grid-row:1!important;
    align-self:end!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style .calendar-match-history-card>a>span:last-child{
    grid-row:2!important;
    align-self:start!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style .calendar-match-history-card>a>span strong{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    color:#17283b!important;
    font-size:.72rem!important;
    line-height:1.15!important;
    font-weight:550!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style .calendar-match-history-card>a>b{
    grid-column:2!important;
    grid-row:1/3!important;
    align-self:center!important;
    justify-self:center!important;
    display:block!important;
    min-width:42px!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:.42rem .52rem!important;
    border:1px solid #d7d2cc!important;
    border-radius:9px!important;
    background:#f3f0ec!important;
    color:#082c47!important;
    font-size:.8rem!important;
    line-height:1!important;
    font-weight:700!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style .calendar-history-footer{
    position:absolute!important;
    top:4px!important;
    right:6px!important;
    z-index:3!important;
    display:block!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  html body.page-calendario #lofe-main .calendar-next-results-style .calendar-history-trigger{
    padding:2px 4px!important;
    border:0!important;
    background:transparent!important;
    color:#8a98a7!important;
    font-size:.46rem!important;
    font-weight:750!important;
    letter-spacing:.05em!important;
    text-transform:uppercase!important;
  }
}


/* v164: Calendario usa ESATTAMENTE il layout desktop della Home nel test grafico.
   Nessun override locale su header, footer o sfondo: restano quelli globali/Home. */
@media (min-width:801px){
  html body.lofe-app-ui-test.page-calendario main#lofe-main.container{
    width:min(980px,calc(100% - 32px))!important;
    max-width:980px!important;
    margin:0 auto!important;
    padding-top:18px!important;
  }
}

/* v165: pulizia shell Calendario. Nasconde il banner tecnico dell'ambiente test
   senza alterare header, footer, sfondo o larghezza del layout Home. */
@media (min-width:801px){
  html body.lofe-app-ui-test.page-calendario .lofe-test-banner{
    display:none!important;
  }
}

/* v166: shell desktop Calendario identico alla Home: header, footer e sfondo.
   Il contenuto del Calendario mantiene la propria larghezza v164. */
@media (min-width:801px){
  html body.page-calendario{
    background:linear-gradient(180deg,#eef4f9 0%,#e3edf5 100%)!important;
    background-attachment:fixed!important;
    color:#102846!important;
  }

  html body.page-calendario .site-header{
    box-sizing:border-box!important;
    position:relative!important;
    display:flex!important;
    min-height:78px!important;
    align-items:center!important;
    overflow:hidden!important;
    padding-left:0!important;
    padding-right:max(16px,calc((100vw - 1620px)/2 + 16px))!important;
    border-bottom:1px solid #d5e0e8!important;
    background:rgba(250,252,254,.98)!important;
    box-shadow:0 5px 18px rgba(17,52,82,.07)!important;
    backdrop-filter:blur(10px)!important;
  }

  html body.page-calendario .site-header .brand-v2{
    box-sizing:border-box!important;
    position:relative!important;
    align-self:stretch!important;
    display:flex!important;
    flex:0 0 auto!important;
    width:calc(max(16px,calc((100vw - 1620px)/2 + 16px)) + 330px)!important;
    min-width:365px!important;
    height:78px!important;
    align-items:center!important;
    justify-content:flex-start!important;
    margin:0 20px 0 0!important;
    padding-left:max(8px,calc((100vw - 1620px)/2 + 8px))!important;
    padding-right:78px!important;
    border:0!important;
    border-radius:0!important;
    background:linear-gradient(90deg,#031a29 0%,#031c2f 54%,#031e35 100%)!important;
    box-shadow:none!important;
    clip-path:polygon(0 0,100% 0,88% 100%,0 100%)!important;
    text-decoration:none!important;
  }
  html body.page-calendario .site-header .brand-v2::after{
    content:""!important;
    position:absolute!important;
    top:0!important;
    right:9%!important;
    width:1px!important;
    height:100%!important;
    background:linear-gradient(180deg,transparent,rgba(255,255,255,.22),transparent)!important;
    opacity:.28!important;
    transform:skewX(-12deg)!important;
    pointer-events:none!important;
  }
  html body.page-calendario .site-header .brand-v2 .lofe-logo-img{
    display:block!important;
    width:auto!important;
    height:58px!important;
    max-width:245px!important;
    max-height:58px!important;
    margin-left:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    filter:none!important;
    mix-blend-mode:normal!important;
    object-fit:contain!important;
    object-position:center!important;
  }

  html body.page-calendario .site-header .nav{
    display:flex!important;
    min-width:0!important;
    flex:1 1 auto!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:2px!important;
    margin-left:0!important;
  }
  html body.page-calendario .site-header .nav a,
  html body.page-calendario .site-header .nav button{
    display:inline-flex!important;
    min-height:36px!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 10px!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent!important;
    color:#183b5b!important;
    box-shadow:none!important;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    font-size:12.5px!important;
    font-weight:650!important;
    line-height:1!important;
    text-decoration:none!important;
    text-shadow:none!important;
  }
  html body.page-calendario .site-header .nav a:hover,
  html body.page-calendario .site-header .nav button:hover{
    background:#e8f1f7!important;
    color:#0b5ea7!important;
  }
  html body.page-calendario .site-header .nav a.active{
    background:#dfeefa!important;
    color:#0b5ea7!important;
    box-shadow:inset 0 0 0 1px #c8ddec!important;
  }
  html body.page-calendario .site-header .nav-profile{
    margin-left:8px!important;
    padding-left:10px!important;
    border-left:1px solid #d7e1e8!important;
  }

  html body.page-calendario #lofe-main .site-footer-v2{
    box-sizing:border-box!important;
    display:grid!important;
    width:100vw!important;
    grid-template-columns:1fr auto auto!important;
    align-items:center!important;
    gap:18px!important;
    margin:36px 0 0 calc(50% - 50vw)!important;
    padding:18px max(16px,calc((100vw - 1620px)/2 + 16px))!important;
    border-top:1px solid #cfdbe4!important;
    background:#dfe8ef!important;
    color:#29445d!important;
    box-shadow:none!important;
  }
  html body.page-calendario #lofe-main .site-footer-v2 .site-footer__identity{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
  }
  html body.page-calendario #lofe-main .site-footer-v2 .lofe-logo-footer{
    width:auto!important;
    height:36px!important;
    max-height:36px!important;
    object-fit:contain!important;
  }
  html body.page-calendario #lofe-main .site-footer-v2 .site-footer__identity small,
  html body.page-calendario #lofe-main .site-footer-v2 .site-footer__legal,
  html body.page-calendario #lofe-main .site-footer-v2 .site-footer__version{
    color:#536a7f!important;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1.2!important;
  }
  html body.page-calendario #lofe-main .site-footer-v2 .site-footer__legal{text-align:center!important;}
  html body.page-calendario #lofe-main .site-footer-v2 .site-footer__version{white-space:nowrap!important;text-align:right!important;}
}
\n\n/* v167 - Prossimo turno: usa esattamente il componente condiviso di Risultati. */\n@media (min-width:801px){\n  body.page-calendario .calendar-results-next-block{\n    width:100%!important;\n    margin-top:10px!important;\n    margin-bottom:16px!important;\n  }\n  body.page-calendario .calendar-next-mobile-only{display:none!important;}\n  body.page-calendario .calendar-results-competition-switch{\n    margin:0 0 10px!important;\n  }\n}\n@media (max-width:800px){\n  body.page-calendario .calendar-results-next-block{display:none!important;}\n  body.page-calendario .calendar-next-mobile-only{display:block!important;}\n}\n
/* v168 - Calendario essenziale: nessun blocco Prossimo turno separato.
   Restano solo Apertura/Chiusura + card giornate con data; la prossima giornata e' evidenziata. */
@media (min-width:801px){
  body.page-calendario .calendar-results-competition-switch{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    width:max-content!important;
    margin:0 0 14px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.page-calendario .calendar-results-competition-switch>a{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:38px!important;
    padding:0 16px!important;
    border:1px solid #bfd2e1!important;
    border-radius:999px!important;
    background:#f4f8fb!important;
    color:#123f62!important;
    font-size:13px!important;
    font-weight:750!important;
    text-decoration:none!important;
    box-shadow:none!important;
  }
  body.page-calendario .calendar-results-competition-switch>a:hover{
    background:#eaf2f8!important;
    border-color:#9fbed4!important;
  }
  body.page-calendario .calendar-results-competition-switch>a.active{
    background:#0b3a5b!important;
    border-color:#0b3a5b!important;
    color:#fff!important;
  }
  body.page-calendario .old-calendar-card>header .calendar-round-serie{
    display:block!important;
    max-width:60%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    color:#536d89!important;
    font-size:9.5px!important;
    line-height:1.1!important;
    font-weight:750!important;
    text-transform:uppercase!important;
    white-space:nowrap!important;
  }
  body.page-calendario .old-calendar-card.current-round{
    border:2px solid #2d8bc7!important;
    box-shadow:0 5px 16px rgba(28,102,150,.14)!important;
  }
  body.page-calendario .old-calendar-card.current-round>header{
    background:#e5f3fc!important;
    border-bottom-color:#c7e2f3!important;
  }
  body.page-calendario .old-calendar-card.current-round>header strong{
    color:#0b3a5b!important;
  }
  body.page-calendario .old-calendar-card.current-round>header .calendar-round-serie{
    color:#1574ad!important;
    font-weight:850!important;
  }
}

@media (max-width:800px){
  body.page-calendario .calendar-results-competition-switch{
    display:flex!important;
    gap:8px!important;
    margin:0 0 12px!important;
  }
  body.page-calendario .calendar-results-competition-switch>a{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:38px!important;
    padding:0 15px!important;
    border:1px solid rgba(132,190,226,.45)!important;
    border-radius:999px!important;
    background:#0b3553!important;
    color:#dcecf7!important;
    font-weight:750!important;
    text-decoration:none!important;
  }
  body.page-calendario .calendar-results-competition-switch>a.active{
    background:#238de1!important;
    border-color:#58a9e8!important;
    color:#fff!important;
  }
  body.page-calendario .old-calendar-card.current-round{
    border:2px solid #55ace6!important;
    box-shadow:0 0 0 2px rgba(85,172,230,.10)!important;
  }
}


/* v169 - Etichetta Prossimo turno su seconda riga nella card corrente. */
@media (min-width:801px){
  body.page-calendario .old-calendar-card>header .calendar-round-meta{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    justify-content:center!important;
    gap:3px!important;
    min-width:0!important;
    max-width:60%!important;
  }
  body.page-calendario .old-calendar-card>header .calendar-round-meta .calendar-round-serie{
    max-width:100%!important;
  }
  body.page-calendario .old-calendar-card>header .calendar-next-label{
    display:block!important;
    color:#1574ad!important;
    font-size:9px!important;
    line-height:1!important;
    font-weight:900!important;
    letter-spacing:.03em!important;
    text-transform:uppercase!important;
    white-space:nowrap!important;
  }
}
@media (max-width:800px){
  body.page-calendario .old-calendar-card>header .calendar-round-meta{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    gap:2px!important;
  }
  body.page-calendario .old-calendar-card>header .calendar-next-label{
    display:block!important;
    color:#55ace6!important;
    font-size:8.5px!important;
    line-height:1!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    white-space:nowrap!important;
  }
}
