/* =========================================================
   CalcioCatania.com — Referee page 2026
   Page stylesheet

   Dipendenze:
   1. /css3/skin.css
   2. /css3/cc-design-system.css
   3. /css3/cc-site-shell.css
   4. questo file

   Estratto dal blocco inline senza modifiche intenzionali
   alla geometria o al responsive della pagina.
   ========================================================= */

/* =========================================================
   REFEREE PAGE — EDITORIALE 2026
   ========================================================= */

.ref-page {


  --ink: #111;
  --body: #2d2d2d;
  --muted: #777;

  --rule: #dcdcdc;
  --soft-rule: var(--cc-rule-soft);
  --soft: var(--cc-soft);

  --ref-nav-top: 0px;

  width:
    min(
      1160px,
      calc(100% - 40px)
    );

  margin:
    0
    auto;

  padding:
    28px
    0
    70px;

  color:
    var(--body);

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


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

  box-sizing: border-box;
}


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

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

  outline-offset: 3px;
}


/* BREADCRUMB */

.ref-breadcrumb {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 7px;

  margin-bottom: 28px;

  color: #888;

  font-size: .62rem;

  font-weight: 800;
}


.ref-breadcrumb a {

  color: #555;

  text-decoration: none;
}


/* HERO */

.ref-hero {

  display: grid;

  grid-template-columns:
    minmax(0,1fr)
    minmax(260px,.34fr);

  gap: 48px;

  align-items: end;

  padding:
    20px
    0
    28px;

  border-top:
    3px solid
    #111;

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


.ref-hero__kicker {

  display: block;

  margin-bottom: 9px;

  color:
    var(--cc-red);

  font-size: .62rem;

  font-weight: 900;

  letter-spacing: .11em;

  text-transform: uppercase;
}


.ref-hero__title {

  max-width: 860px;

  margin: 0;

  color: #111;

  font-size:
    clamp(
      2.8rem,
      7vw,
      5.8rem
    );

  line-height: .9;

  font-weight: 900;

  letter-spacing: -.065em;
}


.ref-hero__section {

  display: block;

  margin-top: 14px;

  color: #777;

  font-size: .75rem;

  font-weight: 850;

  letter-spacing: .07em;

  text-transform: uppercase;
}


.ref-hero__portrait {

  justify-self: end;

  width:
    min(
      220px,
      100%
    );

  overflow: hidden;

  background: #eee;
}


.ref-hero__portrait img {

  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: auto;

  object-fit: contain;

  object-position:
    center top;
}


.ref-hero__portrait-fallback {

  aspect-ratio:
    4 / 5;

  display: grid;

  place-items: center;

  background:
    linear-gradient(
      145deg,
      #101216,
      #1e6f99
    );

  color: #fff;

  font-size: 2.4rem;

  font-weight: 900;
}


/* NAV */

.ref-nav-wrap {

  position: sticky;

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

  z-index: 70;

  margin:
    0
    -20px;

  padding:
    0
    20px;

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

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

  backdrop-filter:
    blur(10px);
}


.ref-nav {

  display: flex;

  align-items: center;

  gap: 24px;

  min-height: 48px;

  overflow-x: auto;

  scrollbar-width: none;
}


.ref-nav::-webkit-scrollbar {

  display: none;
}


.ref-nav a {

  position: relative;

  flex: 0 0 auto;

  display: inline-flex;

  align-items: center;

  min-height: 48px;

  color: #666;

  font-size: .63rem;

  font-weight: 900;

  letter-spacing: .07em;

  text-decoration: none;

  text-transform: uppercase;
}


.ref-nav a::after {

  content: "";

  position: absolute;

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

  height: 3px;

  background: transparent;
}


.ref-nav a:hover,
.ref-nav a.is-active {

  color: #111;
}


.ref-nav a.is-active::after {

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


/* SECTIONS */

.ref-anchor {

  scroll-margin-top:
    calc(
      var(--ref-nav-top)
      +
      65px
    );
}


.ref-section {

  margin-top: 48px;
}


.ref-section__head {

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 15px;

  padding-bottom: 10px;

  border-bottom:
    3px solid
    #111;
}


.ref-section__head h2 {

  margin: 0;

  color: #111;

  font-size: .73rem;

  font-weight: 900;

  letter-spacing: .09em;

  text-transform: uppercase;
}


.ref-section__head span {

  color: #999;

  font-size: .6rem;

  font-weight: 700;
}


/* PROFILE */

.ref-profile-grid {

  display: grid;

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

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


.ref-profile-item {

  padding:
    17px
    18px;

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


.ref-profile-item:first-child {

  padding-left: 0;
}


.ref-profile-item:last-child {

  border-right: 0;
}


.ref-profile-item__label {

  display: block;

  margin-bottom: 6px;

  color: #999;

  font-size: .54rem;

  font-weight: 900;

  letter-spacing: .07em;

  text-transform: uppercase;
}


.ref-profile-item__value {

  display: block;

  color: #111;

  font-size: .82rem;

  line-height: 1.4;

  font-weight: 800;
}


/* NUMBERS */

.ref-numbers {

  display: grid;

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

  padding:
    23px
    0;

  border-top:
    3px solid
    #111;

  border-bottom:
    1px solid
    #111;
}


.ref-number {

  min-width: 0;

  padding:
    0
    15px;

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


.ref-number:first-child {

  padding-left: 0;
}


.ref-number:last-child {

  padding-right: 0;

  border-right: 0;
}


.ref-number strong {

  display: block;

  color: #111;

  font-size:
    clamp(
      1.7rem,
      3.4vw,
      2.8rem
    );

  line-height: .95;

  font-weight: 900;

  letter-spacing: -.05em;
}


.ref-number span {

  display: block;

  margin-top: 8px;

  color: #777;

  font-size: .55rem;

  font-weight: 900;

  letter-spacing: .07em;

  text-transform: uppercase;
}


/* PERFORMANCE */

.ref-table-wrap {

  width: 100%;

  overflow-x: auto;
}


.ref-table {

  width: 100%;

  min-width: 720px;

  border-collapse: collapse;
}


.ref-table th {

  padding:
    0
    12px
    9px;

  border-bottom:
    1px solid
    #111;

  color: #777;

  font-size: .56rem;

  font-weight: 900;

  letter-spacing: .065em;

  text-align: center;

  text-transform: uppercase;
}


.ref-table th:first-child {

  padding-left: 0;

  text-align: left;
}


.ref-table td {

  padding:
    13px
    12px;

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

  color: #333;

  font-size: .78rem;

  text-align: center;
}


.ref-table td:first-child {

  padding-left: 0;

  color: #111;

  font-weight: 850;

  text-align: left;
}


.ref-table tbody tr:last-child td {

  border-bottom-color:
    var(--rule);

  font-weight: 850;
}


/* MATCHES */

.ref-matches {

  border-top:
    1px solid
    #111;
}


.ref-match {

  display: grid;

  grid-template-columns:
    88px
    82px
    minmax(300px,1fr)
    64px
    95px;

  gap: 13px;

  align-items: center;

  min-height: 70px;

  padding:
    10px
    4px;

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


.ref-match:hover {

  background:
    #fafafa;
}


.ref-match.is-extra {

  display: none;
}


.ref-matches.is-expanded
.ref-match.is-extra {

  display: grid;
}


.ref-match__date {

  color: #777;

  font-size: .64rem;

  font-weight: 850;
}


.ref-match__round {

  color: #888;

  font-size: .57rem;

  font-weight: 800;

  letter-spacing: .04em;

  text-transform: uppercase;
}


.ref-match__teams {

  min-width: 0;

  display: grid;

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

  gap: 8px;

  align-items: center;
}


.ref-match__team {

  min-width: 0;

  display: flex;

  align-items: center;

  gap: 8px;

  color: #111;

  font-size: .76rem;

  font-weight: 800;

  text-decoration: none;
}


.ref-match__team--away {

  justify-content: flex-end;

  text-align: right;
}


.ref-match__team span {

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.ref-match__logo {

  width: 29px;
  height: 29px;

  flex:
    0
    0
    29px;

  object-fit: contain;
}


.ref-match__logo-fallback {

  width: 29px;
  height: 29px;

  flex:
    0
    0
    29px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background: #efefef;

  color: #666;

  font-size: .63rem;

  font-weight: 900;
}


.ref-match__versus {

  color: #aaa;

  text-align: center;
}


.ref-match__score {

  text-align: center;
}


.ref-match__score a {

  display: inline-flex;

  min-width: 51px;

  align-items: center;

  justify-content: center;

  padding:
    7px
    8px;

  background: #111;

  color: #fff;

  font-size: .84rem;

  font-weight: 900;

  text-decoration: none;
}


.ref-match__score a.is-upcoming {

  border:
    1px solid
    #ccc;

  background: #fff;

  color: #777;
}


.ref-match__season {

  overflow: hidden;

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

  font-size: .61rem;

  font-weight: 800;

  text-align: right;

  text-decoration: none;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.ref-toggle {

  margin-top: 14px;

  padding:
    10px
    0;

  border: 0;

  border-bottom:
    1px solid
    #111;

  background: transparent;

  color: #111;

  font: inherit;

  font-size: .61rem;

  font-weight: 900;

  letter-spacing: .065em;

  text-transform: uppercase;

  cursor: pointer;
}


/* EMPTY */

.ref-empty {

  padding:
    22px
    0;

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

  color: #777;

  font-size: .82rem;
}


/* RESPONSIVE */

@media (max-width: 900px) {

  .ref-numbers {

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

    padding: 0;
  }


  .ref-number {

    padding:
      18px
      14px;

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


  .ref-number:nth-child(3n) {

    border-right: 0;
  }


  .ref-number:first-child {

    padding-left: 14px;
  }


  .ref-number:last-child {

    padding-right: 14px;
  }


  .ref-match {

    grid-template-columns:
      78px
      72px
      minmax(250px,1fr)
      58px
      85px;

    gap: 9px;
  }

}


@media (max-width: 700px) {

  .ref-page {

    width: 100%;

    padding:
      20px
      14px
      50px;
  }


  .ref-hero {

    grid-template-columns: 1fr;

    gap: 22px;

    align-items: start;
  }


  .ref-hero__title {

    font-size:
      clamp(
        2.8rem,
        15vw,
        4.4rem
      );
  }


  .ref-hero__portrait {

    justify-self: start;

    width: 160px;
  }


  .ref-nav-wrap {

    margin:
      0
      -14px;

    padding:
      0
      14px;
  }


  .ref-profile-grid {

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


  .ref-profile-item:nth-child(2n) {

    border-right: 0;
  }


  .ref-profile-item:nth-child(-n+2) {

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


  .ref-profile-item:first-child {

    padding-left: 18px;
  }


  .ref-numbers {

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


  .ref-number:nth-child(3n) {

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


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

    border-right: 0;
  }


  .ref-match {

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

    grid-template-areas:
      "date season"
      "teams teams"
      "round score";

    gap:
      10px
      12px;

    padding:
      15px
      2px;
  }


  .ref-matches.is-expanded
  .ref-match.is-extra {

    display: grid;
  }


  .ref-match__date {

    grid-area: date;
  }


  .ref-match__round {

    grid-area: round;
  }


  .ref-match__teams {

    grid-area: teams;

    padding-top: 2px;
  }


  .ref-match__team {

    flex-direction: column;

    align-items: flex-start;

    gap: 5px;
  }


  .ref-match__team--away {

    align-items: flex-end;
  }


  .ref-match__team span {

    white-space: normal;
  }


  .ref-match__logo,
  .ref-match__logo-fallback {

    width: 34px;
    height: 34px;

    flex-basis: 34px;
  }


  .ref-match__score {

    grid-area: score;

    text-align: right;
  }


  .ref-match__season {

    grid-area: season;
  }

}
