/* =========================================================================
   Travel360 — tema grafico (CTI Cisalpina Tours International)
   Da includere DOPO bootstrap.min.css in _Layout.cshtml e nella Login.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@500&family=Sora:wght@600;700;800&display=swap");

/* ---------- 1. Token ---------------------------------------------------- */
:root {
  /* Brand */
  --t360-navy-900: #0A1F3C;
  --t360-navy-700: #173A66;
  --t360-navy-600: #2B4A75;
  --t360-primary: #0B63CE;
  --t360-primary-hover: #084C9E;
  --t360-primary-50: #EAF2FD;
  --t360-sky: #3FA9F5;
  --t360-sky-300: #7CC4FA;
  --t360-accent: #F2A900;

  /* Neutri */
  --t360-ink: #1A2433;
  --t360-ink-2: #33445C;
  --t360-muted: #5B6B80;
  --t360-muted-on-dark: #9FB3CE;
  --t360-soft-on-dark: #C9D6E8;
  --t360-line: #DDE3EB;
  --t360-line-strong: #C9D3E0;
  --t360-line-soft: #E8ECF1;
  --t360-bg: #F4F6F9;
  --t360-surface: #FFFFFF;
  --t360-surface-2: #FAFBFC;

  /* Stati trasferta (testo / sfondo badge) */
  --t360-st-documentata: #0E6E6E;        --t360-st-documentata-bg: #DFF3F2;
  --t360-st-conclusa: #1E7D4F;           --t360-st-conclusa-bg: #E3F3E8;
  --t360-st-conferma-totale: #0F5132;    --t360-st-conferma-totale-bg: #D1EBDD;
  --t360-st-conferma-parziale: #4B4FC4;  --t360-st-conferma-parziale-bg: #ECECFB;
  --t360-st-presa-in-carico: #0B63CE;    --t360-st-presa-in-carico-bg: #E6F0FC;
  --t360-st-da-prendere: #44546A;        --t360-st-da-prendere-bg: #E8ECF1;
  --t360-st-preventivo: #8A5A00;         --t360-st-preventivo-bg: #FDF1D6;
  --t360-st-annullata: #B42318;          --t360-st-annullata-bg: #FDECEA;
  --t360-st-nac: #7A3E9D;                --t360-st-nac-bg: #F3E8F8;

  /* Tipografia */
  --t360-font-display: "Sora", system-ui, sans-serif;
  --t360-font-body: "DM Sans", system-ui, sans-serif;
  --t360-font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Forme */
  --t360-radius-sm: 8px;
  --t360-radius-md: 12px;
  --t360-radius-lg: 16px;
  --t360-shadow-card: 0 1px 2px rgba(10, 31, 60, .06), 0 10px 28px rgba(10, 31, 60, .10);
  --t360-focus-ring: 0 0 0 4px rgba(11, 99, 206, .14);

  /* ---------- 2. Override Bootstrap 5.3 ---------- */
  --bs-body-font-family: var(--t360-font-body);
  --bs-body-color: var(--t360-ink);
  --bs-body-bg: var(--t360-bg);
  --bs-primary: var(--t360-primary);
  --bs-primary-rgb: 11, 99, 206;
  --bs-link-color: var(--t360-primary);
  --bs-link-color-rgb: 11, 99, 206;
  --bs-link-hover-color: var(--t360-primary-hover);
  --bs-link-hover-color-rgb: 8, 76, 158;
  --bs-border-color: var(--t360-line);
  --bs-border-radius: var(--t360-radius-md);
  --bs-border-radius-sm: var(--t360-radius-sm);
  --bs-border-radius-lg: var(--t360-radius-lg);
  --bs-secondary-color: var(--t360-muted);
}

body { font-family: var(--t360-font-body); color: var(--t360-ink); background: var(--t360-bg); }
h1, h2, h3, h4, .t360-display { font-family: var(--t360-font-display); letter-spacing: -.01em; }
.t360-mono { font-family: var(--t360-font-mono); }

.btn { border-radius: var(--t360-radius-md); font-weight: 600; min-height: 44px; }
.btn-primary {
  --bs-btn-bg: var(--t360-primary); --bs-btn-border-color: var(--t360-primary);
  --bs-btn-hover-bg: var(--t360-primary-hover); --bs-btn-hover-border-color: var(--t360-primary-hover);
  --bs-btn-active-bg: var(--t360-primary-hover); --bs-btn-active-border-color: var(--t360-primary-hover);
  font-weight: 700;
}
.btn-dark { --bs-btn-bg: var(--t360-navy-900); --bs-btn-border-color: var(--t360-navy-900); }
.btn-accent { background: var(--t360-accent); color: var(--t360-navy-900); font-weight: 700; border: 0; }
.btn-accent:hover { background: #D99700; color: var(--t360-navy-900); }
.btn-outline-t360 { background: var(--t360-surface); border: 1px solid var(--t360-line-strong); color: var(--t360-navy-900); }
.btn-outline-t360:hover { background: var(--t360-bg); color: var(--t360-navy-900); }

.form-control:focus, .form-check-input:focus { border-color: var(--t360-primary); box-shadow: var(--t360-focus-ring); }
.form-check-input:checked { background-color: var(--t360-primary); border-color: var(--t360-primary); }

/* Badge di stato: <span class="t360-badge t360-badge--conclusa">Conclusa</span> */
.t360-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2; }
.t360-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.t360-badge--documentata      { color: var(--t360-st-documentata);       background: var(--t360-st-documentata-bg); }
.t360-badge--conclusa         { color: var(--t360-st-conclusa);          background: var(--t360-st-conclusa-bg); }
.t360-badge--conferma-totale  { color: var(--t360-st-conferma-totale);   background: var(--t360-st-conferma-totale-bg); }
.t360-badge--conferma-parziale{ color: var(--t360-st-conferma-parziale); background: var(--t360-st-conferma-parziale-bg); }
.t360-badge--presa-in-carico  { color: var(--t360-st-presa-in-carico);   background: var(--t360-st-presa-in-carico-bg); }
.t360-badge--da-prendere      { color: var(--t360-st-da-prendere);       background: var(--t360-st-da-prendere-bg); }
.t360-badge--preventivo       { color: var(--t360-st-preventivo);        background: var(--t360-st-preventivo-bg); }
.t360-badge--annullata        { color: var(--t360-st-annullata);         background: var(--t360-st-annullata-bg); }
.t360-badge--nac              { color: var(--t360-st-nac);               background: var(--t360-st-nac-bg); }

/* Card generica */
.t360-card { background: var(--t360-surface); border: 1px solid var(--t360-line); border-radius: var(--t360-radius-lg); }

/* Wordmark CTI | Travel360 */
.t360-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.t360-brand__cti { font-family: var(--t360-font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.t360-brand__bar { width: 3px; height: 22px; border-radius: 2px; background: var(--t360-sky); }
.t360-brand__app { font-family: var(--t360-font-display); font-weight: 600; font-size: 18px; }

/* =========================================================================
   3. Login
   ========================================================================= */
.t360-login { min-height: 100vh; display: flex; background: var(--t360-bg); }

/* Pannello brand */
.t360-login__hero {
  position: relative; overflow: hidden; flex: 0 0 53%;
  display: flex; flex-direction: column;
  padding: 56px 72px; background: var(--t360-navy-900); color: #fff;
}
.t360-login__routes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.t360-login__hero > *:not(.t360-login__routes) { position: relative; }

.t360-login__logo { display: flex; align-items: center; gap: 12px; }
.t360-login__logo .t360-brand__cti { font-size: 30px; }
.t360-login__logo .t360-brand__bar { width: 4px; height: 30px; }
.t360-login__company { display: flex; flex-direction: column; line-height: 1.15; }
.t360-login__company strong { font-family: var(--t360-font-display); font-size: 13px; letter-spacing: .05em; }
.t360-login__company strong span { color: var(--t360-sky); }
.t360-login__company small { font-size: 12px; color: var(--t360-muted-on-dark); }

.t360-login__pitch { margin: auto 0; display: flex; flex-direction: column; gap: 18px; }
.t360-login__eyebrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: rgba(63, 169, 245, .16);
  color: var(--t360-sky-300); font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.t360-login__title { margin: 0; font-size: clamp(36px, 3.6vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.t360-login__lead { margin: 0; max-width: 480px; font-size: 18px; line-height: 1.55; color: var(--t360-soft-on-dark); }

.t360-login__stats { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; }
.t360-login__stats li { display: flex; flex-direction: column; }
.t360-login__stats strong { font-family: var(--t360-font-display); font-size: 28px; font-weight: 700; }
.t360-login__stats span { font-size: 13px; color: var(--t360-muted-on-dark); }

/* Pannello modulo */
.t360-login__panel { flex: 1 1 auto; display: flex; flex-direction: column; padding: 56px 88px; }
.t360-login__lang { display: flex; justify-content: flex-end; gap: 4px; }
.t360-login__lang a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: var(--t360-radius-sm);
  font-size: 13px; font-weight: 700; color: var(--t360-muted); text-decoration: none;
}
.t360-login__lang a[aria-current="true"] { background: var(--t360-navy-900); color: #fff; }

.t360-login__form { width: 100%; max-width: 440px; margin: auto; display: flex; flex-direction: column; gap: 20px; }
.t360-login__mobile-brand { display: none; color: var(--t360-navy-900); }
.t360-login__heading h2 { margin: 0 0 8px; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.t360-login__heading p { margin: 0; font-size: 15px; color: var(--t360-muted); }

.t360-field { display: flex; flex-direction: column; gap: 8px; }
.t360-field__label { font-size: 14px; font-weight: 700; color: var(--t360-ink); }
.t360-field__control {
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 6px 0 16px;
  background: var(--t360-surface); border: 1px solid var(--t360-line-strong); border-radius: var(--t360-radius-md);
  transition: border-color .15s, box-shadow .15s;
}
.t360-field__control:focus-within { border-color: var(--t360-primary); box-shadow: var(--t360-focus-ring); }
.t360-field__control.is-invalid { border-color: var(--t360-st-annullata); }
.t360-field__icon { flex: 0 0 auto; color: var(--t360-muted); }
.t360-field__input {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--t360-ink);
}
.t360-field__input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--t360-surface) inset; }
.t360-field__toggle {
  flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: var(--t360-radius-sm);
  background: transparent; color: var(--t360-ink-2); display: inline-flex; align-items: center; justify-content: center;
}
.t360-field__toggle:hover { background: var(--t360-bg); }
.t360-field__toggle:focus-visible { outline: 2px solid var(--t360-primary); outline-offset: 2px; }
.t360-field__toggle .icon-hide { display: none; }
.t360-field__toggle[aria-pressed="true"] .icon-show { display: none; }
.t360-field__toggle[aria-pressed="true"] .icon-hide { display: inline; }
.t360-field__error { font-size: 13px; font-weight: 600; color: var(--t360-st-annullata); }
.t360-field__error:empty { display: none; }

.t360-login__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.t360-login__remember { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 15px; cursor: pointer; }
.t360-login__remember .form-check-input { width: 20px; height: 20px; margin: 0; }
.t360-login__forgot { font-size: 14px; font-weight: 600; text-decoration: none; }

.t360-login__submit {
  height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 17px; box-shadow: 0 8px 20px rgba(11, 99, 206, .28);
}
.t360-login__secondary { height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }

.t360-login__alert {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--t360-radius-md);
  background: var(--t360-st-annullata-bg); color: var(--t360-st-annullata); font-size: 14px; font-weight: 600;
}
.t360-login__alert ul { margin: 0; padding: 0; list-style: none; }
.t360-login__alert.validation-summary-valid { display: none; }

.t360-login__footer { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--t360-muted); }
.t360-login__footer span { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 auto; }

/* Responsive */
@media (max-width: 1199.98px) {
  .t360-login__hero { padding: 48px; }
  .t360-login__panel { padding: 48px; }
}
@media (max-width: 991.98px) {
  .t360-login__hero { display: none; }
  .t360-login__mobile-brand { display: flex; }
  .t360-login__panel { padding: 24px 16px; }
  .t360-login__footer { flex-wrap: wrap; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .t360-field__control { transition: none; }
}

/* =========================================================================
   4. Estensioni per l'integrazione in Travel Pack
   Non presenti nel file ricevuto dal designer — stessi token/linguaggio
   visivo, per le porzioni delle tre pagine (Accesso trasferta, Verifica
   OTP, Accesso operatore) che il file originale non copriva ancora.
   ========================================================================= */

/* "PASSO N DI 2" */
.t360-login__step { font-size: 13px; font-weight: 700; color: var(--t360-primary); letter-spacing: .4px; }

/* Elenco funzionalità nel pannello brand (Accesso con numero trasferta) */
.t360-login__features { margin: 12px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; font-size: 15px; color: #E3EBF5; }
.t360-login__features li { display: flex; align-items: center; gap: 10px; }
.t360-login__feature-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--t360-navy-700); display: flex; align-items: center; justify-content: center; color: var(--t360-sky-300); flex-shrink: 0; }

/* Nota a piè del pannello brand ("Accesso protetto con OTP" / "riservato al personale") */
.t360-login__foot { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t360-muted-on-dark); }

/* Link "Cambia trasferta" (pagina Verifica OTP) */
.t360-login__back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; color: var(--t360-ink); }

/* Chip "Trasferta NNNN-AAAA" (pagina Verifica OTP) */
.t360-login__meta { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--t360-surface); border: 1px solid var(--t360-line); border-radius: var(--t360-radius-md); font-size: 14px; color: var(--t360-muted); }
.t360-login__meta strong { font-family: var(--t360-font-mono); font-weight: 500; color: var(--t360-ink); }

/* Griglia codice OTP a 6 caselle */
.t360-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.t360-otp__input {
  height: 64px; width: 100%; box-sizing: border-box; text-align: center;
  font-family: var(--t360-font-display); font-size: 26px; font-weight: 700; color: var(--t360-navy-900);
  background: var(--t360-surface); border-radius: var(--t360-radius-md); outline: none;
  border: 1px solid var(--t360-line-strong); transition: border-color .15s, box-shadow .15s;
}
.t360-otp__input.is-filled { border-color: #8A97A8; }
.t360-otp__input:focus { border: 2px solid var(--t360-primary); box-shadow: var(--t360-focus-ring); }
.t360-otp__timer { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t360-muted); }
.t360-otp__timer strong { color: var(--t360-ink); font-variant-numeric: tabular-nums; }
.t360-otp__timer.is-expired strong { color: var(--t360-st-annullata); }

/* Divisore "oppure con le credenziali" (pagina Accesso operatore) */
.t360-login__divider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--t360-muted); }
.t360-login__divider::before, .t360-login__divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--t360-line); }

/* Card di rimando incrociato ("Sei un operatore?" / "Sei un viaggiatore?") */
.t360-login__cross { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--t360-radius-md); background: var(--t360-surface); border: 1px solid var(--t360-line); }
.t360-login__cross-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--t360-bg); display: flex; align-items: center; justify-content: center; color: var(--t360-navy-900); flex-shrink: 0; }
.t360-login__cross-text { display: flex; flex-direction: column; flex-grow: 1; font-size: 14px; }
.t360-login__cross-text strong { font-weight: 700; }
.t360-login__cross-text span { color: var(--t360-muted); }
.t360-login__cross-link { font-size: 14px; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 4px; white-space: nowrap; }

/* Pulsante "Accedi con Microsoft" */
.t360-login__ms-btn { height: 56px; border-radius: var(--t360-radius-md); border: 1px solid var(--t360-line-strong); background: var(--t360-surface); color: var(--t360-ink); display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; font-weight: 700; text-decoration: none; }
.t360-login__ms-btn:hover { background: var(--t360-bg); color: var(--t360-ink); }

/* Variante verde del pulsante primario (Verifica e accedi) — non passa da .btn-primary, quindi
   niente colore testo bianco "gratis" da Bootstrap: va impostato esplicitamente qui. */
.t360-login__submit--success { background: var(--t360-st-conclusa); color: #fff; box-shadow: 0 8px 20px rgba(30,125,79,.25); }
.t360-login__submit--success:hover { background: #17663F; color: #fff; }

/* Selettore lingua "a bottone" (dropdown Bootstrap), usato solo nelle pagine di autenticazione */
.t360-lang-toggle {
  height: 40px; padding: 0 14px; border: 1px solid var(--t360-line-strong); background: var(--t360-surface);
  border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--t360-ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.t360-lang-toggle:hover, .t360-lang-toggle:focus { color: var(--t360-ink); background: var(--t360-surface); }
.t360-lang-toggle::after { display: none; }
.t360-lang-menu { padding: 6px; min-width: 200px; border-radius: 12px; border: 1px solid var(--t360-line); box-shadow: 0 12px 32px rgba(10,31,60,.16); }
.t360-lang-menu .dropdown-item { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 8px; font-size: 15px; border: 0; background: transparent; width: 100%; text-align: left; }
.t360-lang-menu .dropdown-item .t360-lang-code { width: 28px; font-size: 12px; font-weight: 700; color: var(--t360-muted); }
.t360-lang-menu .dropdown-item.active,
.t360-lang-menu .dropdown-item:active { font-weight: 700; background: var(--t360-primary-50) !important; color: var(--t360-navy-900) !important; }
.t360-lang-menu .dropdown-item.active .t360-lang-code { color: var(--t360-primary); }

/* Badge eyebrow ambra (Accesso operatore) — variante del badge blu già presente inline */
.t360-login__eyebrow--amber { background: rgba(242, 169, 0, .18); color: #F7C548; }

/* Mobile: logo compatto mostrato al posto del pannello brand (nascosto sotto i 992px) */
.t360-login__mobile-brand { align-items: center; gap: 20px; margin-bottom: 24px; }

/* =========================================================================
   5. Area operatore (mockup 4–7: header, Ricerca, Risultati, Dettaglio,
      modali). Stessi token delle sezioni sopra.
   ========================================================================= */

/* Bootstrap: pulsanti piccoli restano compatti nelle tabelle delle pagine admin */
.btn-sm { min-height: 36px; }
.btn-outline-primary {
  --bs-btn-color: var(--t360-primary); --bs-btn-border-color: var(--t360-primary);
  --bs-btn-hover-bg: var(--t360-primary); --bs-btn-hover-border-color: var(--t360-primary);
  --bs-btn-active-bg: var(--t360-primary-hover); --bs-btn-active-border-color: var(--t360-primary-hover);
}
.t360-page { min-height: 100vh; display: flex; flex-direction: column; }
.t360-page > main { flex: 1 0 auto; }
.t360-page-pad { padding-left: 48px; padding-right: 48px; }

/* ---------- Header applicazione ---------- */
.t360-appbar {
  min-height: 72px; background: var(--t360-navy-900); color: #fff;
  display: flex; align-items: center; gap: 36px; padding: 0 48px; flex-wrap: wrap;
}
.t360-appbar .t360-brand, .t360-appbar .t360-brand:hover { color: #fff; }
.t360-appbar__nav { display: flex; gap: 4px; flex-grow: 1; font-size: 15px; font-weight: 500; align-items: center; }
.t360-appbar__link {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  color: var(--t360-soft-on-dark); text-decoration: none; background: transparent; border: 0; font: inherit;
}
.t360-appbar__link:hover, .t360-appbar__link:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.t360-appbar__link.is-active { background: rgba(255,255,255,.14); color: #fff; }
.t360-appbar__link[aria-expanded="true"] { background: var(--t360-navy-700); color: #fff; }
.t360-appbar__link.dropdown-toggle::after { display: none; }
.t360-caret { transition: transform .15s; }
[aria-expanded="true"] > .t360-caret { transform: rotate(180deg); }
.t360-appbar__tools { display: flex; align-items: center; gap: 24px; }
.t360-appbar__lang {
  height: 40px; padding: 0 12px; border: 1px solid var(--t360-navy-600); background: transparent; border-radius: 10px;
  color: #fff; font: inherit; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
}
.t360-appbar__lang:hover, .t360-appbar__lang:focus-visible { background: rgba(255,255,255,.08); color: #fff; }
.t360-appbar__lang::after { display: none; }
.t360-appbar__user { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #fff; font: inherit; padding: 0; }
.t360-appbar__user::after { display: none; }
.t360-appbar__user .t360-caret { color: var(--t360-muted-on-dark); }
.t360-appbar__user-name { font-size: 14px; font-weight: 600; }
.t360-appbar__guest-key { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--t360-soft-on-dark); }
.t360-appbar__guest-key strong { font-family: var(--t360-font-mono); font-weight: 500; color: #fff; }
.t360-appbar__exit {
  height: 40px; padding: 0 14px; border: 1px solid var(--t360-navy-600); border-radius: 10px; background: transparent;
  color: #fff; font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.t360-appbar__exit:hover { background: rgba(255,255,255,.08); }
.t360-appbar__toggler { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--t360-navy-600); border-radius: 10px; background: transparent; color: #fff; align-items: center; justify-content: center; }

.t360-avatar {
  width: 40px; height: 40px; border-radius: 999px; background: var(--t360-navy-700); border: 2px solid var(--t360-sky);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.t360-avatar--lg { width: 56px; height: 56px; border: 0; background: var(--t360-navy-900); font-family: var(--t360-font-display); font-size: 19px; }
.t360-avatar--sm { width: 36px; height: 36px; border: 0; font-size: 13px; background: var(--t360-navy-900); }
.t360-avatar--soft { background: var(--t360-primary-50); color: var(--t360-primary); }

/* Menu a tendina (Amministrazione, utente, lingua) */
.t360-menu { padding: 8px; min-width: 268px; border-radius: 16px; border: 1px solid var(--t360-line); box-shadow: 0 16px 40px rgba(10,31,60,.18); margin-top: 12px !important; }
.t360-menu__heading { padding: 10px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: .6px; color: var(--t360-muted); text-transform: uppercase; }
.t360-menu .dropdown-item {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--t360-ink); border: 0; background: transparent; width: 100%; text-align: left;
}
.t360-menu .dropdown-item svg { color: var(--t360-primary); flex-shrink: 0; }
.t360-menu .dropdown-item:hover, .t360-menu .dropdown-item:focus { background: var(--t360-bg); color: var(--t360-ink); }
.t360-menu .dropdown-item.active, .t360-menu .dropdown-item:active { background: var(--t360-primary-50) !important; color: var(--t360-navy-900) !important; font-weight: 600; }
.t360-menu .dropdown-divider { margin: 6px 4px; border-color: var(--t360-line-soft); }
.t360-menu .t360-lang-code { width: 28px; font-size: 12px; font-weight: 700; color: var(--t360-muted); }
.t360-menu .dropdown-item.active .t360-lang-code { color: var(--t360-primary); }
.t360-menu__user { padding: 10px 12px; display: flex; flex-direction: column; font-size: 14px; }
.t360-menu__user span { color: var(--t360-muted); font-size: 13px; }

/* Messaggi TempData sotto l'header */
.t360-flash { padding-top: 16px; }
.t360-flash .alert { border-radius: var(--t360-radius-md); margin: 0 0 8px; }

/* ---------- Footer ---------- */
.t360-footer {
  margin-top: auto; background: var(--t360-surface); border-top: 1px solid var(--t360-line); padding: 22px 48px;
  display: flex; align-items: center; gap: 28px; font-size: 13px; color: var(--t360-muted); flex-wrap: wrap;
}
.t360-footer .t360-brand { color: var(--t360-navy-900); gap: 8px; }
.t360-footer .t360-brand__cti { font-size: 16px; }
.t360-footer .t360-brand__bar { width: 2px; height: 16px; }
.t360-footer .t360-brand__app { font-size: 14px; }
.t360-footer__copy { flex-grow: 1; }
.t360-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.t360-footer__version { padding-left: 20px; border-left: 1px solid var(--t360-line); }

/* ---------- Fascia blu sotto l'header ---------- */
.t360-band { background: var(--t360-navy-900); color: #fff; padding: 12px 48px 36px; }

/* ---------- Ricerca ---------- */
.t360-search { background: var(--t360-surface); color: var(--t360-ink); border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.t360-search__grid { display: grid; grid-template-columns: 1.1fr 1.5fr 1.2fr 1.5fr 150px; gap: 14px; align-items: end; }
.t360-search .t360-field { gap: 6px; min-width: 0; margin: 0; }
.t360-search .t360-field__label { font-size: 13px; color: var(--t360-ink-2); }
.t360-field__control--sm { height: 52px; padding: 0 8px 0 14px; gap: 10px; }
.t360-field__control--sm .t360-field__input { font-size: 15px; }
.t360-field__input--mono { font-family: var(--t360-font-mono); font-size: 14px !important; }
.t360-field__input::placeholder { color: #8A97A8; }
.t360-field__select {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px;
  color: var(--t360-ink); appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6B80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center;
}
/* Piccoli pulsanti icona dentro i campi (svuota, calendario) */
.t360-field__mini {
  flex: 0 0 28px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--t360-muted);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.t360-field__mini:hover { background: var(--t360-bg); color: var(--t360-ink); }
.t360-field__control:has(.t360-field__input:placeholder-shown) .field-clear-btn { visibility: hidden; }
.t360-search__submit { height: 52px; min-height: 52px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* Periodo del viaggio: due campi data nello stesso controllo */
.t360-daterange { padding-right: 4px; gap: 6px; }
.t360-daterange__arrow { color: #8A97A8; flex-shrink: 0; }
.t360-daterange .date-field { position: relative; display: flex; align-items: center; flex: 1 1 0; min-width: 0; gap: 0; }
.t360-daterange__part { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.2; }
.t360-daterange__part small { font-size: 12px; color: var(--t360-muted); font-weight: 600; }
.t360-daterange .date-mask-input { border: 0; outline: 0; padding: 0; background: transparent; font: inherit; font-size: 14px; color: var(--t360-ink); width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.t360-daterange .date-mask-input::placeholder { color: #8A97A8; }
.t360-daterange .date-mask-input.is-invalid { color: var(--t360-st-annullata); }
.t360-daterange .date-field:has(.date-mask-input:placeholder-shown) .date-clear-btn { display: none; }
.t360-daterange .invalid-feedback { position: absolute; left: 0; top: calc(100% + 12px); font-size: 12px; white-space: nowrap; }
.t360-daterange .date-field:has(.date-mask-input.is-invalid) .invalid-feedback { display: block; }
.t360-daterange .t360-field__mini { flex-basis: 24px; width: 24px; }

/* Chip servizi (checkbox) */
.t360-search__chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t360-search__chips-label { font-size: 13px; font-weight: 700; color: var(--t360-ink-2); margin-right: 4px; }
.t360-chip {
  position: relative; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--t360-line-strong);
  background: var(--t360-surface); color: var(--t360-muted); font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; user-select: none;
}
.t360-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.t360-chip:has(input:focus-visible) { box-shadow: var(--t360-focus-ring); }
.t360-chip:has(input:checked) { font-weight: 700; color: var(--svc-fg); background: var(--svc-bg); border-color: var(--svc-border, var(--svc-fg)); }
.t360-search__link { font-size: 14px; font-weight: 600; text-decoration: none; padding: 0 8px; }
.t360-btn-ghost {
  height: 40px; min-height: 40px; padding: 0 16px; border: 1px solid var(--t360-line-strong); background: var(--t360-surface); border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--t360-navy-900); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
}
.t360-btn-ghost:hover { background: var(--t360-bg); color: var(--t360-navy-900); }

/* Colori per tipologia di servizio (chip, badge, bordi card, marker) */
.t360-svc--Air       { --svc-fg: #0B63CE; --svc-bg: #E6F0FC; --svc-accent: #0B63CE; --svc-marker: #0A1F3C; }
.t360-svc--Rail      { --svc-fg: #1E7D4F; --svc-bg: #E3F3E8; --svc-accent: #1E7D4F; --svc-marker: #1E7D4F; }
.t360-svc--Hotel     { --svc-fg: #8A5A00; --svc-bg: #FDF1D6; --svc-accent: #E0A000; --svc-marker: #E0A000; --svc-marker-fg: #0A1F3C; }
.t360-svc--Noleggio  { --svc-fg: #0E6E6E; --svc-bg: #DFF3F2; --svc-accent: #0E6E6E; --svc-marker: #0E6E6E; }
.t360-svc--Marittimo { --svc-fg: #33445C; --svc-bg: #E8ECF1; --svc-accent: #44546A; --svc-border: #44546A; --svc-marker: #5B6B80; }
.t360-svc--Other     { --svc-fg: #33445C; --svc-bg: #E8ECF1; --svc-accent: #5B6B80; --svc-marker: #5B6B80; }

.t360-pill { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--svc-bg); color: var(--svc-fg); white-space: nowrap; }
.t360-pill--ok { background: var(--t360-st-conclusa-bg); color: var(--t360-st-conclusa); }
.t360-pill--ko { background: var(--t360-st-annullata-bg); color: var(--t360-st-annullata); }
.t360-pill--neutral { background: var(--t360-bg); color: var(--t360-ink-2); font-weight: 600; }
.t360-pill--mono { background: var(--t360-bg); color: var(--t360-ink-2); font-family: var(--t360-font-mono); font-weight: 500; }

/* Stato vuoto */
.t360-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 120px 16px 96px; }
.t360-empty__icon { width: 112px; height: 112px; border-radius: 999px; background: var(--t360-primary-50); color: var(--t360-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.t360-empty__title { margin: 0 0 14px; font-size: 26px; font-weight: 700; color: var(--t360-ink); }
.t360-empty__text { margin: 0; max-width: 480px; font-size: 16px; line-height: 1.5; color: var(--t360-muted); }
.t360-empty__try { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 24px; font-size: 13px; color: var(--t360-muted); }
.t360-empty__try a { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--t360-line-strong); background: var(--t360-surface); color: var(--t360-ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; }
.t360-empty__try a:hover { border-color: var(--t360-primary); color: var(--t360-primary); }

/* Risultati */
.t360-results { padding: 28px 48px 32px; display: flex; flex-direction: column; gap: 14px; }
.t360-results__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.t360-results__title { margin: 0; font-size: 22px; font-weight: 700; flex-grow: 1; }
.t360-results__title small { font-family: var(--t360-font-body); font-size: 14px; font-weight: 500; color: var(--t360-muted); letter-spacing: 0; }
.t360-results__sort-label { font-size: 14px; color: var(--t360-muted); }
.t360-seg { display: inline-flex; background: var(--t360-surface); border: 1px solid var(--t360-line); border-radius: 10px; padding: 3px; font-size: 14px; font-weight: 600; }
.t360-seg > a, .t360-seg > button { border: 0; font: inherit; padding: 8px 14px; border-radius: 8px; background: transparent; color: var(--t360-ink-2); text-decoration: none; cursor: pointer; }
.t360-seg > a:hover, .t360-seg > button:hover { color: var(--t360-navy-900); background: var(--t360-bg); }
.t360-seg > .is-active, .t360-seg > .is-active:hover { background: var(--t360-navy-900); color: #fff; }
.t360-table { background: var(--t360-surface); border: 1px solid var(--t360-line); border-radius: 16px; overflow: hidden; }
.t360-table__row { display: grid; grid-template-columns: 210px minmax(0, 1fr) 200px 280px 110px 140px; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--t360-line-soft); align-items: center; min-height: 48px; position: relative; background: var(--t360-surface); }
.t360-table__row:hover { background: #F5F9FF; }
.t360-table__head { background: var(--t360-bg); font-size: 12px; font-weight: 700; color: var(--t360-muted); text-transform: uppercase; letter-spacing: .6px; padding-top: 12px; padding-bottom: 12px; border-top: 0; }
.t360-table__head:hover { background: var(--t360-bg); }
.t360-table__code { font-family: var(--t360-font-mono); font-size: 14px; font-weight: 500; color: var(--t360-navy-900); text-decoration: none; overflow-wrap: anywhere; }
.t360-table__code:hover { color: var(--t360-primary); }
.t360-table__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t360-table__who strong { font-size: 16px; font-weight: 700; }
.t360-table__who span { font-size: 13px; color: var(--t360-muted); }
.t360-table__who span .t360-mono { color: var(--t360-ink-2); }
.t360-table__date { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--t360-ink); white-space: nowrap; }
.t360-table__date svg { color: var(--t360-muted); flex-shrink: 0; }
.t360-table__svcs { display: flex; gap: 6px; flex-wrap: wrap; }
.t360-table__actions { display: flex; gap: 8px; justify-content: flex-end; position: relative; z-index: 2; }
.t360-table__row .t360-badge { justify-self: start; white-space: nowrap; }
.t360-iconbtn { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 10px; border: 1px solid var(--t360-line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--t360-navy-900); background: var(--t360-surface); }
.t360-iconbtn:hover { background: var(--t360-bg); color: var(--t360-navy-900); }
.t360-open-btn { height: 44px; padding: 0 12px 0 14px; border-radius: 10px; background: var(--t360-navy-900); color: #fff; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; text-decoration: none; }
.t360-open-btn:hover { background: var(--t360-navy-700); color: #fff; }
.t360-results__more { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 0; font-size: 14px; color: var(--t360-muted); }
.t360-results__more .t360-btn-ghost { height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Dettaglio trasferta ---------- */
.t360-hero { background: var(--t360-navy-900); color: #fff; padding: 8px 48px 32px; }
.t360-crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--t360-muted-on-dark); flex-wrap: wrap; }
.t360-crumbs a { color: var(--t360-sky-300); font-weight: 600; text-decoration: none; }
.t360-crumbs a:hover { color: #fff; }
.t360-crumbs .t360-mono { font-size: 13px; }
.t360-hero__row { display: flex; align-items: flex-end; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.t360-hero__main { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.t360-hero__tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t360-hero__key { font-family: var(--t360-font-mono); font-size: 15px; padding: 4px 10px; border-radius: 8px; background: var(--t360-navy-700); }
.t360-hero__status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(46,175,111,.18); color: #7FE0AE; }
.t360-hero__status::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.t360-hero__status--ko { background: rgba(180,35,24,.22); color: #F8A59D; }
.t360-hero__title { margin: 0; font-size: 36px; font-weight: 700; letter-spacing: -.8px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; line-height: 1.15; }
.t360-hero__title svg { color: var(--t360-sky); flex-shrink: 0; }
.t360-hero__dates { font-size: 16px; color: var(--t360-soft-on-dark); }
.t360-hero__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.t360-hero-btn {
  height: 48px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--t360-navy-600); background: transparent;
  color: #fff; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.t360-hero-btn:hover, .t360-hero-btn:focus-visible { background: rgba(255,255,255,.08); color: #fff; }
.t360-hero-btn--icon { width: 48px; padding: 0; justify-content: center; }
.t360-hero-btn--accent { background: var(--t360-accent); border-color: var(--t360-accent); color: var(--t360-navy-900); font-weight: 700; padding: 0 18px; }
.t360-hero-btn--accent:hover, .t360-hero-btn--accent:focus-visible { background: #D99700; color: var(--t360-navy-900); }
.t360-hero-btn.is-on { background: var(--t360-st-annullata-bg); border-color: var(--t360-st-annullata-bg); color: var(--t360-st-annullata); }
.t360-hero-btn__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--t360-navy-700); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.t360-hero-btn.is-on .t360-hero-btn__count { background: rgba(180,35,24,.14); }

.t360-detail { padding: 28px 48px 48px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.t360-detail--single { grid-template-columns: minmax(0, 1fr); }
.t360-detail__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.t360-detail__aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }

.t360-panel { background: var(--t360-surface); border: 1px solid var(--t360-line); border-radius: 16px; padding: 20px 22px; }
.t360-overline { font-size: 12px; font-weight: 700; color: var(--t360-muted); letter-spacing: .6px; text-transform: uppercase; }

.t360-updated { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--t360-surface); border: 1px solid var(--t360-line); border-radius: 12px; font-size: 14px; color: var(--t360-muted); }
.t360-updated strong { color: var(--t360-ink); }
.t360-updated .t360-btn-ghost { margin-left: auto; }

.t360-pax { background: var(--t360-surface); border: 1px solid var(--t360-line); border-radius: 16px; padding: 20px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.t360-pax__who { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; min-width: 0; }
.t360-pax__name { font-family: var(--t360-font-display); font-size: 20px; font-weight: 700; color: var(--t360-ink); text-decoration: none; }
a.t360-pax__name:hover { color: var(--t360-primary); }
.t360-pax__meta { font-size: 14px; color: var(--t360-muted); }
.t360-pax__meta .t360-mono { color: var(--t360-ink-2); }
.t360-pax__contacts { display: flex; flex-direction: column; gap: 6px; font-size: 14px; min-width: 240px; }
.t360-pax__contacts a { display: flex; align-items: center; gap: 8px; text-decoration: none; overflow-wrap: anywhere; }
.t360-pax__contacts svg { flex-shrink: 0; }
.t360-pax__request { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 14px; border-top: 1px solid var(--t360-line-soft); font-size: 13px; }

.t360-program-head { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.t360-program-head h2 { margin: 0; font-size: 22px; font-weight: 700; flex-grow: 1; }
.t360-program-head .t360-btn-ghost { color: var(--t360-ink-2); }

.t360-group { display: flex; flex-direction: column; gap: 16px; }
.t360-group__head { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; border: 0; background: transparent; padding: 0; width: 100%; text-align: left; font: inherit; color: inherit; }
.t360-group__label { font-family: var(--t360-font-display); font-size: 15px; font-weight: 700; color: var(--t360-navy-900); white-space: nowrap; }
.t360-group__line { flex-grow: 1; height: 1px; background: var(--t360-line); }
.t360-group__count { font-size: 13px; color: var(--t360-muted); white-space: nowrap; }
.t360-group__chev { color: var(--t360-muted); transition: transform .15s; flex-shrink: 0; }
.t360-group__head.collapsed .t360-group__chev { transform: rotate(-90deg); }
.t360-group__body { display: flex; flex-direction: column; gap: 16px; }

/* Card servizio */
.t360-svccard { position: relative; background: var(--t360-surface); border: 1px solid var(--t360-line); border-left: 4px solid var(--svc-accent); border-radius: 16px; display: flex; }
.t360-svccard.is-cancelled { border-left-color: var(--t360-st-annullata); background: #FFFBFA; }
.t360-svccard__body { flex-grow: 1; padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.t360-svccard__tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t360-svccard__carrier { font-size: 14px; color: var(--t360-ink-2); margin-left: 6px; }
.t360-svccard__carrier strong { color: var(--t360-ink); }
.t360-svccard__price { margin-left: auto; font-family: var(--t360-font-display); font-size: 19px; font-weight: 700; white-space: nowrap; }
.t360-svccard__title { font-family: var(--t360-font-display); font-size: 22px; font-weight: 700; line-height: 1.2; }
.t360-svccard__title--sm { font-size: 20px; }
.t360-svccard__sub { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; color: var(--t360-ink-2); }
.t360-svccard__sub span { display: inline-flex; align-items: center; gap: 6px; }
.t360-svccard__sub svg { color: var(--t360-muted); flex-shrink: 0; }
.t360-svccard__stub { width: 220px; flex-shrink: 0; border-left: 2px dashed var(--t360-line); padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; background: var(--t360-surface-2); border-radius: 0 16px 16px 0; }
.t360-svccard__row { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.t360-svccard__row > :first-child { flex-grow: 1; }
.t360-kv { display: flex; flex-direction: column; min-width: 0; }
.t360-kv > span:first-child { font-size: 12px; font-weight: 700; color: var(--t360-muted); letter-spacing: .6px; text-transform: uppercase; }
.t360-kv > span:nth-child(2) { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.t360-kv > span.t360-mono { font-weight: 500; font-size: 14px; }
.t360-kv > span.t360-mono--lg { font-size: 20px; letter-spacing: 1px; }
.t360-kv > span.t360-mono--md { font-size: 16px; }
.t360-svccard__cost { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 13px; color: var(--t360-muted); }
.t360-svccard__cost strong { font-family: var(--t360-font-display); font-size: 19px; font-weight: 700; color: var(--t360-ink); }

.t360-leg { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr) minmax(110px, auto); gap: 24px; align-items: center; }
.t360-leg + .t360-leg { padding-top: 14px; border-top: 1px solid var(--t360-line-soft); }
.t360-leg__end { display: flex; flex-direction: column; min-width: 0; }
.t360-leg__end--arr { align-items: flex-end; text-align: right; }
.t360-leg__time { font-family: var(--t360-font-display); font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.t360-leg__iata { font-family: var(--t360-font-display); font-size: 17px; font-weight: 700; margin-top: 8px; }
.t360-leg__place { font-size: 14px; color: var(--t360-muted); }
.t360-leg__day { font-size: 13px; color: var(--t360-muted); }
.t360-leg__mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.t360-leg__mid-top { font-size: 13px; font-weight: 600; color: var(--t360-ink-2); text-align: center; }
.t360-leg__mid-bottom { font-size: 13px; color: var(--t360-st-conclusa); font-weight: 600; text-align: center; }
.t360-leg__track { width: 100%; display: flex; align-items: center; gap: 8px; color: var(--svc-accent); }
.t360-leg__track > i { flex-grow: 1; border-top: 2px dashed var(--t360-muted-on-dark); }
.t360-leg__dot { width: 8px; height: 8px; border-radius: 99px; border: 2px solid currentColor; flex-shrink: 0; }
.t360-leg__dot--fill { background: currentColor; }

.t360-svccard--hotel { display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.t360-svccard--hotel.no-map { grid-template-columns: minmax(0, 1fr); }
.t360-infogrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 16px; background: var(--t360-bg); border-radius: 12px; }
.t360-infogrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t360-infochips { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.t360-infochips:not(:has(> :not(:empty))) { display: none; }
.t360-infochip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 8px; background: var(--t360-bg); color: var(--t360-ink-2); font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.t360-infochip:empty { display: none; }
.t360-infochip--lvl1 { background: #E6F0FC; color: var(--t360-primary-hover); font-weight: 700; }
.t360-infochip--lvl2 { background: var(--t360-st-preventivo-bg); color: var(--t360-st-preventivo); font-weight: 700; }
.t360-infochip--lvl3 { background: #FDE8D7; color: #9A4A0B; font-weight: 700; }
.t360-infochip--lvl4 { background: var(--t360-st-annullata-bg); color: var(--t360-st-annullata); font-weight: 700; }
.t360-infochip small { font-weight: 500; }
.t360-svccard__map { position: relative; min-height: 260px; margin: 18px 18px 18px 0; border-radius: 12px; overflow: hidden; background: #CFE6F2; }
.t360-svccard__map > div { position: absolute; inset: 0; }

.t360-costs { display: flex; flex-direction: column; margin-top: 10px; font-size: 15px; }
.t360-costs > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--t360-line-soft); }
.t360-costs > div > span:first-child { color: var(--t360-ink-2); }
.t360-costs > div > span:last-child { font-weight: 600; white-space: nowrap; }
.t360-costs > .t360-costs__total { border-bottom: 0; align-items: baseline; padding-top: 12px; }
.t360-costs > .t360-costs__total > span:first-child { font-weight: 700; color: var(--t360-ink); }
.t360-costs > .t360-costs__total > span:last-child { font-family: var(--t360-font-display); font-size: 24px; font-weight: 700; }

.t360-access { display: flex; flex-direction: column; gap: 14px; }
.t360-access__item { display: flex; gap: 12px; align-items: flex-start; }
.t360-access__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--t360-bg); color: var(--t360-ink-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t360-access__icon--warn { background: var(--t360-st-preventivo-bg); color: var(--t360-st-preventivo); }
.t360-access__icon--ok { background: var(--t360-st-conclusa-bg); color: var(--t360-st-conclusa); }
.t360-access__text { display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.t360-access__text span { color: var(--t360-muted); overflow-wrap: anywhere; }
.t360-access .t360-btn-ghost { height: 44px; justify-content: center; }

/* ---------- Modali ---------- */
.t360-modal .modal-content { border: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; }
.modal-backdrop { --bs-backdrop-bg: #0A1F3C; --bs-backdrop-opacity: .6; }
.t360-modal .modal-dialog { max-width: 440px; }
.t360-modal--md .modal-dialog { max-width: 520px; }
.t360-modal--lg .modal-dialog { max-width: 640px; }
.t360-modal__head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 16px; }
.t360-modal__head--center { align-items: center; padding-top: 20px; }
.t360-modal__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--t360-primary-50); color: var(--t360-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t360-modal__icon--amber { background: var(--t360-st-preventivo-bg); color: var(--t360-st-preventivo); }
.t360-modal__titles { flex-grow: 1; min-width: 0; }
.t360-modal__title { margin: 0; font-size: 20px; font-weight: 700; }
.t360-modal__lead { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--t360-muted); }
.t360-modal__close { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; color: var(--t360-ink-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin: -4px -8px 0 0; padding: 0; }
.t360-modal__close:hover { background: var(--t360-bg); }
.t360-modal__section { padding: 4px 24px 18px; display: flex; flex-direction: column; gap: 12px; }
.t360-modal__section--split { border-bottom: 1px solid var(--t360-line-soft); }
.t360-modal__section--list { padding-top: 16px; padding-bottom: 22px; gap: 10px; }
.t360-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--t360-line-soft); background: var(--t360-surface-2); flex-wrap: wrap; }
.t360-modal__foot .btn { height: 46px; min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.t360-modal__foot .btn-outline-t360 { color: var(--t360-ink-2); font-weight: 600; }
.t360-modal fieldset { border: 0; margin: 0; padding: 4px 24px 16px; display: flex; flex-direction: column; gap: 8px; }
.t360-modal legend { padding: 0 0 8px; font-size: 13px; font-weight: 700; float: none; width: auto; margin: 0; }
.t360-modal .t360-field { gap: 6px; }
.t360-modal .t360-field__label { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.t360-modal .t360-field__label small { font-weight: 500; color: var(--t360-muted); font-size: 13px; }
.t360-modal .t360-field__label svg { color: var(--t360-muted); }
.t360-input { height: 48px; padding: 0 14px; border: 1px solid var(--t360-line-strong); border-radius: 12px; font: inherit; font-size: 15px; outline: none; width: 100%; color: var(--t360-ink); background: var(--t360-surface); }
.t360-input:focus { border-color: var(--t360-primary); box-shadow: var(--t360-focus-ring); }
.t360-input::placeholder { color: #8A97A8; }
.t360-input--mono { font-family: var(--t360-font-mono); font-size: 14px; }
select.t360-input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--t360-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6B80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.t360-hint { font-size: 13px; color: var(--t360-muted); line-height: 1.45; margin: 0; }
.t360-modal .date-field .t360-input { border-radius: 12px 0 0 12px; }
.t360-modal .date-field .btn { min-height: 48px; border-color: var(--t360-line-strong); }
.t360-modal .date-field .btn:last-of-type { border-radius: 0 12px 12px 0; }
.t360-person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--t360-line); border-radius: 12px; }
.t360-person__text { display: flex; flex-direction: column; flex-grow: 1; font-size: 14px; min-width: 0; }
.t360-person__text strong { overflow-wrap: anywhere; }
.t360-person__text span { color: var(--t360-muted); }
.t360-person__remove { width: 40px; height: 40px; min-height: 40px; border: 0; background: transparent; border-radius: 10px; color: var(--t360-st-annullata); display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; }
.t360-person__remove:hover { background: var(--t360-st-annullata-bg); }
.t360-recipient { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 1px solid var(--t360-line-strong); border-radius: 12px; cursor: pointer; margin: 0; }
.t360-recipient:has(input:checked) { border: 2px solid var(--t360-primary); background: #F5F9FF; padding: 7px 13px; }
.t360-recipient input { width: 20px; height: 20px; margin: 0; accent-color: var(--t360-primary); flex-shrink: 0; }
.t360-recipient__text { display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.t360-recipient__text strong { overflow-wrap: anywhere; }
.t360-recipient__text span { color: var(--t360-muted); }

.t360-itin-map { position: relative; height: 300px; margin: 0 24px; border-radius: 14px; overflow: hidden; background: #BFDDEB; }
.t360-itin-map > #itinerary-map { position: absolute; inset: 0; }
.t360-itin-map__fit { position: absolute; right: 10px; top: 10px; z-index: 500; height: 36px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(10,31,60,.18); font: inherit; font-size: 13px; font-weight: 600; color: var(--t360-navy-900); display: inline-flex; align-items: center; gap: 6px; }
.t360-itin-map .leaflet-bar { border: 0 !important; border-radius: 10px !important; overflow: hidden; box-shadow: 0 2px 8px rgba(10,31,60,.18) !important; }
.t360-itin-map .leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 20px !important; color: var(--t360-ink) !important; }
.t360-itin-list { margin: 0; padding: 16px 24px 22px; list-style: none; display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; }
.t360-itin-list li { display: flex; gap: 14px; padding: 12px 8px; border-bottom: 1px solid var(--t360-line-soft); cursor: pointer; border-radius: 10px; }
.t360-itin-list li:last-child { border-bottom: 0; }
.t360-itin-list li:hover { background: var(--t360-bg); }
.t360-itin-list li.itinerary-item-selected { background: var(--t360-primary-50); }
.t360-itin-list__icon { width: 36px; height: 36px; border-radius: 99px; background: var(--svc-marker, var(--t360-navy-900)); color: var(--svc-marker-fg, #fff); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t360-itin-list__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t360-itin-list__text strong { font-size: 15px; }
.t360-itin-list__text span { font-size: 14px; color: var(--t360-muted); }
.t360-marker { width: 34px; height: 34px; border-radius: 99px; background: var(--svc-marker, #0A1F3C); color: var(--svc-marker-fg, #fff); border: 3px solid #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(10,31,60,.3); font-size: 14px; }

.t360-audit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.t360-audit li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--t360-line-soft); }
.t360-audit li:last-child { border-bottom: 0; }
.t360-audit__icon { width: 36px; height: 36px; border-radius: 99px; background: var(--t360-bg); color: var(--t360-ink-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t360-audit__text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; font-size: 14px; }
.t360-audit__text > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.t360-audit__text span, .t360-audit__text small { color: var(--t360-muted); }
.t360-audit-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 16px; background: var(--t360-bg); border-radius: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1399.98px) {
  .t360-search__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t360-search__grid > .t360-search__submit { grid-column: span 2; }
  .t360-table__row { grid-template-columns: 180px minmax(0, 1fr) 170px 220px 100px 120px; }
}
@media (max-width: 1199.98px) {
  .t360-detail { grid-template-columns: minmax(0, 1fr); }
  .t360-detail__aside { position: static; }
  .t360-table__head { display: none; }
  .t360-table__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .t360-table__row > .t360-table__code { grid-column: 1 / -1; }
  .t360-table__row > .t360-table__actions { grid-row: 2 / span 2; grid-column: 2; align-self: center; }
  .t360-svccard--hotel { grid-template-columns: minmax(0, 1fr); }
  .t360-svccard__map { margin: 0 18px 18px; min-height: 220px; }
}
@media (max-width: 991.98px) {
  .t360-appbar, .t360-band, .t360-hero, .t360-results, .t360-detail, .t360-footer, .t360-page-pad { padding-left: 16px; padding-right: 16px; }
  .t360-appbar { gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .t360-appbar__toggler { display: inline-flex; }
  .t360-appbar__collapse { flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; gap: 12px; }
  .t360-appbar__collapse.show { display: flex; }
  .t360-appbar__nav { flex-direction: column; align-items: stretch; }
  .t360-appbar__tools { justify-content: space-between; }
  .t360-search__grid { grid-template-columns: minmax(0, 1fr); }
  .t360-search__grid > .t360-search__submit { grid-column: auto; }
  .t360-hero__title { font-size: 28px; }
  .t360-svccard { flex-direction: column; }
  .t360-svccard__stub { width: auto; border-left: 0; border-top: 2px dashed var(--t360-line); border-radius: 0 0 16px 16px; flex-direction: row; flex-wrap: wrap; gap: 16px 24px; }
  .t360-svccard__cost { margin-top: 0; }
  .t360-leg { gap: 12px; }
  .t360-leg__time { font-size: 26px; }
  .t360-infogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t360-empty { padding: 64px 16px; }
}
@media (min-width: 992px) {
  .t360-appbar__collapse { display: flex !important; flex-grow: 1; align-items: center; gap: 36px; }
}
@media print {
  .t360-appbar, .t360-footer, .t360-hero__actions, .t360-crumbs, .t360-program-head .t360-seg, .t360-program-head .t360-btn-ghost { display: none !important; }
  .t360-hero { background: #fff; color: var(--t360-ink); }
  .t360-detail { grid-template-columns: 1fr; }
}
