/* L'abbonamento — tabellone delle partenze (D106). */

.sb-hero { position: relative; overflow: hidden; padding: 72px 0 120px; background: var(--ink); }
.sb-hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.sb-hero h1 { margin: 0 0 28px; font-size: clamp(48px, 5.2vw, 84px) !important; line-height: 1.02 !important; }
.sb-hero .sb-hero__lead { margin: 0; max-width: 560px; font-size: 20px !important; line-height: 1.6 !important; color: var(--mist); }

.sb-board-wrap { opacity: 0; transform: translateY(40px); transition: opacity .8s ease .2s, transform 1.1s cubic-bezier(.16, 1, .3, 1) .2s; }
.is-ready .sb-board-wrap { opacity: 1; transform: none; }
.sb-switch { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 16px; border-radius: 999px; background: var(--ink-2); }
.sb-switch button {
  min-height: 42px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 600 14px var(--sans);
  color: var(--mist);
  cursor: pointer;
}
.sb-switch button[aria-pressed="true"] { background: var(--cream); color: #FFFFFF; }

/* The board: dark, mono letters in warm yellow, a thin split across each row. */
.sb-board {
  padding: 22px 26px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1D1F21, #111214);
  box-shadow: 0 50px 90px -40px rgba(23, 25, 26, .65), inset 0 0 0 1px rgba(255, 255, 255, .05);
  font-family: var(--mono);
}
.sb-board__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 230, .65); }
.sb-board__dot { width: 9px; height: 9px; border-radius: 999px; background: #E8B74A; box-shadow: 0 0 12px #E8B74A; animation: sb-blink 1.6s ease-in-out infinite; }
@keyframes sb-blink { 50% { opacity: .25; } }
.sb-board__cols,
.sb-board__row { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 14px; align-items: center; }
.sb-board__cols { padding: 0 0 10px; border-bottom: 1px solid rgba(244, 239, 230, .1); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 230, .45); }
.sb-board__row { position: relative; padding: 16px 0; border-bottom: 1px solid rgba(244, 239, 230, .08); }
.sb-board__row::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); pointer-events: none; }
.sb-board__row:last-child { border-bottom: 0; }
.sb-board__text { font-size: 19px; letter-spacing: .06em; color: #F2D27A; white-space: pre; }
html[dir="rtl"] .sb-board__text { text-align: right; }
.sb-board__row .sb-board__text:first-child { color: #F4EFE6; }
.sb-board__row .sb-board__text:last-child { font-size: 14px; color: rgba(244, 239, 230, .7); }
.sb-hero .sb-board__note { margin: 16px 0 8px; font-size: 14px !important; color: var(--mist); }

/* Benefits as tickets with notches and a perforated stub. */
.sb-tickets-section { padding: 130px 0; background: var(--ink-2); }
.sb-tickets__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.sb-tickets-section h2 { margin: 0 0 26px; font-size: clamp(36px, 3.8vw, 56px) !important; line-height: 1.06 !important; }
.sb-tickets-section .sb-tickets__text { margin: 0 0 16px; max-width: 600px; color: var(--mist); }
.sb-tickets { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.sb-ticket {
  --notch: radial-gradient(circle at 0 50%, transparent 14px, #000 14.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 14px, #000 14.5px) right / 51% 100% no-repeat;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  -webkit-mask: var(--notch);
  mask: var(--notch);
  opacity: 0;
  transform: translateX(80px) rotate(4deg);
  transition: opacity .6s ease, transform .9s cubic-bezier(.34, 1.25, .64, 1);
  transition-delay: calc(var(--i) * .15s);
  filter: drop-shadow(0 18px 24px rgba(23, 25, 26, .14));
}
.sb-ticket.is-in { opacity: 1; transform: rotate(calc((var(--i) - 1) * -1deg)); }
.sb-ticket__main { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px 24px 34px; background: #FFFFFF; }
.sb-ticket__t { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.sb-ticket__d { font-size: 15px; line-height: 1.55; color: var(--mist); }
.sb-ticket__stub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  background: var(--night);
  color: var(--ivory);
  border-left: 2px dashed rgba(244, 239, 230, .35);
  text-align: center;
}
.sb-ticket:nth-child(2) .sb-ticket__stub { background: var(--gold); }
.sb-ticket__stub span { font-size: 12px; line-height: 1.3; opacity: .75; }
.sb-ticket__stub b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }

/* The metro line: a train travels along it with the scroll (--p). */
.sb-line-section { padding: 130px 0 120px; background: var(--ink); }
.sb-line-section h2 { margin: 0 0 70px; font-size: clamp(36px, 3.8vw, 58px) !important; line-height: 1.06 !important; }
.sb-line { position: relative; }
.sb-line__track { position: absolute; left: 10%; right: 10%; top: 13px; height: 8px; border-radius: 8px; background: var(--ink-2); }
.sb-line__track i { display: block; height: 100%; border-radius: 8px; background: var(--cream); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.sb-line__train {
  position: absolute;
  top: -2px;
  left: calc(10% + var(--p, 0) * 80%);
  z-index: 2;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 7px 10px;
  margin-left: -30px;
  border-radius: 12px;
  background: var(--gold-line);
  box-shadow: 0 10px 20px -8px rgba(122, 92, 46, .6);
}
.sb-line__train i { width: 14px; height: 10px; border-radius: 3px; background: #FFFFFF; opacity: .9; }
.sb-line__stops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.sb-stop { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sb-stop__dot {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 6px solid var(--ink-2);
  transition: border-color .4s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.sb-stop.is-reached .sb-stop__dot { border-color: var(--cream); transform: scale(1.12); }
.sb-stop h3 { margin: 24px 0 8px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.12; color: var(--cream); }
.sb-stop p { margin: 0; font-size: 15px !important; line-height: 1.55 !important; color: var(--mist); }
.sb-stop h3,
.sb-stop p { opacity: .35; transition: opacity .5s ease; }
.sb-stop.is-reached h3,
.sb-stop.is-reached p { opacity: 1; }

@media (max-width: 900px) {
  .sb-hero__grid,
  .sb-tickets__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .sb-hero h1 { font-size: clamp(38px, 8.6vw, 58px) !important; }
  .sb-hero .sb-hero__lead { font-size: 17px !important; }
  .sb-board { padding: 18px 16px 12px; }
  .sb-board__cols,
  .sb-board__row { grid-template-columns: 1.1fr 1.2fr .8fr; gap: 8px; }
  .sb-board__text { font-size: 15px; }
  .sb-board__row .sb-board__text:last-child { font-size: 12px; }
  .sb-ticket { grid-template-columns: minmax(0, 1fr) 90px; }
  .sb-line__track { left: 16px; right: auto; top: 0; bottom: 0; width: 8px; height: auto; }
  .sb-line__track i { width: 100%; height: 100%; transform-origin: center top; transform: scaleY(var(--p, 0)); }
  .sb-line__train { display: none; }
  .sb-line__stops { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .sb-stop { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; align-items: start; text-align: left; }
  .sb-stop__dot { grid-row: span 2; }
  .sb-stop h3 { margin: 2px 0 6px; }
  .sb-stop h3,
  .sb-stop p { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .sb-board-wrap, .sb-ticket { transition: none; opacity: 1; transform: none; }
}
