/* =========================================================
   CalcioCatania.com — Scheda avversaria / squadra
   Pagina: /squadre/squadra.php
   Dipendenza: /css3/cc-design-system.css
   ========================================================= */

/* =========================================================
   AVVERSARIA — REDESIGN 2026
   ========================================================= */

.cc-opponent {

  --cc-opponent-rule: #dedede;

  width:
    min(
      var(--cc-container),
      calc(100% - (var(--cc-gutter) * 2))
    );

  margin:
    0
    auto;

  padding:
    28px
    0
    72px;

  color: #222;

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


.cc-opponent *,
.cc-opponent *::before,
.cc-opponent *::after {

  box-sizing: border-box;
}


/* HERO */

.cc-opponent-hero {

  display: grid;

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

  gap: 28px;

  align-items: center;

  padding:
    18px
    0
    25px;

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


.cc-opponent-logo {

  width: 140px;
  height: 140px;

  display: grid;

  place-items: center;

  padding: 13px;

  overflow: hidden;

  border:
    1px solid
    #e1e1e1;

  border-radius: 50%;

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


.cc-opponent-logo img {

  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}


.cc-opponent-logo__fallback {

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

  font-size: 3rem;

  font-weight: 900;
}


.cc-opponent-eyebrow {

  display: block;

  margin-bottom: 8px;

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

  font-size: .62rem;

  font-weight: 900;

  letter-spacing: .11em;

  text-transform: uppercase;
}


.cc-opponent-title {

  margin: 0;

  color: var(--cc-ink);

  font-size:
    clamp(
      2.4rem,
      6vw,
      5.2rem
    );

  line-height: .9;

  font-weight: 900;

  letter-spacing: -.065em;
}


.cc-opponent-subtitle {

  margin:
    13px
    0
    0;

  color: var(--cc-muted);

  font-size: .82rem;

  line-height: 1.45;

  font-weight: 650;
}


.cc-opponent-vs {

  color: #aaa;
}


/* NAV */

.cc-opponent-nav {

  display: flex;

  gap: 4px;

  margin-top: 14px;

  overflow-x: auto;

  scrollbar-width: none;
}


.cc-opponent-nav::-webkit-scrollbar {

  display: none;
}


.cc-opponent-nav a {

  flex:
    0
    0
    auto;

  padding:
    9px
    12px;

  color: #555;

  font-size: .61rem;

  font-weight: 900;

  letter-spacing: .055em;

  text-transform: uppercase;

  text-decoration: none;
}


.cc-opponent-nav a:hover {

  background: #f1f1ef;

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


/* SUMMARY */

.cc-opponent-summary {

  display: grid;

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

  margin-top: 22px;

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

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


.cc-opponent-summary__item {

  padding:
    15px
    13px;

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


.cc-opponent-summary__item:last-child {

  border-right: 0;
}


.cc-opponent-summary__value {

  display: block;

  color: var(--cc-ink);

  font-size: 1.45rem;

  line-height: 1;

  font-weight: 900;

  letter-spacing: -.04em;
}


.cc-opponent-summary__item:nth-child(2)
.cc-opponent-summary__value {

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


.cc-opponent-summary__item:nth-child(4)
.cc-opponent-summary__value {

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


.cc-opponent-summary__item:nth-child(5)
.cc-opponent-summary__value {

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


.cc-opponent-summary__label {

  display: block;

  margin-top: 6px;

  color: #999;

  font-size: .51rem;

  font-weight: 900;

  letter-spacing: .07em;

  text-transform: uppercase;
}


/* NEXT MATCH */

.cc-next-meeting {

  display: block;

  margin-top: 22px;

  padding:
    15px
    17px;

  border-left:
    4px solid
    var(--cc-blue-deep);

  background:
    linear-gradient(
      90deg,
      rgba(17,114,168,.08),
      rgba(215,38,56,.04)
    );

  text-decoration: none;
}


.cc-next-meeting__label {

  display: block;

  margin-bottom: 5px;

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

  font-size: .55rem;

  font-weight: 900;

  letter-spacing: .08em;

  text-transform: uppercase;
}


.cc-next-meeting__title {

  margin: 0;

  color: var(--cc-ink);

  font-size: 1rem;

  font-weight: 900;
}


.cc-next-meeting__meta {

  display: block;

  margin-top: 4px;

  color: #777;

  font-size: .66rem;

  font-weight: 700;
}


/* SECTION */

.cc-section {

  margin-top: 42px;
}


.cc-section-head {

  display: flex;

  align-items: end;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 15px;

  padding-bottom: 10px;

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


.cc-section-head h2 {

  margin: 0;

  color: var(--cc-ink);

  font-size: .75rem;

  font-weight: 900;

  letter-spacing: .09em;

  text-transform: uppercase;
}


.cc-section-head p {

  margin: 0;

  color: #999;

  font-size: .61rem;

  font-weight: 700;
}


/* BILANCIO VISIVO */

.cc-balance {

  display: grid;

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

  gap: 30px;

  align-items: start;
}


.cc-balance-bar {

  display: flex;

  width: 100%;

  height: 18px;

  overflow: hidden;

  background: #eee;
}


.cc-balance-bar__wins {

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


.cc-balance-bar__draws {

  background: #8d8d8d;
}


.cc-balance-bar__losses {

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


.cc-balance-legend {

  display: grid;

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

  gap: 10px;

  margin-top: 12px;
}


.cc-balance-legend__item {

  padding:
    10px
    0;

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


.cc-balance-legend__item strong {

  display: block;

  color: var(--cc-ink);

  font-size: 1.2rem;

  font-weight: 900;
}


.cc-balance-legend__item span {

  color: #888;

  font-size: .57rem;

  font-weight: 850;

  text-transform: uppercase;

  letter-spacing: .055em;
}


/* HOME / AWAY */

.cc-split {

  display: grid;

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

  gap: 14px;
}


.cc-split-card {

  padding:
    18px;

  border-top:
    4px solid
    var(--cc-blue-deep);

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


.cc-split-card:nth-child(2) {

  border-top-color:
    var(--cc-red);
}


.cc-split-card__label {

  display: block;

  color: #777;

  font-size: .56rem;

  font-weight: 900;

  letter-spacing: .075em;

  text-transform: uppercase;
}


.cc-split-card__record {

  display: block;

  margin-top: 8px;

  color: var(--cc-ink);

  font-size:
    clamp(
      1.6rem,
      3vw,
      2.3rem
    );

  line-height: 1;

  font-weight: 900;

  letter-spacing: -.045em;
}


.cc-split-card__meta {

  display: block;

  margin-top: 9px;

  color: #777;

  font-size: .65rem;

  line-height: 1.45;
}


/* RECORDS */

.cc-record-grid {

  display: grid;

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

  gap: 12px;
}


.cc-record-card {

  min-height: 126px;

  padding:
    16px;

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

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


.cc-record-card__label {

  display: block;

  color: #999;

  font-size: .54rem;

  font-weight: 900;

  letter-spacing: .075em;

  text-transform: uppercase;
}


.cc-record-card__value {

  display: block;

  margin-top: 9px;

  color: var(--cc-ink);

  font-size: 1.15rem;

  line-height: 1.15;

  font-weight: 900;
}


.cc-record-card__meta {

  display: block;

  margin-top: 7px;

  color: #777;

  font-size: .61rem;

  line-height: 1.35;
}


.cc-record-card--link {

  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;

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


.cc-record-card--link:hover {

  border-color: var(--cc-blue-deep);
  background: #f7fbfd;
  transform: translateY(-1px);
}


.cc-record-card--link:focus-visible {

  outline: 3px solid rgba(17,114,168,.28);
  outline-offset: 3px;
}


.cc-record-card__cta {

  display: inline-block;
  margin-top: 10px;
  color: var(--cc-blue-deep);
  font-size: .54rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}


/* STAGIONI AFFRONTATE */

.cc-season-grid {

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


.cc-season-card {

  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--cc-opponent-rule);
  border-top: 3px solid var(--cc-blue-deep);
  background: var(--cc-white);
  color: inherit;
  text-decoration: none;

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


.cc-season-card:hover {

  border-color: var(--cc-blue-deep);
  background: #f7fbfd;
  transform: translateY(-1px);
}


.cc-season-card:focus-visible {

  outline: 3px solid rgba(17,114,168,.28);
  outline-offset: 3px;
}


.cc-season-card__eyebrow {

  display: block;
  color: #999;
  font-size: .51rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
}


.cc-season-card__title {

  display: block;
  margin-top: 7px;
  color: var(--cc-ink);
  font-size: 1rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.025em;
}


.cc-season-card__meta {

  display: block;
  margin-top: 7px;
  color: var(--cc-blue-deep);
  font-size: .56rem;
  line-height: 1.2;
  font-weight: 850;
}


/* RECENT */

.cc-recent-grid {

  display: grid;

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

  gap: 8px;
}


.cc-recent-card {

  padding:
    13px;

  border-top:
    3px solid
    #aaa;

  background: var(--cc-soft);

  color: var(--cc-ink);

  text-decoration: none;
}


.cc-recent-card.is-win {

  border-top-color: var(--cc-success);
}


.cc-recent-card.is-draw {

  border-top-color: #8d8d8d;
}


.cc-recent-card.is-loss {

  border-top-color: var(--cc-danger);
}


.cc-recent-card__title {

  display: block;

  min-height: 2.35em;

  margin-bottom: 10px;

  color: var(--cc-ink);

  font-size: .72rem;

  line-height: 1.18;

  font-weight: 900;

  letter-spacing: -.015em;
}


.cc-recent-card__result {

  display: inline-grid;

  place-items: center;

  width: 24px;
  height: 24px;

  margin-bottom: 8px;

  border-radius: 50%;

  background: #111;

  color: var(--cc-white);

  font-size: .58rem;

  font-weight: 900;
}


.cc-recent-card__score {

  display: block;

  color: var(--cc-ink);

  font-size: 1.15rem;

  font-weight: 900;
}


.cc-recent-card__date {

  display: block;

  margin-top: 5px;

  color: #888;

  font-size: .56rem;

  font-weight: 700;
}


/* MATCH HISTORY */

.cc-history {

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

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


.cc-history-row {

  display: grid;

  grid-template-columns:
    110px
    115px
    minmax(0,1fr)
    72px
    minmax(0,1fr)
    150px
    44px
    40px;

  gap: 12px;

  align-items: center;

  min-height: 58px;

  padding:
    8px
    10px;

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

  font-size: .68rem;

  font-weight: 750;
}


.cc-history-row:last-child {

  border-bottom: 0;
}


.cc-history-row--head {

  min-height: 40px;

  background: #111;

  color: var(--cc-white);

  font-size: .53rem;

  font-weight: 900;

  letter-spacing: .07em;

  text-transform: uppercase;
}


.cc-history-row:not(.cc-history-row--head):hover {

  background: #fafafa;
}


.cc-history-team--away {

  text-align: right;
}


.cc-history-cell--center {

  text-align: center;
}


.cc-history-cell--right {

  text-align: right;
}


.cc-history-score {

  text-align: center;
}


.cc-history-score a {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 54px;

  min-height: 30px;

  background: #111;

  color: var(--cc-white);

  font-size: .78rem;

  font-weight: 900;

  text-decoration: none;
}


.cc-history-video {

  display: grid;

  place-items: center;

  min-width: 44px;
}


.cc-history-video__link {

  display: grid;

  place-items: center;

  width: 30px;
  height: 30px;

  border-radius: 50%;

  background: #111;

  color: var(--cc-white);

  text-decoration: none;

  transition:
    background .15s ease,
    transform .15s ease;
}


.cc-history-video__link:hover {

  background: var(--cc-red);

  transform: scale(1.06);
}


.cc-history-video__link:focus-visible {

  outline:
    3px solid
    rgba(17,114,168,.32);

  outline-offset: 3px;
}


.cc-history-video__link svg {

  display: block;

  width: 10px;
  height: 12px;

  fill: currentColor;

  transform: translateX(1px);
}


.cc-history-video__empty {

  display: block;

  width: 30px;
  height: 30px;
}


.cc-history-result {

  display: grid;

  place-items: center;

  width: 24px;
  height: 24px;

  margin: 0 auto;

  border-radius: 50%;

  color: var(--cc-white);

  font-size: .54rem;

  font-weight: 900;
}


.cc-history-result.V {

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


.cc-history-result.P {

  background: #8d8d8d;
}


.cc-history-result.S {

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


.cc-history-muted {

  color: #888;

  font-size: .6rem;
}


.cc-history-season-link {

  color: inherit;
  font-weight: 800;
  text-decoration: none;
}


.cc-history-season-link:hover {

  color: var(--cc-blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}


.cc-history-season-link:focus-visible {

  outline: 3px solid rgba(17,114,168,.28);
  outline-offset: 2px;
}


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

  .cc-record-card--link,
  .cc-season-card {

    transition: none;
  }


  .cc-record-card--link:hover,
  .cc-season-card:hover {

    transform: none;
  }


  .cc-history-video__link {

    transition: none;
  }


  .cc-history-video__link:hover {

    transform: none;
  }

}


/* PHOTOGRAPHIC ARCHIVE */

.cc-photo-section {

  padding:
    24px;

  background: #111;

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


.cc-photo-section__head {

  display: flex;

  align-items: end;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 16px;

  padding-bottom: 12px;

  border-bottom:
    1px solid
    rgba(255,255,255,.18);
}


.cc-photo-section__eyebrow {

  display: block;

  margin-bottom: 6px;

  color: #a8cfe2;

  font-size: .54rem;

  font-weight: 900;

  letter-spacing: .1em;

  text-transform: uppercase;
}


.cc-photo-section__head h2 {

  margin: 0;

  color: var(--cc-white);

  font-size:
    clamp(
      1.2rem,
      2.4vw,
      1.75rem
    );

  line-height: 1.05;

  font-weight: 850;

  letter-spacing: -.025em;
}


.cc-photo-section__head p {

  margin: 0;

  color: #aaa;

  font-size: .62rem;

  font-weight: 750;

  white-space: nowrap;
}


.cc-photo-grid {

  display: grid;

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

  gap: 18px;
}


.cc-photo-card {

  min-width: 0;

  margin: 0;

  border-top:
    1px solid
    rgba(255,255,255,.14);
}


.cc-photo-card__image {

  position: relative;

  display: block;

  aspect-ratio: 3 / 2;

  overflow: hidden;

  background: #1c1c1c;

  color: inherit;

  text-decoration: none;
}


.cc-photo-card__image img {

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform
    .28s
    ease;
}


.cc-photo-card:hover .cc-photo-card__image img {

  transform: scale(1.025);
}


.cc-photo-card__image:focus-visible,
.cc-photo-card__body a:focus-visible,
.cc-photo-section__footer a:focus-visible {

  outline:
    3px solid
    rgba(255,255,255,.72);

  outline-offset: 3px;
}


.cc-photo-card__fallback {

  width: 100%;
  height: 100%;

  display: block;

  background:
    linear-gradient(
      135deg,
      rgba(17,114,168,.42),
      rgba(215,38,56,.3)
    );
}


.cc-photo-card__count {

  position: absolute;

  right: 8px;
  bottom: 8px;

  padding:
    5px
    7px;

  background:
    rgba(0,0,0,.78);

  color: var(--cc-white);

  font-size: .52rem;

  font-weight: 900;

  letter-spacing: .045em;

  text-transform: uppercase;
}


.cc-photo-card__body {

  padding:
    10px
    0
    2px;
}


.cc-photo-card__body h3 {

  margin: 0;

  font-size: .86rem;

  line-height: 1.2;

  font-weight: 850;
}


.cc-photo-card__body h3 a {

  color: var(--cc-white);

  text-decoration: none;
}


.cc-photo-card__body h3 a:hover {

  text-decoration: underline;

  text-decoration-thickness: 1px;

  text-underline-offset: 3px;
}


.cc-photo-card__meta {

  display: flex;

  flex-wrap: wrap;

  gap:
    5px
    10px;

  margin-top: 7px;

  color: #9a9a9a;

  font-size: .56rem;

  font-weight: 700;
}


.cc-photo-card__match {

  color: #b9d9e8;

  text-decoration: none;
}


.cc-photo-card__match:hover {

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


.cc-photo-section__footer {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  margin-top: 20px;

  padding-top: 14px;

  border-top:
    1px solid
    rgba(255,255,255,.14);

  color: #8d8d8d;

  font-size: .58rem;

  font-weight: 750;
}


.cc-photo-section__footer a {

  color: var(--cc-white);

  font-weight: 900;

  text-decoration: none;
}


.cc-photo-section__footer a:hover {

  text-decoration: underline;

  text-underline-offset: 3px;
}


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

  .cc-photo-card__image img {

    transition: none;
  }


  .cc-photo-card:hover .cc-photo-card__image img {

    transform: none;
  }

}


/* EMPTY */

.cc-opponent-empty {

  padding:
    30px
    0;

  color: #777;

  font-size: .82rem;
}


/* RESPONSIVE */

@media (max-width: 900px) {

  .cc-opponent-summary {

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


  .cc-opponent-summary__item:nth-child(3) {

    border-right: 0;
  }


  .cc-opponent-summary__item:nth-child(-n+3) {

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


  .cc-record-grid {

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


  .cc-season-grid {

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


  .cc-recent-grid {

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


  .cc-photo-grid {

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


  .cc-history {

    overflow-x: auto;
  }


  .cc-history-row {

    min-width: 910px;
  }

}


@media (max-width: 680px) {

  .cc-opponent {

    width: 100%;

    padding:
      20px
      14px
      50px;
  }


  .cc-opponent-hero {

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

    gap: 15px;
  }


  .cc-opponent-logo {

    width: 80px;
    height: 80px;

    padding: 8px;
  }


  .cc-opponent-title {

    font-size:
      clamp(
        2rem,
        12vw,
        3.3rem
      );
  }


  .cc-opponent-summary__item {

    padding:
      12px
      8px;
  }


  .cc-opponent-summary__value {

    font-size: 1.15rem;
  }


  .cc-balance {

    grid-template-columns: 1fr;
  }


  .cc-split {

    grid-template-columns: 1fr;
  }


  .cc-record-grid {

    grid-template-columns: 1fr;
  }


  .cc-season-grid {

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


  .cc-recent-grid {

    grid-template-columns: 1fr;
  }


  .cc-photo-section {

    margin-right: -14px;
    margin-left: -14px;

    padding:
      20px
      14px;
  }


  .cc-photo-section__head {

    align-items: flex-start;

    flex-direction: column;

    gap: 6px;
  }


  .cc-photo-section__head p {

    white-space: normal;
  }


  .cc-photo-grid {

    grid-template-columns: 1fr;

    gap: 20px;
  }


  .cc-photo-card__image {

    aspect-ratio: 16 / 10;
  }


  .cc-photo-section__footer {

    align-items: flex-start;

    flex-direction: column;

    gap: 7px;
  }

}

/* =========================================================
   RECENT MATCH RESULT BADGES
   ========================================================= */

.cc-recent-card.is-win .cc-recent-card__result {
  background: var(--cc-success);
}

.cc-recent-card.is-draw .cc-recent-card__result {
  background: #8d8d8d;
}

.cc-recent-card.is-loss .cc-recent-card__result {
  background: var(--cc-danger);
}
