:root {
  --bg: #ffffff;
  --card: #ffffff;
  --muted: #335b6c;
  --text: #0b2a3a;
  --accent: #006aa7; /* blu FIAB */
  --accent2: #fcde4c; /* giallo FIAB */
  --surface: rgba(255, 255, 255, 0.88);
  --surface2: rgba(255, 255, 255, 0.76);
  --danger: #c73737;
  --shadow: 0 14px 36px rgba(10, 38, 55, 0.12);
  --radius: 18px;
}

html,
body,
button,
input,
select,
textarea {
  -webkit-text-size-adjust: none !important;
  text-size-adjust: none !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 820px at -10% -10%, rgba(252, 222, 76, 0.95), transparent 55%),
    radial-gradient(1100px 760px at 120% 0%, rgba(0, 106, 167, 0.52), transparent 60%),
    radial-gradient(900px 650px at 40% 110%, rgba(252, 222, 76, 0.45), transparent 62%),
    linear-gradient(180deg, rgba(0, 106, 167, 0.06), rgba(252, 222, 76, 0.08));
  color: var(--text);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  color: #0b2a3a;
}

.hidden {
  display: none !important;
}

#app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: relative;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.topbar__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.topbar__logo {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  border: 1px solid rgba(11, 42, 58, 0.12);
  background: rgba(252, 222, 76, 0.6);
  box-shadow: 0 16px 34px rgba(10, 38, 55, 0.16);
}

.topbar__logo--fiab-velocita {
  object-fit: contain;
  background: #ffffff;
}

.topbar__brandText {
  display: flex;
  flex-direction: column;
}

.topbar__title {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 22px;
}

.topbar__version {
  position: absolute;
  top: 8px;
  left: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.topbar__subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.topbar__actions {
  position: absolute;
  right: 16px;
  top: 18px;
  display: flex;
  gap: 10px;
}

.iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(11, 42, 58, 0.14);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(10, 38, 55, 0.12);
  cursor: pointer;
  font-size: 18px;
}

.iconbtn--share {
  width: auto;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 850;
}

.iconbtn__shareIcon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.installbtn {
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(11, 42, 58, 0.14);
  background: rgba(252, 222, 76, 0.72);
  color: #053a58;
  box-shadow: 0 10px 26px rgba(10, 38, 55, 0.12);
  cursor: pointer;
  font-weight: 900;
  font-size: 12.5px;
  white-space: nowrap;
}

.installbtn:active {
  transform: translateY(1px);
}

.main {
  flex: 1;
  padding: 10px 16px 92px;
}

.view {
  display: none;
}

.view--active {
  display: block;
}

.hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.45));
  border: 1px solid rgba(11, 42, 58, 0.12);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--shadow);
}

.grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.homebottom {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.homecard {
  text-decoration: none;
  border: 1px solid rgba(11, 42, 58, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 247, 243, 0.92));
  border-radius: 18px;
  padding: 10px;
  color: var(--text);
  box-shadow: 0 10px 22px rgba(11, 42, 58, 0.08);
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

button.homecard {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.homecard:hover {
  border-color: rgba(12, 148, 112, 0.28);
  box-shadow: 0 14px 28px rgba(11, 42, 58, 0.12);
  transform: translateY(-1px);
}

.homecard__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(12, 148, 112, 0.12);
  color: var(--primary-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 950;
}

.homecard__title {
  font-weight: 950;
  font-size: 13px;
  line-height: 1.1;
}

.homecard__text {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  margin-top: 2px;
}

.homecard__cta {
  border-radius: 999px;
  background: rgba(12, 148, 112, 0.12);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
}

.homecard--social {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 242, 255, 0.94));
}

.homecard--social .homecard__icon,
.homecard--social .homecard__cta {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
}

.homecard--social-links {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
}

.sociallink {
  min-width: 0;
  min-height: 54px;
  border-radius: 13px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
}

.sociallink:hover {
  background: rgba(255, 255, 255, 0.72);
}

.sociallink__icon {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
}

.sociallink--facebook .sociallink__icon {
  background: #1877f2;
}

.sociallink--instagram .sociallink__icon {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.homefootnote {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.chips {
  margin: 10px 0 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  border: 1px solid rgba(11, 42, 58, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  font-size: 12px;
  text-decoration: none;
}

.chip--maps {
  padding: 10px 14px;
  font-size: 15px;
  transform: scale(1.08);
  transform-origin: left center;
}

.chip--active {
  border-color: rgba(0, 106, 167, 0.32);
  background: rgba(252, 222, 76, 0.62);
  color: #053a58;
}

.chip--accent {
  border-color: rgba(0, 106, 167, 0.32);
  background: rgba(0, 106, 167, 0.10);
  color: #053a58;
}

.chip--ghost {
  background: transparent;
}

.chip--priority {
  border-color: rgba(0, 106, 167, 0.26);
  box-shadow: 0 8px 18px rgba(0, 106, 167, 0.10);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 42, 58, 0.14);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
}

.pill--public {
  border-color: rgba(0, 106, 167, 0.25);
  color: rgba(0, 106, 167, 0.95);
}

.pill--mine {
  border-color: rgba(252, 222, 76, 0.6);
  color: #7a5b00;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 14px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 34, 0.35);
  backdrop-filter: blur(10px);
}

.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-width: calc(100vw - 28px);
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(11, 42, 58, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(10, 38, 55, 0.22);
  padding: 14px;
}

.modal__panel--map {
  width: min(880px, 100%);
}

.modal__panel--release-notes {
  position: relative;
  max-width: 390px;
  max-height: min(680px, calc(100dvh - 32px));
  padding: 18px;
  overflow-y: auto;
}

.release-notes__close {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 76px;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 91, 148, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.release-notes__eyebrow {
  margin-bottom: 5px;
  color: #087d75;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.modal__panel--release-notes .modal__title {
  padding-right: 38px;
  font-size: 21px;
}

.release-notes__list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.release-notes__list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px;
  border-radius: 14px;
  background: rgba(229, 242, 255, 0.65);
}

.release-notes__list li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffffff;
  color: #087d75;
  font-size: 23px;
  font-weight: 900;
}

.release-notes__list strong,
.release-notes__list small {
  display: block;
}

.release-notes__list strong {
  color: var(--ink);
  font-size: 14px;
}

.release-notes__list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
}

.release-notes__actions .btn {
  width: 100%;
}

.mapwrap {
  margin-top: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(11, 42, 58, 0.14);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 44px rgba(10, 38, 55, 0.12);
}

.map {
  width: 100%;
  height: min(62vh, 520px);
}

.route-overview-card {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(0, 102, 204, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.route-overview-viewbar {
  display: none;
}

.route-overview-card--fullscreen {
  margin: 0;
}

body.is-route-overview-view .main {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.is-route-overview-view .tabbar {
  display: none;
}

.route-overview-view.view--active {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #ffffff;
}

.route-overview-viewbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid #d9e7f4;
  background: #ffffff;
}

.route-overview-viewbar strong {
  min-width: 0;
  color: var(--primary-dark);
  font-size: 16px;
  line-height: 1.15;
  text-align: center;
}

.route-overview-back,
.route-overview-home {
  width: auto;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #b8d7f5;
  border-radius: 10px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.route-overview-view .route-overview-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  padding: 8px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.route-overview-view .route-overview-map {
  height: 100%;
  min-height: 0;
}

.route-overview-toggle {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 10px 13px;
  border: 1px solid #b8d7f5;
  border-radius: 12px;
  background: #ffffff;
  color: var(--primary-dark);
  text-align: left;
}

.route-overview-toggle__map {
  flex: 0 0 auto;
  font-size: 27px;
  line-height: 1;
}

.route-overview-toggle__content {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.route-overview-toggle__content strong {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.18;
}

.route-overview-toggle__content span {
  color: #48708d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

.route-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.route-overview-head strong,
.route-overview-head small {
  display: block;
}

.route-overview-head strong {
  color: var(--primary-dark);
  font-size: 17px;
}

.route-overview-head small,
.route-overview-hint {
  color: var(--muted);
  font-size: 12px;
}

.route-overview-map {
  width: 100%;
  height: min(62vh, 520px);
  min-height: 340px;
  overflow: hidden;
  border-radius: 12px;
  background: #dfeedd;
}

.route-overview-hint {
  margin-top: 8px;
  text-align: center;
}

.route-overview-direction-marker {
  background: transparent;
  border: 0;
}

.route-overview-direction-marker span {
  display: block;
  color: #16a34a;
  font-size: 25px;
  font-weight: 900;
  line-height: 28px;
  text-align: center;
  text-shadow: -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff, 1px 1px 0 #ffffff;
  transform: rotate(var(--route-bearing)) scale(var(--route-overview-direction-scale, 1));
  transform-origin: center;
}

.route-overview-popup strong,
.route-overview-popup small {
  display: block;
}

.route-overview-popup small {
  margin-top: 4px;
  color: #5b6773;
}

.route-overview-popup .btn {
  display: block;
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 560px) {
  .route-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-overview-head .btn {
    width: 100%;
  }
}

.modal__title {
  font-weight: 950;
  letter-spacing: 0.2px;
  font-size: 15px;
}

.modal__text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.3;
}

.modal__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.searchrow {
  margin: 10px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(11, 42, 58, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(10, 38, 55, 0.10);
}

.searchrow__icon {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(252, 222, 76, 0.55);
  border: 1px solid rgba(0, 106, 167, 0.16);
  flex: 0 0 auto;
}

.searchrow__input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}

.searchrow__clear {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid rgba(11, 42, 58, 0.14);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 900;
}

.cta {
  margin-top: 12px;
  border-radius: 22px;
  padding: 14px 14px;
  border: 1px solid rgba(0, 106, 167, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
  box-shadow: 0 18px 44px rgba(10, 38, 55, 0.18);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cta__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cta__badge {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(252, 222, 76, 0.95);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 10px 26px rgba(10, 38, 55, 0.18);
  flex: 0 0 auto;
}

.cta__text {
  min-width: 0;
}

.cta__title {
  font-weight: 950;
  letter-spacing: 0.2px;
  font-size: 15px;
  line-height: 1.2;
}

.cta__subtitle {
  margin-top: 4px;
  font-size: 12.5px;
  opacity: 0.9;
  line-height: 1.25;
}

.cta__btn {
  flex: 0 0 auto;
  text-decoration: none;
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 13px;
  color: var(--accent);
  background: rgba(252, 222, 76, 0.98);
  border: 1px solid rgba(0, 106, 167, 0.22);
  box-shadow: 0 12px 30px rgba(10, 38, 55, 0.18);
}

.cta__btn:active {
  transform: translateY(1px);
}

.cta__btn:hover {
  filter: brightness(0.98);
}

.cardbtn {
  display: block;
  text-align: left;
  border: 1px solid rgba(11, 42, 58, 0.12);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 12px 12px;
  cursor: pointer;
  color: var(--text);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.cardbtn--cycling {
  border-color: rgba(190, 142, 0, 0.55);
  background: linear-gradient(135deg, #ffe76a, #f8c928);
  box-shadow: 0 14px 30px rgba(190, 142, 0, 0.22);
}

.cardbtn--cycling .cardbtn__text {
  color: #5e4a00;
}

.cardbtn__title small {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 99px;
  background: #e4f4e9;
  color: #27673b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.cardbtn--cycling:hover {
  border-color: rgba(155, 111, 0, 0.75);
  box-shadow: 0 18px 40px rgba(190, 142, 0, 0.3);
}

.cardbtn--cycling-split .cardbtn__actions {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(94, 74, 0, 0.22);
}

.cardbtn--cycling-split {
  overflow: hidden;
  padding: 0;
}

.cardbtn--cycling-split .cardbtn__heading {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 0;
  align-items: start;
  padding: 10px 12px;
  color: #1d1d1f;
  text-decoration: none !important;
  border-bottom: 0;
  transition: background 160ms ease;
}

.cardbtn--cycling-split .cardbtn__heading:hover,
.cardbtn--cycling-split .cardbtn__heading:visited {
  color: #1d1d1f;
  text-decoration: none !important;
}

.cardbtn--cycling-split .cardbtn__heading:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cardbtn--cycling-split .cardbtn__icon {
  grid-row: 1 / span 2;
  margin: 0;
}

.cardbtn--cycling-split .cardbtn__title,
.cardbtn--cycling-split .cardbtn__text {
  grid-column: 2;
}

.cardbtn--cycling-split .cardbtn__text {
  margin-top: 2px;
}

.cardbtn__action {
  display: block;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 0;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.cardbtn__action--nearest {
  background: #e8f2ff;
  color: #0052a3;
  border-top: 1px solid #b8d7f5;
}

.cardbtn__action:hover {
  filter: brightness(0.96);
}

.cardbtn:active {
  transform: translateY(1px);
}

.cardbtn,
.item,
.hero,
.panel,
.form,
.btn,
.iconbtn,
.tab {
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cardbtn:hover,
.item:hover {
  box-shadow: 0 18px 44px rgba(10, 38, 55, 0.14);
}

.cardbtn__icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.cardbtn__title {
  font-weight: 800;
  font-size: 14px;
}

.cardbtn__text {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.sectionhead {
  margin: 10px 2px 10px;
}

.sectionhead--maps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.maps-home-button {
  width: auto;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #b8d7f5;
  border-radius: 10px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.sectionhead__title {
  font-weight: 900;
  font-size: 16px;
}

.sectionhead__title--fountains {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
}

.sectionhead__icon {
  font-size: 22px;
  line-height: 1;
}

.sectionhead__subtitle {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.3;
  margin-top: 4px;
}

body:not(.is-home-view):not(.is-route-overview-view) {
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(0, 106, 167, 0.14), transparent 66%),
    radial-gradient(760px 520px at 0% 30%, rgba(252, 222, 76, 0.20), transparent 68%),
    #f5f8fb;
}

body:not(.is-home-view):not(.is-route-overview-view) .topbar {
  padding: 14px 18px 12px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(7, 60, 147, 0.08);
  box-shadow: 0 8px 26px rgba(7, 53, 91, 0.08);
  backdrop-filter: blur(16px);
}

body:not(.is-home-view):not(.is-route-overview-view) .topbar__brand {
  flex-direction: row;
  gap: 10px;
}

body:not(.is-home-view):not(.is-route-overview-view) .topbar__logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

body:not(.is-home-view):not(.is-route-overview-view) .topbar__logoLink span {
  display: none;
}

body:not(.is-home-view):not(.is-route-overview-view) .topbar__title {
  font-size: 24px;
  color: #082f63;
}

body:not(.is-home-view):not(.is-route-overview-view) .topbar__subtitle {
  font-size: 12px;
}

body:not(.is-home-view):not(.is-route-overview-view) .topbar__campaign {
  display: none;
}

body:not(.is-home-view):not(.is-route-overview-view) .main {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 18px 16px 92px;
}

body:not(.is-home-view):not(.is-route-overview-view) .sectionhead {
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid rgba(7, 60, 147, 0.10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(9, 39, 70, 0.10);
}

body:not(.is-home-view):not(.is-route-overview-view) .sectionhead__title {
  color: #082f63;
  font-size: 24px;
  letter-spacing: -0.02em;
}

body:not(.is-home-view):not(.is-route-overview-view) .sectionhead__subtitle {
  font-size: 14px;
}

body:not(.is-home-view):not(.is-route-overview-view) .item,
body:not(.is-home-view):not(.is-route-overview-view) .form,
body:not(.is-home-view):not(.is-route-overview-view) .chips {
  border-color: rgba(7, 60, 147, 0.12);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(9, 39, 70, 0.08);
}

body:not(.is-home-view):not(.is-route-overview-view) .btn--primary {
  background: #075abf;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(7, 90, 191, 0.22);
}

body:not(.is-home-view):not(.is-route-overview-view) #view-links .item__title {
  color: #082f63;
  font-size: 18px;
}

body:not(.is-home-view):not(.is-route-overview-view) #view-links .item__meta {
  color: #315273;
}

body:not(.is-home-view):not(.is-route-overview-view) #view-links .item__actions .btn {
  background: #075abf;
  color: #ffffff;
  border-color: #075abf;
}

body:not(.is-home-view):not(.is-route-overview-view) #view-links .item__actions .btn:hover,
body:not(.is-home-view):not(.is-route-overview-view) #view-links .item__actions .btn:focus-visible {
  background: #043c9d;
  border-color: #043c9d;
}

body.is-links-view .tabbar {
  display: none;
}

body.is-links-view .main {
  padding-bottom: 28px;
}

body:not(.is-home-view):not(.is-route-overview-view) .sectionhead--links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
}

.sectionhead--links .sectionhead__eyebrow {
  margin-bottom: 4px;
  color: #6b88a0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.links-home-button {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid rgba(7, 90, 191, 0.13);
  border-radius: 999px;
  background: #ffffff;
  color: #075abf;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(8, 47, 99, 0.10);
}

.links-home-button:hover,
.links-home-button:focus-visible {
  background: #edf5ff;
  outline: none;
}

#linksList {
  gap: 14px;
}

.links-group {
  padding: 16px;
  border: 1px solid rgba(7, 60, 147, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(9, 39, 70, 0.07);
}

.links-group__title {
  margin: 0 2px 11px;
  color: #082f63;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.links-group__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.link-card {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(8, 47, 99, 0.08);
  border-radius: 17px;
  background: rgba(248, 251, 255, 0.92);
  color: #082f63;
  text-decoration: none;
  box-shadow: 0 5px 13px rgba(8, 47, 99, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  background: #ffffff;
  box-shadow: 0 9px 18px rgba(8, 47, 99, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.link-card__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #e7f0ff;
  color: #075abf;
  font-size: 18px;
  font-weight: 950;
}

.link-card__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.link-card--youtube .link-card__icon { background: #ffe9e8; color: #e21b23; }
.link-card--facebook .link-card__icon { background: #e7f0ff; color: #1877f2; }
.link-card--instagram .link-card__icon { background: linear-gradient(135deg, #f9e6ff, #ffe9dc); color: #b12e8e; }
.link-card--cycling .link-card__icon { background: #fff5c9; color: #946f00; }
.link-card--komoot .link-card__icon { background: #e5f7ee; color: #17804c; }
.link-card--place .link-card__icon { background: #e9f3ff; color: #075abf; }
.link-card--fiab .link-card__icon { background: #fff5c9; color: #946f00; }
.link-card--calendar .link-card__icon { background: #f0eaff; color: #6844b7; }

.link-card__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.link-card__body strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__body small {
  color: #6a8399;
  font-size: 10px;
  line-height: 1.15;
}

.link-card__arrow {
  flex: 0 0 auto;
  color: #7d9ab0;
  font-size: 22px;
  line-height: 1;
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid rgba(11, 42, 58, 0.12);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 12px 12px;
  box-shadow: var(--shadow);
}

.item__title {
  font-weight: 900;
  font-size: 14px;
}

.item__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.item__actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(11, 42, 58, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 750;
  font-size: 13px;
}

.btn--ghost {
  background: transparent;
}

.btn--danger {
  border-color: rgba(199, 55, 55, 0.35);
  background: rgba(199, 55, 55, 0.10);
  color: #8a0f0f;
}

.btn--primary {
  border-color: rgba(0, 106, 167, 0.35);
  background: rgba(0, 106, 167, 0.12);
  color: #053a58;
}

.btn.route-overview-toggle {
  border-color: #b8d7f5;
  background: #ffffff;
  color: var(--primary-dark);
}

.map-count {
  margin: 6px 0 10px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.fountain-map-icon {
  background: transparent;
  border: 0;
  font-size: 25px;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}

.fountain-map-icon span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0b83c6;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 2px 7px rgba(0,0,0,.35);
}

.useful-points-cluster {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0b83c6;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 2px 7px rgba(0,0,0,.35);
}

.useful-points-cluster span {
  font-size: 15px;
  line-height: 1;
}

.useful-points-cluster b {
  line-height: 1;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 10px 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(11, 42, 58, 0.08);
}

body.is-home-view .tabbar,
body.is-maps-view .tabbar,
body.is-points-view .tabbar,
body.is-route-overview-view .tabbar {
  display: none !important;
}

.is-maps-view .main,
.is-points-view .main {
  padding-bottom: 20px;
}

.is-home-view .main {
  padding-bottom: 20px;
}

.tab {
  min-width: 0;
  border: 1px solid rgba(11, 42, 58, 0.10);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 9px 4px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.tab--cycling {
  border-color: rgba(190, 142, 0, 0.45);
  background: rgba(252, 222, 76, 0.42);
}

.tab--cycling .tab__label {
  color: #654d00;
  font-weight: 800;
}

.tab--active {
  border-color: rgba(0, 106, 167, 0.35);
  background: rgba(252, 222, 76, 0.65);
}

.tab:active {
  transform: translateY(1px);
}

.tab__icon {
  font-size: 16px;
}

.tab__label {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  color: var(--muted);
}

.tab--active .tab__label {
  color: var(--text);
}

.empty {
  margin-top: 14px;
  border: 1px dashed rgba(11, 42, 58, 0.22);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--muted);
}

.empty__title {
  font-weight: 900;
  color: var(--text);
}

.empty__hint {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
}

.form {
  border: 1px solid rgba(11, 42, 58, 0.12);
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.row:first-child {
  margin-top: 0;
}

.row--end {
  grid-template-columns: 1fr 1fr;
}

.field__label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.input,
.textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(11, 42, 58, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

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

.panel {
  border: 1px solid rgba(11, 42, 58, 0.12);
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.panel__title {
  font-weight: 900;
  font-size: 13px;
}

.panel__hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.filebtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11, 42, 58, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
  gap: 8px;
}

.filebtn input {
  display: none;
}

@media (min-width: 620px) {
  .main {
    max-width: 860px;
    margin: 0 auto;
  }
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .homebottom {
    grid-template-columns: 1fr 1fr;
  }
  .row {
    grid-template-columns: 1fr 1fr;
  }
  .row--end {
    grid-template-columns: auto auto;
    justify-content: end;
  }
}

@media (max-width: 410px) {
  .cta {
    flex-direction: column;
    align-items: stretch;
  }
  .cta__btn {
    text-align: center;
  }
}
 .route-revision {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
}

.route-revision summary {
  cursor: pointer;
  color: #0f5fa8;
  font-weight: 800;
}

.route-revision p {
  margin: 9px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.route-revision__limit {
  color: #64748b;
}

/* Home Ciclovai: presentazione editoriale, senza modificare le funzioni. */
body.is-home-view {
  background: url("./assets/home-hero-lake-mountains.png") center top / cover fixed no-repeat #e8f5fc;
}

.is-home-view #app {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(238, 247, 255, .16) 0, rgba(248, 252, 255, .54) 220px, rgba(255, 255, 255, .74) 100%);
}

.is-home-view #app::before {
  content: none;
}

.is-home-view .topbar,
.is-home-view .main {
  position: relative;
  z-index: 1;
}

/* The logo chooser opens over the beginning of the Home content. Keep the
   whole header above the assistant shortcut so both external links remain
   visible and clickable. */
.is-home-view .topbar {
  z-index: 10;
  overflow: visible;
}

/* A Home dialog is a focused task: do not leave the promotional header
   visible behind it. The normal Home header reappears as soon as it closes. */
.is-home-view.has-home-menu-open .topbar {
  visibility: hidden;
  pointer-events: none;
}

.is-home-view .topbar {
  min-height: 182px;
  padding: 19px 22px 9px;
  align-items: flex-start;
  background:
    linear-gradient(180deg, rgba(224, 244, 255, 0.04), rgba(225, 244, 255, 0.18));
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.is-home-view .topbar__version {
  top: 16px;
  left: 22px;
  color: #ffffff;
  font-size: 10px;
  text-shadow: 0 2px 7px rgba(0, 34, 82, 0.92);
}

.is-home-view .topbar__actions {
  top: 13px;
  right: 15px;
}

.is-home-view .iconbtn--share,
.is-home-view .installbtn {
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #072d61;
  box-shadow: 0 10px 30px rgba(7, 53, 91, 0.18);
  font-size: 14px;
}

.is-home-view .iconbtn--share {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
}

.is-home-view .iconbtn--share span { display: none; }
.is-home-view .iconbtn--share .iconbtn__shareIcon { width: 22px; height: 22px; margin: 0; }

.is-home-view .topbar__brand {
  align-items: center;
  text-align: center;
  flex-direction: row;
  justify-content: center;
  margin-top: 34px;
  gap: 20px;
}

.is-home-view .topbar__logoLink {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 112px;
  padding: 0 0 7px;
  overflow: hidden;
  border-radius: 20px;
  background: #ffda1f;
  color: #072d61;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 13px 27px rgba(15, 57, 92, 0.22);
  transition: transform 160ms ease;
}

.is-home-view button.topbar__logoLink {
  margin: 0;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.brand-links-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  top: 120px;
  width: 214px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 30px rgba(8, 47, 99, 0.22);
}

.brand-links-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 11px;
  color: #082f63;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand-links-menu a:hover,
.brand-links-menu a:focus-visible {
  background: #edf5ff;
  color: #075abf;
  outline: none;
}

.brand-links-menu a span {
  width: 24px;
  text-align: center;
  font-size: 17px;
}

.is-home-view .topbar__logoLink:hover,
.is-home-view .topbar__logoLink:focus-visible {
  transform: translateY(-2px);
}

.is-home-view .topbar__logo {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border: 0;
  display: block;
  border-radius: 0;
  background: #ffda1f;
  box-shadow: none;
}

.is-home-view .topbar__logoLink b {
  font-size: 16px;
  margin-left: 4px;
}

.is-home-view .topbar__brandText {
  align-items: center;
  text-align: center;
  min-width: 0;
}

.is-home-view .topbar__brand {
  position: relative;
  width: 100%;
  min-height: 90px;
}

.is-home-view .topbar__logoLink {
  position: absolute;
  left: 0;
  top: 0;
  width: 96px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.is-home-view .topbar__logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(15, 57, 92, 0.2);
}

.is-home-view .topbar__logoLink--fiab-velocita {
  width: 112px;
  height: 112px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  border: 3px solid #f2c918;
  box-sizing: border-box;
  box-shadow: 0 12px 26px rgba(15, 57, 92, 0.24);
}

.is-home-view .topbar__logo--fiab-velocita {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  border: 0;
  background: #ffffff;
  box-shadow: none;
  object-fit: contain;
  transform: none;
}

.is-home-view .topbar__brandText {
  width: 100%;
  padding: 6px 120px 0;
  box-sizing: border-box;
}

@media (max-width: 560px) {
  .is-home-view .topbar__logoLink {
    width: 74px;
  }

  .is-home-view .topbar__logo {
    width: 74px;
    height: 74px;
  }

  .is-home-view .topbar__logoLink--fiab-velocita {
    width: 88px;
    height: 88px;
  }

  .is-home-view .topbar__logo--fiab-velocita {
    width: 100%;
    height: 100%;
  }

  .is-home-view .topbar__brandText {
    padding-left: 92px;
    padding-right: 92px;
  }
}

.is-home-view .topbar__title {
  color: #062c58;
  font-size: clamp(48px, 14vw, 76px);
  white-space: nowrap;
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.66);
}

.is-home-view .topbar__title::after {
  content: "";
  display: block;
  width: 58px;
  height: 6px;
  margin: 8px auto 7px;
  border-radius: 999px;
  background: #ffdb21;
}

.is-home-view .topbar__subtitle {
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-size: clamp(16px, 4.8vw, 20px);
  font-weight: 750;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  text-shadow:
    -1px -1px 0 rgba(0, 24, 57, 0.96),
    1px -1px 0 rgba(0, 24, 57, 0.96),
    -1px 1px 0 rgba(0, 24, 57, 0.96),
    1px 1px 0 rgba(0, 24, 57, 0.96),
    0 3px 8px rgba(0, 24, 57, 0.78);
}

.is-home-view .topbar__subtitle span { white-space: nowrap; }

.is-home-view .topbar__campaign {
  position: absolute;
  top: -9px;
  left: 50%;
  right: auto;
  display: block;
  width: min(260px, calc(100% - 185px));
  margin: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .055em;
  line-height: 1.2;
  text-align: center;
  transform: translateX(-50%);
  -webkit-text-stroke: .45px #073568;
  text-shadow: 0 1px 1px #073568, 0 2px 7px rgba(0, 34, 78, .72);
}

.is-home-view .topbar__fiab-link {
  position: absolute;
  top: 70px;
  right: 22px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffda1f;
  box-shadow: 0 8px 18px rgba(171, 125, 0, 0.22);
  color: #072d61;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.is-home-view .topbar__fiab-link span {
  font-size: 20px;
  line-height: 0.7;
}

.is-home-view .main {
  padding: 0 16px 28px;
}

#homeDestinationModal .modal__panel {
  width: min(560px, calc(100dvw - 28px));
  max-width: calc(100dvw - 28px);
}

.modal__panel--assistant { width: min(560px, calc(100dvw - 28px)); max-width: calc(100dvw - 28px); padding: 18px; }
.home-assistant__eyebrow { margin-bottom: 5px; color: #087d75; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.home-assistant__progress { margin: 8px 0 5px; color: #0877b8; font-size: 12px; font-weight: 900; }
.home-assistant__prompt { min-height: 48px; color: #173f65; font-size: 17px; font-weight: 800; line-height: 1.32; }
.home-assistant__options { display: grid; gap: 9px; margin: 14px 0 8px; }
.home-assistant__option { display: grid; gap: 3px; width: 100%; min-height: 63px; padding: 11px 14px; border: 1px solid #acd3ee; border-radius: 16px; background: linear-gradient(135deg, #f9fdff, #e5f4ff); color: #073f70; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 3px 10px rgba(5, 86, 169, .08); }
.home-assistant__option:hover, .home-assistant__option:focus-visible { border-color: #0877c9; background: #d9efff; outline: 3px solid rgba(8, 119, 201, .18); }
.home-assistant__option.is-accepted-choice, .home-destination-result button.is-accepted-choice { animation: home-assistant-choice 280ms ease-out both; }
@keyframes home-assistant-choice { 0% { transform: scale(1); } 42% { transform: scale(1.035); border-color: #00a878; background: #c9f8e7; box-shadow: 0 0 0 7px rgba(0, 168, 120, .2), 0 8px 20px rgba(0, 118, 82, .22); } 100% { transform: scale(1); } }
.home-assistant__option strong { font-size: 16px; }
.home-assistant__option small { color: #47708d; font-size: 13px; font-weight: 700; }
.home-assistant__voice-status { min-height: 24px; margin: 10px 1px 0; color: #075b98; font-size: 16px; font-weight: 900; line-height: 1.3; }
.home-assistant__voice-status.is-listening { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border: 2px solid #0877c9; border-radius: 14px; background: #dff3ff; color: #034f88; box-shadow: 0 0 0 4px rgba(8, 119, 201, .13); font-size: 18px; }
.home-assistant__actions { margin-top: 8px; }
.home-assistant__voice { background: linear-gradient(135deg, #0877c9, #0755aa); }
.home-assistant__hint { margin: 10px 1px 0; color: #52728a; font-size: 11px; font-weight: 650; line-height: 1.35; }

@media (max-width: 700px) {
  #homeDestinationModal {
    align-items: start;
    justify-items: center;
    padding: max(12px, env(safe-area-inset-top)) 14px 14px;
  }

  #homeDestinationModal .modal__panel {
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - 14px);
    overflow-y: auto;
  }

  #homeDestinationModal .home-destination-results {
    max-height: min(42dvh, 300px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #homeAssistantModal { align-items: start; justify-items: center; padding: max(12px, env(safe-area-inset-top)) 14px 14px; }
  #homeAssistantModal .modal__panel { max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - 14px); overflow-y: auto; }
  .home-assistant__prompt { min-height: 0; font-size: 16px; }
  .home-assistant__option { min-height: 57px; padding: 10px 12px; }
}

.home-quick-panel {
  width: min(680px, 100%);
  margin: 3px auto 11px;
  padding: 8px;
  border: 2px solid #ffca17;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(7, 53, 91, .14);
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(680px, 100%);
  margin: 0 auto;
}

.home-shortcuts__heading {
  width: min(680px, 100%);
  margin: 7px auto 0;
  color: #072d61;
  text-align: right;
  text-shadow: 0 1px 10px rgba(255, 255, 255, .72);
}
.home-shortcuts__heading strong { display: block; font-size: 16px; letter-spacing: .01em; line-height: 1; text-transform: none; }
.home-shortcuts__heading span { display: none; }
.home-options-heading {
  width: min(680px, 100%);
  margin: 15px auto 3px;
  color: #072d61;
  text-align: left;
}
.home-options-heading strong { display: block; font-size: 18px; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.home-options-heading span { display: none; }

.home-destination-results { display: grid; gap: 8px; max-width: 100%; margin: 12px 0 4px; overflow: hidden; }
.home-destination-results > small { display: block; padding: 8px 4px; color: #315d7f; font-size: 13px; font-weight: 700; }
.home-destination-result { display: flex; min-width: 0; max-width: 100%; box-sizing: border-box; align-items: center; gap: 10px; padding: 10px 11px 10px 13px; border: 1px solid #b6d6ed; border-radius: 15px; background: rgba(255, 255, 255, .9); box-shadow: 0 3px 10px rgba(21, 90, 147, .08); }
.home-destination-result span { width: 0; min-width: 0; flex: 1 1 0; }
.home-destination-result strong, .home-destination-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-destination-result strong { color: #0b3e6c; font-size: 15px; }
.home-destination-result small { margin-top: 3px; color: #4d6f89; font-size: 11px; }
.home-destination-result button { flex: 0 0 auto; min-height: 38px; padding: 8px 12px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #0877c9, #0755aa); box-shadow: 0 4px 9px rgba(5, 86, 169, .24); color: #fff; font: inherit; font-size: 13px; font-weight: 900; }
.home-destination-result button:active { transform: translateY(1px); box-shadow: 0 2px 5px rgba(5, 86, 169, .2); }

@media (max-width: 700px) {
  .home-destination-result { gap: 7px; padding: 9px 8px 9px 11px; }
  .home-destination-result small { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.16; }
  .home-destination-result button { min-width: 58px; min-height: 36px; padding: 7px 8px; font-size: 12px; }
}

.home-shortcut {
  aspect-ratio: 1 / 1;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 5px;
  border: 0;
  border-radius: 19px;
  color: #063563;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 11px 26px rgba(7, 53, 91, .2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-shortcut:hover,
.home-shortcut:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(7, 53, 91, .28); outline: none; }
.home-shortcut__icon { font-size: clamp(28px, 5.5vw, 36px); line-height: 1; }
.home-shortcut strong { font-size: clamp(14px, 3vw, 17px); line-height: 1.08; }
.home-shortcut small { max-width: 118px; font-size: clamp(11px, 2.35vw, 13px); font-weight: 800; line-height: 1.16; }
.home-shortcut--route { background: linear-gradient(145deg, #dceeff, #91c7f4); }
.home-shortcut--destination { background: linear-gradient(145deg, #d8f8ed, #69d4b1); color: #064b3a; }
.home-shortcut--assistant {
  grid-column: 1 / -1;
  min-height: 64px;
  aspect-ratio: auto;
  flex-direction: row;
  justify-content: flex-start;
  gap: 8px;
  padding: 7px 12px;
  background: linear-gradient(135deg, #e5d5ff, #b980ed);
  color: #442064;
  text-align: left;
}
.home-shortcut--assistant .home-shortcut__icon {
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
.home-assistant-icon { width: 27px; height: 27px; display: block; }
.home-shortcut--assistant .home-shortcut__copy { min-width: 0; flex: 1; }
.home-shortcut--assistant strong { display: block; font-size: clamp(15px, 3.5vw, 17px); text-transform: uppercase; }
.home-shortcut--assistant small { display: block; max-width: 260px; margin-top: 1px; font-size: 11px; }
.home-shortcut__arrow { flex: 0 0 auto; font-size: 28px; font-weight: 300; line-height: 1; }
.home-shortcut:not(.home-shortcut--assistant) {
  aspect-ratio: auto;
  min-height: 64px;
  padding: 6px 8px;
  gap: 3px;
}
.home-shortcut:not(.home-shortcut--assistant) .home-shortcut__icon { font-size: 24px; }
.home-shortcut:not(.home-shortcut--assistant) strong { font-size: 12px; text-transform: uppercase; }
.home-shortcut:not(.home-shortcut--assistant) small { display: none; }

@media (max-width: 430px) {
  .home-shortcuts { gap: 7px; margin-bottom: 13px; }
  .home-shortcut { border-radius: 16px; }
  .home-shortcut:not(.home-shortcut--assistant) { min-height: 64px; }
}

.is-home-view .cta {
  position: relative;
  z-index: 2;
  margin: -18px 0 0;
  min-height: 144px;
  padding: 22px;
  border: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(9, 39, 70, 0.16);
  color: #072d61;
}

.is-home-view .cta__left {
  align-items: flex-start;
  gap: 15px;
}

.is-home-view .cta__badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffdd21;
  font-size: 31px;
}

.is-home-view .cta__title {
  max-width: 280px;
  font-size: 17px;
  line-height: 1.1;
}

.is-home-view .cta__subtitle {
  max-width: 290px;
  font-size: 13px;
  color: #234d79;
}

.is-home-view .cta__btn {
  align-self: flex-end;
  border: 0;
  border-radius: 999px;
  padding: 13px 17px;
  color: #072d61;
  background: #ffda1f;
  box-shadow: 0 8px 18px rgba(171, 125, 0, 0.22);
}

.is-home-view .grid {
  margin-top: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.is-home-view .grid .cardbtn {
  --home-card-accent: #1767c8;
  --home-card-tint: #eaf3ff;
  position: relative;
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 25px;
  padding: 10px 12px 9px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
  box-shadow: 0 12px 28px rgba(9, 39, 70, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.is-home-view .grid .cardbtn:not(.cardbtn--cycling) .cardbtn__icon {
  width: 32px;
  height: 32px;
  margin: 0 0 4px;
  display: grid !important;
  place-items: center;
  border-radius: 15px;
  background: var(--home-card-tint);
  color: var(--home-card-accent);
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.88);
}

.is-home-view .grid .cardbtn:not(.cardbtn--cycling) .cardbtn__title {
  color: #082f63;
  padding-right: 20px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.is-home-view .grid .cardbtn:not(.cardbtn--cycling) .cardbtn__text {
  margin-top: 3px;
  color: #315273;
  font-size: 10px;
  line-height: 1.3;
}

.is-home-view .grid .cardbtn:not(.cardbtn--cycling)::after {
  content: "›";
  position: absolute;
  top: 12px;
  right: 11px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--home-card-tint);
  color: var(--home-card-accent);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.is-home-view .grid .cardbtn:not(.cardbtn--cycling):hover,
.is-home-view .grid .cardbtn:not(.cardbtn--cycling):focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(9, 39, 70, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.is-home-view .grid .cardbtn--points { --home-card-accent: #087d52; --home-card-tint: #e7f7ee; }
.is-home-view .grid .cardbtn--links { --home-card-accent: #7353b4; --home-card-tint: #f1ebff; }
.is-home-view .grid .cardbtn--feedback { --home-card-accent: #ba5319; --home-card-tint: #fff0e7; }

.is-home-view .grid .cardbtn--cycling {
  position: relative;
  grid-column: 1 / -1;
  min-height: 110px;
  overflow: hidden;
  padding: 10px calc(42% + 13px) 9px 15px;
  text-align: left;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(100deg, #043c9d 0%, #075abf 43%, rgba(7, 90, 191, 0.9) 53%, rgba(7, 90, 191, 0.58) 65%, rgba(7, 90, 191, 0.2) 80%, rgba(7, 90, 191, 0) 100%) 0 0 / 100% 100% no-repeat,
    url("./assets/home-cycling-portrait.jpg") right 70% / 57% auto no-repeat;
  box-shadow: 0 16px 34px rgba(3, 54, 142, 0.25);
}

.is-home-view .grid .cardbtn--guide {
  color: #082f63;
  background:
    linear-gradient(100deg, #ffdf26 0%, #ffd817 48%, rgba(255, 216, 23, 0.83) 57%, rgba(255, 216, 23, 0.06) 74%),
    url("./assets/home-guide-san-carlone-nofence.png") right 57% / 57% auto no-repeat;
  box-shadow: 0 16px 34px rgba(183, 134, 0, 0.22);
}

.is-home-view .grid .cardbtn--planner {
  color: #083a55;
  background:
    linear-gradient(100deg, rgba(130, 231, 194, .98) 0%, rgba(93, 211, 178, .94) 47%, rgba(93, 211, 178, .72) 58%, rgba(93, 211, 178, .08) 76%),
    url("./assets/home-route-planner.png") center/cover;
  box-shadow: 0 16px 34px rgba(15, 123, 99, .22);
}

.is-home-view .grid .cardbtn--planner .cardbtn__text { color: #0e4653; }

.is-home-view .grid .cardbtn--cycling .cardbtn__icon {
  width: 34px;
  height: 34px;
  margin: 0 0 3px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #073c93;
  font-size: 17px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.is-home-view .home-route-icon { width: 88%; height: 88%; display: block; }

.is-home-view .grid .cardbtn--cycling .cardbtn__title {
  font-size: clamp(17px, 4.5vw, 21px);
  line-height: 1.05;
  font-weight: 900;
}

.is-home-view .grid .cardbtn--cycling .cardbtn__text {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 11px;
  line-height: 1.32;
}

.is-home-view .grid .cardbtn--guide .cardbtn__text {
  color: #163e72;
}

.is-home-view .grid .cardbtn--cycling::after {
  content: "›";
  position: absolute;
  right: 13px;
  top: 50%;
  bottom: auto;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #063c8d;
  font-size: 32px;
  font-weight: 300;
  line-height: 0.65;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.13);
}

.is-home-view .homebottom {
  margin-top: 16px;
  gap: 14px;
}

.is-home-view .homecard {
  min-height: 78px;
  border: 0;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(9, 39, 70, 0.09);
}

.is-home-view .homecard__icon {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #ffdd21;
  color: #073c93;
  font-size: 22px;
}

.is-home-view .homecard__title { color: #082f63; font-size: 14px; }
.is-home-view .homecard__text { color: #315273; font-size: 11px; }
.is-home-view .homecard__cta { background: #edf5ff; color: #073c93; }
.is-home-view .homecard--social { background: rgba(255, 255, 255, 0.96); }
.is-home-view .sociallink { color: #082f63; font-size: 11px; }

.is-home-view .homefootnote {
  margin: 12px 2px 0;
  padding: 0;
  border-radius: 16px;
  background: #073c93;
  color: #fff;
  font-size: 13px;
  font-weight: 720;
  text-align: left;
  box-shadow: 0 12px 28px rgba(3, 54, 142, 0.2);
}

.is-home-view .homefootnote--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.is-home-view .homefootnote__section {
  min-width: 0;
  padding: 12px 16px;
}

.is-home-view .homefootnote__section--feedback {
  background: rgba(0, 0, 0, 0.13);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.is-home-view .homefootnote__eyebrow {
  margin-bottom: 3px;
  color: #ffdf2b;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.is-home-view .homefootnote__title {
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
}

.is-home-view .homefootnote__text {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  line-height: 1.25;
}

.is-home-view .homefootnote__feedback {
  margin-top: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: #fff;
  color: #073c93;
  font: inherit;
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14);
}

.is-home-view .homefootnote__feedback:hover,
.is-home-view .homefootnote__feedback:focus-visible {
  background: #ffdf2b;
  color: #073c93;
}

@media (max-width: 560px) {
  .sectionhead--links {
    align-items: flex-start;
    flex-direction: column;
  }

  .links-group__cards {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 620px) {
  .is-home-view .main { max-width: 860px; }
  .is-home-view .topbar { max-width: 860px; width: 100%; margin: 0 auto; }
  .is-home-view .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .is-home-view .grid .cardbtn--cycling { grid-column: 1 / -1; min-height: 112px; padding-right: 45%; }
  .is-home-view .grid .cardbtn:not(.cardbtn--cycling) { min-height: 80px; }
  .is-home-view .cta__btn { margin-right: 10px; }
}

@media (max-width: 410px) {
  .is-home-view .topbar { min-height: 176px; padding-left: 17px; padding-right: 17px; }
  .is-home-view .topbar__actions { right: 17px; }
  .is-home-view .topbar__brand { gap: 10px; }
  .is-home-view .topbar__logoLink { width: 86px; padding: 0 0 5px; font-size: 8px; }
  .is-home-view .topbar__logo { width: 70px; height: 70px; }
  .is-home-view .topbar__title { font-size: clamp(42px, 13vw, 54px); }
  .is-home-view .topbar__subtitle { font-size: 14px; }
  .is-home-view .iconbtn--share { padding: 0 9px; }
  .is-home-view .cta { align-items: stretch; }
  .is-home-view .cta__btn { align-self: stretch; text-align: center; }
  .is-home-view .grid .cardbtn--cycling { padding-left: 19px; padding-right: 42%; }
}
.home-assistant-quick {
  width: min(680px, 100%);
  margin: 7px auto 0;
}

.home-gps-notice {
  width: min(680px, 100%);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px auto 0;
  padding: 8px 10px;
  border: 1px solid #e4a400;
  border-radius: 14px;
  background: rgba(255, 249, 218, .94);
  color: #684500;
  box-shadow: 0 8px 20px rgba(93, 69, 0, .12);
}
.home-gps-notice[hidden] { display: none; }
.home-gps-notice > span { font-size: 23px; line-height: 1; }
.home-gps-notice p { flex: 1; min-width: 0; margin: 0; line-height: 1.12; }
.home-gps-notice strong, .home-gps-notice small { display: block; }
.home-gps-notice strong { font-size: 13px; }
.home-gps-notice small { margin-top: 2px; font-size: 11px; font-weight: 650; }
.home-gps-notice .btn { flex: 0 0 auto; min-height: 34px; padding: 7px 10px; font-size: 12px; }

@media (max-width: 430px) {
  .home-gps-notice { align-items: flex-start; gap: 7px; padding: 7px 8px; }
  .home-gps-notice > span { font-size: 20px; }
  .home-gps-notice small { font-size: 10px; }
  .home-gps-notice .btn { min-height: 32px; padding: 6px 8px; font-size: 11px; }
}

.home-assistant-quick .home-shortcut { width: 100%; }
