/* =========================================================
   MATCH CENTER
   CalcioCatania.com — editorial sans-serif
   ========================================================= */

.match-page {

  --ink: var(--cc-ink);
  --body: #2a2a2a;
  --muted: var(--cc-subtle);

  /* #d9d9d9 differs slightly from --cc-rule (#d8d8d8): keep exact visual value. */
  --rule: #d9d9d9;
  --soft-rule: var(--cc-rule-soft);

  --soft: var(--cc-soft);
  --paper: #ffffff;

  --match-nav-top: 0px;

  width: 100%;
  max-width: 1160px;

  margin: 0 auto;

  padding:
    24px
    20px
    64px;

  box-sizing: border-box;

  color: var(--body);

  font-family: var(--cc-font-sans);
}


.match-page *,
.match-page *::before,
.match-page *::after {

  box-sizing: border-box;
}


.match-page a:focus-visible,
.match-page button:focus-visible {

  outline:
    3px solid
    rgba(8,127,184,.35);

  outline-offset: 3px;
}


.match-visually-hidden {

  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;

  border: 0 !important;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.match-breadcrumb {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 7px;

  margin:
    0
    0
    30px;

  font-size: .72rem;

  font-weight: 700;

  color: var(--muted);
}


.match-breadcrumb a {

  color: var(--muted);

  text-decoration: none;
}


.match-breadcrumb a:hover {

  color: var(--ink);

  text-decoration: underline;
}


.match-breadcrumb__sep {

  color: #aaa;
}


/* =========================================================
   MATCH HEADER
   ========================================================= */

.match-header {

  padding:
    10px
    0
    34px;

  border-bottom:
    1px solid
    var(--rule);
}


.match-header__top {

  text-align: center;
}


.match-kicker {

  display: block;

  margin-bottom: 9px;

  color: var(--cc-red);

  font-size: .68rem;

  line-height: 1;

  font-weight: 900;

  letter-spacing: .12em;

  text-transform: uppercase;
}


.match-context {

  margin: 0;

  color: #767676;

  font-size: .79rem;

  line-height: 1.5;

  font-weight: 700;
}


.match-scoreboard {

  display: grid;

  grid-template-columns:
    minmax(0,1fr)
    minmax(150px,230px)
    minmax(0,1fr);

  gap: 28px;

  align-items: center;

  max-width: 880px;

  margin:
    34px
    auto
    0;
}


.match-team {

  min-width: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;
}


.match-team__logo {

  width: 108px;
  height: 108px;

  display: grid;

  place-items: center;

  overflow: hidden;

  border:
    1px solid
    #e1e4e8;

  border-radius: 50%;

  background:
    #fff;

  box-shadow:
    0 4px 14px
    rgba(17,17,17,.08);
}


.match-team__logo img {

  display: block;

  width: 78%;
  height: 78%;

  object-fit: contain;

  object-position: center;
}


.match-team__fallback {

  display: grid;

  place-items: center;

  width: 90px;
  height: 90px;

  border:
    1px solid
    var(--rule);

  border-radius: 50%;

  color: var(--ink);

  font-size: 2rem;

  font-weight: 900;
}


.match-team__name {

  max-width: 280px;

  margin:
    15px
    0
    0;

  color: var(--ink);

  font-size:
    clamp(
      1rem,
      2vw,
      1.35rem
    );

  line-height: 1.1;

  font-weight: 900;

  letter-spacing: -.025em;
}


.match-score {

  text-align: center;
}


.match-score__numbers {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  color: var(--ink);

  font-size:
    clamp(
      3rem,
      7vw,
      5.4rem
    );

  line-height: .9;

  font-weight: 900;

  letter-spacing: -.065em;
}


.match-score__vs {

  font-size:
    clamp(
      2.5rem,
      5vw,
      4rem
    );

  letter-spacing: -.04em;
}


.match-score__separator {

  color: #888;

  font-weight: 600;
}


.match-status {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  margin-top: 13px;

  padding:
    6px
    9px;

  border:
    1px solid
    var(--rule);

  border-radius: 3px;

  background: #fff;

  color: #666;

  font-size: .61rem;

  line-height: 1;

  font-weight: 900;

  letter-spacing: .075em;

  text-transform: uppercase;
}


.match-status--final {

  border-color: #222;

  color: #111;
}


.match-status--upcoming {

  border-color:
    rgba(8,127,184,.3);

  background:
    rgba(8,127,184,.04);

  color: #0872a6;
}


/* META STRIP */

.match-meta {

  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );

  max-width: 980px;

  margin:
    34px
    auto
    0;

  padding-top: 20px;

  border-top:
    1px solid
    var(--soft-rule);
}


.match-meta__item {

  padding:
    0
    18px;

  border-right:
    1px solid
    var(--soft-rule);

  text-align: center;
}


.match-meta__item:first-child {

  padding-left: 0;
}


.match-meta__item:last-child {

  padding-right: 0;

  border-right: 0;
}


.match-meta__label {

  display: block;

  margin-bottom: 5px;

  color: #8a8a8a;

  font-size: .6rem;

  font-weight: 900;

  letter-spacing: .075em;

  text-transform: uppercase;
}


.match-meta__value {

  display: block;

  color: var(--ink);

  font-size: .82rem;

  line-height: 1.35;

  font-weight: 750;
}


.match-meta__value a {

  color: inherit;

  text-decoration: none;
}


.match-meta__value a:hover {

  color: var(--cc-blue);

  text-decoration: underline;
}


/* =========================================================
   INTERNAL NAV
   ========================================================= */

.match-nav-shell {

  position: sticky;

  top: var(--match-nav-top);

  z-index: 80;

  margin:
    0
    -20px;

  background:
    rgba(255,255,255,.97);

  border-bottom:
    1px solid
    var(--rule);

  backdrop-filter:
    blur(8px);

  -webkit-backdrop-filter:
    blur(8px);
}


.match-nav {

  display: flex;

  align-items: center;

  gap: 4px;

  max-width: 1160px;

  margin: 0 auto;

  padding:
    0
    20px;

  overflow-x: auto;

  scrollbar-width: none;
}


.match-nav::-webkit-scrollbar {

  display: none;
}


.match-nav__link {

  position: relative;

  flex: 0 0 auto;

  padding:
    15px
    12px
    14px;

  color: #6b6b6b;

  font-size: .65rem;

  line-height: 1;

  font-weight: 900;

  letter-spacing: .07em;

  text-transform: uppercase;

  text-decoration: none;

  white-space: nowrap;
}


.match-nav__link::after {

  content: "";

  position: absolute;

  left: 12px;
  right: 12px;
  bottom: -1px;

  height: 3px;

  background: transparent;
}


.match-nav__link:hover {

  color: var(--ink);
}


.match-nav__link.is-active {

  color: var(--ink);
}


.match-nav__link.is-active::after {

  background: var(--cc-red);
}


/* =========================================================
   SECTION SYSTEM
   ========================================================= */

.match-section {

  margin-top: 54px;

  scroll-margin-top:
    calc(
      var(--match-nav-top)
      +
      62px
    );
}


.match-section__heading {

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 19px;

  padding-bottom: 11px;

  border-bottom:
    3px solid
    var(--ink);
}


.match-section__title {

  margin: 0;

  color: var(--ink);

  font-size: .75rem;

  line-height: 1;

  font-weight: 900;

  letter-spacing: .1em;

  text-transform: uppercase;
}


.match-section__meta {

  color: #888;

  font-size: .68rem;

  font-weight: 750;
}


/* =========================================================
   SINTESI
   ========================================================= */

.match-summary-grid {

  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );

  border-top:
    1px solid
    var(--ink);
}


.match-summary-item {

  min-width: 0;

  padding:
    20px;

  border-right:
    1px solid
    var(--soft-rule);

  border-bottom:
    1px solid
    var(--soft-rule);
}


.match-summary-item:first-child {

  padding-left: 0;
}


.match-summary-item:nth-child(4n) {

  border-right: 0;
}


.match-summary-item__label {

  display: block;

  margin-bottom: 8px;

  color: #838383;

  font-size: .61rem;

  font-weight: 900;

  letter-spacing: .075em;

  text-transform: uppercase;
}


.match-summary-item__value {

  display: block;

  color: var(--ink);

  font-size:
    clamp(
      1rem,
      2vw,
      1.35rem
    );

  line-height: 1.25;

  font-weight: 850;

  letter-spacing: -.025em;
}


.match-summary-item__value a {

  color: inherit;

  text-decoration: none;
}


.match-summary-item__value a:hover {

  color: var(--cc-blue);
}


/* =========================================================
   EVENTI REGISTRATI
   ========================================================= */

.match-events {

  border-top:
    1px solid
    var(--ink);
}


.match-events--notes {

  margin-top: 28px;
}


.match-event {

  display: grid;

  grid-template-columns:
    150px
    minmax(0,1fr);

  gap: 28px;

  padding:
    17px
    0;

  border-bottom:
    1px solid
    var(--soft-rule);
}


.match-event__label {

  color: #777;

  font-size: .63rem;

  line-height: 1.4;

  font-weight: 900;

  letter-spacing: .075em;

  text-transform: uppercase;
}


.match-event__value {

  min-width: 0;

  color: #2c2c2c;

  font-size: .92rem;

  line-height: 1.6;
}


.match-event__value a {

  color: #006c9f;

  text-decoration: none;

  font-weight: 700;
}


.match-event__value a:hover {

  text-decoration: underline;

  text-underline-offset: 3px;
}


/* =========================================================
   FORMAZIONE
   ========================================================= */

.lineup-layout {

  display: grid;

  grid-template-columns:
    minmax(0,1.6fr)
    minmax(260px,.8fr);

  gap: 42px;
}


.lineup-title {

  margin:
    0
    0
    14px;

  color: #777;

  font-size: .63rem;

  font-weight: 900;

  letter-spacing: .075em;

  text-transform: uppercase;
}


.lineup-grid {

  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );

  border-top:
    1px solid
    var(--ink);
}


.lineup-player {

  display: grid;

  grid-template-columns:
    42px
    minmax(0,1fr);

  gap: 11px;

  align-items: center;

  min-height: 68px;

  padding:
    10px
    10px
    10px
    0;

  border-bottom:
    1px solid
    var(--soft-rule);
}


.lineup-player:nth-child(odd) {

  border-right:
    1px solid
    var(--soft-rule);
}


.lineup-player:nth-child(even) {

  padding-left: 14px;
}


.lineup-player__avatar {

  width: 42px;
  height: 42px;

  display: grid;

  place-items: center;

  overflow: hidden;

  background: #f0f0ef;

  border-radius: 50%;

  color: #555;

  font-size: .72rem;

  font-weight: 900;
}


.lineup-player__avatar img {

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


.lineup-player__name {

  display: block;

  color: var(--ink);

  font-size: .82rem;

  line-height: 1.2;

  font-weight: 800;

  text-decoration: none;
}


.lineup-player__name:hover {

  color: var(--cc-blue);
}


.lineup-player__role {

  display: block;

  margin-top: 3px;

  color: #888;

  font-size: .64rem;

  line-height: 1.2;

  font-weight: 700;
}


.lineup-side {

  border-top:
    1px solid
    var(--ink);
}


.lineup-side__row {

  padding:
    15px
    0;

  border-bottom:
    1px solid
    var(--soft-rule);
}


.lineup-side__label {

  display: block;

  margin-bottom: 7px;

  color: #777;

  font-size: .61rem;

  line-height: 1;

  font-weight: 900;

  letter-spacing: .07em;

  text-transform: uppercase;
}


.lineup-side__value {

  color: #333;

  font-size: .83rem;

  line-height: 1.55;
}


.lineup-side__value a {

  color: #006c9f;

  font-weight: 700;

  text-decoration: none;
}


/* =========================================================
   PAGELLE
   ========================================================= */

.ratings-grid {

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0,1fr));

  gap: 14px;
}


.rating-card {

  min-width: 0;

  padding: 18px;

  border: 1px solid var(--rule);

  background: var(--paper);
}


.rating-card__top {

  display: grid;

  grid-template-columns:
    54px minmax(0,1fr) auto;

  gap: 13px;

  align-items: center;
}


.rating-card__avatar {

  width: 54px;
  height: 54px;

  display: grid;

  place-items: center;

  overflow: hidden;

  border-radius: 50%;

  background: #f0f0ef;

  color: #555;

  font-size: .78rem;

  font-weight: 900;
}


.rating-card__avatar img {

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


.rating-card__identity {

  min-width: 0;
}


.rating-card__name {

  display: inline-block;

  color: var(--ink);

  font-size: .95rem;

  line-height: 1.2;

  font-weight: 900;

  letter-spacing: -.02em;

  text-decoration: none;
}


.rating-card__name:hover {

  color: var(--cc-blue);
}


.rating-card__role {

  display: block;

  margin-top: 4px;

  color: #858585;

  font-size: .63rem;

  line-height: 1.2;

  font-weight: 800;

  letter-spacing: .055em;

  text-transform: uppercase;
}


.rating-card__vote {

  min-width: 58px;
  height: 58px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 0 10px;

  border-radius: 50%;

  background: var(--ink);

  color: #fff;

  font-size: 1.22rem;

  line-height: 1;

  font-weight: 950;

  letter-spacing: -.04em;
}


.rating-card__vote--sv {

  font-size: .78rem;

  letter-spacing: .02em;
}


.rating-card__vote--bad {

  background: var(--cc-red);
}


.rating-card__judgement {

  margin: 15px 0 0;

  padding-top: 14px;

  border-top: 1px solid var(--soft-rule);

  color: #444;

  font-size: .86rem;

  line-height: 1.62;
}


/* =========================================================
   RICHTEXT / TABELLINO
   ========================================================= */

.match-richtext {

  max-width: 800px;

  color: #2b2b2b;

  font-size: 1rem;

  line-height: 1.72;
}


.match-richtext > *:first-child {

  margin-top: 0;
}


.match-richtext > *:last-child {

  margin-bottom: 0;
}


.match-richtext a {

  color: #006c9f;

  text-underline-offset: 3px;
}


.match-richtext img {

  max-width: 100%;
  height: auto;
}


/* =========================================================
   VIDEO
   ========================================================= */

.match-video {

  max-width: 940px;
}


.match-video__frame {

  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #111;
}


.match-video__frame iframe {

  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;
}


/* =========================================================
   GALLERY
   ========================================================= */

.match-gallery-sets {

  display: grid;

  gap: 38px;
}


.match-gallery-set {

  min-width: 0;
}


.match-gallery-set +
.match-gallery-set {

  padding-top: 30px;

  border-top:
    1px solid
    var(--soft-rule);
}


.match-gallery-set__head {

  display: flex;

  align-items: baseline;

  justify-content: space-between;

  gap: 18px;

  margin-bottom: 10px;
}


.match-gallery-set__title {

  margin: 0;

  color: var(--ink);

  font-size:
    clamp(
      1rem,
      2vw,
      1.35rem
    );

  line-height: 1.15;

  font-weight: 900;

  letter-spacing: -.025em;
}


.match-gallery-set__count {

  flex: 0 0 auto;

  color: #888;

  font-size: .62rem;

  font-weight: 800;
}


.match-gallery-meta {

  display: flex;

  flex-wrap: wrap;

  gap:
    6px
    16px;

  margin:
    0
    0
    16px;

  color: #777;

  font-size: .7rem;

  font-weight: 700;
}


.gallery-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 8px;
}

.gallery-item {
  width: 100%;
  min-width: 0;

  margin: 0;

  aspect-ratio: 3 / 2;

  overflow: hidden;

  background: #eee;
}

.gallery-item[hidden] {

  display: none;
}


.gallery-item a {

  display: block;

  width: 100%;
  height: 100%;
}


.gallery-item img {

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    opacity .18s ease;
}


.gallery-item a:hover img {

  opacity: .84;
}


.gallery-toggle,
.history-toggle {

  margin-top: 18px;

  min-height: 42px;

  padding:
    9px
    13px;

  border:
    1px solid
    var(--ink);

  border-radius: 2px;

  background: #fff;

  color: var(--ink);

  font: inherit;

  font-size: .68rem;

  font-weight: 900;

  letter-spacing: .07em;

  text-transform: uppercase;

  cursor: pointer;
}


/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.related-grid {

  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0,1fr)
    );

  gap: 22px;
}


.related-card {

  min-width: 0;

  color: inherit;

  text-decoration: none;
}


.related-card__image {

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #eee;
}


.related-card__image img {

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    opacity .18s ease;
}


.related-card:hover
.related-card__image img {

  opacity: .84;
}


.related-card__date {

  display: block;

  margin-top: 10px;

  color: #898989;

  font-size: .63rem;

  font-weight: 800;

  letter-spacing: .05em;

  text-transform: uppercase;
}


.related-card__title {

  margin:
    6px
    0
    0;

  color: var(--ink);

  font-size: 1rem;

  line-height: 1.28;

  font-weight: 850;

  letter-spacing: -.02em;
}


.related-card__excerpt {

  margin:
    8px
    0
    0;

  color: #666;

  font-size: .8rem;

  line-height: 1.5;
}


/* =========================================================
   PRECEDENTI
   ========================================================= */

.h2h-numbers {

  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );

  padding:
    25px
    0;

  border-top:
    3px solid
    var(--ink);

  border-bottom:
    1px solid
    var(--ink);
}


.h2h-number {

  padding:
    0
    22px;

  border-right:
    1px solid
    var(--rule);
}


.h2h-number:first-child {

  padding-left: 0;
}


.h2h-number:last-child {

  border-right: 0;
}


.h2h-number strong {

  display: block;

  color: var(--ink);

  font-size:
    clamp(
      2rem,
      4vw,
      3.2rem
    );

  line-height: .95;

  font-weight: 900;

  letter-spacing: -.05em;
}


.h2h-number span {

  display: block;

  margin-top: 8px;

  color: #777;

  font-size: .62rem;

  font-weight: 900;

  letter-spacing: .07em;

  text-transform: uppercase;
}


.h2h-split {

  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );

  gap: 40px;

  margin-top: 32px;
}


.h2h-block__title {

  margin:
    0
    0
    12px;

  color: #777;

  font-size: .62rem;

  font-weight: 900;

  letter-spacing: .075em;

  text-transform: uppercase;
}


.h2h-list {

  border-top:
    1px solid
    var(--ink);
}


.h2h-list__row {

  display: flex;

  align-items: baseline;

  justify-content: space-between;

  gap: 20px;

  padding:
    13px
    0;

  border-bottom:
    1px solid
    var(--soft-rule);

  color: #555;

  font-size: .78rem;
}


.h2h-list__row strong {

  color: var(--ink);

  font-size: .9rem;
}


.history-list {

  margin-top: 38px;

  border-top:
    1px solid
    var(--ink);
}


.history-row {

  display: grid;

  grid-template-columns:
    86px
    minmax(0,1fr)
    58px
    minmax(0,1fr)
    86px;

  align-items: center;

  gap: 12px;

  min-height: 58px;

  padding:
    10px
    0;

  border-bottom:
    1px solid
    var(--soft-rule);
}


.history-row[hidden] {

  display: none;
}


.history-date {

  color: #777;

  font-size: .67rem;

  font-weight: 800;
}


.history-team {

  min-width: 0;

  color: var(--ink);

  font-size: .79rem;

  font-weight: 750;
}


.history-team--away {

  text-align: right;
}


.history-score {

  text-align: center;
}


.history-score a {

  display: inline-flex;

  min-width: 44px;

  align-items: center;

  justify-content: center;

  padding:
    6px
    7px;

  background: var(--ink);

  color: #fff;

  font-size: .82rem;

  line-height: 1;

  font-weight: 900;

  text-decoration: none;
}


.history-season {

  color: #888;

  font-size: .65rem;

  font-weight: 750;

  text-align: right;
}


/* =========================================================
   MATCH PAGER
   ========================================================= */

.match-pager {

  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );

  gap: 1px;

  margin-top: 58px;

  background: var(--rule);

  border:
    1px solid
    var(--rule);
}


.match-pager__link {

  min-height: 115px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 22px;

  background: #fff;

  color: inherit;

  text-decoration: none;
}


.match-pager__link--next {

  text-align: right;
}


.match-pager__eyebrow {

  margin-bottom: 8px;

  color: #888;

  font-size: .61rem;

  font-weight: 900;

  letter-spacing: .07em;

  text-transform: uppercase;
}


.match-pager__title {

  color: var(--ink);

  font-size: .95rem;

  line-height: 1.3;

  font-weight: 850;
}


.match-pager__link:hover
.match-pager__title {

  color: var(--cc-blue);
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.lb[hidden] {

  display: none;
}


.lb {

  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 18px;

  background:
    rgba(0,0,0,.94);
}


.lb__inner {

  width:
    min(
      1120px,
      96vw
    );

  height:
    min(
      900px,
      94vh
    );

  display: flex;

  flex-direction: column;

  gap: 10px;
}


.lb__top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  min-height: 44px;

  color: #fff;
}


.lb__count {

  font-size: .78rem;

  font-weight: 800;
}


.lb__button,
.lb__nav button {

  border: 0;

  background:
    rgba(255,255,255,.1);

  color: #fff;

  cursor: pointer;
}


.lb__button {

  width: 44px;
  height: 44px;

  border-radius: 50%;

  font-size: 1.1rem;
}


.lb__stage {

  position: relative;

  flex: 1;

  min-height: 0;

  display: flex;

  align-items: center;

  justify-content: center;
}


.lb__image {

  display: block;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
}


.lb__nav button {

  position: absolute;

  top: 50%;

  transform:
    translateY(-50%);

  width: 46px;
  height: 46px;

  border-radius: 50%;

  font-size: 1.8rem;
}


#lb-prev {
  left: 8px;
}

#lb-next {
  right: 8px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .match-scoreboard {

    grid-template-columns:
      minmax(0,1fr)
      minmax(130px,180px)
      minmax(0,1fr);

    gap: 18px;
  }


  .match-team__logo {

    width: 90px;
    height: 90px;
  }


  .match-meta {

    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );

    row-gap: 20px;
  }


  .match-meta__item:nth-child(2) {

    border-right: 0;
  }


  .match-summary-grid {

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


  .match-summary-item:nth-child(2n) {

    border-right: 0;
  }


  .lineup-layout {

    grid-template-columns: 1fr;
  }


  .gallery-grid {

    grid-template-columns:
      repeat(
        4,
        minmax(0,1fr)
      );
  }


  .related-grid {

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

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

  .match-page {

    padding:
      18px
      14px
      45px;
  }


  .match-breadcrumb {

    margin-bottom: 22px;
  }


  .match-scoreboard {

    grid-template-columns:
      minmax(0,1fr)
      98px
      minmax(0,1fr);

    gap: 8px;

    margin-top: 27px;
  }


  .match-team__logo {

    width: 68px;
    height: 68px;
  }


  .match-team__fallback {

    width: 60px;
    height: 60px;

    font-size: 1.35rem;
  }


  .match-team__name {

    margin-top: 9px;

    font-size: .82rem;
  }


  .match-score__numbers {

    font-size: 2.8rem;
  }


  .match-score__vs {

    font-size: 2rem;
  }


  .match-status {

    margin-top: 9px;

    padding:
      5px
      6px;

    font-size: .52rem;
  }


  .match-meta {

    grid-template-columns: 1fr 1fr;

    margin-top: 28px;
  }


  .match-meta__item {

    padding:
      0
      10px;
  }


  .match-nav-shell {

    margin:
      0
      -14px;
  }


  .match-nav {

    padding:
      0
      8px;
  }


  .match-nav__link {

    padding:
      14px
      10px
      13px;

    font-size: .61rem;
  }


  .match-section {

    margin-top: 44px;
  }


  .match-summary-grid {

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


  .match-summary-item {

    padding:
      17px
      12px;
  }


  .match-summary-item:nth-child(odd) {

    padding-left: 0;
  }


  .match-event {

    grid-template-columns: 1fr;

    gap: 7px;

    padding:
      14px
      0;
  }


  .lineup-grid {

    grid-template-columns: 1fr;
  }


  .lineup-player:nth-child(odd) {

    border-right: 0;
  }


  .lineup-player:nth-child(even) {

    padding-left: 0;
  }


  .ratings-grid {

    grid-template-columns: 1fr;
  }


  .rating-card {

    padding: 15px;
  }


  .rating-card__top {

    grid-template-columns:
      48px minmax(0,1fr) auto;

    gap: 11px;
  }


  .rating-card__avatar {

    width: 48px;
    height: 48px;
  }


  .rating-card__vote {

    min-width: 52px;
    height: 52px;

    font-size: 1.05rem;
  }


  .rating-card__vote--sv {

    font-size: .72rem;
  }


  .gallery-grid {

    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );

    gap: 6px;
  }


  .match-gallery-set__head {

    align-items: flex-start;

    flex-direction: column;

    gap: 5px;
  }


  .related-grid {

    grid-template-columns: 1fr;
  }


  .h2h-numbers {

    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );

    padding: 0;

    border-bottom: 0;
  }


  .h2h-number {

    padding:
      19px
      12px;

    border-bottom:
      1px solid
      var(--rule);
  }


  .h2h-number:nth-child(2n) {

    border-right: 0;
  }


  .h2h-number:first-child {

    padding-left: 12px;
  }


  .h2h-split {

    grid-template-columns: 1fr;

    gap: 28px;
  }


  .history-row {

    grid-template-columns:
      72px
      minmax(0,1fr)
      50px
      minmax(0,1fr);

    grid-template-areas:
      "date date date season"
      "home score away away";

    gap:
      8px
      10px;

    padding:
      12px
      0;
  }


  .history-date {
    grid-area: date;
  }


  .history-team:first-of-type {
    grid-area: home;
  }


  .history-score {
    grid-area: score;
  }


  .history-team--away {
    grid-area: away;
  }


  .history-season {
    grid-area: season;
  }


  .match-pager {

    grid-template-columns: 1fr;
  }


  .match-pager__link {

    min-height: 96px;
  }


  .match-pager__link--next {

    text-align: left;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

  .match-scoreboard {

    grid-template-columns:
      minmax(0,1fr)
      82px
      minmax(0,1fr);
  }


  .match-score__numbers {

    font-size: 2.35rem;
  }


  .gallery-grid {

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

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (
  prefers-reduced-motion: reduce
) {

  html {

    scroll-behavior: auto;
  }


  .gallery-item img,
  .related-card__image img {

    transition: none;
  }

}

/* =========================================================
   LINK SCHEDA AVVERSARIA
   ========================================================= */

.match-team__logo-link {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.match-team__logo-link:focus-visible {
  outline: 3px solid rgba(17,114,168,.28);
  outline-offset: -3px;
}

.match-team__name a {
  color: inherit;
  text-decoration: none;
}

.match-team__name a:hover,
.match-team__name a:focus-visible {
  color: var(--cc-blue-deep, #1172a8);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.match-team__name a:focus-visible {
  outline: 3px solid rgba(17,114,168,.22);
  outline-offset: 3px;
}

.match-team__opponent-link {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  color: var(--cc-blue-deep, #1172a8);
  font-size: .56rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
  text-decoration: none;
}

.match-team__opponent-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.match-team__opponent-link:focus-visible {
  outline: 3px solid rgba(17,114,168,.22);
  outline-offset: 3px;
}

.h2h-opponent-link {
  color: inherit;
  text-decoration-color: rgba(17,114,168,.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.h2h-opponent-link:hover,
.h2h-opponent-link:focus-visible {
  color: var(--cc-blue-deep, #1172a8);
}

.h2h-opponent-link:focus-visible {
  outline: 3px solid rgba(17,114,168,.22);
  outline-offset: 3px;
}
