:root {
  --ink: #2a2420;
  --ink-soft: #6b5f56;
  --paper: #faf7f2;
  --paper-2: #fffdf9;
  --cream: #f3e8d8;
  --orange: #c44a00;
  --orange-deep: #a33d00;
  --yellow: #f0b429;
  --sky: #6ec4f5;
  --sky-deep: #2ea0e0;
  --green: #3aa36a;
  --line: #e3dbd2;
  --line-strong: #cfc4b8;
  --shadow: 0 4px 24px rgba(42, 36, 32, 0.06);
  --shadow-hover: 0 8px 28px rgba(42, 36, 32, 0.1);
  --radius: 1rem;
  --header-h: 4.25rem;
  --font-sans: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3,
h4 {
  font-weight: 600;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: #fff;
  padding: 0.6rem 1rem;
  border: 3px solid var(--line);
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand__bus {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand__name {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
}

.brand__place {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

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

.nav a.nav__cta,
.nav a.nav__cta:visited,
.nav a.nav__cta:hover,
.nav a.nav__cta[aria-current="page"] {
  color: #fff;
  background: var(--orange);
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  box-shadow: none;
}

.nav a.nav__cta:hover,
.nav a.nav__cta[aria-current="page"] {
  background: var(--orange);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--yellow);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.hero {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #f3c36a;
}

.hero__media {
  position: absolute;
  inset: -12% 0 -18%;
  will-change: transform;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 20, 16, 0.08) 0%, rgba(28, 20, 16, 0.15) 42%, rgba(28, 20, 16, 0.55) 100%);
  z-index: 1;
}

.hero__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  z-index: 3;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hero__kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-shadow: none;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 0.8rem;
}

.hero__copy p {
  margin-top: 0.55rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  max-width: 36ch;
}

.waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
  height: min(28%, 160px);
  pointer-events: none;
}

.waves svg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
}

.waves__back {
  bottom: 18px;
}

.waves__mid {
  bottom: 8px;
}

.waves__front {
  bottom: 0;
}

.hero__mascot {
  position: absolute;
  right: max(4%, calc(50% - 540px));
  bottom: 7%;
  z-index: 5;
  width: min(168px, 22vw);
  filter: drop-shadow(4px 8px 0 rgba(28, 20, 16, 0.18));
  transform-origin: 50% 90%;
}

.intro {
  padding: 2.4rem 0 1.2rem;
  text-align: center;
}

.intro h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.intro p {
  max-width: 58ch;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  padding: 0.5rem 0 2.4rem;
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card__badge {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: var(--cream);
}

.card--routes .card__badge {
  background: var(--orange);
  color: #fff8ee;
}

.card--routes .btn.btn--ghost,
.card--routes .btn.btn--ghost:visited {
  border-radius: 0.75rem;
  color: var(--orange) !important;
}

.card__badge-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.card--plus .card__badge {
  background: var(--yellow);
}

.card--help .card__badge {
  background: var(--sky);
}

.card h3 {
  font-size: 1.45rem;
}

.card p,
.card li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.card li {
  position: relative;
  padding-left: 1.2rem;
}

.card li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 0.7rem;
  top: 0.25rem;
}

.mini-lines {
  display: grid;
  gap: 0.55rem;
}

.mini-line {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
}

.mini-line strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.mini-line span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.cta-band {
  padding: 0 0 3.2rem;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.45rem;
}

.cta-band__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.page-hero {
  padding: 2.2rem 0 1.4rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.page-hero p {
  margin-top: 0.6rem;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.form {
  display: grid;
  gap: 1.4rem;
  padding-bottom: 3rem;
}

.fieldset legend {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  padding: 0 0.4rem;
  background: var(--paper);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.grid-alunno-top {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(10.5rem, auto);
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.grid-alunno-top .field--sesso .inline-options {
  min-height: 2.75rem;
  align-items: center;
}

.field--wide {
  grid-column: 1 / -1;
}

.field-label {
  font-weight: 500;
}

.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.inline-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.inline-option input {
  accent-color: var(--orange);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  background: var(--paper-2);
  width: 100%;
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: #b42318;
  background: #fff5f5;
}

.field-error {
  color: #b42318;
  font-size: 0.84rem;
}

.fieldset--error {
  border-color: #b42318;
}

.fieldset-note {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.school-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.school-title {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  margin: 0.35rem 0 0.75rem;
  color: var(--ink);
}

.mini-lines__school {
  margin: 0.45rem 0 0.1rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--orange)!important;
  line-height: 1.35;
}

.mini-lines__school:first-child {
  margin-top: 0;
}

.school-pick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  padding-bottom: 3rem;
}

.school-pick__card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.school-pick__card h2 {
  font-size: 1.35rem;
}

.school-pick__lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.school-pick__card .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.routes {
  display: grid;
  gap: 0.8rem;
}

.route {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem;
  cursor: pointer;
  background: var(--paper-2);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  max-width: 16ch;
  font-weight: 600;
}

.cta-band__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 1.8rem 1.4rem;
  text-align: center;
}

.cta-band p {
  max-width: 46ch;
  margin: 0 auto 1.2rem;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  background: var(--orange);
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: #fff;
  color: var(--orange);
  border: 1px solid var(--line-strong);
}

.btn.btn--ghost:hover,
.btn.btn--ghost:visited:hover,
.btn.btn--ghost[aria-current="page"] {
  background: var(--orange);
  color: #fff !important;
  border-color: var(--orange);
}

.btn.btn--ghost:visited {
  color: var(--orange);
}

.note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  margin: 1.2rem 0 1.6rem;
  font-size: 0.95rem;
}

.fieldset {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.1rem 1.3rem;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(196, 74, 0, 0.25);
  outline-offset: 0;
  border-color: var(--orange);
}

.field-error {
  font-weight: 500;
}

.school-kicker {
  font-weight: 600;
}

.mini-lines__school {
  font-weight: 600;
}

.school-title {
  font-weight: 600;
}

.school-pick__card {
  border: 1px solid var(--line);
}

.route {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.route:has(input:checked) {
  background: var(--cream);
  border-color: var(--orange);
  box-shadow: none;
}

.route__meta {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--orange);
  margin: 0.15rem 0 0.45rem;
}

.stops {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.stops li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.stops b {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.95rem;
}

.check input {
  margin-top: 0.25rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--orange);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.alert {
  border: 3px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: #ffd4d4;
  font-weight: 700;
}

.thanks {
  padding: 3rem 0 4rem;
  text-align: center;
}

.thanks h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.8rem 0;
}

.thanks p {
  max-width: 48ch;
  margin: 0 auto 1.4rem;
  color: var(--ink-soft);
}

.site-footer {
  background: var(--ink);
  color: #f7efe4;
  padding: 2.4rem 0 1.4rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.footer-logo {
  width: 160px;
}

.site-footer h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--yellow);
}

.site-footer p,
.site-footer li {
  color: #eadfcf;
  font-size: 0.92rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.6rem;
  padding-top: 0.9rem;
  font-size: 0.8rem;
  color: #cbbba8;
}

@media (max-width: 860px) {
  .cards,
  .grid-2,
  .grid-alunno-top,
  .footer-grid,
  .school-pick {
    grid-template-columns: 1fr;
  }

  .card:nth-child(1),
  .card:nth-child(2),
  .card:nth-child(3) {
    transform: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 0.6rem);
    right: 1rem;
    left: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow-hover);
    padding: 0.8rem;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.55rem 0.4rem;
  }

  .hero {
    aspect-ratio: 5 / 4;
  }

  .hero__copy {
    bottom: 22%;
  }

  .hero__mascot {
    width: 92px;
    bottom: 10%;
    right: 4%;
  }

  .footer-logo {
    width: 130px;
  }
}

/* Percorsi - timeline orizzontale + Street View */
.percorsi-page {
  padding-bottom: 3rem;
}

.percorsi-note {
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.route-block {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.route-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.route-block__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.route-block__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.route-block__head h2 {
  margin: 0.15rem 0 0;
}

.route-block__sub {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.timeline-scroll {
  overflow: visible;
}

.timeline-track {
  --dot-outer: 18px;
  --dot-center: calc(var(--dot-outer) / 2);
}

.timeline-rail {
  display: grid;
  grid-template-columns: repeat(var(--stops, 4), minmax(0, 1fr));
  align-items: center;
  min-height: var(--dot-outer);
  position: relative;
  margin-bottom: 0.85rem;
}

.timeline-rail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% / var(--stops));
  right: calc(50% / var(--stops));
  height: 2px;
  transform: translateY(-50%);
  background: var(--line-strong);
  z-index: 0;
}

.timeline-rail__dot,
.timeline-step__dot {
  width: var(--dot-outer);
  height: var(--dot-outer);
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--orange);
  box-shadow: none;
  flex-shrink: 0;
  position: relative;
}

.timeline-rail__dot::after,
.timeline-step__dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.timeline-rail__dot {
  justify-self: center;
  z-index: 1;
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(var(--stops, 4), minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.timeline-step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.timeline-step__marker {
  display: none;
}

.timeline-step__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
}

.timeline-step__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0 0.15rem;
  min-height: 5.25rem;
}

.timeline-step__time {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--orange);
}

.timeline-step__label {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-step__view {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow);
}

.timeline-step__view:focus,
.timeline-step__view:focus-within {
  outline: none;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.timeline-step__iframe {
  width: 100%;
  height: 200px;
  min-height: 200px;
  border: none;
  border-radius: calc(var(--radius) - 0.25rem);
  background: var(--cream);
  outline: none;
  display: block;
}

.timeline-step__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 200px;
  padding: 1rem;
  text-align: center;
  background: var(--cream);
  border-radius: calc(var(--radius) - 0.25rem);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.timeline-step__preview {
  position: relative;
  display: block;
  border-radius: calc(var(--radius) - 0.25rem);
  overflow: hidden;
  line-height: 0;
}

.timeline-step__preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--cream);
}

.timeline-step__preview-label {
  position: absolute;
  inset: auto 0 0;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(transparent, rgba(42, 36, 32, 0.72));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.timeline-step__map-link {
  font-size: 0.82rem;
  color: var(--orange);
  text-align: center;
  margin-top: auto;
  padding-top: 0.15rem;
}

.timeline-step__map-link:hover {
  color: var(--orange);
}

@media (max-width: 720px) {
  .timeline-rail {
    display: none;
  }

  .timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 0 0 0.35rem;
  }

  .timeline-step {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0 1rem;
    position: relative;
    padding-bottom: 1.5rem;
  }

  .timeline-step__marker {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
  }

  .timeline-step__marker::after {
    content: "";
    position: absolute;
    top: var(--dot-center);
    bottom: calc(-1.5rem - var(--dot-center));
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: linear-gradient(180deg, var(--line-strong), var(--line));
    z-index: 0;
  }

  .timeline-step--last .timeline-step__marker::after {
    display: none;
  }

  .timeline-step__dot {
    position: relative;
    z-index: 1;
    background: var(--orange);
  }

  .timeline-step__body {
    gap: 0.75rem;
  }

  .timeline-step__head {
    min-height: 0;
    align-items: flex-start;
    text-align: left;
    gap: 0.45rem;
    padding: 0.1rem 0 0;
  }

  .timeline-step__time {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #fff4e8;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .timeline-step__label {
    -webkit-line-clamp: unset;
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    padding-right: 0.25rem;
  }

  .timeline-step__view {
    box-shadow: 0 6px 20px rgba(42, 36, 32, 0.07);
  }
}

@media (max-width: 900px) and (min-width: 721px) {
  .timeline-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .timeline-rail::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media,
  .hero__mascot,
  .card,
  .btn {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

.form--narrow {
  max-width: 28rem;
}

.field-hint {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.inline-options--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
