/* Autolinee Nolè — i colori del logo: blu Nolè, azzurro cielo, rosso della scia.
   Pagine chiare e luminose, blu notte per il tabellone LED e la rete, rosso solo per l'azione. */
:root {
  --navy: #0B2147;
  --navy-2: #12305F;
  --navy-3: #1A3C73;
  --led-bg: #06142D;
  --blue: #3871C1;
  --blue-ink: #2A5BA3;
  --sky: #50ADE5;
  --sky-soft: #E7F3FC;
  --sky-line: #CFE6F7;
  --red: #F14624;
  --red-btn: #D7381A;
  --red-ink: #B92E14;
  --led: #FF8A3D;
  --ok: #17A673;
  --ok-soft: #E2F6EE;
  --bg: #F4F7FB;
  --card: #FFFFFF;
  --ink: #0E1B33;
  --muted: #4A5A75;
  --dim: #6B7A94;
  --line: #DCE4EF;
  --on-dark: #EEF4FC;
  --on-dark-muted: #A9BCD8;
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: 24px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11,33,71,.06), 0 12px 32px -16px rgba(11,33,71,.22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue-ink); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.06; color: inherit; }
h1 { font-stretch: 125%; font-style: italic; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-stretch: 112%; font-weight: 750; letter-spacing: -0.015em; }
h3 { font-stretch: 105%; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 480px) { :root { --gutter: 16px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--red); transform: skewX(-30deg); }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red-btn); color: #FFFFFF; box-shadow: 0 8px 20px -10px rgba(215,56,26,.7); }
.btn-primary:hover { background: var(--red-ink); color: #FFFFFF; }
.btn-blue { background: var(--blue-ink); color: #FFFFFF; }
.btn-blue:hover { background: var(--navy-2); color: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { color: var(--navy); border-color: var(--blue); background: var(--card); }
.on-dark .btn-ghost, .btn-ghost.light { color: var(--on-dark); border-color: rgba(238,244,252,.3); }
.on-dark .btn-ghost:hover, .btn-ghost.light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.06); }
.btn-lg { min-height: 58px; padding: 16px 26px; font-size: 17px; border-radius: 14px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Swoosh (dal logo) ---------- */
.swoosh { display: block; width: min(420px, 70%); height: auto; color: var(--red); margin-top: 18px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; padding-left: 14px; border-left: 1px solid var(--line); }
.brand-text strong { font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: 14px; }
.brand-text span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 11px; border-radius: 8px; white-space: nowrap; }
.menu a:hover { background: var(--sky-soft); }
.menu a[aria-current="page"] { color: var(--blue-ink); background: var(--sky-soft); box-shadow: inset 0 -2px 0 var(--red); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 1360px) { .brand-text { display: none; } }
@media (max-width: 1180px) and (min-width: 1001px) { .nav-cta .btn-ghost { display: none; } }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; box-shadow: var(--shadow); }
  .nav-panel.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu a { padding: 14px 12px; font-size: 17px; }
}
@media (max-width: 520px) { .nav-cta .btn-primary { padding: 10px 14px; min-height: 44px; font-size: 15px; } .brand img { height: 38px; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--on-dark); background: var(--navy); overflow: hidden; padding-block: 72px 56px; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,33,71,.97) 0%, rgba(11,33,71,.9) 34%, rgba(11,33,71,.45) 62%, rgba(11,33,71,.15) 100%), linear-gradient(0deg, rgba(11,33,71,.96) 0%, rgba(11,33,71,0) 45%); }
@media (max-width: 900px) { .hero-photo::after { background: linear-gradient(0deg, rgba(11,33,71,.98) 35%, rgba(11,33,71,.7) 100%); } }
.hero .wrap { position: relative; }
.now-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(238,244,252,.25); border-radius: 999px; font-size: 14px; color: var(--on-dark); background: rgba(6,20,45,.55); backdrop-filter: blur(6px); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.55); } 70% { box-shadow: 0 0 0 10px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 6.2vw, 86px); line-height: 0.98; max-width: 14ch; color: #FFFFFF; }
.hero h1 em { font-style: italic; color: var(--sky); }
.hero .lead { margin-top: 20px; color: var(--on-dark-muted); }
.hero .swoosh { margin-top: 22px; }
.hero-panels { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .hero-panels { grid-template-columns: minmax(0, 1fr); } }
.favs-bar { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--on-dark-muted); }
.favs-bar a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; font-weight: 600; }
.favs-bar a:hover { background: rgba(255,255,255,.18); color: #fff; }

.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

/* ---------- Panels ---------- */
.panel { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 26px; min-width: 0; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h2 { font-size: 22px; }
@media (max-width: 520px) { .panel { padding: 18px; border-radius: 18px; } }

/* Planner */
.planner-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; }
.planner-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.field select, .field input, .field textarea { width: 100%; min-height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 600; padding: 0 14px; }
.field select:focus, .field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); background: #fff; }
.field textarea { padding: 12px 14px; min-height: 110px; font-weight: 500; resize: vertical; }
.swap { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--sky-soft); color: var(--blue-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .25s ease; }
.swap:hover { transform: rotate(180deg); }
@media (max-width: 560px) {
  .planner-fields { grid-template-columns: minmax(0, 1fr); }
  .swap { justify-self: center; transform: rotate(90deg); }
  .swap:hover { transform: rotate(270deg); }
}
.results { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; max-height: 470px; overflow-y: auto; padding: 2px 4px 2px 2px; }
.res { border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.res-btn { width: 100%; display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; grid-template-areas: "dep track arr" "meta meta meta"; gap: 6px 14px; align-items: center; padding: 14px 16px; background: transparent; border: 0; color: inherit; font-family: inherit; text-align: left; cursor: pointer; border-radius: 14px; }
.res.next { background: #fff; border-color: var(--lc, var(--blue)); box-shadow: 0 0 0 1px var(--lc, var(--blue)); }
.res.past { opacity: 0.5; }
.res-dep { grid-area: dep; } .res-arr { grid-area: arr; text-align: right; }
.res-time { font-family: var(--font-mono); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--navy); }
.res-stop { font-size: 12px; color: var(--dim); max-width: 24ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-arr .res-stop { margin-left: auto; }
.res-track { grid-area: track; display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; }
.res-track i { flex: 1; height: 3px; border-radius: 2px; background: var(--lc); opacity: .7; }
.res-track b { width: 10px; height: 10px; border-radius: 50%; background: var(--lc); }
.res-track b.end { background: #fff; border: 2px solid var(--lc); }
.res-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; }
.res-more { margin-left: auto; color: var(--blue-ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.res-more svg { transition: transform .2s ease; }
.res-btn[aria-expanded="true"] .res-more svg { transform: rotate(180deg); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.chip-line { color: var(--ink); border-color: var(--lc); background: color-mix(in srgb, var(--lc) 12%, #fff); }
.chip-next { background: var(--ok); color: #fff; border-color: var(--ok); }
.chip-live { background: var(--red-btn); color: #fff; border-color: var(--red-btn); }
.empty { padding: 18px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); font-size: 15px; background: var(--bg); }
.planner-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Route timeline (dettaglio corsa) */
.timeline-route { list-style: none; margin: 0; padding: 4px 16px 16px; }
.timeline-route li { position: relative; display: grid; grid-template-columns: 58px 22px minmax(0, 1fr); gap: 10px; align-items: start; min-height: 34px; }
.timeline-route .t { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--navy); padding-top: 2px; font-variant-numeric: tabular-nums; }
.timeline-route .t.est { color: var(--dim); font-weight: 500; font-size: 12px; }
.timeline-route .rail { position: relative; height: 100%; min-height: 34px; }
.timeline-route .rail::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 4px; background: var(--lc); opacity: .35; }
.timeline-route li:first-child .rail::before { top: 9px; }
.timeline-route li:last-child .rail::before { bottom: calc(100% - 13px); }
.timeline-route .rail::after { content: ""; position: absolute; left: 4px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--lc); box-sizing: border-box; }
.timeline-route li.transit .rail::after { width: 8px; height: 8px; left: 7px; top: 8px; border-width: 2px; }
.timeline-route li.edge .rail::after { background: var(--lc); }
.timeline-route li.done .rail::before { opacity: 1; }
.timeline-route .n { font-size: 15px; color: var(--ink); padding-top: 1px; }
.timeline-route li.transit .n { color: var(--dim); font-size: 14px; }
.timeline-route li.edge .n { font-weight: 700; }
.timeline-route li.here .n::after { content: "sei qui"; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.bus-dot { position: absolute; left: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--red-btn); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 0 0 4px rgba(215,56,26,.2); animation: buspulse 1.8s infinite; }
.bus-dot svg { width: 12px; height: 12px; }
@keyframes buspulse { 50% { box-shadow: 0 0 0 8px rgba(215,56,26,.05); } }
.live-note { margin: 0 16px 14px; padding: 10px 12px; border-radius: 10px; background: #FFF1EC; color: var(--red-ink); font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }

/* LED board */
.board { background: var(--led-bg); color: var(--on-dark); border-color: #10264D; box-shadow: 0 20px 50px -25px rgba(6,20,45,.8); }
.board .panel-head h2 { color: #fff; }
.board-clock { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--led); text-shadow: 0 0 18px rgba(255,138,61,.45); font-variant-numeric: tabular-nums; }
.board-cols, .board-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.board-cols { font-size: 11px; color: #7F95B8; text-transform: uppercase; letter-spacing: 0.12em; padding: 0 6px 8px; border-bottom: 1px solid #142B52; }
.board-row { padding: 11px 6px; border-bottom: 1px solid #0F2244; color: inherit; text-decoration: none; border-radius: 8px; }
a.board-row:hover { background: #0C2147; color: inherit; }
.board-time { font-family: var(--font-mono); font-weight: 700; font-size: 19px; color: var(--led); text-shadow: 0 0 12px rgba(255,138,61,.4); font-variant-numeric: tabular-nums; }
.board-dest { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.board-dest strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.board-dest span { font-size: 12px; color: #8EA3C4; display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-dest span i { width: 10px; height: 10px; border-radius: 3px; background: var(--lc); flex-shrink: 0; }
.board-eta { text-align: right; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: #C9D6EA; }
.board-eta.soon { color: #3DDC97; }
.board-note { margin-top: 14px; font-size: 12px; color: #7F95B8; line-height: 1.5; }

/* ---------- Facts ---------- */
.facts { background: var(--card); border-bottom: 1px solid var(--line); }
.facts .wrap { padding-block: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 820px) { .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact b { display: block; font-family: var(--font-display); font-stretch: 125%; font-style: italic; font-weight: 800; font-size: clamp(34px, 4vw, 50px); line-height: 1.05; color: var(--navy); }
.fact b.acc { color: var(--red); }
.fact span { color: var(--muted); font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding-block: 100px; }
.section-tight { padding-block: 64px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 780px; margin-bottom: 44px; }
.section-head h2, .h2 { font-size: clamp(32px, 4.2vw, 54px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split.even { grid-template-columns: minmax(0, 1fr); gap: 36px; } .section { padding-block: 72px; } }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.on-dark { background: var(--navy); color: var(--on-dark); }
.on-dark .eyebrow { color: var(--sky); }
.on-dark .lead, .on-dark .muted { color: var(--on-dark-muted); }
.on-dark h2, .on-dark h3 { color: #fff; }
.white { background: var(--card); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.tile:hover { color: var(--ink); border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sky-soft); color: var(--blue-ink); display: flex; align-items: center; justify-content: center; }
.tile-icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 19px; }
.tile p { color: var(--muted); font-size: 15px; flex: 1; }
.tile .go { font-weight: 700; color: var(--red-ink); font-size: 15px; display: flex; align-items: center; gap: 6px; }
.tile.feature { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.tile.feature h3 { color: #fff; } .tile.feature p { color: var(--on-dark-muted); }
.tile.feature .tile-icon { background: var(--navy-3); color: var(--sky); }
.tile.feature .go { color: var(--sky); }
.tile.feature:hover { color: var(--on-dark); border-color: var(--sky); }

/* Network map */
.map-box { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: 24px; padding: 14px; }
.map-box svg { width: 100%; height: auto; display: block; }
.map-box .ln { transition: stroke-opacity .3s ease; }
.map-box .flow { stroke-dasharray: 4 16; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -40; } }
.map-label { font-family: var(--font-body); font-size: 14px; font-weight: 700; fill: #FFFFFF; }
.map-label.minor { font-weight: 500; fill: var(--on-dark-muted); }
.line-list { display: flex; flex-direction: column; gap: 8px; }
.line-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--navy-3); background: transparent; color: var(--on-dark); cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 600; transition: background .2s ease, border-color .2s ease; }
.line-btn:hover { background: var(--navy-2); }
.line-btn[aria-pressed="true"] { background: var(--navy-2); border-color: var(--lc); }
.line-btn i { width: 32px; height: 6px; border-radius: 3px; background: var(--lc); flex-shrink: 0; }
.line-btn span { flex: 1; }
.line-btn small { color: var(--on-dark-muted); font-weight: 500; font-size: 13px; }

/* Photos */
.photo { position: relative; border-radius: 20px; overflow: hidden; background: var(--sky-soft); margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.ratio-43 { aspect-ratio: 4 / 3; max-width: 100%; }
.photo.ratio-45 { aspect-ratio: 4 / 5; max-width: 100%; }
.photo.ratio-169 { aspect-ratio: 16 / 10; max-width: 100%; }
.photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(11,33,71,.85); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.fleet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .fleet { grid-template-columns: minmax(0, 1fr); } }
.fleet-item { display: flex; flex-direction: column; gap: 12px; }
.fleet-item h3 { font-size: 20px; }
.fleet-item p { color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--font-mono); font-weight: 700; color: var(--red-ink); font-size: 14px; padding-top: 3px; }
.steps strong { display: block; font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Forms */
.form-card { background: var(--card); color: var(--ink); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form-card h2 { font-size: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .form-card { padding: 22px; } }
.form-card .field select, .form-card .field input, .form-card .field textarea { font-weight: 500; }
.req { color: var(--red-ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 15px; transition: background .15s ease; }
.pill input:checked + span { background: var(--blue-ink); color: #FFFFFF; border-color: var(--blue-ink); }
.pill input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue-ink); flex-shrink: 0; }
.form-msg { padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.form-msg.ok { background: var(--ok-soft); color: #0B5132; }
.hint { font-size: 13px; color: var(--muted); }

/* ---------- Centenary ---------- */
.centenary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .centenary { grid-template-columns: minmax(0, 1fr); } }
.cent-photos { position: relative; padding-bottom: 60px; padding-right: 40px; }
.cent-photos .photo:first-child { box-shadow: var(--shadow); }
.cent-photos .photo.inset { position: absolute; right: 0; bottom: 0; width: 46%; border: 6px solid var(--card); box-shadow: var(--shadow); }
.badge-100 { position: absolute; left: -14px; top: -18px; width: 118px; height: 118px; border-radius: 50%; background: var(--red-btn); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); font-stretch: 125%; font-style: italic; font-weight: 800; line-height: 1; transform: rotate(-8deg); z-index: 2; box-shadow: 0 10px 30px -10px rgba(215,56,26,.7); }
.badge-100 b { font-size: 40px; } .badge-100 span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 520px) { .badge-100 { width: 92px; height: 92px; left: -4px; } .badge-100 b { font-size: 30px; } .cent-photos { padding-right: 20px; } }
.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tl:last-child { border-bottom: 0; }
.tl b { font-family: var(--font-display); font-stretch: 125%; font-style: italic; font-weight: 800; font-size: 28px; color: var(--blue-ink); }
.tl b.plain { color: var(--red-ink); }
.tl span { color: var(--muted); }
@media (max-width: 480px) { .tl { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---------- CTA ---------- */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding: 56px; border-radius: 28px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(34px, 5vw, 68px); font-stretch: 125%; font-style: italic; font-weight: 800; line-height: 1; color: #fff; }
.cta .swoosh-bg { position: absolute; right: -40px; bottom: -10px; width: 70%; max-width: 760px; color: var(--red); opacity: .9; pointer-events: none; }
.cta > * { position: relative; }
@media (max-width: 600px) { .cta { padding: 32px 22px; } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding-block: 60px 52px; background: var(--navy); color: var(--on-dark); overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; opacity: .28; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 20%, rgba(11,33,71,.4)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5.2vw, 66px); line-height: 1; max-width: 18ch; color: #fff; margin-top: 14px; }
.page-hero .lead { margin-top: 18px; color: var(--on-dark-muted); }
.page-hero .eyebrow { color: var(--sky); }
.crumbs { font-size: 14px; color: var(--on-dark-muted); margin-bottom: 18px; }
.crumbs a { color: var(--on-dark); text-decoration: none; }

/* ---------- Fermate ---------- */
.stop-finder { position: relative; }
.stop-finder input { width: 100%; min-height: 64px; border-radius: 16px; border: 2px solid transparent; background: #fff; color: var(--ink); font-family: inherit; font-size: 19px; font-weight: 600; padding: 0 20px 0 56px; box-shadow: 0 16px 40px -20px rgba(6,20,45,.7); }
.stop-finder input:focus { outline: none; border-color: var(--sky); }
.stop-finder .ico { position: absolute; left: 18px; top: 20px; color: var(--blue-ink); pointer-events: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(6,20,45,.5); border: 1px solid var(--line); list-style: none; margin: 0; padding: 6px; z-index: 30; max-height: 380px; overflow-y: auto; }
.suggest li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--sky-soft); }
.suggest .pin { width: 34px; height: 34px; border-radius: 9px; background: var(--sky-soft); color: var(--blue-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.suggest .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest .txt strong { font-weight: 700; font-size: 16px; }
.suggest .txt strong mark { background: #FFE2D8; color: inherit; border-radius: 3px; }
.suggest .txt span { font-size: 13px; color: var(--dim); }
.dots { display: flex; gap: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--lc); }
.fav-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--on-dark-muted); font-size: 14px; }
.fav-row a, .fav-row button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; }
.fav-row a:hover, .fav-row button:hover { background: rgba(255,255,255,.2); color: #fff; }

.stop-view { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .stop-view { grid-template-columns: minmax(0, 1fr); } }
.palina { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: center; }
@media (max-width: 960px) { .palina { position: static; } }
.palina-sign { width: 100%; border-radius: 22px; background: var(--blue-ink); color: #fff; padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.palina-sign::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--red); }
.palina-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.palina-label { display: inline-flex; align-items: center; gap: 8px; background: #FFD43B; color: #1A1A1A; font-weight: 800; letter-spacing: .14em; font-size: 12px; padding: 6px 10px; border-radius: 6px; }
.fav-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fav-btn[aria-pressed="true"] { background: #FFD43B; color: #1A1A1A; border-color: #FFD43B; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.palina-name { margin-top: 16px; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
.palina-loc { margin-top: 6px; color: #CFE1F7; font-size: 15px; }
.palina-lines { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.palina-lines span { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy); font-weight: 700; font-size: 12px; padding: 5px 9px; border-radius: 8px; }
.palina-lines span i { width: 10px; height: 10px; border-radius: 3px; background: var(--lc); }
.palina-pole { width: 12px; height: 60px; background: linear-gradient(90deg, #9AA7BC, #D7DEE9, #9AA7BC); border-radius: 0 0 4px 4px; }
.palina-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.share-btn { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }

.day-tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; }
.day-tabs button, .day-tabs label { min-height: 40px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.day-tabs button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(11,33,71,.15); }
.day-tabs input[type=date] { border: 0; background: transparent; font-family: inherit; font-weight: 700; color: var(--navy); font-size: 14px; }
.passages { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.pass { border-radius: 14px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.pass.past { opacity: .5; }
.pass.next { border-color: var(--lc); box-shadow: 0 0 0 1px var(--lc); }
.pass-btn { width: 100%; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; background: transparent; border: 0; font-family: inherit; color: inherit; text-align: left; cursor: pointer; }
.pass-time { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.pass-time small { display: block; font-size: 11px; color: var(--dim); font-weight: 500; letter-spacing: .04em; }
.pass-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pass-main strong { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.pass-main strong i { width: 4px; height: 18px; border-radius: 2px; background: var(--lc); flex-shrink: 0; }
.pass-main > span { display: flex; flex-wrap: wrap; gap: 6px; }
.pass-eta { text-align: right; font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.pass-eta.soon { color: var(--ok); }
.show-past { margin-top: 10px; background: transparent; border: 0; color: var(--blue-ink); font-weight: 700; font-family: inherit; font-size: 14px; cursor: pointer; padding: 8px 0; }
.stop-empty { padding: 40px 24px; text-align: center; border-radius: 20px; border: 2px dashed var(--line); background: #fff; color: var(--muted); }
.stop-empty h2 { font-size: 24px; color: var(--navy); margin-bottom: 8px; }

.dir-group { margin-top: 40px; }
.dir-group h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dir-group h3 small { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--dim); }
.stop-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.stop-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.stop-links a:hover { border-color: var(--blue); color: var(--blue-ink); }

/* ---------- Timetables ---------- */
.lines-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.lines-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 14px; }
.lines-nav a i { width: 10px; height: 10px; border-radius: 50%; background: var(--lc); }
.lines-nav a:hover { border-color: var(--lc); }
.stop-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stop-search input { flex: 1 1 260px; min-height: 52px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: inherit; font-size: 16px; padding: 0 16px; }
.tt-line { padding-top: 56px; scroll-margin-top: 96px; }
.tt-line-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.tt-line-head h2 { font-size: clamp(24px, 3vw, 34px); display: flex; align-items: center; gap: 14px; color: var(--navy); }
.tt-line-head h2 i { width: 14px; height: 36px; border-radius: 4px; background: var(--lc); flex-shrink: 0; transform: skewX(-12deg); }
.tt-line-head p { color: var(--muted); }
.tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); gap: 4px; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; letter-spacing: .04em; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tt-dir h3 { font-family: var(--font-body); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 18px 0 10px; }
.js .tabs-ready .tt-dir h3 { display: none; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table.tt { border-collapse: collapse; width: 100%; font-size: 14px; }
.tt th, .tt td { padding: 9px 12px; border-bottom: 1px solid #EDF1F7; text-align: center; white-space: nowrap; }
.tt thead th { position: sticky; top: 0; background: var(--navy); color: #fff; font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.tt th[scope="row"], .tt thead th:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink); min-width: 220px; max-width: 320px; white-space: normal; }
.tt thead th:first-child { z-index: 2; background: var(--navy); color: #CFE1F7; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tt th[scope="row"] a { color: inherit; text-decoration: none; }
.tt th[scope="row"] a:hover { color: var(--blue-ink); text-decoration: underline; }
.tt td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--navy); }
.tt td.na { color: #C3CDDC; }
.tt td.tr { color: var(--dim); font-size: 12px; }
.tt tr.period td, .tt tr.period th { background: var(--sky-soft); color: var(--muted); font-family: var(--font-body); font-size: 12px; font-weight: 700; }
.tt tbody tr:hover td, .tt tbody tr:hover th[scope="row"] { background: var(--sky-soft); }
.tt tr.hit td, .tt tr.hit th[scope="row"] { background: #FFEBE4; }
.tt tr.hit th[scope="row"] { color: var(--red-ink); }
.tt-notes { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.tt-notes li::before { content: "— "; color: var(--dim); }
.group-title { font-size: clamp(28px, 3.6vw, 44px); padding-top: 80px; color: var(--navy); }
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--sky-line); background: var(--sky-soft); color: var(--navy); font-size: 15px; }
.notice svg { flex-shrink: 0; color: var(--blue-ink); width: 22px; height: 22px; margin-top: 2px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card .label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.card .big { font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: 22px; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.card a.big:hover { color: var(--blue-ink); }
.copy-btn { align-self: flex-start; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.copy-btn:hover { color: var(--navy); border-color: var(--blue); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; color: var(--navy); }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.ticket { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; }
@media (max-width: 900px) { .ticket { grid-template-columns: minmax(0, 1fr); } }
.ticket li { list-style: none; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 8px; }
.ticket .n { font-family: var(--font-mono); color: var(--red-ink); font-weight: 700; }
.ticket strong { font-size: 18px; }
.ticket span { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); }
.foot { padding-block: 56px 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; font-size: 15px; }
@media (max-width: 900px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot { grid-template-columns: minmax(0, 1fr); } }
.foot-logo { background: #fff; border-radius: 14px; padding: 10px 14px; display: inline-block; margin-bottom: 16px; }
.foot-logo img { height: 44px; width: auto; }
.foot h3 { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { color: var(--sky); }
.foot address { font-style: normal; color: var(--on-dark-muted); line-height: 1.7; }
.foot-bottom { border-top: 1px solid var(--navy-3); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-dark-muted); }

/* rifiniture */
.brand-text { display: none; }
.timeline-route .n a { color: inherit; text-decoration: none; }
.timeline-route .n a:hover { color: var(--blue-ink); text-decoration: underline; }
@media (max-width: 560px) {
  .pass-btn { grid-template-columns: 62px minmax(0, 1fr); gap: 4px 12px; }
  .pass-eta { grid-column: 2; text-align: left; }
  .pass-time { font-size: 19px; }
  .timeline-route { padding-inline: 10px; }
  .timeline-route li { grid-template-columns: 50px 22px minmax(0, 1fr); gap: 8px; }
}

.tt td.txt { font-family: var(--font-body); text-align: left; white-space: normal; min-width: 240px; color: var(--muted); font-size: 13px; }

/* ===== Nuove funzioni ===== */
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: 0 20px 40px -16px rgba(6,20,45,.6); z-index: 90; max-width: min(520px, calc(100vw - 32px)); font-size: 15px; transition: transform .3s ease; }
.toast.show { transform: translate(-50%, 0); }
.a11y { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.a11y button { width: 44px; height: 46px; border: 0; background: var(--card); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.a11y button + button { border-left: 1px solid var(--line); }
.a11y button[aria-pressed="true"] { background: var(--navy); color: #fff; }
@media (max-width: 520px) { .a11y button { width: 40px; } }
html.big-text { font-size: 118%; }
html.big-text body { font-size: 20px; }
html.big-text .tt td, html.big-text .tt th { font-size: 16px; }
html.hi-contrast { --muted: #1F2B40; --dim: #2E3A50; --line: #6B7A94; --bg: #FFFFFF; --on-dark-muted: #FFFFFF; --sky-soft: #FFFFFF; }
html.hi-contrast .hero-photo::after { background: rgba(6,20,45,.92); }
html.hi-contrast a { text-decoration: underline; }
.alert-bar { background: #FFF4E5; border-bottom: 1px solid #F3C98B; }
.alert-bar-in { padding-block: 12px; display: flex; flex-direction: column; gap: 8px; position: relative; padding-right: 56px; }
.alert-close { position: absolute; right: var(--gutter); top: 10px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #F3C98B; background: #fff; font-size: 22px; cursor: pointer; color: #6B3B00; }
.alert { display: flex; gap: 12px; align-items: flex-start; color: #5A3300; font-size: 15px; }
.alert svg { flex-shrink: 0; margin-top: 2px; color: #C26A00; }
.alert p { margin-top: 2px; }
.alert-hi { color: #7A1A0A; }
.alert-hi svg { color: var(--red-btn); }
.al-when { font-size: 13px; opacity: .8; margin-left: 6px; }
.al-lines { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.al-line { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--lc); }
.line-alerts:empty { display: none; }
.line-alerts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.line-alerts .alert { background: #FFF4E5; border: 1px solid #F3C98B; border-radius: 14px; padding: 12px 14px; }
.palina-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
.palina-actions .share-btn { justify-content: center; text-decoration: none; }
.remind-btn { margin: 12px 16px 0; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--blue); background: var(--sky-soft); color: var(--blue-ink); font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.remind-btn[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.foot-actions .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.fleet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 800px) { .fleet-grid { grid-template-columns: minmax(0, 1fr); } }
.fleet-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.fleet-card .photo { border-radius: 0; }
.fleet-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.fleet-body h2 { font-size: 22px; color: var(--navy); }
.fleet-body p { color: var(--muted); }
.avv-out { width: 100%; min-height: 160px; margin-top: 16px; font-family: var(--font-mono); font-size: 13px; border-radius: 12px; border: 1px solid var(--line); padding: 12px; background: #fff; color: var(--ink); }
/* Foglio stampabile della fermata */
.print-body { background: #E9EEF5; padding: 20px 16px; }
.print-tools { max-width: 794px; margin: 0 auto 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sheet { max-width: 794px; margin: 0 auto; background: #fff; padding: 36px 40px; border-radius: 10px; box-shadow: 0 10px 30px -12px rgba(11,33,71,.3); }
.sheet-head { display: flex; gap: 24px; align-items: center; border-bottom: 6px solid var(--red); padding-bottom: 18px; flex-wrap: wrap; }
.sheet-head h1 { font-size: 34px; color: var(--navy); margin-top: 8px; font-style: normal; }
.sheet-head p { color: var(--muted); }
.sheet-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.sheet-table th { text-align: left; background: var(--navy); color: #fff; padding: 8px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.sheet-table td { padding: 7px 10px; border-bottom: 1px solid #E3E8F0; }
.sheet-table td.mono { font-weight: 700; font-size: 16px; color: var(--navy); }
.sheet-table td i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.sheet-foot { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid #E3E8F0; font-size: 14px; }
.sheet-foot .qr svg { width: 120px; height: 120px; display: block; }
.sheet-contact { text-align: right; color: var(--muted); }
@media print {
  @page { size: A4; margin: 12mm; }
  .print-body { background: #fff; padding: 0; }
  .print-tools { display: none; }
  .sheet { box-shadow: none; padding: 0; max-width: none; }
  .sheet-table tr { break-inside: avoid; }
}
.sheet-foot .qr img { width: 120px; height: 120px; display: block; }
.palina-qr { margin-top: 10px; width: 120px; height: 120px; }

.a11y-mobile { display: none; }
@media (max-width: 1000px) {
  .nav-cta .a11y { display: none; }
  .a11y-mobile { display: flex; margin-top: 12px; width: 100%; }
  .a11y-mobile button { flex: 1; width: auto; font-family: var(--font-body); font-size: 15px; }
}
@media (max-width: 1400px) and (min-width: 1001px) { .nav-cta .btn-ghost { display: none; } }
@media (max-width: 1140px) and (min-width: 1001px) { .menu a { padding: 10px 8px; font-size: 14px; } .nav { gap: 12px; } }

/* Avvisi */
.nav-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red-btn); color: #fff; font-size: 12px; font-weight: 800; align-items: center; justify-content: center; margin-left: 4px; vertical-align: 2px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; margin-left: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid rgba(255,255,255,.25); background: rgba(6,20,45,.55); color: #fff; }
.status-pill:hover { color: #fff; background: rgba(6,20,45,.75); }
.status-pill i { width: 10px; height: 10px; border-radius: 50%; background: #3DDC97; }
.status-pill.st-warn i { background: #FFB547; }
.status-pill.st-hi { background: var(--red-btn); border-color: var(--red-btn); }
.status-pill.st-hi i { background: #fff; }
@media (max-width: 560px) { .status-pill { margin-left: 0; } }
.avv-list, .news-list { display: flex; flex-direction: column; gap: 12px; }
.avv-card { background: #FFF4E5; border: 1px solid #F3C98B; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.avv-card.hi { background: #FDECEA; border-color: #F2A79C; }
.avv-top { display: flex; gap: 8px; flex-wrap: wrap; }
.avv-src { font-weight: 700; font-size: 14px; }
.avv-ok { display: flex; gap: 16px; align-items: center; background: var(--ok-soft); color: #0B5132; border-radius: 16px; padding: 20px 22px; }
.avv-ok strong { font-size: 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.news { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.news h3 { font-size: 18px; color: var(--navy); font-stretch: 100%; }
.news p { color: var(--muted); font-size: 15px; }
.news a { font-weight: 700; font-size: 14px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 1540px) and (min-width: 1001px) { .nav-cta .btn-ghost { display: none; } }
@media (max-width: 1200px) and (min-width: 1001px) { .menu a { padding: 10px 7px; font-size: 14px; } .nav { gap: 10px; } .nav-cta .btn-primary { padding: 10px 14px; font-size: 15px; } }
[hidden] { display: none !important; }

.alert-news { color: var(--navy); }
.alert-news svg { color: var(--blue-ink); }
.line-alerts .alert-news { background: var(--sky-soft); border-color: var(--sky-line); }
.news-reg { border-left: 4px solid var(--red-btn); }
.al-rif { font-size: 13px; opacity: .8; }

.ord-box { border: 2px solid var(--blue); }
.ord-drop { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 120px; border: 2px dashed var(--blue); border-radius: 16px; background: var(--sky-soft); color: var(--navy); padding: 20px; cursor: pointer; }
.ord-drop.over { background: #DCEEFB; }
.ord-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ord-box details summary { cursor: pointer; font-weight: 700; color: var(--blue-ink); }
.form-msg.err { background: #FFF4E5; color: #5A3300; }
.chip-auto { background: var(--sky-soft); color: var(--blue-ink); border-color: var(--sky-line); }

/* ---------- Barra rapida (telefono) ---------- */
.quickbar { display: none; }
@media (max-width: 760px) {
  .quickbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .quickbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; font-size: 11.5px; font-weight: 700; color: var(--navy); text-decoration: none; min-height: 56px; }
  .quickbar a[aria-current="page"] { color: var(--red-btn); }
  .quickbar a:last-child { color: #0E7A3B; }
  body.has-quickbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body.has-quickbar .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  /* Avvisi compatti: titolo e date in vista, il resto nella pagina Avvisi */
  .alert-bar .alert p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .alert-bar .alert .al-rif, .alert-bar .alert .al-lines { display: none; }
}
.alert-more { font-weight: 700; font-size: 14px; color: #6B3B00; padding-left: 32px; }
html.hi-contrast .quickbar { background: #fff; border-top: 2px solid #000; }
html.hi-contrast .quickbar a { color: #000; text-decoration: none; }
@media print { .quickbar { display: none !important; } body.has-quickbar { padding-bottom: 0; } }

/* ---------- Orari uffici ---------- */
.foot-hours { display: inline-block; margin-top: 6px; font-weight: 600; }
.hours-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hours-grid { display: grid; grid-template-columns: minmax(150px, 1.2fr) 1fr 1fr; gap: 12px 20px; align-items: baseline; }
.hours-day { font-weight: 700; color: var(--navy); }
.hours-slot b { font-size: 20px; color: var(--navy); display: block; }
.hours-slot small { color: var(--dim); font-size: 13px; }
.open-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.open-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-pill.is-open { background: #E3F6EA; color: #0E7A3B; }
.open-pill.is-closed { background: #F1F3F7; color: #4A5568; }
@media (max-width: 560px) { .hours-grid { grid-template-columns: 1fr 1fr; } .hours-day { grid-column: 1 / -1; } .hours-slot.muted { grid-column: 1 / -1 !important; } }

/* Home: video senza velo blu, testo leggibile con ombra */
.hero-clear .hero-photo::after { background: none; }
.hero-clear h1, .hero-clear .lead { text-shadow: 0 2px 4px rgba(0,0,0,.55), 0 4px 22px rgba(0,0,0,.55); }
.hero-clear .lead { color: #FFFFFF; }
.hero-clear .swoosh { filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
