/* The navigation stays in view. The scoreboard and the two tickers scroll with the page. */
.site-masthead { display:contents; }
.site-masthead > header {
  position:sticky; top:0; z-index:100; min-height:54px; padding:6px clamp(12px,3vw,42px);
  display:flex; flex-wrap:nowrap; gap:clamp(8px,1.5vw,24px);
  background:#fffdf4; box-shadow:0 3px 16px #122f2514;
}
.site-masthead > header .brand { flex:0 0 auto; }
.site-masthead > header .brand b { font-size:clamp(16px,1.6vw,24px); }
.site-masthead > header .brand small { margin-top:2px; font-size:8px; letter-spacing:.15em; }
.site-masthead > header nav { gap:clamp(7px,1.15vw,17px); }
.site-masthead > header nav a { white-space:nowrap; }
.scoreboard-shortcut {
  flex:none; display:inline-flex; align-items:center; gap:.35em; min-height:40px;
  padding:0 .7em; border:1px solid #a7b5a4; border-radius:6px;
  color:#123e31; font-size:.8rem; font-weight:700; text-decoration:none;
}
.scoreboard-shortcut:hover { background:#e7eee3; }
.editorial-skip { position:absolute; top:6px; left:10px; transform:translateY(-150%); padding:10px; background:#fff; }
.editorial-skip:focus { transform:none; z-index:2; }
#tabellone { scroll-margin-top:8px; }
.site-masthead .match-banner { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.28fr); }
.site-masthead .match-banner #last,
.site-masthead .match-banner #nextFixture {
  display:grid; height:auto!important; min-height:0!important; max-height:none;
  grid-template-columns:minmax(0,1fr) auto!important; grid-template-rows:auto;
  align-content:center; gap:5px 14px!important; padding:10px clamp(14px,2.4vw,34px)!important;
  overflow:visible; text-align:left;
}
.site-masthead #last .live-title,
.site-masthead #nextFixture > .live-title { grid-area:1 / 1; display:block; text-align:left; font-size:.69rem!important; align-self:center; }
.site-masthead #last .live-title span+span { margin-left:.65em; }
.site-masthead #last .match-meta,
.site-masthead #nextFixture .next-banner-meta,
.site-masthead #nextFixture.has-next-forecast .next-banner-meta {
  grid-area:1 / 2; display:block; text-align:right; align-self:center; font-size:.68rem!important;
}
.site-masthead #last .match-meta span { margin-left:.45em; }
.site-masthead #last .scoreline { grid-area:2 / 1 / 3 / -1; font-size:clamp(.86rem,1.2vw,1.15rem)!important; align-items:center; }
.site-masthead #last .scoreline > span { white-space:normal; overflow-wrap:break-word; }
.site-masthead #last .scoreline strong { font-size:clamp(1.3rem,2.2vw,1.9rem); }
.site-masthead #last .forum-banner-link,
.site-masthead #nextFixture .forum-banner-link { font-size:.79rem!important; min-height:0; padding:4px 0!important; text-align:inherit; }
.site-masthead #last .forum-banner-link { text-align:center; }
.site-masthead #nextFixture h3,
.site-masthead #nextFixture.has-next-forecast > h3 { grid-area:2 / 1; font-size:1rem!important; overflow:visible; text-align:left; }
.site-masthead #nextFixture h3 .next-match-label,
.site-masthead #nextFixture .ternana-team { white-space:normal; }
.site-masthead #nextFixture .next-inline-date { display:none!important; }
.site-masthead #nextFixture .next-precedents { grid-area:3 / 1; border:0; font-size:.72rem; padding:0; }
.site-masthead #nextFixture .precedents-summary { white-space:normal; }
.site-masthead #nextFixture .precedents-link { font-size:.74rem; min-height:0; padding:3px 0; }
.site-masthead #nextFixture.has-next-forecast > .forecast-pick { grid-area:2 / 2 / 4 / 3; width:auto; min-width:0; max-width:14rem; font-size:.75rem; }
.site-masthead #nextFixture .next-empty { grid-area:2 / 1 / 3 / -1; text-align:left; }
.site-masthead .anniversary-inner { height:auto; min-height:45px; }
.site-masthead .news-ribbon { height:auto; min-height:36px; }
.site-masthead .ticker-pause { min-height:28px; }
.site-masthead .ticker-window:focus-within { overflow-x:auto; }

.editorial-cover.hero {
  position:relative; isolation:isolate; overflow:hidden; display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:0;
  width:100%; margin:clamp(18px,3vw,40px) 0; padding:0;
  border:1px solid #234c3d; border-radius:clamp(12px,2vw,22px);
  background:#10372c; color:#fffdf2;
}
.editorial-copy { position:relative; z-index:1; padding:clamp(22px,4vw,62px); }
.editorial-cover .eyebrow { color:#edce80; font-size:.72rem; letter-spacing:.19em; }
.editorial-cover h1 { color:#fffdf2; font-size:clamp(2.4rem,5.65vw,6rem); line-height:.94; letter-spacing:-.055em; margin:.22em 0; }
.editorial-cover h1 em { color:#edce80; }
.editorial-cover .intro { color:#e1e9de; font-size:clamp(1rem,1.55vw,1.28rem); line-height:1.45; margin:.9rem 0 1.15rem; }
.editorial-actions { display:flex; gap:10px; flex-wrap:wrap; }
.editorial-actions a { display:inline-flex; align-items:center; gap:10px; padding:10px 13px; min-height:44px; border:1px solid #edce80; border-radius:5px; color:#fffdf2; font-weight:700; text-decoration:none; }
.editorial-actions a:first-child { color:#12372c; background:#edce80; }
.editorial-actions a:hover { text-decoration:underline; }
.editorial-cover .stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:22px 0 0; border-top:1px solid #f5ebc34d; padding-top:12px; }
.editorial-cover .stat { padding:0; border:0; background:none; }
.editorial-cover .stat b { color:#fffdf2; font-size:clamp(1.45rem,3vw,2.65rem); }
.editorial-cover .stat span { color:#e1e9de; font-size:.69rem; line-height:1.2; letter-spacing:.04em; }
.editorial-art { position:relative; display:grid; place-items:center; min-height:230px; overflow:hidden; background:linear-gradient(147deg,#6d1c28,#9c2433 48%,#4b1722); }
.pitch-markings { position:absolute; inset:9% 11%; border:1px solid #f5ebc369; border-radius:8px; }
.pitch-markings::before { content:""; position:absolute; inset:0 50%; border-left:1px solid #f5ebc369; }
.pitch-markings i { position:absolute; left:50%; top:50%; width:40%; aspect-ratio:1; border:1px solid #f5ebc369; border-radius:50%; transform:translate(-50%,-50%); }
.cover-year { position:absolute; top:9%; right:12%; color:#fff4cb26; font-size:clamp(4rem,10vw,11rem); font-weight:800; letter-spacing:-.08em; line-height:1; }
.editorial-art img { z-index:1; width:clamp(64px,10vw,150px); height:auto; filter:drop-shadow(0 14px 16px #25091590); }
.cover-city { position:absolute; bottom:5%; left:11%; color:#fff3d5; font-size:.63rem; font-weight:700; letter-spacing:.14em; }
.cover-city b { color:#edce80; }
main > .current-season { width:100%; }
.story-grid:has(> #palmares:only-child) { grid-template-columns:minmax(0,1fr); }
:where(.editorial-cover,.site-masthead > header) :focus-visible { outline:2px solid #bc742f; outline-offset:3px; }
@media(max-width:1150px) {
  .site-masthead > header.js-mobile-nav .mobile-menu-toggle { display:inline-flex; margin-left:auto; min-height:40px; }
  .site-masthead > header.js-mobile-nav nav { display:none; }
  .site-masthead > header.js-mobile-nav.nav-open nav {
    position:absolute; top:100%; inset-inline:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));
    gap:4px; padding:10px 4%; background:#fffdf4; border-bottom:1px solid #a7b5a4; max-height:65vh; overflow:auto;
  }
  .site-masthead > header.js-mobile-nav nav a { display:flex; align-items:center; min-height:44px; padding:6px; white-space:normal; }
  .site-masthead .match-banner { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:650px) {
  .editorial-cover.hero { grid-template-columns:minmax(0,1fr); }
  .editorial-art { min-height:150px; }
  .editorial-cover .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .site-masthead > header .brand b { font-size:16px; }
  .site-masthead > header .brand small { letter-spacing:.09em; }
  .site-masthead > header.js-mobile-nav .mobile-menu-toggle { min-width:0; padding:6px 8px; font-size:.8rem; }
  .scoreboard-shortcut { padding:0 .45em; font-size:.72rem; }
}

.site-masthead .match-banner #last { align-self:stretch; }
.site-masthead #nextFixture.has-next-forecast > .live-title { grid-area:1 / 1; justify-self:start; }
body > main#contenuto:not(.sources-main) { margin-top:0; }
main > .crest-strip { border:1px solid #d7dfd3; border-radius:12px; }
main > .crest-strip .crest-strip-inner { width:100%; }
@media(max-width:760px) {
  .site-masthead > header.js-mobile-nav.nav-open nav { display:grid!important; }
}
@media(max-width:650px) {
  .site-masthead #nextFixture.has-next-forecast > .forecast-pick {
    width:11rem; min-height:0; padding:.45rem .55rem; justify-self:end;
  }
  #nextFixture .forecast-pick-values { grid-template-columns:1.2fr 1fr; gap:.25rem; }
  #nextFixture .forecast-pick-score { padding-left:.3rem; }
  #nextFixture .forecast-pick-outcome span, #nextFixture .forecast-pick-score span { font-size:.68rem; }
}
#nextFixture .forecast-pick-outcome span { white-space:nowrap; }

#archivio th:nth-child(5), #current-season th:nth-child(5) { width:14%; }
.match-row button.details { font-size:.875rem; line-height:1.2; font-weight:700; text-decoration:underline; text-underline-offset:.2em; padding:6px 8px; }
.stats a.stat{color:inherit;text-decoration:none;transition:background .2s,box-shadow .2s}.stats a.stat:hover{background:#e5eadf;box-shadow:0 5px 16px #153f3215}.stats a.stat:focus-visible{outline:3px solid #b89b4b;outline-offset:3px}.stats a.stat span::after{content:' →';color:#a52d32}
