.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue-deep);
  color: #fff;
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0 50%, var(--blue) 50% 100%);
  pointer-events: none;
}

.masthead.is-scrolled { box-shadow: 0 6px 18px rgba(7, 29, 64, 0.28); }

.masthead__bar {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  height: var(--bar-h);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: 8px;
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.brand__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  background: #fff;
  border-radius: var(--radius-s);
  transform: skewX(var(--slant));
}

.brand__badge img {
  width: auto;
  height: 38px;
  transform: skewX(calc(-1 * var(--slant)));
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.brand__club {
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 70%;
  font-style: italic;
  white-space: nowrap;
}

.brand__town {
  margin-top: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.04em;
  color: #b9cdf0;
}

.nav-toggle {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 4px;
  background: var(--blue-night);
  transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s;
  visibility: hidden;
}

.nav.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.3s ease, visibility 0s;
  box-shadow: 0 18px 30px rgba(7, 29, 64, 0.35);
}

.nav__inner {
  overflow: hidden;
  min-height: 0;
}

.nav ul {
  list-style: none;
  max-height: calc(100dvh - var(--bar-h) - 4px);
  overflow-y: auto;
  padding: 8px var(--gutter) 20px;
  border-bottom: 4px solid var(--orange);
}

.nav li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 72%;
  font-style: italic;
  text-decoration: none;
}

.nav a[aria-current="page"] { color: var(--orange); }

.no-js .masthead__bar { height: auto; min-height: var(--bar-h); }
.no-js .nav { position: static; grid-column: 1 / -1; grid-template-rows: 1fr; visibility: visible; }
.no-js .nav-toggle { display: none; }

@media (min-width: 75em) {
  .masthead__bar {
    grid-template-columns: auto 1fr;
    padding-inline: var(--gutter);
  }

  .nav-toggle { display: none; }

  .brand {
    grid-column: 1;
    justify-self: start;
    gap: 14px;
  }

  .brand__badge { width: 50px; height: 56px; }
  .brand__badge img { height: 46px; }
  .brand__club { font-size: 1.6rem; }
  .brand__town { font-size: 0.8rem; }

  .nav,
  .nav.is-open {
    position: static;
    grid-column: 2;
    display: block;
    margin: 0;
    background: none;
    box-shadow: none;
    visibility: visible;
    justify-self: end;
    height: 100%;
  }

  .nav__inner { overflow: visible; height: 100%; }

  .nav ul {
    display: flex;
    height: 100%;
    max-height: none;
    overflow: visible;
    padding: 0;
    border-bottom: 0;
    gap: clamp(14px, 1.6vw, 26px);
  }

  .nav li + li { border: 0; }

  .nav a {
    position: relative;
    height: 100%;
    min-height: 0;
    font-size: 0.95rem;
    font-weight: 700;
    font-stretch: 82%;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .nav a:hover::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { color: #fff; }
  .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-stretch: 90%;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary { background: var(--orange-strong); color: #fff; }
.btn--primary:hover { background: #b9330a; }

.btn--blue { background: var(--blue-ink); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }

.btn--ghost { border-color: currentColor; color: var(--blue-deep); background: transparent; }
.btn--ghost:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

.btn--whatsapp { background: #1a7f4b; color: #fff; }
.btn--whatsapp:hover { background: #136039; }

.btn--disabled,
.btn[aria-disabled="true"] {
  background: var(--surface);
  color: var(--ink-muted);
  border: 2px dashed var(--line);
  cursor: not-allowed;
}

.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px);
  background: var(--blue-deep);
  color: #fff;
}

.page-head::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: -12%;
  width: 46%;
  background: var(--blue);
  opacity: 0.18;
  transform: skewX(var(--slant));
}

.page-head .wrap { position: relative; }

.page-head p {
  margin-top: 14px;
  font-size: var(--step-1);
  color: #d3e0f5;
}

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section--white { background: var(--surface); }
.section--blue { background: var(--blue-deep); color: #fff; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section__head h2 { position: relative; padding-left: 20px; }

.section__head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.08em;
  width: 7px;
  background: var(--orange);
  transform: skewX(var(--slant));
}

.section--blue .section__head h2::before { background: var(--blue); }

.more-link {
  font-weight: 700;
  font-stretch: 90%;
}

.prose { max-width: var(--measure); }
.prose h2 { margin: 1.4em 0 0.5em; }
.prose h3 { margin: 1.6em 0 0.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }

.notice {
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  max-width: var(--measure);
}

.fixtures { list-style: none; }

.fixture {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.fixture:first-child { border-top: 1px solid var(--line); }
.fixture--empty { display: block; }

.fixture__date {
  grid-row: span 2;
  display: grid;
  justify-items: center;
  padding: 8px 0 9px;
  background: var(--blue-deep);
  color: #fff;
  border-radius: var(--radius-s);
  line-height: 1;
}

.fixture__day {
  font-size: 1.9rem;
  font-weight: 800;
  font-stretch: 70%;
  font-style: italic;
}

.fixture__month {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.fixture__title {
  font-size: var(--step-1);
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.25;
}

.fixture__meta {
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.fixture--placeholder .fixture__date { background: var(--orange-soft); color: var(--orange-ink); border: 1px dashed var(--orange-ink); }

.week {
  display: grid;
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.week__day {
  display: grid;
  grid-template-columns: 56px 1fr;
  background: var(--surface);
}

.week__name {
  display: grid;
  place-items: center;
  padding: 12px 0;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 800;
  font-stretch: 72%;
  font-style: italic;
  font-size: 1.25rem;
}

abbr[title] { text-decoration: none; }

.week__slots {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 10px;
  align-content: start;
}

.week__empty {
  padding: 10px 2px;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.week__day--empty .week__name { background: #8e9bb0; }

.slot {
  padding: 10px 12px;
  border-left: 5px solid var(--c, #8e9bb0);
  background: var(--paper);
  background: color-mix(in srgb, var(--c, #8e9bb0) 12%, #fff);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  line-height: 1.3;
  min-width: 0;
  hyphens: auto;
  overflow-wrap: break-word;
}


.slot__time {
  display: block;
  font-weight: 800;
  font-stretch: 85%;
  font-variant-numeric: tabular-nums;
}

.slot__title { display: block; font-weight: 600; }

.slot__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

@media (min-width: 64em) {
  .week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .week__day { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .week__name { padding: 10px 0; }
  .week__slots { padding: 8px; }
  .slot { padding: 8px 9px; }
  .slot__title { font-size: var(--step--1); }
  .slot__meta { font-size: 0.8rem; }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 2px; }

.site-footer {
  margin-top: auto;
  background: var(--blue-night);
  color: #c9d6ec;
  font-size: var(--step--1);
  border-top: 4px solid var(--orange);
}

.site-footer a { color: #fff; }

.site-footer__grid {
  display: grid;
  gap: 32px;
  padding-block: 48px 32px;
}

.site-footer h2 {
  margin-bottom: 10px;
  font-size: var(--step-1);
  font-style: normal;
  font-stretch: 85%;
  color: #fff;
}

.site-footer address { font-style: normal; }
.site-footer p { margin-bottom: 0.4em; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }

.site-footer .placeholder {
  background: rgba(238, 68, 14, 0.12);
  border-color: #f08a65;
  color: #ffb796;
}

.site-footer__brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-footer__brand img {
  width: 48px;
  height: auto;
  padding: 6px;
  background: #fff;
  border-radius: var(--radius-s);
}

.site-footer__brand strong {
  display: block;
  color: #fff;
  font-size: var(--step-2);
  font-stretch: 72%;
  font-style: italic;
  font-weight: 800;
  line-height: 1.1;
}

.site-footer__base {
  padding-block: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #93a6c6;
}

@media (min-width: 48em) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.field { display: grid; gap: 6px; }

.field label {
  font-weight: 700;
  font-stretch: 90%;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  font-size: 1rem;
  transition: border-color 0.15s ease;
}

.field textarea { min-height: 160px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14, 125, 235, 0.2);
}

.field.has-error input,
.field.has-error textarea { border-color: var(--orange-strong); }

.field__error {
  color: var(--orange-ink);
  font-size: var(--step--1);
  font-weight: 600;
}

.field__error:empty { display: none; }
.notice:empty { display: none; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal--left { transform: translateX(-48px); }
.reveal--zoom { transform: scale(0.94) translateY(24px); }

.reveal.is-visible { opacity: 1; transform: none; }

@media print {
  .reveal { opacity: 1; transform: none; }
}
