/* ===========================================================================
   SAI Treviglio — Front design system (from Figma "SAI Treviglio | Dijiti")
   Fonts: Plus Jakarta Sans (UI/headings) + DM Sans (small labels)
   =========================================================================== */

:root {
  /* colors */
  --blue-900: #060f28;
  --blue-500: #0f2360;
  --blue-400: #3f4f80;
  --blue-100: #cdd5ed;
  --blue-50:  #f3f8ff;
  --green-500: #00ac59;
  --green-600: #009a4f;
  --green-900: #004825;
  --red-500:  #e02020;
  --amber-500: #e5a000;
  --grey-100: #cacaca;
  --text-950: #181f36;
  --white: #ffffff;

  /* spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-9: 36px; --sp-14: 56px;
  --sp-16: 64px; --sp-30: 120px;

  /* radius */
  --r-sm: 4px; --r-lg: 8px; --r-xl: 16px;

  /* shadow */
  --shadow-md: 0 4px 20px rgba(24,31,54,.12), 0 1px 1px rgba(71,84,133,.15);
  --shadow-sm: 0 2px 8px rgba(24,31,54,.08);

  --container: 1200px;
  --gutter: 120px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-alt: "DM Sans", system-ui, sans-serif;
  --header-h: 128px;
}

p {
  display: inline-block;
  padding: 0;
  margin: 0;
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--blue-900);
  background: var(--white);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ----- layout ----- */
.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--sp-14) 0; }

/* ----- section header ----- */
.section-head { max-width: 784px; margin: 0 auto; text-align: center; margin-bottom: 40px; }
.section-head.left { margin: 0; text-align: left; }
.section-label {
  font-family: var(--font-alt);
  font-size: 22px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--blue-400);
  margin: 0 0 var(--sp-2);
}
.section-title {
  font-size: 48px; line-height: 1; font-weight: 700;
  margin: 0; color: var(--blue-900);
}
.section-desc {
  margin: var(--sp-6) 0 0; color: var(--blue-400);
  font-size: 16px; line-height: 1.4;
}

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 12px 16px; border-radius: var(--r-lg);
  font-size: 16px; font-weight: 700; line-height: 1;
  border: 1px solid transparent; transition: .15s ease;
  white-space: nowrap;
  text-decoration: none !important;
}

@media (max-width: 640px) {
  .btn {
    font-size: 12px;
  }
}
.btn svg, .btn img { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--green-500); color: var(--blue-900); }
.btn-primary:hover { background: var(--green-600); }
.btn-primary svg { stroke: var(--blue-900); }
.btn-outline { background: var(--white); color: var(--green-500); border-color: var(--green-500); }
.btn-outline:hover { background: var(--blue-50); }
.btn-light { background: var(--white); color: var(--blue-900); }
.btn-ghost { background: var(--white); color: var(--blue-900); border-color: #cfd6e4; }
.btn-ghost:hover { background: var(--blue-50); }
.btn-link {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  color: var(--green-500); font-weight: 700; font-size: 14px;
}
.btn-link:hover { color: var(--green-900) !important; }
.btn-block { width: 100%; justify-content: center; }
.btn-mooneygo {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; padding: 0; border-radius: var(--r-lg);
  border: 1px solid #cfd6e4; background: var(--white);
  overflow: hidden; transition: .15s ease;
}
.btn-mooneygo:hover { border-color: var(--green-500); box-shadow: var(--shadow-sm); }
.btn-mooneygo img { display: block; width: 44px; height: 44px; border-radius: inherit; }
.mooneygo-stores { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-6) 0; margin-top: 0; }
.store-badge { display: inline-flex; }
.store-badge img { display: block; height: 52px; width: auto; transition: opacity .15s ease; }
.store-badge:hover img { opacity: .85; }
.btn.is-loading { cursor: wait; opacity: .88; }
.btn.is-loading:disabled { opacity: .88; }
.btn-spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .8s linear infinite;
}

/* ===========================================================================
   HEADER
   =========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--white); border-bottom: 1px solid #eef1f6;
}
/* hide the fixed "Dove vuoi andare?" bar while the mobile menu is open */
body.menu-open .search-fab { display: none; }
/* header: logo column (full height) + stacked topbar/nav on the right */
.header-bar { display: flex; align-items: stretch; gap: var(--sp-8); }
.header-stack { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-6);
  height: 44px; flex: 0 0 auto;
  border-bottom: 1px solid #eef1f6;   /* divider starts after the logo column */
  font-family: var(--font-alt);
  font-size: 14px; color: var(--blue-500);
}
.topbar a { display: inline-flex; align-items: center; gap: var(--sp-2); }
.topbar .sep { width: 1px; height: 18px; background: var(--grey-100); }
.topbar .social { display: inline-flex; gap: var(--sp-2); }
.topbar .social a { font-size: 18px; }
.lang { display: inline-flex; align-items: center; gap: 6px; }
.flag { width: 24px; height: 24px; border-radius: 50%; display: block; flex: 0 0 auto; }

.navbar {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: var(--sp-6);
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 45px; width: auto; text-align: center; }
.lang a { display: inline-flex; }
.mhead-actions { display: flex; align-items: center; gap: var(--sp-3); color: var(--blue-900); }
.mobile-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-6); font-size: 14px; color: var(--blue-500); }
.mobile-foot a { display: inline-flex; align-items: center; gap: 6px; }
.mobile-foot .sep { width: 1px; height: 16px; background: var(--grey-100); }
.main-nav { display: flex; align-items: center; gap: var(--sp-6); }
.main-nav > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--blue-900);
  padding: 8px 0;
}
.main-nav > li > a:hover { color: var(--green-500); }
.has-drop { position: relative; }
.has-drop .caret { transition: transform .2s; }
.has-drop:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--white); border: 1px solid #eef1f6;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: var(--sp-2); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .18s ease; z-index: 10;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown a {
  display: block; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--blue-500);
}
.dropdown a:hover { background: var(--blue-50); color: var(--green-500); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-4); }
.nav-actions .btn-cta { padding: 10px 14px; font-size: 15px; }
.mobile-icons { display: none; align-items: center; gap: var(--sp-3); color: var(--blue-900); }
.mobile-icons .sep { width: 1px; height: 20px; background: var(--grey-100); }
.burger { display: none; background: none; border: 0; padding: 8px; position: relative; z-index: 2; }
.burger span { display: block; width: 26px; height: 2px; background: var(--blue-900); border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease; }
.burger span + span { margin-top: 6px; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===========================================================================
   HERO + SEARCH
   =========================================================================== */
.hero {
  position: relative; height: 500px;
  background: var(--blue-900) center/cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,15,40,.15), rgba(6,15,40,.45)); }

.search-wrap { position: relative; z-index: 5; margin-top: -110px; }
.search-card {
  background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); padding: var(--sp-8) var(--sp-8) var(--sp-6);
  max-width: 1200px; margin: 0 auto;
}
.search-card h2 { text-align: center; font-size: 24px; font-weight: 700; margin: 0 0 var(--sp-6); }
.search-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 148px 148px; gap: var(--sp-4);
  align-items: start; max-width: 983px; margin: 0 auto;
}
.od-group { display: flex; align-items: flex-start; gap: var(--sp-3); min-width: 0; }
.od-cell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.od-cell > *:not(:first-child) {
  margin-bottom: 6px;
}
.search-field-date, .search-field-time { min-width: 0; }
.field {
  background: var(--blue-50); border: 1px solid #e3e9f5; border-radius: var(--r-lg);
  height: 42px; display: flex; align-items: center; gap: var(--sp-2);
  padding: 0 var(--sp-4); color: var(--blue-500); font-size: 14px; width: 100%;
}
.field .chev { margin-left: auto; opacity: .6; }
.field svg { width: 20px; height: 20px; flex: 0 0 auto; }
select.od-select { display: block; width: 100%; }
.swap {
  width: 34px; height: 34px; border-radius: 50%; background: var(--white);
  border: 1px solid #e3e9f5; display: grid; place-items: center; color: var(--blue-400);
  flex: 0 0 auto; cursor: pointer; margin-top: 4px; align-self: flex-start;
}
.field-col { display: flex; flex-direction: column; gap: 6px; }
.map-link { align-self: flex-start; font-family: var(--font-alt); font-size: 12px; color: var(--blue-400);
  text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; }
.map-link:hover { color: var(--green-500); }
.map-link svg { flex: 0 0 auto; }
.search-meta { display: flex; flex-direction: column; gap: 6px; }
.allday { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: 12px; color: var(--blue-400); font-family: var(--font-alt); }
.search-actions { display: flex; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-6); flex-wrap: wrap; }
.search-actions .btn { padding: 12px 20px; }

/* ===========================================================================
   ALERT
   =========================================================================== */
.alert-band { padding: var(--sp-8) 0 0; }
.alert-band + .alert-band { padding-top: var(--sp-4); }
.alert-band-cta {
  padding: var(--sp-4) 0 var(--sp-2);
  text-align: center;
}
.alert {
  position: relative; display: flex; align-items: center; gap: var(--sp-4);
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: var(--sp-4) var(--sp-8); overflow: hidden; max-width: 588px; margin: 0 auto;
}
.alert::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 16px; background: var(--amber-500); }
.alert .ico { color: var(--amber-500); flex: 0 0 auto; }
.alert[data-severity="warning"]::before, .notice-alert[data-severity="warning"]::before { background: var(--amber-500); }
.alert[data-severity="warning"] .ico, .notice-alert[data-severity="warning"] .ico { color: var(--amber-500); }
.alert[data-severity="danger"]::before, .notice-alert[data-severity="danger"]::before { background: var(--red-500); }
.alert[data-severity="danger"] .ico, .notice-alert[data-severity="danger"] .ico { color: var(--red-500); }
.alert[data-severity="info"]::before, .notice-alert[data-severity="info"]::before { background: var(--blue-400); }
.alert[data-severity="info"] .ico, .notice-alert[data-severity="info"] .ico { color: var(--blue-400); }
.alert .txt {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1;
  font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--blue-900);
}
.alert .txt-title { display: block; }
.alert .txt-excerpt {
  display: block; font-weight: 500; font-size: 13px; line-height: 1.35;
  color: var(--blue-400);
}
.alert .txt-excerpt a {
  color: var(--blue-900);
  font-weight: 700;
  text-decoration: underline;
}
.alert .txt-excerpt p { margin: 0; display: inline; }
.alert .txt-attachment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  margin-right: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-500);
  text-decoration: underline;
}
.alert .txt-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 2px;
}
.alert .btn-link, .alert button.btn-link { margin-left: auto; color: var(--blue-900); background: none; border: 0; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 4px; padding: 0; }
.alert button.btn-link:hover { text-decoration: underline; }

.alert-carousel { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.alert-carousel-shell {
  position: relative;
  display: block;
  width: 100%;
  /* max-width: 960px; */
  padding: 0 52px;
  box-sizing: border-box;
}
.alert-carousel-track {
  display: grid;
  width: 100%;
  min-width: 0;
  touch-action: pan-y;
}
.alert-carousel-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.alert-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.alert-carousel .alert { max-width: none; margin: 0; width: 100%; min-height: 50px; }
.alert-carousel .alert .txt-title,
.alert-carousel .alert .txt-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.alert-carousel .alert .txt-title { -webkit-line-clamp: 2; }
.alert-carousel .alert .txt-excerpt { -webkit-line-clamp: 2; }
.alert-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--blue-100);
  background: var(--white);
  color: var(--blue-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: .15s ease;
}
.alert-carousel-arrow--prev { left: 0; }
.alert-carousel-arrow--next { right: 0; }
.alert-carousel-arrow:hover {
  border-color: var(--green-500);
  color: var(--green-600);
  background: var(--blue-50);
}
.alert-carousel-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.alert-carousel-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-500);
  font-variant-numeric: tabular-nums;
}
.alert-carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.alert-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue-100);
  cursor: pointer;
  transition: .15s ease;
}
.alert-carousel-dots button[aria-current="true"] {
  background: var(--green-500);
  transform: scale(1.15);
}
.alert-carousel-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-600);
}
.alert-carousel-all:hover { text-decoration: underline; }

/* ===========================================================================
   NEWS
   =========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); margin-top: var(--sp-8); }
.news-card {
  background: var(--white); border: 1px solid #eef1f6; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.news-card .thumb { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.news-card .body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.news-card .date { font-family: var(--font-alt); font-size: 12px; color: var(--blue-400); }
.news-card h3 { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .btn-link { margin-top: auto; color: var(--blue-900); }
.news-grid--home {
  display: flex; gap: var(--sp-6); overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 2px 0 var(--sp-2); scrollbar-width: none; cursor: grab;
  touch-action: pan-x;
}
.news-grid--home.is-dragging { cursor: grabbing; user-select: none; }
.news-grid--home.is-dragging * { user-select: none; }
.news-grid--home img { -webkit-user-drag: none; pointer-events: none; }
.news-grid--home::-webkit-scrollbar { display: none; }
.news-grid--home .news-card {
  flex: 0 0 calc((100% - (var(--sp-6) * 2)) / 2.5);
  min-height: 132px; display: grid; grid-template-columns: 112px 1fr;
  align-items: center; overflow: hidden;
}
.news-grid--home .news-card .thumb {
  width: 100%; aspect-ratio: auto; border-radius: var(--r-sm);
  object-fit: cover; margin-left: var(--sp-3);
}
.news-grid--home .news-card .body {
  min-width: 0; padding: var(--sp-4); gap: 6px;
  padding-left: var(--sp-6);
}
.news-grid--home .news-card h3 { font-size: 16px; }
.news-grid--home .news-card .btn-link { margin-top: 0; }
.center-btn { display: flex; justify-content: center; margin-top: var(--sp-8); }

/* ===========================================================================
   SERVIZI cards (2x2)
   =========================================================================== */
.serv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); margin-top: var(--sp-9); }
.serv-card {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-6);
  background: var(--blue-50); border-radius: var(--r-lg); overflow: hidden;
}
.serv-card .img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e7eefb center/cover no-repeat;
}
.serv-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.serv-card .content { padding: var(--sp-6) var(--sp-6) var(--sp-6) 0; display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-start; }
.serv-card h3 { font-size: 20px; font-weight: 700; margin: 0; }
.serv-card p { margin: 0; color: var(--blue-400); font-size: 14px; line-height: 1.4; }
.serv-card .btn { margin-top: var(--sp-2); }

/* ===========================================================================
   BANNER
   =========================================================================== */
.promo-banner { margin: var(--sp-14) auto 0; }
.promo-banner a { display: block; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: transparent; }
.promo-banner .ph { display: grid; place-items: center; height: 100%; color: #fff; font-weight: 700; letter-spacing: 1px; }

/* ===========================================================================
   CTA "Programma il tuo prossimo viaggio"
   =========================================================================== */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center;
  background: var(--white); border: 1px solid #eef1f6; border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); padding: 0; margin-top: var(--sp-14); }
.cta .panel { color: var(--blue-900); padding: var(--sp-8) var(--sp-4) var(--sp-8) var(--sp-8); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-4); }
.cta .panel h2 { font-size: 32px; font-weight: 700; margin: 0; line-height: 1.1; }
.cta .panel p { margin: 0; color: var(--blue-400); font-size: 14px; line-height: 1.5; }
.cta .panel .actions { display: flex; gap: var(--sp-4); margin-top: var(--sp-2); flex-wrap: wrap; }
.cta .img { background: var(--blue-900) center/cover no-repeat; min-height: 300px; height: 100%; border-radius: 0 var(--r-xl) var(--r-xl) 0; }

/* ===========================================================================
   CHI SIAMO
   =========================================================================== */
.about-grid { display: grid; grid-template-columns: 632px 1fr; gap: var(--sp-14); margin-top: var(--sp-9); align-items: stretch; }
.about-text { display: flex; flex-direction: column; gap: var(--sp-6); }
.about-box { background: var(--blue-50); border-radius: var(--r-lg); padding: var(--sp-8); }
.about-box h3 { font-size: 24px; font-weight: 700; margin: 0 0 var(--sp-4); }
.about-box p { margin: 0; color: var(--blue-400); font-size: 14px; line-height: 1.5; }
/* left colored card with metrics + separate image card on the right */
.metrics-row { display: grid; grid-template-columns: 1fr 220px; gap: var(--sp-6); align-items: stretch; }
.metrics-box { background: var(--blue-50); border-radius: var(--r-xl); padding: var(--sp-6) var(--sp-8);
  display: flex; align-items: center; }
.metrics { width: 100%; display: flex; flex-direction: column; justify-content: center; }
.metrics .metric h4 { font-size: 28px; font-weight: 700; margin: 0 0 var(--sp-1); color: var(--blue-500); line-height: 1; }
.metrics .metric span { color: var(--blue-400); font-size: 15px; }
.metrics hr { border: 0; border-top: 1px solid var(--blue-100); margin: var(--sp-6) 0; width: 100%; }
.metrics-img { border-radius: var(--r-xl); object-fit: cover; width: 100%; height: 100%; min-height: 204px; }
.about-gallery { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 386px; }
.about-gallery > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
/* arrows + dots sit above slides so they remain clickable */
.gallery-ctrl { position: absolute; inset: auto 0 50% 0; display: flex; justify-content: space-between; padding: 0 var(--sp-6); z-index: 5; }
.gallery-ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; box-shadow: var(--shadow-sm); cursor: pointer; }
.gallery-ctrl button:hover { background: var(--white); }

/* ===========================================================================
   SLIDER (carousel) — works inside .about-gallery, .story-photo, etc.
   Stack of .slider-slide inside .slider-track, fade between active ones.
   =========================================================================== */
.slider { position: relative; }
.slider-track { position: absolute; inset: 0; z-index: 1; }
.slider-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
  pointer-events: none;
  width: 100%; height: 100%; object-fit: cover;
}
.slider-slide.is-active {
  opacity: 1; visibility: visible;
}
.slider-dots {
  position: absolute; left: 0; right: 0; bottom: var(--sp-4);
  display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.slider-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.slider-dots button[aria-current="true"] {
  background: var(--white); transform: scale(1.25);
}
.slider:hover .slider-dots button[aria-current="true"] {
  background: var(--green-500);
}

/* ===========================================================================
   PARTNERS marquee
   =========================================================================== */
.partners { overflow: hidden; }
.marquee { display: flex; gap: var(--sp-16); align-items: center; animation: marquee 28s linear infinite; width: max-content; margin-top: var(--sp-8); }
.marquee:hover { animation-play-state: paused; }
.marquee .logo { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; color: inherit; }
.marquee a.logo { transition: opacity .2s ease; }
.marquee a.logo:hover { opacity: .75; }
.marquee .logo img { height: 56px; width: auto; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===========================================================================
   FAQ
   =========================================================================== */
.faq { position: relative; min-height: 600px; display: grid; place-items: center;
  background: var(--blue-900) center/cover no-repeat; padding: var(--sp-16) 0; }
.faq::after { content:""; position:absolute; inset:0; background: rgba(6,15,40,.45); }
.faq-panel { position: relative; z-index: 2; background: var(--green-500); color: var(--white);
  border-radius: var(--r-xl); padding: var(--sp-8); max-width: 720px; width: 100%; box-shadow: var(--shadow-md); }
.faq-panel h2 { font-size: 32px; font-weight: 700; margin: 0 0 var(--sp-6); }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.25); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  width: 100%; background: none; border: 0; color: #fff; text-align: left;
  padding: var(--sp-4) 0; font-size: 16px; font-weight: 700; }
.faq-q .pm { transition: transform .2s; flex: 0 0 auto; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: rgba(255,255,255,.9); font-size: 14px; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: var(--sp-4); }
.faq-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-6); flex-wrap: wrap; }
.faq-foot span { font-size: 14px; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.site-footer { background: var(--blue-50); padding: var(--sp-16) 0 var(--sp-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--sp-8); }
.footer-brand img { height: 52px; margin-bottom: var(--sp-4); }
.footer-brand p { color: var(--blue-400); font-size: 14px; max-width: 240px; }
.footer-brand .social { display: flex; gap: var(--sp-4); margin-top: var(--sp-4); font-size: 20px; color: var(--blue-500); }
.footer-col h4,
.footer-acc-trigger {
  display: block;
  width: 100%;
  margin: 0 0 var(--sp-4);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-900);
  text-align: left;
  cursor: default;
}
.footer-acc-trigger .footer-caret { display: none; flex-shrink: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { color: var(--blue-500); font-size: 14px; }
.footer-col a:hover { color: var(--green-500); }
.footer-contacts li { display: flex; gap: var(--sp-2); font-size: 14px; color: var(--blue-500); margin-bottom: var(--sp-3); }
.footer-bottom { text-align: center; margin-top: var(--sp-8); padding-top: var(--sp-8); color: var(--blue-400); font-size: 13px; line-height: 1.6; }

/* ===========================================================================
   MOBILE MENU drawer
   =========================================================================== */
/* drawer sits BELOW the fixed header (header stays put, burger morphs to X) */
.mobile-menu { position: fixed; left: 0; right: 0; top: var(--header-h, 64px); bottom: 0;
  z-index: 390; display: none; }
.mobile-menu.open { display: block; }
.mobile-panel { position: absolute; inset: 0; width: 100%; max-width: 100%;
  background: #fff; padding: var(--sp-6); overflow-x: hidden; overflow-y: auto;
  display: flex; flex-direction: column; gap: 0;
  transform: translateY(-10px); opacity: 0; transition: transform .25s ease, opacity .2s ease; }
.mobile-menu.open .mobile-panel { transform: translateY(0); opacity: 1; }
.mobile-panel .btn-block {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}
.m-nav { width: 100%; max-width: 100%; min-width: 0; }
.m-nav > li { border-bottom: 1px solid #eef1f6; max-width: 100%; min-width: 0; }
.m-nav > li > a, .m-acc-trigger { display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 100%; min-width: 0; background: none; border: 0; padding: var(--sp-4) 0; font-size: 16px; font-weight: 700; color: var(--blue-900); text-align: left; }
.m-acc-trigger svg { transform: rotate(90deg); flex-shrink: 0; }
.m-acc { max-height: 0; overflow: hidden; transition: max-height .25s; }
.m-acc.open { max-height: 400px; }
.m-acc a { display: block; padding: 10px 12px; color: var(--blue-500); font-weight: 500; }
.mobile-top { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); font-size: 14px; color: var(--blue-500); }
.mobile-foot { max-width: 100%; min-width: 0; }
.mobile-foot a { min-width: 0; word-break: break-word; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
/* navbar CTA buttons collapse to icon-only when the menu gets crowded */
@media (max-width: 1300px) {
  .nav-actions .btn-cta { padding: 10px; gap: 0; }
  .btn-cta-text { display: none; }
}
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .section-title { font-size: 40px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta .img { min-height: 240px; order: -1; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; --header-h: 61px; }
  .topbar { display: none; }
  .main-nav, .btn-cta { display: none; }
  .mobile-icons { display: flex; }
  .burger { display: block; padding: 4px; }
  .header-bar { align-items: center; gap: var(--sp-3); }
  .navbar { min-height: 60px; gap: var(--sp-2); justify-content: flex-end; }
  .nav-actions { gap: var(--sp-2); align-items: center; margin-left: auto; }
  .mobile-icons a { display: inline-flex; align-items: center; }
  .brand img { height: 30px; }
  .mobile-icons { gap: var(--sp-2); align-items: center; }
  .mobile-icons svg, .mobile-icons .flag { width: 22px; height: 22px; }
  .section { padding: var(--sp-9) 0; }
  .section-title { font-size: 30px; }
  .search-row { grid-template-columns: 1fr; }
  .search-field-date, .search-field-time { width: 100%; }
  .search-card { padding: var(--sp-6) var(--sp-4); }
  /* stack origin/destination vertically like Figma mobile sheet */
  .od-group { flex-direction: column; align-items: stretch; gap: var(--sp-4); }
  .od-group .field { border-radius: var(--r-lg) !important; border-right: 1px solid #e3e9f5 !important; }
  .swap { position: static; transform: none; align-self: center; margin: 0 auto; }
  .serv-grid { grid-template-columns: 1fr; }
  .serv-card { grid-template-columns: 120px 1fr; }
  .metrics-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .search-wrap { margin-top: -80px; }
}
@media (max-width: 560px) {
  .hero { height: 250px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid--home .news-card { flex-basis: 280px; grid-template-columns: 96px 1fr; min-height: 116px; }
  .news-grid--home .news-card .thumb { width: 96px; height: 66px; }
  .serv-card { grid-template-columns: 1fr; }
  .serv-card .content { padding: var(--sp-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta .panel { padding: var(--sp-8) var(--sp-6); }
  .faq-panel { padding: var(--sp-6); }
  .search-actions { flex-direction: column; }
  .search-actions .btn { justify-content: center; }
}

/* ===========================================================================
   LEGAL PAGE (privacy / cookie)
   =========================================================================== */
.legal-page { min-height: 50vh; }
.legal-tabs { display: flex; gap: var(--sp-2); border-bottom: 1px solid #e3e9f5; margin-bottom: var(--sp-8); }
.legal-tab { background: none; border: 0; padding: var(--sp-4) var(--sp-6); font-size: 16px; font-weight: 700;
  color: var(--blue-400); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.legal-tab.active { color: var(--green-500); border-bottom-color: var(--green-500); }
.legal-panel { display: none; }
.legal-panel.active { display: block; }
.legal-panel h2 { font-size: 24px; font-weight: 700; margin: 0 0 var(--sp-4); }
.legal-panel p { color: var(--blue-400); line-height: 1.7; }

/* ===========================================================================
   ACCESSIBILITY PAGE
   =========================================================================== */
.a11y-head { margin-bottom: var(--sp-14); }
.a11y-head .section-title { margin: 0 0 var(--sp-4); }
.a11y-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--blue-500);
}
.a11y-block { margin-bottom: var(--sp-14); }
.a11y-block:last-of-type { margin-bottom: var(--sp-8); }
.a11y-block h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 var(--sp-6);
  color: var(--blue-900);
}
.a11y-block > p {
  max-width: 72ch;
  margin: 0 0 var(--sp-4);
  color: var(--blue-400);
  line-height: 1.7;
}
.a11y-block h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 var(--sp-3);
  color: var(--blue-900);
}
.a11y-block ul:not(.a11y-contacts) {
  margin: 0;
  padding-left: 1.25em;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.a11y-feature li,
.a11y-block li {
  color: var(--blue-400);
  line-height: 1.65;
}
.a11y-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
}
.a11y-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a11y-card {
  padding: var(--sp-6);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-xl);
  background: #fff;
}
.a11y-card p { margin: 0; color: var(--blue-400); line-height: 1.65; }
.a11y-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
}
.a11y-feature {
  padding: var(--sp-6);
  border-top: 3px solid var(--green-500);
  background: var(--blue-50);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.a11y-contacts {
  list-style: none;
  margin: var(--sp-6) 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.a11y-contacts a { color: var(--green-500); font-weight: 600; }
.a11y-revised {
  margin: 0;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--blue-100);
  color: var(--blue-400);
  font-size: 13px;
}
@media (min-width: 1101px) {
  .a11y-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) and (min-width: 861px) {
  .a11y-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .a11y-head { margin-bottom: var(--sp-8); }
  .a11y-block { margin-bottom: var(--sp-8); }
  .a11y-block h2 { font-size: 24px; margin-bottom: var(--sp-4); }
  .a11y-cards,
  .a11y-cards--3,
  .a11y-features { grid-template-columns: 1fr; gap: var(--sp-4); }
  .a11y-card,
  .a11y-feature { padding: var(--sp-4); }
}

/* ===========================================================================
   FOOTER bottom rows (legal + dijiti)
   =========================================================================== */
.footer-legal { text-align: center; color: var(--blue-400); font-size: 13px; line-height: 1.7; }
.footer-last { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  border-top: 1px solid var(--blue-100); margin-top: var(--sp-6); padding-top: var(--sp-4); flex-wrap: wrap; }
.footer-last .legal-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; }
.footer-last .legal-links a { color: var(--blue-500); white-space: nowrap; }
.footer-last .legal-links a:hover { color: var(--green-500); }
.footer-last .made { font-size: 13px; color: var(--blue-400); }

@media (max-width: 860px) {
  .footer-last {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer-last .legal-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 10px 24px;
    width: 100%;
    max-width: 360px;
  }
  .footer-last .made { width: 100%; text-align: center; }
}

@media (max-width: 560px) {
  .footer-acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--blue-100);
    cursor: pointer;
  }
  .footer-acc-trigger .footer-caret { display: block; transition: transform .2s ease; }
  .footer-col.is-open .footer-acc-trigger .footer-caret { transform: rotate(180deg); }
  .footer-col > ul {
    display: none;
    padding: 12px 0 16px;
  }
  .footer-col.is-open > ul { display: flex; }
}

/* ===========================================================================
   MOBILE search: fixed bottom bar (FAB) + slide-up sheet
   =========================================================================== */
.search-fab { display: none; }
.search-backdrop { display: none; }
.sheet-head { display: none; }

@media (max-width: 860px) {
  /* turn inline search card into a slide-up bottom sheet */
  .search-wrap { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 320;
    margin-top: 0; transform: translateY(110%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    pointer-events: none; }
  .search-wrap.open { transform: translateY(0); pointer-events: auto; }
  .search-wrap .container { padding: 0; }
  .search-card { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 88vh; overflow-y: auto;
    box-shadow: 0 -8px 30px rgba(6,15,40,.25); padding-top: var(--sp-6); }
  .sheet-head { display: flex; align-items: center; justify-content: flex-end; position: relative; margin-bottom: var(--sp-2); }
  .sheet-head .handle { position: absolute; left: 50%; top: -6px; transform: translateX(-50%);
    width: 44px; height: 5px; border-radius: 3px; background: var(--blue-100); }
  .sheet-head .close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--blue-900); }

  .search-backdrop { display: block; position: fixed; inset: 0; z-index: 310;
    background: rgba(6,15,40,.45); opacity: 0; visibility: hidden; transition: .25s ease; }
  .search-backdrop.open { opacity: 1; visibility: visible; }

  .search-fab { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
    padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid #eef1f6; box-shadow: 0 -4px 16px rgba(6,15,40,.08); }
  .search-fab .btn { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }
  /* keep page content clear of the fixed bar */
  body { padding-bottom: 76px; }
}

/* ===========================================================================
   SEARCH form inputs (selects + flatpickr) — match the .field pill look
   =========================================================================== */
.field-input { border: 0; background: transparent; outline: none; font: inherit; width: 100%; color: var(--blue-500); }
.field-input::placeholder { color: var(--blue-500); opacity: .85; }
select.od-select { appearance: none; -webkit-appearance: none; }
.search-card .nice-select {
  background: var(--blue-50); border: 1px solid #e3e9f5; border-radius: var(--r-lg);
  height: 42px; line-height: 40px; padding: 0 34px 0 var(--sp-4); width: 100%;
  font-size: 14px; color: var(--blue-500); font-family: var(--font); font-weight: 500;
  float: none;
}
.search-card .nice-select.open, .search-card .nice-select:focus { border-color: var(--green-500); }
.search-card .nice-select .current {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: inherit;
}
.search-card .nice-select:has(.option.selected) .current,
.search-card .nice-select.has-value .current { color: var(--blue-900); font-weight: 600; }
.search-card .nice-select .nice-select-dropdown { width: 100%; min-width: 280px; }
.search-card .nice-select .nice-select-search-box { padding: var(--sp-2); }
.search-card .nice-select .nice-select-search {
  margin: 0; padding: 8px 12px; border: 1px solid #e3e9f5; border-radius: var(--r-sm);
  font-size: 14px; color: var(--blue-900);
}
.search-card .nice-select .list { width: 100%; max-height: 300px; overflow-y: auto; padding: 4px 0; }
.search-card .nice-select .optgroup {
  font-weight: 800; color: var(--blue-900); font-size: 12px; letter-spacing: .02em;
  text-transform: uppercase; padding: 10px var(--sp-4) 4px; line-height: 1.2;
}
.search-card .nice-select .option {
  font-size: 14px; line-height: 1.35; min-height: 0; padding: 9px var(--sp-4) 9px 26px;
  white-space: normal; color: var(--blue-500); font-weight: 500;
}
.search-card .nice-select .option:hover,
.search-card .nice-select .option.focus,
.search-card .nice-select .option.selected.focus { background-color: var(--blue-50); color: var(--blue-900); }
.search-card .nice-select .option.selected { font-weight: 700; color: var(--blue-900); }

/* ===========================================================================
   COMPANY / CHI SIAMO page
   =========================================================================== */
.page-hero { position: relative; min-height: 320px; display: flex; align-items: center;
  background: var(--blue-900) center/cover no-repeat; filter: grayscale(100%); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(6,15,40,.45); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero-title { color: #fff; font-size: 44px; font-weight: 700; margin: 0; text-align: center; }

.alert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.alert-grid .alert, .alert-grid .notice-alert { max-width: none; margin: 0; }

/* notice (avviso) modal */
.notice-modal { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: var(--sp-4); }
.notice-modal[hidden] { display: none; }
.notice-modal-backdrop { position: absolute; inset: 0; background: rgba(6, 15, 40, .55); }
.notice-modal-dialog {
  position: relative; width: min(520px, 100%); max-height: min(88vh, 640px); overflow: auto;
  background: var(--white); border-radius: 16px; box-shadow: 0 20px 48px rgba(6, 15, 40, .18);
  padding: 24px 28px 22px;
  display: flex; flex-direction: column; gap: 0;
}
.notice-modal-dialog.is-loading .notice-modal-body { min-height: 64px; }
.notice-modal-head {
  position: relative; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; padding-right: 36px;
}
.notice-modal-x {
  position: absolute; top: -4px; right: -4px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; background: transparent; color: var(--blue-900);
  cursor: pointer; border-radius: 8px; flex-shrink: 0;
}
.notice-modal-x:hover { background: var(--blue-50); }
.notice-modal-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex: 1; min-width: 0;
}
.notice-modal-badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  line-height: 1.2; background: #fde8ea; color: #c62828; white-space: nowrap;
}
.notice-modal-dialog[data-severity="info"] .notice-modal-badge { background: #e8f0fd; color: #2563b8; }
.notice-modal-dialog[data-severity="danger"] .notice-modal-badge { background: #ffd6d6; color: #b71c1c; }
.notice-modal-date {
  font-size: 13px; font-weight: 500; color: #6b7a94; white-space: nowrap; margin-left: auto;
}
.notice-modal-cover {
  display: block; width: 100%; max-height: 220px; object-fit: cover;
  border-radius: 12px; margin: 0 0 16px; box-shadow: var(--shadow-sm);
}
.notice-modal-cover[hidden] { display: none; }
.notice-modal-title {
  display: grid; grid-template-columns: 24px 1fr; gap: 10px 12px; align-items: start;
  font-size: 22px; font-weight: 800; line-height: 1.3; color: var(--blue-900);
  margin: 0 0 14px;
}
.notice-modal-title-ico { color: var(--red-500); margin-top: 3px; }
.notice-modal-dialog[data-severity="info"] .notice-modal-title-ico { color: var(--blue-400); }
.notice-modal-body {
  color: #3d4f6a; font-size: 15px; line-height: 1.65; flex: 0 1 auto;
}
.notice-modal-body p { margin: 0 0 12px; }
.notice-modal-body p:last-child { margin-bottom: 0; }
.notice-modal-loading, .notice-modal-error { margin: 0; color: #6b7a94; }
.notice-modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  flex-wrap: wrap; margin-top: 22px; padding-top: 0;
}
.notice-modal-footer:has(.notice-modal-downloads:not([hidden])) { justify-content: space-between; }
.notice-modal-downloads {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  margin-right: auto; min-width: 0;
}
.notice-modal-downloads[hidden] { display: none; }
.notice-modal-download {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
  color: var(--blue-900); text-decoration: none;
}
.notice-modal-download:hover { text-decoration: underline; }
.notice-modal-close-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 108px; padding: 11px 22px; border: 0; border-radius: 10px;
  background: var(--green-500); color: var(--blue-900); font-family: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1;
  box-shadow: none;
}
.notice-modal-close-btn:hover { background: var(--green-600); }
body.notice-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .notice-modal-dialog { padding: 20px 18px 18px; width: 100%; }
  .notice-modal-head { padding-right: 32px; margin-bottom: 14px; }
  .notice-modal-title { font-size: 19px; margin-bottom: 12px; }
  .notice-modal-footer { flex-direction: column-reverse; align-items: stretch; margin-top: 18px; }
  .notice-modal-close-btn { width: 100%; min-width: 0; }
  .notice-modal-downloads { margin-right: 0; align-items: center; width: 100%; }
  .notice-modal-download { justify-content: center; }
}

/* reserved area modal */
.reserved-modal { position: fixed; inset: 0; z-index: 1310; display: flex; align-items: center; justify-content: center; padding: var(--sp-4); }
.reserved-modal[hidden] { display: none; }
.reserved-modal-backdrop { position: absolute; inset: 0; background: rgba(6, 15, 40, .55); }
.reserved-modal-dialog {
  position: relative; width: min(480px, 100%); max-height: min(85vh, 720px); overflow: auto;
  background: #fff; border-radius: 16px; padding: 28px 28px 24px; box-shadow: 0 24px 64px rgba(6, 15, 40, .28);
}
.reserved-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.reserved-modal-title { margin: 0; font-size: 22px; line-height: 1.25; color: var(--blue-900); }
.reserved-modal-x {
  flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent;
  color: var(--blue-900); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.reserved-modal-x:hover { background: var(--blue-50); }
.reserved-modal-intro { margin: 0 0 18px; color: #6b7a94; font-size: 15px; line-height: 1.45; }
.reserved-login-form { display: grid; gap: 14px; }
.reserved-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue-900); }
.reserved-field input {
  width: 100%; border: 1px solid #d5dbe7; border-radius: 10px; padding: 11px 12px;
  font: inherit; font-weight: 500; color: var(--blue-900); background: #fff;
}
.reserved-field input:focus { outline: 2px solid rgba(37, 99, 184, .25); border-color: #2563b8; }
.reserved-error { margin: 0; color: #b71c1c; font-size: 14px; font-weight: 600; }
.reserved-error[hidden] { display: none; }
.reserved-submit { width: 100%; justify-content: center; }
.reserved-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reserved-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #e4e9f2; color: var(--blue-900); text-decoration: none; font-weight: 600;
}
.reserved-item:hover { background: var(--blue-50); }
.reserved-empty { margin: 0; color: #6b7a94; }
.reserved-empty[hidden] { display: none; }
body.reserved-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .reserved-modal-dialog { padding: 20px 18px 18px; width: 100%; }
  .reserved-modal-title { font-size: 19px; }
}

/* mission + metrics */
.about-top { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--sp-6); align-items: stretch; margin-top: var(--sp-8); }
.about-top .info-card { display: flex; flex-direction: column; gap: var(--sp-3); }

/* gallery + video */
.company-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); margin-top: var(--sp-6); }
.gallery-left { display: flex; flex-direction: column; gap: var(--sp-6); }
.gallery-big { width: 100%; height: 280px; object-fit: cover; border-radius: var(--r-xl); filter: grayscale(100%); }
.gallery-small { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.gallery-small img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--r-xl); }
.video-thumb { position: relative; border: 0; padding: 0; cursor: pointer; border-radius: var(--r-xl);
  background: var(--blue-900) center/cover no-repeat; min-height: 100%; overflow: hidden; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(6,15,40,.25); }
.video-thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--green-500);
  display: grid; place-items: center; }

/* storia + photo */
.story-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--sp-6); margin-top: var(--sp-6); align-items: stretch; }
.story-row .info-card { display: flex; flex-direction: column; gap: var(--sp-4); }
/* white bordered card used on company page (mission + story) */
.info-card { background: var(--white); border: 1px solid #eef1f6; border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); padding: var(--sp-8); }
.info-card h3, .info-card-no-card h3 { font-size: 24px; font-weight: 700; margin: 0 0 var(--sp-2); }
.info-card p, .info-card-no-card p { margin: 0; color: var(--blue-400); font-size: 14px; line-height: 1.6; }
/* equal-height, vertically-centered dual CTA */
.dual-cta { align-items: stretch; }
.cta-box { min-height: 156px; }
/* story modal */
.modal-overlay { position: fixed; inset: 0; z-index: 600; display: none; align-items: center; justify-content: center;
  background: rgba(6,15,40,.55); padding: var(--sp-6); }
.modal-overlay.open { display: flex; }
.modal-box { position: relative; background: #fff; border-radius: var(--r-xl); padding: var(--sp-14) var(--sp-8) var(--sp-8);
  max-width: 720px; width: 100%; max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow-md); }
.modal-box h2 { font-size: 28px; font-weight: 700; margin: 0 0 var(--sp-4); }
.modal-box p { color: var(--blue-400); font-size: 15px; line-height: 1.7; margin: 0 0 var(--sp-4); }
.modal-close { position: absolute; top: var(--sp-4); right: var(--sp-4); background: none; border: 0;
  font-size: 30px; line-height: 1; color: var(--blue-900); z-index: 2; }
.modal-overlay--video { background: rgba(6,15,40,.72); padding: var(--sp-4); }
.modal-box--video {
  position: relative;
  max-width: min(960px, 100%);
  width: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.modal-box--video .modal-close {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--blue-900);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.company-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  border-radius: 0;
  background: transparent;
}
.story-photo { min-height: 100%; }
.story-photo img { filter: grayscale(100%); }

/* organizzazione marini */
.company-marini { padding-top: 0; }
.marini-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-6);
  align-items: stretch;
  margin-top: var(--sp-8);
}
.marini-row .info-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.marini-download {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-2);
}
.marini-video {
  position: relative;
  width: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--blue-900);
  box-shadow: var(--shadow-sm);
}
.marini-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* dual CTA */
.dual-cta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); margin-top: var(--sp-14); }
.cta-box { border-radius: var(--r-xl); padding: var(--sp-8); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: var(--sp-4); }
.cta-box h3 { font-size: 24px; font-weight: 700; margin: 0; line-height: 1.15; }
.cta-box.green { background: var(--green-500); color: var(--blue-900); }
.cta-box.light { background: var(--white); border: 1px solid #eef1f6; box-shadow: var(--shadow-sm); }
.cta-box-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; }

@media (max-width: 1100px) {
  .about-top, .story-row, .marini-row { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .page-hero-title { font-size: 30px; }
  .alert-grid { grid-template-columns: 1fr; }
  .alert-carousel-shell { padding: 0; }
  .alert-carousel-arrow { display: none; }
  .alert-carousel .alert { padding: var(--sp-4); min-height: 50px; }
  .alert-carousel .alert .ico { display: none; }
  .alert-carousel .alert .txt { padding-left: var(--sp-3); }
  .company-gallery { grid-template-columns: 1fr; }
  .video-thumb { min-height: 220px; }
  .dual-cta { grid-template-columns: 1fr; }
  .cta-box { padding: var(--sp-8); }
}

/* ===========================================================================
   CONTACTS page
   =========================================================================== */
.page-hero--color { filter: none; }
.flash-ok { background: #e8f7ef; border: 1px solid var(--green-500); color: var(--green-900);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-6); margin-top: var(--sp-6); font-weight: 600; }

.sedi-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: var(--sp-6); margin-top: var(--sp-8); align-items: stretch; }
.seat-list { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-4); }
.seat-list li { display: flex; gap: var(--sp-3); font-size: 14px; color: var(--blue-500); line-height: 1.5; }
.seat-list .ic { color: var(--green-500); flex: 0 0 auto; margin-top: 2px; }
.seat-list a { color: var(--blue-500); }
.seat-list a:hover { color: var(--green-500); }

.contact-hours {
  margin-top: var(--sp-6);
  padding: 16px 18px;
  border-radius: 16px;
  border: 2px solid rgba(0, 172, 89, .35);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 172, 89, .12), transparent 55%),
    linear-gradient(180deg, #f4fff8 0%, #fff 78%);
  box-shadow: 0 8px 22px rgba(0, 172, 89, .08);
}
.contact-hours-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--blue-900);
  font-size: 15px;
}
.contact-hours-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e8f8f0;
  color: var(--green-500);
}
.contact-hours-rows {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-hours-rows li {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e4ebf6;
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.contact-hours-rows li.is-closed {
  background: #fff4e5;
  border-color: #f0d7a8;
  color: #7a4a00;
}
/* clickable contacts (tel: / mailto: / web) — same look as text but with hover */
.contact-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-500); font-weight: 500;
  border-bottom: 1px dashed transparent;
  transition: color .15s ease, border-color .15s ease;
}
.contact-link:hover {
  color: var(--green-500);
  border-bottom-color: var(--green-500);
}
.map-embed { border-radius: var(--r-xl); overflow: hidden; min-height: 320px; border: 1px solid #eef1f6; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.other-card { margin-top: var(--sp-6); }
.other-title { font-size: 18px; font-weight: 700; margin: 0 0 var(--sp-6); color: var(--blue-900); }
.other-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
.other-logo { height: 48px; width: auto; object-fit: contain; margin-bottom: var(--sp-2); }
.other-company {
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--blue-500);
  margin: 0 0 var(--sp-3);
}

#contactFormContainer,
#contactForm {
  scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}

/* pills — segmented control with sliding indicator (rounded rectangles) */
.contact-pills {
  display: flex; justify-content: center; margin: var(--sp-8) 0;
  background: var(--blue-50); border: 1px solid #e3e9f5; border-radius: 14px;
  padding: 6px; max-width: max-content; margin-left: auto; margin-right: auto;
  position: relative; isolation: isolate; gap: 6px;
}
.contact-pills .pill {
  /* equal-width segments → the sliding pill (50% width) matches the segment exactly */
  flex: 1 1 0; min-width: 220px;
  background: transparent; border: 0; color: var(--blue-500);
  border-radius: 10px; padding: 12px 28px; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: color .25s ease; position: relative; z-index: 2;
  white-space: nowrap; text-align: center;
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-pills .pill.active { color: var(--blue-900); }
/* sliding indicator — width = one segment slot */
.contact-pills::before {
  content: ""; position: absolute; z-index: 1;
  top: 6px; bottom: 6px; left: 6px;
  width: calc((100% - 12px - 6px) / 2);
  background: var(--green-500);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 172, 89, .25);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
/* when the right segment is active, slide the pill to the right */
.contact-pills:has(.pill[data-pill="complaint"].active)::before,
.contact-pills[data-variant="complaint"]::before {
  transform: translateX(calc(100% + 6px));
}

/* multi-segment pills (news categories, etc.) */
.contact-pills--multi::before { display: none; }
.contact-pills--multi {
  width: max-content;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-left: auto;
  margin-right: auto;
}
.contact-pills--multi .pill {
  flex: 0 0 auto;
  min-width: 0;
  padding: 12px 20px;
}
.contact-pills-indicator {
  position: absolute; z-index: 1; top: 0; left: 0;
  width: 0; height: 0;
  background: var(--green-500); border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 172, 89, .25);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), width .35s cubic-bezier(.4, 0, .2, 1), height .35s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

/* form */
.contact-form-card { background: var(--white); border: 1px solid #eef1f6; border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); padding: var(--sp-8); max-width: 1000px; margin: 0 auto; }
.contact-form-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 var(--sp-2); }
.form-intro { color: var(--blue-400); font-size: 14px; margin: 0 0 var(--sp-6); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
/* variant row: always 2 equal columns, hidden fields drop out of flow */
.form-row-variant {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field-control { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.form-field > span { font-size: 13px; font-weight: 600; color: var(--blue-500); }
.form-field--full { margin-top: var(--sp-4); }
/* variant-specific fields: fully removed from layout when inactive */
.contact-form-card [data-form-group][hidden] { display: none !important; }
.contact-form-card .nice-select {
  width: 100% !important;
  height: 44px;
  line-height: 42px;
  border: 1px solid #e3e9f5;
  border-radius: var(--r-lg);
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  color: var(--blue-900);
  float: none;
}
.contact-form-card .nice-select .current { line-height: 42px; padding: 0 var(--sp-4); }
.contact-form-card .nice-select .list { width: 100%; max-height: 260px; overflow-y: auto; }
.contact-form-card input, .contact-form-card textarea, .contact-form-card select {
  width: 100%; border: 1px solid #e3e9f5; border-radius: var(--r-lg); background: var(--white);
  padding: 0 var(--sp-4); height: 44px; font-family: inherit; font-size: 14px; color: var(--blue-900); }
.contact-form-card textarea { height: auto; padding: var(--sp-3) var(--sp-4); resize: vertical; }
.contact-form-card input:focus, .contact-form-card textarea:focus, .contact-form-card select:focus {
  outline: none; border-color: var(--green-500); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
  margin-top: var(--sp-6); flex-wrap: wrap; }
.form-consent { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: 13px; color: var(--blue-400); max-width: 640px;
  margin-top: var(--sp-6); }
.form-consent input { width: auto; height: auto; margin-top: 2px; }
.form-consent a { color: var(--green-500); font-weight: 700; text-decoration: underline; }

.faq-panel--solo { max-width: none; margin: 0; }

@media (max-width: 1100px) {
  .sedi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .other-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .form-grid { grid-template-columns: 1fr; }
  .form-row-variant { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { justify-content: center; }
  .contact-pills {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .contact-pills .pill {
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
    white-space: normal;
    line-height: 1.25;
  }
  .contact-pills--multi {
    width: 100%;
  }
}
.flash-ko { background: #fdecec; border: 1px solid var(--red-500); color: var(--red-500);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-6); margin-top: var(--sp-6); font-weight: 600; }

/* ===================== RICERCA PERCORSO — RISULTATI ===================== */
.results-section {
  background: var(--white);
  scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}
.results-loading { display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  color: var(--blue-400); font-weight: 600; margin-bottom: var(--sp-6); padding: var(--sp-8) 0; }
.results-loading[hidden], .results-none[hidden] { display: none !important; }
.results-none {
  text-align: center; color: var(--blue-400); font-weight: 600; font-size: 16px;
  margin: 0; padding: var(--sp-8) 0;
}
.results-loading .spinner { width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--blue-100); border-top-color: var(--green-500);
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results-past-bar { display: flex; justify-content: center; margin-bottom: var(--sp-6); }
.results-past-bar[hidden] { display: none !important; }

.itineraries { display: flex; flex-direction: column; gap: var(--sp-4); }
.itin { border: 1px solid var(--blue-100); border-radius: var(--r-xl);
  background: var(--white); overflow: hidden; transition: box-shadow .2s; }
.itin.open, .itin:hover { box-shadow: var(--shadow-sm); }
.itin.is-past { opacity: .6; }

.itin-head { width: 100%; background: var(--blue-50); border: 0; cursor: pointer;
  display: grid; grid-template-columns: 120px repeat(4, 1fr) 120px; align-items: center;
  gap: var(--sp-4); padding: var(--sp-6); text-align: left; }
.itin-date { font-weight: 800; color: var(--blue-900); font-size: 15px; }
.itin-col { display: flex; flex-direction: column; gap: 2px; }
.itin-col .v { font-weight: 800; color: var(--blue-900); font-size: 17px; }
.itin-col .l { font-size: 13px; color: var(--blue-400); }
.itin-toggle { display: inline-flex; align-items: center; justify-content: flex-end;
  gap: 6px; font-weight: 700; color: var(--green-500); white-space: nowrap; }
.itin-toggle svg { transition: transform .2s; }
.itin.open .itin-toggle svg { transform: rotate(180deg); }

.itin-detail { padding: var(--sp-6); border-top: 1px solid var(--blue-100);
  display: flex; flex-direction: column; gap: var(--sp-4); }
.leg { border: 1px solid var(--blue-100); border-radius: var(--r-lg); padding: var(--sp-4); }
.leg-line { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.leg-badge { display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; padding: 2px 10px; border-radius: 999px; font-weight: 800;
  background: var(--blue-900); color: var(--white); font-size: 13px; }
.leg-type { font-size: 13px; color: var(--blue-400); text-transform: capitalize; }
.leg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.leg-box { font-size: 14px; color: var(--blue-500); display: flex; flex-direction: column; gap: 4px; }
.leg-h { font-weight: 800; color: var(--blue-900); margin-bottom: 2px; }
.leg-maps { margin-top: 4px; color: var(--green-500); font-weight: 700; font-size: 13px; }

/* ===================== LE NOSTRE LINEE ===================== */
.lines-schedule {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-xl);
  background: var(--white);
}
.lines-schedule-title {
  margin: 0 0 var(--sp-3);
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-900);
  text-align: center;
}
.lines-schedule-notice {
  margin: 0 0 var(--sp-6);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--blue-400);
  width: 100%;
}
.lines-schedule-head {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-400);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.lines-schedule-head-actions {
  display: grid;
  grid-template-columns: 72px 72px;
  gap: var(--sp-4);
}
.lines-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.lines-schedule-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: var(--sp-4);
  align-items: start;
}
.lines-schedule-actions {
  display: grid;
  grid-template-columns: 72px 72px;
  gap: var(--sp-4);
  align-items: start;
}
.lines-schedule-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}
.lines-schedule-action-empty {
  color: var(--blue-200);
  font-size: 16px;
  line-height: 1;
}
.lines-schedule-bullet {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(0, 172, 89, .18);
}
.lines-schedule-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.lines-schedule-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--blue-900);
}
.lines-schedule-code {
  font-size: 15px;
  font-weight: 800;
  color: var(--green-600);
  text-transform: uppercase;
}
.lines-schedule-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-900);
}
.lines-schedule-validity {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-400);
  white-space: nowrap;
}
.lines-schedule-route {
  font-size: 14px;
  color: var(--blue-500);
  line-height: 1.45;
}
.lines-schedule-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: transparent;
  color: var(--blue-400);
  cursor: pointer;
  transition: .15s ease;
}
.lines-schedule-dl:hover {
  color: var(--green-600);
  background: var(--blue-50);
}
@media (max-width: 700px) {
  .lines-schedule {
    padding: var(--sp-6) var(--sp-4);
  }
  .lines-schedule-head { display: none; }
  .lines-schedule-item {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .lines-schedule-bullet { margin-top: 4px; }
  .lines-schedule-info { grid-column: 2; }
  .lines-schedule-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .lines-schedule-validity { white-space: normal; }
  .lines-schedule-actions {
    grid-column: 2;
    grid-template-columns: 44px 44px;
    justify-content: start;
    gap: 8px;
  }
  .lines-schedule-action { min-height: 40px; }
}
.modal-box--line-map {
  max-width: min(960px, 100%);
  padding: var(--sp-12) var(--sp-5) var(--sp-5);
  text-align: center;
}
.modal-box--line-map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
}

.lines-network-map {
  margin-top: var(--sp-8);
}
.lines-network-map-title {
  margin: 0 0 var(--sp-6);
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-900);
}
.lines-network-map-link {
  display: block;
  overflow: hidden;
  transition: opacity .2s ease;
}
.lines-network-map-link:hover {
  opacity: .92;
}
.lines-network-map-link img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .itin-head { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .itin-date { grid-column: 1 / -1; }
  .itin-toggle { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .itin-head { grid-template-columns: 1fr 1fr; }
  .leg-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ===================== STOP PICKER MAP MODAL ===================== */
.stop-map-modal { position: fixed; inset: 0; z-index: 1200; display: none;
  align-items: center; justify-content: center; padding: var(--sp-6); }
.stop-map-modal:not([hidden]) { display: flex; }
.stop-map-backdrop { position: absolute; inset: 0; background: rgba(6, 15, 40, .55); }
.stop-map-dialog { position: relative; width: min(1000px, 92vw); height: min(680px, 82vh);
  background: var(--white); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.stop-map { width: 100%; height: 100%; }
.stop-map-close { position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--blue-900); font-size: 22px; line-height: 1;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; }
.stop-map-close:hover { background: var(--blue-50); }
/* google infowindow select button + geolocation control */
.gm-stop-name { font-weight: 700; color: var(--blue-900); font-size: 14px; margin-bottom: 8px; }
.gm-stop-pick { display: inline-block; background: var(--green-500); color: var(--blue-900);
  font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 0; cursor: pointer; }
.gm-stop-pick:hover { background: var(--green-600); }
.gm-locate-btn { background: var(--white); color: var(--blue-900); border: 0; cursor: pointer;
  margin: 10px; padding: 8px 14px; border-radius: var(--r-lg); font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow-sm); font-family: var(--font); }
.gm-locate-btn:hover { background: var(--blue-50); }

/* ===========================================================================
   NOLEGGIO (coach rental) page
   =========================================================================== */
.rental-hero { position: relative; min-height: 360px; display: flex; align-items: center;
  background-size: cover; background-position: center; filter: none; }
.rental-hero-overlay { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,15,40,.35), rgba(6,15,40,.55)); }
.rental-hero .container { position: relative; }
.rental-hero h1 { color: var(--white); font-size: 48px; font-weight: 800; margin: 0; text-align: center;
  text-shadow: 0 2px 18px rgba(6,15,40,.35); }

/* ---- flotta ---- */
.fleet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-14); align-items: start; }
.fleet-media img { width: 100%; border-radius: var(--r-xl); display: block; box-shadow: var(--shadow-sm); }
.fleet-text { color: var(--blue-400); font-size: 15px; line-height: 1.6; }
.fleet-text p { margin: 0 0 var(--sp-4); }
.fleet-text strong { color: var(--blue-900); }
.fleet-body .btn { margin-top: var(--sp-4); }

/* ---- vehicle tabs ---- */
.vehicle-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center;
  border-bottom: 1px solid var(--blue-100); margin-bottom: var(--sp-9); }
.vehicle-tab { display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: var(--sp-4) var(--sp-6); cursor: pointer;
  color: var(--blue-400); font-weight: 700; font-size: 15px; border-bottom: 3px solid transparent;
  margin-bottom: -1px; transition: .15s ease; }
.vehicle-tab:hover { color: var(--blue-900); }
.vehicle-tab.active { color: var(--blue-900); border-bottom-color: var(--green-500); }
.vehicle-tab svg { stroke: currentColor; }

/* ---- vehicle cards ---- */
.vehicle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8) var(--sp-14); }
.vehicle-card { display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-6); align-items: start;
  padding-bottom: var(--sp-6); border-bottom: 2px solid var(--blue-100); }
.vehicle-card--no-photo { grid-template-columns: 1fr; }
.vehicle-photo-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; border-radius: var(--r-lg); overflow: hidden; text-align: left; }
.vehicle-photo-zoom:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; }
.vehicle-photo-zoom img { width: 100%; height: 130px; object-fit: cover; border-radius: var(--r-lg);
  display: block; transition: transform .2s ease; }
.vehicle-photo-zoom:hover img { transform: scale(1.03); }
.vehicle-photo-count {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  background: rgba(6, 15, 40, .78); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.vehicle-info h3 { margin: 0 0 var(--sp-4); font-size: 18px; color: var(--blue-900); }
.vehicle-row { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: 14px;
  color: var(--blue-500); padding: var(--sp-3) 0; border-top: 1px solid var(--blue-100); }
.vehicle-row strong { color: var(--blue-900); }
.vehicle-ico { color: var(--green-500); flex: 0 0 auto; display: inline-flex; }
.opt-wrap { flex: 1; }
.opt-toggle { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0;
  padding: 0; margin-left: 6px; color: var(--green-500); font-weight: 700; font-size: 14px; cursor: pointer; }
.opt-toggle svg { transition: transform .2s; }
.opt-toggle.open svg { transform: rotate(180deg); }
.opt-list { margin: var(--sp-3) 0 0; padding-left: 18px; list-style: disc; color: var(--blue-500); }
.opt-list li { margin-bottom: 4px; }
.vehicles-empty { color: var(--blue-400); text-align: center; grid-column: 1 / -1; }

.vehicle-zoom-modal { position: fixed; inset: 0; z-index: 1200; display: none;
  align-items: center; justify-content: center; padding: var(--sp-6); }
.vehicle-zoom-modal:not([hidden]) { display: flex; }
.vehicle-zoom-backdrop { position: absolute; inset: 0; background: rgba(6, 15, 40, .72); }
.vehicle-zoom-dialog { position: relative; width: min(1100px, 94vw); max-height: 90vh;
  background: var(--white); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.vehicle-gallery-stage { position: relative; background: var(--blue-50); }
.vehicle-zoom-img { display: block; width: 100%; max-height: calc(90vh - 140px); object-fit: contain;
  background: var(--blue-50); }
.vehicle-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--blue-900);
  box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; justify-content: center;
}
.vehicle-gallery-nav[hidden] { display: none; }
.vehicle-gallery-prev { left: 12px; }
.vehicle-gallery-next { right: 12px; }
.vehicle-gallery-nav:hover { background: #fff; }
.vehicle-gallery-thumbs {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 0; background: #fff;
}
.vehicle-gallery-thumbs[hidden] { display: none; }
.vehicle-gallery-thumb {
  flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border: 2px solid transparent;
  border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--blue-50);
}
.vehicle-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vehicle-gallery-thumb.is-active { border-color: var(--green-500); }
.vehicle-zoom-caption { margin: 0; padding: var(--sp-4) var(--sp-6); font-size: 15px; font-weight: 700;
  color: var(--blue-900); text-align: center; }
.vehicle-zoom-close { position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--blue-900); font-size: 22px; line-height: 1;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; }
.vehicle-zoom-close:hover { background: var(--blue-50); }

/* ---- quote form ---- */
.quote-card { background: #fafbfe; border: 1px solid var(--blue-100); border-radius: var(--r-xl);
  padding: var(--sp-14); }
.quote-card h2 { margin: 0 0 var(--sp-2); color: var(--blue-900); font-size: 28px; }
.quote-intro { color: var(--blue-400); margin: 0 0 var(--sp-8); max-width: 760px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: end; }
.qf { display: flex; flex-direction: column; gap: 6px; position: relative; }
.qf-full { grid-column: 1 / -1; }
.qf > span { font-size: 13px; font-weight: 600; color: var(--blue-500); }
.qf input, .qf textarea { width: 100%; background: var(--white); border: 1px solid #e3e9f5;
  border-radius: var(--r-lg); padding: 12px var(--sp-4); font: inherit; color: var(--blue-900); }
.qf input:focus, .qf textarea:focus { outline: none; border-color: var(--green-500); }
.qf input.is-invalid, .qf textarea.is-invalid, .quote-form .nice-select.is-invalid, .g-recaptcha.is-invalid > div {
  border-color: #d64545 !important;
  box-shadow: 0 0 0 2px rgba(214, 69, 69, .12);
}
.qf-count { position: absolute; right: 6px; bottom: 8px; font-size: 12px; color: var(--blue-400); }
.quote-form .nice-select { width: 100%; background: var(--white); border: 1px solid #e3e9f5;
  border-radius: var(--r-lg); height: 46px; line-height: 44px; padding: 0 34px 0 var(--sp-4);
  color: var(--blue-900); font-size: 15px; font-family: var(--font); }
.quote-form .nice-select .list { width: 100%; max-height: 280px; overflow-y: auto; }
.quote-form .nice-select .option { font-size: 14px; }
.quote-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
  flex-wrap: wrap; margin-top: var(--sp-8); }
.quote-consent { display: flex; align-items: flex-start; gap: var(--sp-2); margin-top: var(--sp-6);
  font-size: 13px; color: var(--blue-400); }
.quote-consent input { width: auto; margin-top: 2px; }
.quote-consent a { color: var(--green-500); font-weight: 700; text-decoration: underline; }

@media (max-width: 980px) {
  .fleet-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .vehicle-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .rental-hero h1 { font-size: 34px; }
}
@media (max-width: 560px) {
  .vehicle-card { grid-template-columns: 1fr; }
  .vehicle-photo-zoom img { height: 180px; }
  .quote-card { padding: var(--sp-6) var(--sp-4); }
  .quote-foot { flex-direction: column; align-items: stretch; }
  .quote-foot .btn { justify-content: center; }
}

/* ===========================================================================
   TRASPARENZA page
   =========================================================================== */
.transparency-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--sp-8); align-items: start; }

.tr-menu { position: sticky; top: 96px; border: 1px solid var(--blue-100); border-radius: var(--r-xl);
  background: var(--white); padding: var(--sp-6); }
.tr-menu-title { margin: 0 0 var(--sp-4); font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--blue-400); }
.tr-menu ul { display: flex; flex-direction: column; gap: 4px; }
.tr-cat { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 12px var(--sp-4); border-radius: var(--r-lg); font-weight: 600; font-size: 15px;
  color: var(--blue-500); transition: .15s ease; }
.tr-cat svg { flex: 0 0 auto; opacity: .5; transition: .15s ease; }
.tr-cat:hover { background: var(--blue-50); color: var(--blue-900); }
.tr-cat.active { background: var(--blue-900); color: var(--white); }
.tr-cat.active svg { opacity: 1; }

.tr-content { min-width: 0; }
.tr-panel { display: none; }
.tr-panel.active { display: block; }
.tr-block { padding: 0 0 var(--sp-8); margin-bottom: var(--sp-8); border-bottom: 1px solid var(--blue-100); }
.tr-block:last-child { border-bottom: 0; margin-bottom: 0; }
.tr-block-title { margin: 0 0 var(--sp-4); font-size: 22px; color: var(--blue-900); }
.tr-body { color: var(--blue-500); font-size: 15px; line-height: 1.6; }
.tr-body p { margin: 0 0 var(--sp-3); }
.tr-body h2, .tr-body h3, .tr-body h4 { color: var(--blue-900); margin: var(--sp-6) 0 var(--sp-3); }
.tr-body ul, .tr-body ol { margin: 0 0 var(--sp-3); padding-left: 22px; list-style: revert; }
.tr-body li { margin-bottom: 4px; }
.tr-body a { color: var(--green-500); font-weight: 600; text-decoration: underline; }
.tr-body table { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-4); }
.tr-body td, .tr-body th { border: 1px solid var(--blue-100); padding: 8px 12px; text-align: left; }

.tr-downloads { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }
.tr-download { display: inline-flex; align-items: center; gap: var(--sp-3); padding: 12px var(--sp-4);
  border: 1px solid var(--blue-100); border-radius: var(--r-lg); background: var(--blue-50);
  color: var(--blue-900); font-weight: 600; font-size: 14px; transition: .15s ease; width: fit-content; max-width: 100%; }
.tr-download svg { flex: 0 0 auto; color: var(--green-500); }
.tr-download:hover { border-color: var(--green-500); background: var(--white); }
.tr-empty { color: var(--blue-400); }

@media (max-width: 860px) {
  .transparency-layout { grid-template-columns: 1fr; gap: var(--sp-6); }
  .tr-menu { position: static; }
  .tr-menu ul { flex-direction: row; flex-wrap: wrap; }
  .tr-cat { width: auto; }
  .tr-cat svg { display: none; }
}

/* ===========================================================================
   CONTENT PAGES + NEWS
   =========================================================================== */
.container--narrow { max-width: 920px; }
.container--content-wide { max-width: 1080px; }
.container--subscriptions { max-width: 1280px; }

/* fare calculator (tariffe page) */
.fare-calculator-section { margin-bottom: var(--sp-8); }
.fare-calculator-card {
  background: var(--white); border: 1px solid #eef1f6; border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); padding: var(--sp-8);
}
.fare-calculator-head { margin-bottom: var(--sp-6); }
.fare-calculator-title { margin: 0 0 var(--sp-2); font-size: 24px; font-weight: 800; color: var(--blue-900); }
.fare-calculator-sub { margin: 0; color: var(--blue-400); font-size: 15px; line-height: 1.6; }
.fare-calculator-route {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-4); align-items: end;
}
.fare-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fare-field-label { font-size: 13px; font-weight: 700; color: var(--blue-900); }
.fare-select { width: 100%; }
.fare-swap {
  width: 44px; height: 44px; border: 1px solid #e3e8f0; border-radius: 12px; background: var(--white);
  color: var(--blue-900); display: grid; place-items: center; cursor: pointer; margin-bottom: 4px;
}
.fare-swap:hover { background: var(--blue-50); border-color: var(--green-500); }
.fare-calculator-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.fare-calculator-results {
  margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid #eef1f6;
}
.fare-results-zone {
  display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-4);
  font-size: 15px; color: var(--blue-900);
}
.fare-results-zone-label { font-weight: 700; }
.fare-zone-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px;
  padding: 0 12px; border-radius: 8px; background: #e8f6ef; color: var(--blue-900); font-size: 16px;
}
.fare-results-grid { display: flex; flex-direction: column; gap: 10px; }
.fare-result-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) 72px 120px; gap: var(--sp-3); align-items: center;
  padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef1f6;
}
.fare-result-label { font-size: 14px; font-weight: 600; color: var(--blue-900); }
.fare-result-zone {
  justify-self: center; font-size: 13px; font-weight: 800; color: #c62828;
  background: #fde8ea; border-radius: 999px; padding: 4px 10px;
}
.fare-result-price { justify-self: end; font-size: 16px; font-weight: 800; color: var(--blue-900); }
.fare-calculator-hint { margin: var(--sp-4) 0 0; font-size: 14px; color: var(--blue-400); }
.fare-calculator-hint[hidden] { display: none; }
.fare-calculator-note { margin: var(--sp-3) 0 0; font-size: 12px; color: #8a97ab; }
.fare-calculator-places-note {
  margin-top: 15px;
  padding: 20px 24px;
  border: 1px solid #f0d9a8;
  border-radius: var(--r-lg);
  background: #fff8eb;
  color: var(--blue-900);
  font-size: 14px;
  line-height: 1.55;
  box-sizing: border-box;
}
.fare-calculator-places-note > *:first-child { margin-top: 0; }
.fare-calculator-places-note > *:last-child { margin-bottom: 0; }
.fare-calculator-places-note h3 {
  margin: 18px 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: .02em;
}
.fare-calculator-places-note h3:first-child { margin-top: 0; }
.fare-calculator-places-note p { margin: 0 0 10px; color: var(--blue-500); }
.fare-calculator-places-note ul {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  list-style: disc;
}
.fare-calculator-places-note li { margin-bottom: 8px; color: var(--blue-500); }
.fare-calculator-places-note li:last-child { margin-bottom: 0; }
.fare-calculator-places-note strong { color: var(--blue-900); font-weight: 700; }
.content-page-section .content-lead { margin-top: 0; }
.fare-calculator-card + .content-lead { margin-top: var(--sp-2); }

.fare-calculator-card .nice-select {
  width: 100%; min-height: 48px; border: 1px solid #e3e8f0; border-radius: 12px;
  line-height: 46px; padding-left: 14px; padding-right: 36px;
}
.fare-calculator-card .nice-select.open,
.fare-calculator-card .nice-select:focus { border-color: var(--green-500); }
.fare-calculator-card .nice-select .current { color: #8a97ab; }
.fare-calculator-card .nice-select.has-value .current,
.fare-calculator-card .nice-select:has(.option.selected) .current { color: var(--blue-900); font-weight: 600; }
.fare-calculator-card .nice-select .nice-select-dropdown { width: 100%; min-width: 280px; }
.fare-calculator-card .nice-select .list { max-height: 280px; }

@media (max-width: 860px) {
  .fare-calculator-route { grid-template-columns: 1fr; }
  .fare-swap { justify-self: center; margin: 0; transform: rotate(90deg); }
  .fare-result-row { grid-template-columns: 1fr auto; }
  .fare-result-zone { justify-self: start; }
  .fare-result-price { justify-self: start; }
}

.content-body { color: var(--blue-500); font-size: 16px; line-height: 1.65; }
.content-body p { margin: 0 0 var(--sp-4); }
.content-body h2, .content-body h3, .content-body h4 { color: var(--blue-900); margin: var(--sp-8) 0 var(--sp-3); line-height: 1.2; }
.content-body h2 { font-size: 26px; }
.content-body h3 { font-size: 20px; }
.content-body ul, .content-body ol { margin: 0 0 var(--sp-4); padding-left: 24px; list-style: revert; }
.content-body li { margin-bottom: 6px; }
.content-body a { color: var(--green-500); font-weight: 600; text-decoration: underline; }
.content-body img { border-radius: var(--r-lg); margin: var(--sp-4) 0; }
.content-body table { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-4); }
.content-body td, .content-body th { border: 1px solid var(--blue-100); padding: 10px 12px; text-align: left; }
.content-body th { background: var(--blue-50); color: var(--blue-900); }

/* ticket offices datatable (tariffe page) */
.ticket-offices-dt { margin: var(--sp-6) 0 var(--sp-4); }
.ticket-offices-dt-search {
  display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin-bottom: var(--sp-4);
}
.ticket-offices-dt-search-label { font-size: 13px; font-weight: 700; color: var(--blue-900); }
.ticket-offices-dt-search-input {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid #e3e8f0; border-radius: 12px;
  background: var(--white); color: var(--blue-900); font-size: 15px;
}
.ticket-offices-dt-search-input:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}
.ticket-offices-dt-scroll { overflow-x: auto; }
.ticket-offices-table { margin: 0; min-width: 720px; }
.ticket-offices-table th { position: sticky; top: 0; z-index: 1; }
.ticket-offices-dt-empty { margin: var(--sp-4) 0 0; font-size: 14px; color: var(--blue-400); }
.content-empty { color: var(--blue-400); }

.content-downloads { margin-top: var(--sp-9); padding-top: var(--sp-8); border-top: 1px solid var(--blue-100); }
.content-downloads-title { margin: 0 0 var(--sp-4); font-size: 20px; color: var(--blue-900); }

.content-accordion {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.content-acc-item {
  border: 1px solid var(--blue-100);
  border-radius: var(--r-xl);
  background: var(--white);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.content-acc-item:hover {
  border-color: #b7c3e6;
}
.content-acc-item.open {
  border-color: rgba(0, 172, 89, .45);
  box-shadow: var(--shadow-sm);
}
.content-acc-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  background: var(--blue-50);
  border: 0;
  color: var(--blue-900);
  text-align: left;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition: background .2s ease;
}
.content-acc-item.open .content-acc-q {
  background: #eaf8f1;
}
.content-acc-q:hover {
  background: #e8eefc;
}
.content-acc-item.open .content-acc-q:hover {
  background: #e0f4ea;
}
.content-acc-q-text {
  flex: 1;
  min-width: 0;
}
.content-acc-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-600);
  border: 1px solid rgba(0, 172, 89, .35);
  transition: transform .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.content-acc-item.open .content-acc-icon {
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
  transform: rotate(45deg);
}
.content-acc-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s ease;
}
.content-acc-item.open .content-acc-a {
  grid-template-rows: 1fr;
}
.content-acc-a-inner {
  overflow: hidden;
  padding: 0 20px;
  color: var(--blue-500);
  font-size: 15px;
  line-height: 1.7;
}
.content-acc-item.open .content-acc-a-inner {
  padding: 4px 20px 20px;
}
.content-acc-a-inner > *:first-child { margin-top: 0; }
.content-acc-a-inner > *:last-child { margin-bottom: 0; }
.content-acc-a-inner p {
  display: block;
  margin: 0 0 var(--sp-3);
  padding: 0;
}
.content-acc-a-inner h2,
.content-acc-a-inner h3,
.content-acc-a-inner h4 {
  display: block;
  color: var(--blue-900);
  margin: var(--sp-4) 0 var(--sp-3);
  line-height: 1.25;
}
.content-acc-a-inner ul,
.content-acc-a-inner ol {
  display: block;
  margin: 0 0 var(--sp-3);
  padding-left: 22px;
  list-style: revert;
}
.content-acc-a-inner li {
  display: list-item;
  margin-bottom: 6px;
}
.content-acc-a-inner a {
  color: var(--green-500);
  font-weight: 600;
  text-decoration: underline;
}
.dl-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.dl-item { display: flex; align-items: center; gap: var(--sp-4); padding: 14px var(--sp-4);
  border: 1px solid var(--blue-100); border-radius: var(--r-lg); background: var(--blue-50);
  color: var(--blue-900); font-weight: 600; transition: .15s ease; }
.dl-item:hover { border-color: var(--green-500); background: var(--white); }
.dl-ico { color: var(--green-500); flex: 0 0 auto; display: inline-flex; }
.dl-title { flex: 1; min-width: 0; }
.dl-cta { color: var(--green-500); font-size: 14px; white-space: nowrap; }

@media (max-width: 560px) {
  .dl-item { flex-wrap: wrap; }
  .dl-cta { width: 100%; }
}

.content-lead { font-size: 20px; font-weight: 600; color: var(--blue-900); line-height: 1.45;
  margin: 0 0 var(--sp-8); }
.content-lead--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

.news-grid--list { grid-template-columns: repeat(3, 1fr); }
.news-card-cat {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--green-500); margin-bottom: 4px;
}
.news-excerpt { margin: 0; font-size: 14px; color: var(--blue-400); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-attachment {
  display: inline-block; margin: 6px 8px 0 0; font-size: 13px; font-weight: 700;
  color: var(--green-500); text-decoration: underline;
}
.news-card-attachments { display: flex; flex-wrap: wrap; gap: 0; }

.news-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-6); font-size: 14px; color: var(--blue-400); }
.news-article-meta time { font-weight: 700; }
.news-article-cat { background: var(--blue-50); color: var(--blue-900); font-weight: 700;
  padding: 2px 10px; border-radius: 999px; text-transform: uppercase; font-size: 12px; letter-spacing: .03em; }
.news-article-cover { width: 100%; border-radius: var(--r-xl); margin-bottom: var(--sp-6);
  box-shadow: var(--shadow-sm); }
.news-article-title {
  margin: 0 0 var(--sp-6);
  text-align: left;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--blue-900);
}
.news-attachments { margin-top: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-5); }
.news-attachment { margin-top: 0; }
.news-attachment-image {
  display: block; width: 100%; max-width: 720px; border-radius: var(--r-lg);
  border: 1px solid var(--blue-100);
}
.news-attachment-link { display: inline-flex; margin-top: var(--sp-4); }
.news-back { margin-top: var(--sp-8); }

@media (max-width: 1100px) {
  .news-grid--list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .news-grid--list { grid-template-columns: 1fr; }
}

/* ---- Special services & advertising pages ---- */
.service-blocks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6);
}
.service-block-card {
  background: var(--white); border: 1px solid var(--blue-100); border-radius: var(--r-xl);
  padding: var(--sp-6); box-shadow: var(--shadow-sm);
}
.service-block-card h3 { margin: 0 0 var(--sp-3); font-size: 20px; color: var(--blue-900); }
.service-block-card p { margin: 0; color: var(--blue-400); line-height: 1.65; font-size: 15px; }

.advertising-network {
  background: linear-gradient(180deg, #f7f9fd 0%, #fff 100%);
}
.ad-stats-card {
  background: var(--white); border: 1px solid #dfe7f2; border-radius: 28px;
  padding: var(--sp-8); margin-bottom: var(--sp-8);
  box-shadow: 0 18px 45px rgba(6, 15, 40, .06);
}
.ad-stats-card .section-title { font-size: 42px; margin-bottom: var(--sp-2); }
.ad-stats-grid {
  display: grid; grid-template-columns: minmax(190px, 260px) 1fr 1fr;
  gap: var(--sp-6); align-items: center;
}
.ad-stat { display: flex; flex-direction: column; gap: 2px; }
.ad-stat-value { font-size: 42px; font-weight: 800; color: var(--green-600); line-height: .95; letter-spacing: -.04em; }
.ad-stat span { color: var(--blue-900); font-weight: 600; }
.ad-stat-note { margin: 0; color: var(--blue-500); line-height: 1.55; font-size: 15px; }
.ad-area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.ad-area-card {
  background: var(--white); border: 1px solid #e5ebf5; border-radius: 24px;
  padding: var(--sp-6); box-shadow: 0 12px 30px rgba(6, 15, 40, .045);
}
.ad-area-card h3 { margin: 0 0 var(--sp-3); font-size: 18px; color: var(--blue-900); }
.ad-area-card p { margin: 0 0 var(--sp-3); color: var(--blue-400); line-height: 1.6; font-size: 15px; }
.ad-municipalities { font-size: 14px !important; color: #5a6b7d !important; }
.advertising-options {
  background: var(--white);
}
.advertising-options .section-head { margin-bottom: var(--sp-8); }
.advertising-options .section-title { line-height: 1.1; }
.advertising-options .section-desc {
  margin-top: var(--sp-4); max-width: 720px; margin-left: auto; margin-right: auto;
}
.ad-options-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-8); margin-bottom: var(--sp-8);
}
.ad-option-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid #e3eaf4; border-radius: 26px;
  overflow: hidden; box-shadow: 0 16px 38px rgba(6, 15, 40, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ad-option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(6, 15, 40, .12);
}
.ad-option-media {
  height: 240px; padding: var(--sp-4); overflow: hidden;
  background: linear-gradient(180deg, #f3f6fb 0%, #e9eef7 100%);
  border-bottom: 1px solid #e6edf7;
}
.ad-option-media img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  border-radius: 14px;
}
.ad-option-card--cover .ad-option-media {
  height: 260px; padding: 0; background: var(--blue-50);
}
.ad-option-card--cover .ad-option-media img {
  object-fit: cover; border-radius: 0;
}
.ad-option-body {
  padding: 20px;
}
.ad-option-body h3 {
  padding: 0;
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 20px; font-weight: 700;
  color: var(--blue-500); line-height: 1.2;
}
.ad-option-body p {
  margin: 0; color: var(--blue-400); font-size: 15px; line-height: 1.55;
}
.ad-contact-box {
  background: var(--blue-900); color: var(--white); border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-8); text-align: center;
}
.ad-contact-box h3 { margin: 0 0 var(--sp-2); font-size: 22px; }
.ad-contact-box p { margin: 0; font-size: 16px; line-height: 1.6; }
.ad-contact-box a { color: #7dffc0; font-weight: 700; }
.advertising-form-section {
  background: #f4f7fb;
}
.advertising-form-card {
  background: var(--white);
  box-shadow: 0 20px 55px rgba(6, 15, 40, .08);
}

@media (max-width: 960px) {
  .service-blocks { grid-template-columns: 1fr; }
  .ad-stats-grid { grid-template-columns: 1fr; align-items: start; }
  .ad-area-grid { grid-template-columns: 1fr; }
  .ad-options-grid { grid-template-columns: 1fr; }
}

/* ===================== Careers (Lavora con noi) ===================== */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5, 24px);
}
.job-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--white, #fff);
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 14px 40px rgba(6, 15, 40, .06);
}
.job-tag {
  display: inline-block;
  background: #eaf3f8;
  color: #00608b;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.job-card-title {
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
  color: #0b2a3f;
}
.job-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5a6b7b;
  font-size: 14px;
  margin: 0;
}
.job-short {
  color: #44535f;
  margin: 0;
}
.job-more {
  width: 100%;
  border: 0;
  border-top: 1px solid #eef2f7;
  background: none;
  padding: 10px 0 0;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #00608b;
}
.job-more::after { content: " +"; }
.job-more:hover { color: #004a6b; }
.job-modal .modal-box { max-width: 640px; }
.job-modal-body { color: var(--blue-400); font-size: 15px; line-height: 1.7; }
.job-modal-body p { margin: 0 0 var(--sp-4); }
.job-modal-foot { margin-top: var(--sp-6); }
.job-published {
  margin-top: 12px;
  font-size: 13px;
  color: #7a8896;
}
.job-apply { margin-top: auto; }

.qf-help {
  font-size: 13px;
  color: #7a8896;
}

@media (max-width: 960px) {
  .job-grid { grid-template-columns: 1fr; }
}
