/* ==========================================================================
   Royal Blue Transfer Milano
   Light, quiet, boutique. One typeface (Instrument Sans), graphite text,
   one accent (Milan blue). Motion is short and subtle, uses transform and
   opacity only, and is switched off under prefers-reduced-motion.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-2: #EEEEEA;
  --surface: #F7F7F5;
  --ink: #1D1F22;
  --ink-2: #464A50;
  --muted: #6E737A;
  --line: #E1E2E0;
  --line-2: #CDCFCC;
  --blue: #24508F;
  --blue-d: #1B3F72;
  --blue-50: #EDF1F7;
  --err: #B3261E;
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --r: 6px;
  --nav-h: 72px;
  --bar-h: 48px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; font-feature-settings: "ss01" on;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, label, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ta-r { text-align: right; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.kicker { font-size: 14px; font-weight: 500; color: var(--blue); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; letter-spacing: -.028em; }
.lead { color: var(--ink-2); font-size: clamp(15.5px, 1.3vw, 17px); max-width: 48ch; }
.small { font-size: 13px; color: var(--muted); margin-top: 2px; }
.note { color: var(--muted); font-size: 14px; margin-top: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 4px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn .ic:last-child:not(:first-child) { transition: transform .25s var(--ease); }
.btn:hover .ic:last-child:not(:first-child) { transform: translateX(3px); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 26px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-d); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--blue-50); }
.btn--outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h); top: var(--nav-top, var(--bar-h));
  background: rgba(255, 255, 255, .92); border-bottom: 1px solid transparent;
  transition: transform .4s var(--ease), border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); background: rgba(255, 255, 255, .86); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logo: name over a small "Luxury Transfer" line */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; line-height: 1; }
.brand__mark { font-size: 20px; font-weight: 600; letter-spacing: .24em; margin-right: -.24em; }
.brand__sub { font-size: 9.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.brand--light .brand__mark { color: #fff; }
.brand--light .brand__sub { color: #9DA1A8; }

.nav__links { display: none; gap: 32px; }
.nav__links a { font-size: 15px; color: var(--ink-2); padding: 6px 0; position: relative; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__cta { display: none; }
.lang { display: flex; align-items: center; gap: 2px; }
.lang button { background: none; border: 0; height: 36px; min-width: 32px; padding: 0 6px; font-size: 14px; font-weight: 500; color: var(--muted); position: relative; transition: color .2s; }
.lang button + button::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 1px; background: var(--line-2); }
.lang button[aria-pressed="true"] { color: var(--ink); }

.burger { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
body.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + var(--bar-h) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
}
body.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
body.menu-open { overflow: hidden; }
.menu__links { display: grid; }
.menu__links a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 28px; font-weight: 500; letter-spacing: -.02em;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .4s var(--ease);
}
body.menu-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(var(--d) * 40ms + 60ms); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--bar-h) + var(--nav-h) + clamp(40px, 7vw, 96px)) 0 0; overflow: hidden; }
.hero__grid { display: grid; gap: 48px; align-items: end; position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.04em; font-weight: 500; margin-top: 18px; }
.hero__lead { color: var(--ink-2); font-size: clamp(16px, 1.45vw, 18px); max-width: 44ch; margin-top: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; font-size: 14px; color: var(--ink-2); }
.hero__facts li { display: flex; align-items: center; gap: 7px; }
.hero__facts .ic { width: 16px; height: 16px; color: var(--blue); stroke-width: 2; }

.hero__in { animation: fadeUp .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 100ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }

/* Live bar above the navigation: two real photographs of Milan (day and
   night) cross-fade with the real sun (--night 0…1 from JS), a warm wash at
   sunrise/sunset (--dusk) and a soft grey when it is cloudy (--cloud). A dark
   scrim keeps the white text readable on any photo. */
.topbar {
  --night: 0; --dusk: 0; --cloud: 0;
  position: absolute; inset: 0 0 auto; z-index: 61; height: var(--bar-h); overflow: hidden; isolation: isolate;
  color: #fff; background: #0e1626;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.topbar__bg { position: absolute; inset: 0; z-index: -1; }
.topbar__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  filter: saturate(calc(1 - var(--cloud) * .45)) brightness(calc(1 - var(--cloud) * .12));
  transition: opacity 1.5s var(--ease);
}
.topbar__img--night { object-position: 50% 42%; opacity: var(--night); }
.topbar__dusk {
  position: absolute; inset: 0; opacity: var(--dusk); mix-blend-mode: soft-light;
  background: linear-gradient(90deg, #6d4aa8 0%, #e5735a 55%, #ffb36b 100%);
  transition: opacity 1.5s var(--ease);
}
.topbar__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 14, 28, .62) 0%, rgba(8, 14, 28, .34) 45%, rgba(8, 14, 28, .5) 100%);
}
/* city lights are bright: deepen the scrim as night falls */
.topbar__bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(6, 10, 22, .42); opacity: var(--night);
}
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar p { margin: 0; display: flex; align-items: center; white-space: nowrap; }
.topbar__now { gap: 8px; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.topbar__city { font-weight: 600; letter-spacing: .01em; }
.topbar__now time { font-weight: 600; }
.topbar__wx { display: inline-flex; align-items: center; gap: 8px; }
.topbar__temp { font-weight: 600; }
.topbar__date, .topbar__cond { opacity: .86; }
.topbar__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.topbar__cta { gap: 18px; font-size: 13px; font-weight: 500; }
.topbar__live { display: inline-flex; align-items: center; gap: 8px; opacity: .92; }
.topbar__pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .22); }
.topbar__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ddc84; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.topbar__link {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-shadow: none;
  transition: background-color .2s, border-color .2s;
}
.topbar__link:hover { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .45); }
.topbar__link .ic { width: 15px; height: 15px; }
@media (max-width: 860px) { .topbar__live, .topbar__cond { display: none; } }
@media (max-width: 520px) {
  :root { --bar-h: 44px; }
  .topbar__date, .topbar__date-sep { display: none; }
  .topbar__now { font-size: 13px; gap: 7px; }
  .topbar__link { height: 28px; padding: 0 10px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .topbar__pulse::after { animation: none; } }

.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 18px; }
.quote__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.quote__head h2 { font-size: 17px; letter-spacing: -.01em; }
.quote__head p { font-size: 13px; color: var(--muted); text-align: right; }
.quote__row {
  width: 100%; display: grid; grid-template-columns: 52px 1fr auto 18px; align-items: center; gap: 12px;
  padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
}
.quote__row:hover .quote__price { color: var(--blue); }
.quote__row:hover .ic { transform: translateX(3px); color: var(--blue); }
.quote__code { font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.quote__name { font-size: 15px; line-height: 1.3; }
.quote__name small { display: block; font-size: 12.5px; color: var(--muted); }
.quote__price { font-size: 20px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: color .2s; }
.quote__row .ic { width: 16px; height: 16px; color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.quote__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--blue); }
.quote__link .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.quote__link:hover .ic { transform: translateX(3px); }

.hero__skyline { position: relative; margin-top: clamp(24px, 4vw, 48px); left: 50%; width: 980px; transform: translateX(-41%); pointer-events: none; }
.hero__skyline svg { width: 100%; height: auto; overflow: visible; }
.sky path {
  stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; opacity: .28;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.2s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + .5s);
}
.sky path.duomo { stroke: var(--blue); opacity: .75; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }

.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Fleet ---------- */
.fleet__grid { display: grid; gap: 16px; }
.car {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.js .car[data-reveal] { transition: opacity .7s var(--ease), transform .8s var(--ease), border-color .2s; transition-delay: var(--d, 0ms), var(--d, 0ms), 0s; }
.car:hover { border-color: var(--line-2); }
.car__stage { position: relative; aspect-ratio: 16 / 10; min-height: 170px; display: grid; place-items: end center; padding: 20px 18px 18px; background: var(--bg-2); }
.car__stage::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 14px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .22), transparent); }
.car__stage img { position: relative; z-index: 1; width: auto; max-width: 88%; max-height: 90%; transition: transform .6s var(--ease); }
.car:hover .car__stage img { transform: translateX(6px); }
.car__body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; flex: 1; }
.car__name { font-size: 20px; letter-spacing: -.015em; }
.car__model { color: var(--muted); font-size: 14px; }
.car__pax { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.car__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.car__price { font-size: 15px; color: var(--muted); }
.car__price span { font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; margin-left: 4px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 0; font-size: 14px; font-weight: 500; color: var(--blue); }
.link-arrow .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }

@media (max-width: 719px) {
  .fleet__grid {
    grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none;
  }
  .fleet__grid::-webkit-scrollbar { display: none; }
  .car { scroll-snap-align: start; }
}
@media (min-width: 720px) { .fleet__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .fleet__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Fares ---------- */
.fares__wrap { display: grid; gap: 20px; }
.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tab {
  position: relative; display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background-color .2s;
}
.tab:hover { border-color: var(--line-2); }
.tab[aria-selected="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.tab__code { font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.tab[aria-selected="true"] .tab__code { color: var(--blue); }
.tab__name { font-size: 14px; color: var(--ink-2); }
.tab__meta { display: none; font-size: 13px; color: var(--muted); }

.fares__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.fares__route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.fares__code { display: block; font-size: clamp(30px, 4vw, 40px); font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.fares__name { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.fares__eta { color: var(--muted); font-size: 14px; margin-top: 16px; }
.swap-anim { animation: fadeUp .4s var(--ease); }

.rline { position: relative; height: 1px; background: var(--line-2); }
.rline::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 8px; height: 8px; border-top: 1px solid var(--ink-2); border-right: 1px solid var(--ink-2); transform: rotate(45deg); }

.fare-list { margin-top: 24px; border-top: 1px solid var(--line); }
.fare { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fare:last-child { border-bottom: 0; padding-bottom: 0; }
.fare__img { display: none; }
.fare__name { font-size: 17px; font-weight: 500; }
.fare__meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.fare__price { font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.fare__go {
  width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--line-2); background: none; color: var(--ink);
  display: grid; place-items: center; transition: background-color .2s, color .2s, border-color .2s;
}
.fare__go .ic { width: 16px; height: 16px; }
.fare__go:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.fare-table { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.fare-table th, .fare-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.fare-table th:first-child { text-align: left; font-weight: 500; }
.fare-table td { font-size: 16px; font-weight: 500; }

@media (min-width: 960px) {
  .fares__wrap { grid-template-columns: 280px 1fr; gap: 24px; }
  .tabs { grid-template-columns: 1fr; align-content: start; }
  .tab { padding: 18px 20px; }
  .tab__meta { display: block; }
  .fare__img { display: block; width: 84px; }
  .fare { grid-template-columns: 84px 1fr auto auto; gap: 22px; }
}

/* ---------- Booking ---------- */
.book__grid { display: grid; gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.form { padding: clamp(20px, 3vw, 32px); }
.form-grid { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field--set { display: block; }
.label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); }
legend.label { margin-bottom: 8px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font-size: 16px; /* 16px avoids iOS zoom */
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea { padding: 12px 14px; resize: vertical; min-height: 92px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9A9EA4; }
input:hover, select:hover, textarea:hover { border-color: #AEB1AE; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 80, 143, .14); }
input[type="date"], input[type="time"] { display: block; line-height: 46px; }
input::-webkit-date-and-time-value { text-align: left; }
.field.is-invalid input { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179, 38, 30, .1); }
.select { position: relative; display: block; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { padding-right: 40px; cursor: pointer; }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 4px; border: 1px solid var(--line-2); background: #fff; }
.seg button { position: relative; z-index: 1; height: 40px; padding: 0 8px; border: 0; border-radius: 3px; background: none; color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color .25s; }
.seg button[aria-pressed="true"] { color: #fff; }
.seg__pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: 3px; background: var(--blue); transform: translateX(calc(100% * var(--i, 0))); transition: transform .35s var(--ease); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; justify-self: start; }
.stepper button { width: 46px; height: 46px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); transition: background-color .2s, color .2s; }
.stepper button:hover:not(:disabled) { background: var(--blue-50); color: var(--blue); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 44px; text-align: center; font-size: 18px; font-weight: 500; border-inline: 1px solid var(--line); line-height: 46px; }

.vpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vopt { position: relative; display: block; cursor: pointer; }
.vopt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; pointer-events: none; }
.vopt__box { display: grid; gap: 2px; height: 100%; padding: 12px 14px 14px; border-radius: 4px; border: 1px solid var(--line-2); background: #fff; transition: border-color .2s, background-color .2s, opacity .2s; }
.vopt__box img { height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; margin-bottom: 8px; }
.vopt__name { font-weight: 500; font-size: 14.5px; line-height: 1.25; }
.vopt__pax { font-size: 13px; color: var(--muted); }
.vopt__price { font-size: 16px; font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; }
.vopt:hover .vopt__box { border-color: #AEB1AE; }
.vopt input:checked + .vopt__box { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); }
.vopt input:checked + .vopt__box .vopt__price { color: var(--blue); }
.vopt input:focus-visible + .vopt__box { outline: 2px solid var(--blue); outline-offset: 2px; }
.vopt input:disabled + .vopt__box { opacity: .4; cursor: not-allowed; }

.ticket { padding: clamp(20px, 3vw, 28px); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.ticket__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ticket__top h3 { font-size: 17px; }
.badge { white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--blue); background: var(--blue-50); padding: 5px 10px; border-radius: 3px; }
.ticket__route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-top: 20px; }
.ticket .code { display: block; font-size: 32px; font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.ticket .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; max-width: 15ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket__route .ta-r .sub { margin-left: auto; }
.ticket__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 22px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ticket__dl dt { font-size: 13px; color: var(--muted); }
.ticket__dl dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }
.ticket__ret { grid-column: 1 / -1; }

/* Privacy consent + anti-spam trap */
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input[type="checkbox"] {
  -webkit-appearance: checkbox; appearance: auto; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none;
  accent-color: var(--blue); box-shadow: none; cursor: pointer;
}
.consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.consent.is-invalid { color: var(--err); }
.consent.is-invalid input[type="checkbox"] { outline: 2px solid var(--err); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ticket__total { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 20px 0; }
.ticket__label { font-size: 15px; font-weight: 500; }
.price { font-size: clamp(36px, 4vw, 44px); line-height: 1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ticket__err { color: var(--err); font-size: 14px; }
.ticket__err:not(:empty) { margin-bottom: 14px; }
.ticket__ok { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.ticket__ok:not(:empty) { margin-top: 14px; padding: 12px 14px; border-radius: 4px; background: var(--blue-50); animation: fadeIn .3s var(--ease); }
.ticket__alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }
.ticket__alt a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .span-2 { grid-column: 1 / -1; }
  .vpick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .book__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
  .ticket { position: sticky; top: calc(var(--nav-h) + 20px); }
}

/* ---------- Services ---------- */
.svc-grid { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.svc { display: flex; flex-direction: column; gap: 8px; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.svc h3 { font-size: 20px; letter-spacing: -.015em; }
.svc p { color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.tag { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--blue); }
.tag--muted { color: var(--muted); }
@media (min-width: 720px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
}
@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .svc { border-bottom: 0; padding-bottom: 8px; }
}

/* ---------- Process + included ---------- */
.process { background: var(--surface); }
.steps { display: grid; gap: 28px; }
.step { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.step__n { font-size: 14px; font-weight: 600; color: var(--blue); }
.step h3 { font-size: 20px; letter-spacing: -.015em; }
.step p { color: var(--ink-2); font-size: 15px; max-width: 36ch; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.included { margin-top: clamp(56px, 8vw, 96px); }
.included__title { font-size: 20px; letter-spacing: -.015em; margin-bottom: 20px; }
.std-grid { display: grid; border-top: 1px solid var(--line); }
.std-grid li { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.std-grid .ic { width: 18px; height: 18px; color: var(--blue); stroke-width: 2; margin-top: 3px; }
.std-grid h4 { font-size: 16px; }
.std-grid p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
@media (min-width: 720px) { .std-grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1100px) { .std-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 8px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--ink); }
.qa button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border: 0; background: none; text-align: left; font-size: 17px; font-weight: 500; transition: color .2s; }
.qa button:hover { color: var(--blue); }
.qa i { position: relative; flex: none; width: 14px; height: 14px; }
.qa i::before, .qa i::after { content: ""; position: absolute; left: 0; top: calc(50% - .75px); width: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.qa i::after { transform: rotate(90deg); }
.qa button[aria-expanded="true"] i::after { transform: rotate(0); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa__a p { color: var(--ink-2); padding: 0 40px 22px 0; max-width: 62ch; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .faq .head { align-self: start; position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* ---------- CTA ---------- */
.cta { background: var(--blue); color: #fff; padding: clamp(64px, 9vw, 112px) 0; }
.cta__inner { display: grid; gap: 28px; align-items: end; }
.cta__title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 500; max-width: 16ch; }
.cta__lead { color: rgba(255, 255, 255, .8); margin-top: 14px; font-size: 17px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #B9BCC1; padding: 64px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; gap: 36px; }
.footer h4 { font-size: 14px; color: #fff; margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer ul .ic { width: 16px; height: 16px; }
.footer__blurb { font-size: 15px; max-width: 30ch; margin-top: 16px; }
.footer__codes li { font-size: 15px; }
.footer__codes b { display: inline-block; width: 44px; font-weight: 600; color: #fff; letter-spacing: .04em; }
.footer__credit { margin-top: 14px; font-size: 12px; color: #6E737A; }
.footer__credit a:hover { color: #C9CCD0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #8E9298; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Floating actions ---------- */
.fab {
  position: fixed; z-index: 50; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35);
  transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .25s, background-color .2s;
}
.fab:hover { background: var(--blue); }
.fab .ic { width: 22px; height: 22px; }
.fab.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.mbar {
  position: fixed; z-index: 52; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translateY(105%); transition: transform .35s var(--ease);
}
.mbar.is-visible { transform: none; }
.mbar__label { display: block; font-size: 12.5px; color: var(--muted); }
.mbar strong { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.mbar .btn { height: 46px; }

/* ---------- Cream sections: white cards inside ---------- */
.fares, .process { background: var(--surface); }
.fares .tab, .fares .fares__panel, .fares .fare-table { background: #fff; }

/* ---------- Hero: vehicle switcher ---------- */
.qseg { display: flex; gap: 4px; margin: 14px 0 2px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.qseg button {
  flex: 1; height: 34px; border: 0; border-radius: 3px; background: none; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.qseg button:hover { color: var(--ink); background: var(--bg-2); }
.qseg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Fleet: clickable cards, seat dots ---------- */
.car { cursor: pointer; }
.car:hover { box-shadow: 0 10px 30px -18px rgba(29, 31, 34, .35); }
.js .car[data-reveal] { transition: opacity .7s var(--ease), transform .8s var(--ease), border-color .2s, box-shadow .3s; transition-delay: var(--d, 0ms), var(--d, 0ms), 0s, 0s; }
.car__pax { display: flex; align-items: center; gap: 10px; }
.seats { display: inline-flex; gap: 3px; }
.seats i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background-color .25s; }
.seats i.on { background: var(--ink-2); }
.car:hover .seats i.on { background: var(--blue); transition-delay: calc(var(--k) * 45ms); }

/* ---------- Fares: route map ---------- */
.map { position: relative; margin: -4px -4px 0; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map text { font-family: var(--font); }
.map__city { fill: rgba(36, 80, 143, .04); stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
.map__milan { font-size: calc(14px * var(--k, 1)); font-weight: 500; fill: var(--ink-2); }
.map__route { fill: none; stroke: var(--line-2); stroke-width: calc(1.2px * var(--k, 1)); stroke-dasharray: 2 5; stroke-linecap: round; transition: opacity .3s; }
.map__route.is-active { opacity: 0; }
.map__active { fill: none; stroke: var(--blue); stroke-width: calc(2.2px * var(--k, 1)); stroke-linecap: round; }
.map__pt { cursor: pointer; }
.map__hit { fill: transparent; }
.map__dot { fill: #fff; stroke: var(--ink-2); stroke-width: calc(1.5px * var(--k, 1)); transition: fill .2s, stroke .2s; }
.map__halo { fill: rgba(36, 80, 143, .12); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); }
.map__code { font-size: calc(14px * var(--k, 1)); font-weight: 600; letter-spacing: .04em; fill: var(--ink-2); transition: fill .2s; }
.map__pt:hover .map__dot { stroke: var(--blue); }
.map__pt:hover .map__code { fill: var(--blue); }
.map__pt.is-active .map__dot { fill: var(--blue); stroke: var(--blue); }
.map__pt.is-active .map__code { fill: var(--blue); }
.map__pt.is-active .map__halo { opacity: 1; transform: scale(1); animation: halo 2.4s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.35); opacity: .5; } }
.map__center { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.map__car { fill: var(--blue); stroke: #fff; stroke-width: 2.5; }
.map__eta { opacity: 0; transition: opacity .3s; pointer-events: none; }
.map__eta.is-in { opacity: 1; }
.map__eta rect { fill: var(--ink); }
.map__eta text { fill: #fff; font-size: calc(12.5px * var(--k, 1)); font-weight: 500; }
.fares__eta { margin-top: 10px; color: var(--muted); }
.fares__eta strong { color: var(--ink); font-weight: 500; }
.fares__arrow { color: var(--muted); }

/* ---------- Summary: chosen car ---------- */
.ticket__car { display: grid; place-items: center; height: 92px; margin-top: 18px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.ticket__car img { height: 70px; width: auto; max-width: 80%; object-fit: contain; }
.car-in img { animation: carIn .55s var(--ease); }
@keyframes carIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* ---------- Breakpoints ---------- */
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .burger, .menu { display: none; }
  .head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
  .head--stack { grid-template-columns: 1fr; gap: 14px; }
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 64px; }
  .hero__skyline { left: auto; width: auto; transform: none; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
  .fab { right: 24px; bottom: 24px; }
  .mbar { display: none; }
}
@media (max-width: 440px) {
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
