:root {
  --ui-primary: #0f4c81;
  --ui-accent: #0d6efd;
  --ui-bg: #edf2f8;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f6f9fd;
  --ui-text: #0f172a;
  --ui-text-muted: #475569;
  --ui-border: rgba(15, 23, 42, 0.12);
  --ui-focus: rgba(13, 110, 253, 0.28);
  --ui-radius-card: 1rem;
  --ui-radius-pill: 999px;
  --ui-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
  --ui-shadow-md: 0 18px 42px rgba(15, 23, 42, 0.12);

  --bs-primary: var(--ui-primary);
  --bs-primary-rgb: 15, 76, 129;
  --bs-link-color: var(--ui-primary);
  --bs-link-hover-color: #0b3c66;

  --staff-bg-1: #0b0f19;
  --staff-bg-2: #121826;
  --staff-surface: rgba(255, 255, 255, 0.94);
  --staff-surface-soft: rgba(247, 250, 253, 0.96);
  --staff-border-soft: rgba(15, 23, 42, 0.08);
  --staff-heading: #091223;
  --staff-text-soft: #5b6474;
  --staff-shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.08);
  --staff-shadow-md: 0 14px 34px rgba(15, 23, 42, 0.12);
  --staff-radius-lg: 20px;
  --staff-radius-md: 16px;
  --staff-font-family: "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --staff-fs-body: 1rem;
  --staff-fs-label: 0.93rem;
  --staff-fs-th: 0.88rem;
  --staff-fs-td: 0.94rem;
  --staff-fs-kicker: 0.78rem;
  --staff-lh-body: 1.45;
}

body {
  color: var(--ui-text);
}

body.ui-public.bg-body {
  background: radial-gradient(circle at top, #e6f1fc 0, #f6f8fc 38%, #ffffff 100%);
}

body.ui-public,
body.ui-public.bg-body,
body.ui-public main.landing-shell,
body.ui-public .public-search-wrap {
  background-color: #f6f8fc !important;
  color: #0f172a;
}

body.ui-backoffice.bg-body {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 26%),
    linear-gradient(180deg, #f4f7fb 0%, #eef2f8 100%);
}

body.ui-backoffice {
  font-family: var(--staff-font-family);
  font-size: var(--staff-fs-body);
  line-height: var(--staff-lh-body);
}

main h1,
main h2,
main h3,
main h4 {
  color: var(--ui-text);
  letter-spacing: 0.01em;
}

main h1,
main h2 {
  font-weight: 700;
}

main .text-muted,
main small.text-muted {
  color: var(--ui-text-muted) !important;
}

/* Buttons */
.btn.btn-primary,
.btn-primary,
.auth-btn-primary,
.reset-btn-main,
.myb-btn-main {
  background: linear-gradient(135deg, var(--ui-accent), #1d56dd);
  border-color: #1d56dd;
  color: #fff;
  border-radius: 0.78rem;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.22);
}

.btn.btn-primary:hover,
.btn-primary:hover,
.auth-btn-primary:hover,
.reset-btn-main:hover,
.myb-btn-main:hover {
  background: linear-gradient(135deg, #0b5ed7, #1949c2);
  border-color: #1949c2;
  color: #fff;
  box-shadow: 0 14px 24px rgba(13, 110, 253, 0.28);
}

.btn.btn-outline-primary,
.btn-outline-primary {
  color: var(--ui-primary);
  border-color: rgba(15, 76, 129, 0.45);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 0.78rem;
}

.btn.btn-outline-primary:hover,
.btn-outline-primary:hover {
  color: #fff;
  background: var(--ui-primary);
  border-color: var(--ui-primary);
}

.btn.btn-cs-light,
.btn-cs-light {
  background: linear-gradient(135deg, #3aa0ff, #2c7be5);
  border-color: #2c7be5;
  color: #fff;
  border-radius: 0.78rem;
  box-shadow: 0 10px 20px rgba(58, 160, 255, 0.24);
}

.btn.btn-cs-light:hover,
.btn-cs-light:hover {
  background: linear-gradient(135deg, #2493ff, #2269c7);
  border-color: #2269c7;
  color: #fff;
  box-shadow: 0 14px 24px rgba(44, 123, 229, 0.28);
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible,
.ui-public .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem var(--ui-focus) !important;
}

/* Inputs */
.form-control,
.form-select {
  border-radius: 0.78rem;
  border-color: rgba(15, 23, 42, 0.16);
  color: var(--ui-text);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(13, 110, 253, 0.52);
  box-shadow: 0 0 0 0.2rem var(--ui-focus);
}

.password-field {
  position: relative;
}

.password-field .form-control,
.password-field .form-select,
.password-field .auth-input,
.password-field .reset-input,
.password-field .pam-input {
  padding-right: 5.1rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.42rem;
  transform: translateY(-50%);
  z-index: 3;
  border: 0;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.06);
  color: var(--pam-text, var(--ui-text));
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.36rem 0.5rem;
}

.password-toggle:hover {
  background: rgba(15, 23, 42, 0.1);
}

.form-label {
  font-size: var(--staff-fs-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1f2937;
}

/* Cards and containers */
.card,
.glass-card,
.admin-card,
.booking-card,
.navetta-card {
  border-radius: var(--staff-radius-lg);
  border: 1px solid var(--staff-border-soft);
}

.card,
.admin-card,
.booking-card,
.navetta-card {
  background: linear-gradient(180deg, var(--staff-surface), var(--staff-surface-soft));
  box-shadow: var(--staff-shadow-sm);
}

.glass-card {
  background: linear-gradient(180deg, var(--staff-surface), var(--staff-surface-soft));
  box-shadow: var(--staff-shadow-md);
}

.ui-backoffice .card-header {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
}

.ui-backoffice .card-title,
.ui-backoffice .h5,
.ui-backoffice .h6 {
  color: var(--staff-heading);
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.ui-backoffice h1 {
  font-size: clamp(1.45rem, 1.3vw + 0.95rem, 2rem);
  margin-bottom: 0.45rem;
}

.ui-backoffice h2 {
  font-size: clamp(1.15rem, 0.85vw + 0.8rem, 1.45rem);
  margin-bottom: 0.4rem;
}

.ui-backoffice .btn,
.ui-backoffice .btn-sm,
.ui-backoffice .btn-lg {
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--staff-fs-td);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.ui-backoffice .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.ui-backoffice .form-control,
.ui-backoffice .form-select {
  border-radius: 14px;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-size: var(--staff-fs-td);
}

.ui-backoffice .form-control:focus,
.ui-backoffice .form-select:focus {
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.staff-page-shell {
  width: 100%;
}

.staff-page-kicker {
  text-transform: uppercase;
  font-size: var(--staff-fs-kicker);
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #64748b;
}

.staff-table-shell {
  width: min(100%, 1900px);
  margin-inline: auto;
  max-width: 100%;
}

@media (min-width: 992px) {
  .staff-table-shell {
    width: clamp(86%, 92vw, 1900px);
  }
}

.staff-table-shell.staff-table-shell--wide {
  width: min(100%, 2200px);
}

@media (min-width: 992px) {
  .staff-table-shell.staff-table-shell--wide {
    width: clamp(94%, 98vw, 2200px);
  }
}

/* Alerts */
.alert {
  border-radius: 0.88rem;
  border-width: 1px;
}

.alert-primary {
  color: #0f3f69;
  border-color: rgba(15, 76, 129, 0.26);
  background: rgba(229, 240, 252, 0.75);
}

.alert-info {
  color: #1e3a5f;
  border-color: rgba(56, 139, 253, 0.22);
  background: rgba(232, 243, 255, 0.78);
}

/* Badges */
.badge {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge.bg-primary,
.badge.text-bg-primary {
  background: var(--ui-primary) !important;
  color: #fff !important;
}

.badge.bg-primary-subtle,
.badge.text-bg-primary-subtle,
.badge.bg-primary-subtle.text-primary-emphasis {
  background: rgba(15, 76, 129, 0.14) !important;
  color: #0f3f69 !important;
}

.badge.bg-secondary-subtle,
.badge.text-bg-secondary,
.badge.text-bg-secondary-subtle {
  background: rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

/* Tables */
.table {
  --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
  border-bottom-color: rgba(15, 23, 42, 0.11);
}

.table thead th,
.table-light th,
.table-light td {
  background: #f2f6fb !important;
  color: #1f2937;
  border-bottom: 1px solid rgba(15, 23, 42, 0.13);
  font-weight: 650;
  font-size: var(--staff-fs-th);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ui-backoffice .table thead th,
.ui-backoffice .table-light th,
.ui-backoffice .table-light td {
  background: #edf2fa !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(15, 76, 129, 0.03);
}

.table tbody tr:hover > * {
  background-color: rgba(13, 110, 253, 0.05);
}

.table-modern thead th {
  background: #f2f6fb;
  font-size: var(--staff-fs-th);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ui-backoffice .table td,
.ui-backoffice .table th {
  font-size: var(--staff-fs-td);
}

.staff-table-sticky {
  position: relative;
}

.staff-table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.08);
}

/* Shared checkout blocks (public pages) */
.checkout-page {
  position: relative;
}

.checkout-shell {
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.checkout-heading {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}

.checkout-total {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 0.9rem;
  padding: 0.55rem 0.8rem;
  min-width: 150px;
}

.checkout-total__label {
  opacity: 0.78;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.checkout-total__amount {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.checkout-alert {
  border-radius: 0.9rem;
}

.checkout-methods-title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.checkout-method-block {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  overflow: visible;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0.1rem 0 1rem;
}

.checkout-actions .btn {
  min-height: 40px;
  border-radius: 999px;
  padding-inline: 1rem;
  font-weight: 600;
}

#paypal-button-container,
#googlepay-container,
#applepay-container,
#card-fallback-container {
  max-width: 360px;
  margin: 0 auto;
  border-radius: 14px;
  padding-bottom: 2px;
}

#card-fields-container > .w-100 {
  max-width: 360px !important;
  margin-left: auto;
  margin-right: auto;
}

#card-number,
#card-expiry,
#card-cvv {
  border-radius: 12px;
  min-height: 42px;
}

#card-submit {
  border-radius: 12px;
  min-height: 46px;
}

#applepay-container apple-pay-button {
  --apple-pay-button-border-radius: 14px;
  width: 100%;
  min-height: 46px;
  display: block;
}

.checkout-wallet-title {
  margin-top: 1.25rem;
}

.checkout-wallet-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

#wallet-status {
  border-radius: 0.9rem;
}

#result-message {
  min-height: 1.4rem;
}

/* Dashboard switch */
.apple-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.apple-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.apple-switch .track {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #c7ccd1;
  transition: background 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.apple-switch .track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.apple-switch input[type="checkbox"]:checked + .track {
  background: var(--ui-accent);
}

.apple-switch input[type="checkbox"]:checked + .track::after {
  transform: translateX(18px);
}

/* Settings analytics */
.trend-up {
  color: #198754;
}

.trend-down {
  color: #dc3545;
}

.trend-flat {
  color: #6c757d;
}

.analytics-kpi-highlight {
  border: 1px solid rgba(13, 110, 253, 0.25);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.badge-fee-linear {
  background: #d1e7dd;
  color: #0f5132;
}

.badge-fee-flat {
  background: #fff3cd;
  color: #664d03;
}

/* Corse list helpers */
.corsa-direction-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.corsa-direction-row:last-child {
  margin-bottom: 0;
}

.corsa-direction-row.is-disabled {
  color: #6c757d;
}

.corsa-direction-row.is-disabled .corsa-code-value,
.corsa-direction-row.is-disabled .corsa-time-value {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.direction-pill {
  min-width: 1.3rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.35rem;
  color: #fff;
}

.direction-andata {
  background: var(--ui-accent);
}

.direction-ritorno {
  background: var(--ui-primary);
}

.corsa-code-value {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.corsa-time-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
}

.corsa-dir-state {
  font-size: 0.73rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Booking ops table */
.ops-log-table {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
}

.ops-log-table th,
.ops-log-table td {
  vertical-align: top;
  word-break: break-word;
  white-space: normal;
  line-height: 1.3;
  font-size: 0.86rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.ops-log-table code {
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.ops-scroll {
  max-height: 460px;
  overflow-y: auto;
  overflow-x: auto;
}

.ops-cell-mini {
  max-width: 340px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-table-note {
  max-width: 380px;
  white-space: normal;
}

.ops-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

/* Prenotazioni table helpers */
.prenotazioni-table {
  min-width: 1500px;
  font-size: 0.84rem;
}

.prenotazioni-table th,
.prenotazioni-table td {
  padding: 0.48rem 0.55rem;
  vertical-align: top;
}

.prenotazioni-table .badge {
  font-size: 0.72rem;
}

.prenotazioni-table .form-control-sm {
  min-width: 124px;
}

tr.is-inline-editing {
  background: rgba(13, 110, 253, 0.06);
}

/* Tariffe page helpers */
.tariffe-shell {
  display: grid;
  gap: 1rem;
}

.tariffe-card {
  border: 1px solid var(--ui-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.tariffe-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #56627a;
  font-weight: 700;
}

.tariffe-pill {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  border: 1px solid #dbe5ff;
  background: #edf3ff;
  color: #2b4f8a;
  font-weight: 600;
}

.tariffe-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4f5d78;
  white-space: nowrap;
  background: #eef4ff;
}

.tariffe-table td,
.tariffe-table th {
  vertical-align: middle;
}

.tariffe-date-note {
  font-size: 0.82rem;
  color: #607089;
}

@media (max-width: 991.98px) {
  .table thead th {
    font-size: 0.78rem;
  }
}

@media (max-width: 575.98px) {
  .checkout-total {
    width: 100%;
    text-align: left !important;
  }
}

/* Landing refinements (migrated from template inline CSS) */
.landing-shell .modern-postline-wrap {
  margin-top: 14px;
}

.landing-shell .modern-postline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landing-shell .modern-postline::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  opacity: 0.9;
}

.landing-shell .modern-cta-tight {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  background: #0b0b0c;
}

.landing-shell .modern-cta-tight .container {
  padding-bottom: 0 !important;
}

.landing-shell {
  background: #0b0b0c;
}

.landing-shell .modern-cta-tight .modern-cta-inner {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

/* Partners page refinements */
.partners-page {
  padding-top: 36px;
  padding-bottom: 20px;
}

.partners-hero h1 {
  letter-spacing: -0.02em;
}

.partner-preview {
  border-radius: 26px !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  position: relative;
}

.partner-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(700px 260px at 15% 10%, rgba(30, 94, 255, 0.1), transparent 60%);
  opacity: 0.65;
}

.partner-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
  border-color: rgba(0, 0, 0, 0.12);
}

.partner-cover {
  height: 33px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.partner-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.partner-preview .badge {
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 0.38rem 0.6rem;
}

.partner-1 {
  background:
    radial-gradient(900px 380px at 20% 20%, rgba(30, 94, 255, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
}

.partner-2 {
  background:
    radial-gradient(900px 380px at 20% 20%, rgba(6, 193, 103, 0.2), transparent 55%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
}

.partner-3 {
  background:
    radial-gradient(900px 380px at 20% 20%, rgba(255, 170, 0, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
}

.partner-4 {
  background:
    radial-gradient(900px 380px at 20% 20%, rgba(140, 120, 255, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
}

.partner-5 {
  background:
    radial-gradient(900px 380px at 20% 20%, rgba(0, 160, 255, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
}

.partners-hero .btn.btn-primary {
  border-radius: 999px;
  font-weight: 750;
  padding: 0.62rem 1.05rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.partners-hero .btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
}

/* Riepilogo page refinements */
.riep-badge-ritorno {
  border: 1px solid rgba(13, 110, 253, 0.26);
  background: linear-gradient(135deg, rgba(220, 231, 255, 0.95), rgba(187, 212, 255, 0.95));
  color: #0d47a1;
}

.checkout-provider-pill {
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.06), rgba(13, 110, 253, 0.02));
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.checkout-provider-label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c6b80;
}

.checkout-page-wrap {
  padding-bottom: 92px;
}

.mobile-summary-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -14px 30px rgba(12, 29, 63, 0.14);
  border-radius: 18px 18px 0 0;
}

.mobile-summary-handle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.mobile-summary-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 16px;
}

.mobile-summary-sheet.open .mobile-summary-body {
  max-height: min(46vh, 420px);
  overflow-y: auto;
  padding-bottom: 16px;
}

@media (max-width: 767.98px) {
  .checkout-page-wrap {
    padding-bottom: 92px;
  }
}

/* Voli/Treni page refinements */
.voli-eventi-page .eventi-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.voli-eventi-page .eventi-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  background: #f8f9fb;
  border-radius: 12px;
  padding: 10px 14px;
}

.voli-eventi-page .eventi-summary span {
  white-space: nowrap;
  font-weight: 600;
}

.voli-eventi-page .eventi-day-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.voli-eventi-page .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.voli-eventi-page .calendar-cell {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 8px;
  min-height: 110px;
  background: #fff;
  cursor: pointer;
}

.voli-eventi-page .calendar-cell--muted {
  background: #f7f7f7;
  color: #9aa0a6;
}

.voli-eventi-page .calendar-day {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.voli-eventi-page .calendar-count {
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 12px;
  background: #f0f4ff;
  font-weight: 600;
  display: inline-block;
}

.voli-eventi-page .eventi-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.voli-eventi-page .eventi-day-meta {
  font-size: 12px;
  color: #6c757d;
}

.voli-eventi-page .eventi-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.voli-eventi-page .eventi-table th,
.voli-eventi-page .eventi-table td {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px 6px;
  font-size: 12px;
  vertical-align: top;
}

.voli-eventi-page .eventi-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
}

.voli-eventi-page .eventi-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #eef2ff;
  color: #2b50c7;
  font-weight: 600;
}

.voli-eventi-page .eventi-pill-arrivo {
  background: #fdecec;
  color: #b42318;
}

.voli-eventi-page .eventi-pill-partenza {
  background: #e9f8ef;
  color: #067647;
}

.voli-eventi-page .eventi-raw {
  background: #f7f7f9;
  border-radius: 8px;
  padding: 8px;
  max-height: 220px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
}

.voli-eventi-page .load-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.voli-eventi-page .load-switch input[type="radio"] {
  display: none;
}

.voli-eventi-page .load-switch label {
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  background: #fff;
}

.voli-eventi-page .load-switch input[type="radio"]:checked + label {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.voli-eventi-page .mode-toggle-btn {
  border-radius: 999px !important;
  font-weight: 600;
}

.voli-eventi-page .capo-badge {
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef2ff;
  color: #1d4ed8;
}

.voli-eventi-page .fermata-badge {
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #ecfdf3;
  color: #027a48;
}

@media (min-width: 992px) {
  .partners-page {
    padding-top: 46px;
  }
}

@media (max-width: 575.98px) {
  .landing-shell .modern-postline-wrap {
    margin-top: 16px;
  }

  .landing-shell .modern-cta-tight {
    padding-top: 2.6rem;
  }
}
